From 1102730a9e78ca67be257e3c9692eea7a9b79d2e Mon Sep 17 00:00:00 2001 From: Hui Yu Date: Mon, 7 Nov 2022 10:45:06 +0800 Subject: [PATCH 01/19] Regenerate the c client to merge https://github.com/OpenAPITools/openapi-generator/pull/13884 --- kubernetes/model/core_v1_event.c | 12 ++++++------ kubernetes/model/core_v1_event_series.c | 4 ++-- kubernetes/model/events_v1_event.c | 10 +++++----- kubernetes/model/events_v1_event_series.c | 2 +- kubernetes/model/v1_api_service_condition.c | 4 ++-- .../model/v1_certificate_signing_request_condition.c | 8 ++++---- kubernetes/model/v1_condition.c | 2 +- kubernetes/model/v1_container_state_running.c | 4 ++-- kubernetes/model/v1_container_state_terminated.c | 8 ++++---- kubernetes/model/v1_cron_job_status.c | 8 ++++---- .../model/v1_custom_resource_definition_condition.c | 4 ++-- kubernetes/model/v1_daemon_set_condition.c | 4 ++-- kubernetes/model/v1_deployment_condition.c | 8 ++++---- .../model/v1_horizontal_pod_autoscaler_status.c | 4 ++-- kubernetes/model/v1_job_condition.c | 8 ++++---- kubernetes/model/v1_job_status.c | 8 ++++---- kubernetes/model/v1_lease_spec.c | 8 ++++---- kubernetes/model/v1_managed_fields_entry.c | 4 ++-- kubernetes/model/v1_namespace_condition.c | 4 ++-- kubernetes/model/v1_node_condition.c | 8 ++++---- kubernetes/model/v1_object_meta.c | 8 ++++---- .../model/v1_persistent_volume_claim_condition.c | 8 ++++---- kubernetes/model/v1_pod_condition.c | 8 ++++---- kubernetes/model/v1_pod_status.c | 4 ++-- kubernetes/model/v1_replica_set_condition.c | 4 ++-- .../model/v1_replication_controller_condition.c | 4 ++-- kubernetes/model/v1_stateful_set_condition.c | 4 ++-- kubernetes/model/v1_taint.c | 4 ++-- kubernetes/model/v1_token_request_status.c | 2 +- kubernetes/model/v1_volume_error.c | 4 ++-- .../model/v1alpha1_storage_version_condition.c | 4 ++-- kubernetes/model/v1beta1_flow_schema_condition.c | 4 ++-- .../v1beta1_priority_level_configuration_condition.c | 4 ++-- kubernetes/model/v1beta2_flow_schema_condition.c | 4 ++-- .../v1beta2_priority_level_configuration_condition.c | 4 ++-- .../model/v2_horizontal_pod_autoscaler_condition.c | 4 ++-- .../model/v2_horizontal_pod_autoscaler_status.c | 4 ++-- .../v2beta2_horizontal_pod_autoscaler_condition.c | 4 ++-- .../model/v2beta2_horizontal_pod_autoscaler_status.c | 4 ++-- 39 files changed, 104 insertions(+), 104 deletions(-) diff --git a/kubernetes/model/core_v1_event.c b/kubernetes/model/core_v1_event.c index 99120924..9f95d47f 100644 --- a/kubernetes/model/core_v1_event.c +++ b/kubernetes/model/core_v1_event.c @@ -344,7 +344,7 @@ core_v1_event_t *core_v1_event_parseFromJSON(cJSON *core_v1_eventJSON){ // core_v1_event->event_time cJSON *event_time = cJSON_GetObjectItemCaseSensitive(core_v1_eventJSON, "eventTime"); if (event_time) { - if(!cJSON_IsString(event_time)) + if(!cJSON_IsString(event_time) && !cJSON_IsNull(event_time)) { goto end; //DateTime } @@ -353,7 +353,7 @@ core_v1_event_t *core_v1_event_parseFromJSON(cJSON *core_v1_eventJSON){ // core_v1_event->first_timestamp cJSON *first_timestamp = cJSON_GetObjectItemCaseSensitive(core_v1_eventJSON, "firstTimestamp"); if (first_timestamp) { - if(!cJSON_IsString(first_timestamp)) + if(!cJSON_IsString(first_timestamp) && !cJSON_IsNull(first_timestamp)) { goto end; //DateTime } @@ -380,7 +380,7 @@ core_v1_event_t *core_v1_event_parseFromJSON(cJSON *core_v1_eventJSON){ // core_v1_event->last_timestamp cJSON *last_timestamp = cJSON_GetObjectItemCaseSensitive(core_v1_eventJSON, "lastTimestamp"); if (last_timestamp) { - if(!cJSON_IsString(last_timestamp)) + if(!cJSON_IsString(last_timestamp) && !cJSON_IsNull(last_timestamp)) { goto end; //DateTime } @@ -463,11 +463,11 @@ core_v1_event_t *core_v1_event_parseFromJSON(cJSON *core_v1_eventJSON){ action ? strdup(action->valuestring) : NULL, api_version ? strdup(api_version->valuestring) : NULL, count ? count->valuedouble : 0, - event_time ? strdup(event_time->valuestring) : NULL, - first_timestamp ? strdup(first_timestamp->valuestring) : NULL, + event_time && !cJSON_IsNull(event_time) ? strdup(event_time->valuestring) : NULL, + first_timestamp && !cJSON_IsNull(first_timestamp) ? strdup(first_timestamp->valuestring) : NULL, involved_object_local_nonprim, kind ? strdup(kind->valuestring) : NULL, - last_timestamp ? strdup(last_timestamp->valuestring) : NULL, + last_timestamp && !cJSON_IsNull(last_timestamp) ? strdup(last_timestamp->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, metadata_local_nonprim, reason ? strdup(reason->valuestring) : NULL, diff --git a/kubernetes/model/core_v1_event_series.c b/kubernetes/model/core_v1_event_series.c index 00f1552c..e1d77a15 100644 --- a/kubernetes/model/core_v1_event_series.c +++ b/kubernetes/model/core_v1_event_series.c @@ -74,7 +74,7 @@ core_v1_event_series_t *core_v1_event_series_parseFromJSON(cJSON *core_v1_event_ // core_v1_event_series->last_observed_time cJSON *last_observed_time = cJSON_GetObjectItemCaseSensitive(core_v1_event_seriesJSON, "lastObservedTime"); if (last_observed_time) { - if(!cJSON_IsString(last_observed_time)) + if(!cJSON_IsString(last_observed_time) && !cJSON_IsNull(last_observed_time)) { goto end; //DateTime } @@ -83,7 +83,7 @@ core_v1_event_series_t *core_v1_event_series_parseFromJSON(cJSON *core_v1_event_ core_v1_event_series_local_var = core_v1_event_series_create ( count ? count->valuedouble : 0, - last_observed_time ? strdup(last_observed_time->valuestring) : NULL + last_observed_time && !cJSON_IsNull(last_observed_time) ? strdup(last_observed_time->valuestring) : NULL ); return core_v1_event_series_local_var; diff --git a/kubernetes/model/events_v1_event.c b/kubernetes/model/events_v1_event.c index 56a640b0..05bb87fa 100644 --- a/kubernetes/model/events_v1_event.c +++ b/kubernetes/model/events_v1_event.c @@ -343,7 +343,7 @@ events_v1_event_t *events_v1_event_parseFromJSON(cJSON *events_v1_eventJSON){ // events_v1_event->deprecated_first_timestamp cJSON *deprecated_first_timestamp = cJSON_GetObjectItemCaseSensitive(events_v1_eventJSON, "deprecatedFirstTimestamp"); if (deprecated_first_timestamp) { - if(!cJSON_IsString(deprecated_first_timestamp)) + if(!cJSON_IsString(deprecated_first_timestamp) && !cJSON_IsNull(deprecated_first_timestamp)) { goto end; //DateTime } @@ -352,7 +352,7 @@ events_v1_event_t *events_v1_event_parseFromJSON(cJSON *events_v1_eventJSON){ // events_v1_event->deprecated_last_timestamp cJSON *deprecated_last_timestamp = cJSON_GetObjectItemCaseSensitive(events_v1_eventJSON, "deprecatedLastTimestamp"); if (deprecated_last_timestamp) { - if(!cJSON_IsString(deprecated_last_timestamp)) + if(!cJSON_IsString(deprecated_last_timestamp) && !cJSON_IsNull(deprecated_last_timestamp)) { goto end; //DateTime } @@ -371,7 +371,7 @@ events_v1_event_t *events_v1_event_parseFromJSON(cJSON *events_v1_eventJSON){ } - if(!cJSON_IsString(event_time)) + if(!cJSON_IsString(event_time) && !cJSON_IsNull(event_time)) { goto end; //DateTime } @@ -459,8 +459,8 @@ events_v1_event_t *events_v1_event_parseFromJSON(cJSON *events_v1_eventJSON){ action ? strdup(action->valuestring) : NULL, api_version ? strdup(api_version->valuestring) : NULL, deprecated_count ? deprecated_count->valuedouble : 0, - deprecated_first_timestamp ? strdup(deprecated_first_timestamp->valuestring) : NULL, - deprecated_last_timestamp ? strdup(deprecated_last_timestamp->valuestring) : NULL, + deprecated_first_timestamp && !cJSON_IsNull(deprecated_first_timestamp) ? strdup(deprecated_first_timestamp->valuestring) : NULL, + deprecated_last_timestamp && !cJSON_IsNull(deprecated_last_timestamp) ? strdup(deprecated_last_timestamp->valuestring) : NULL, deprecated_source ? deprecated_source_local_nonprim : NULL, strdup(event_time->valuestring), kind ? strdup(kind->valuestring) : NULL, diff --git a/kubernetes/model/events_v1_event_series.c b/kubernetes/model/events_v1_event_series.c index 1896cb72..0b94c80d 100644 --- a/kubernetes/model/events_v1_event_series.c +++ b/kubernetes/model/events_v1_event_series.c @@ -83,7 +83,7 @@ events_v1_event_series_t *events_v1_event_series_parseFromJSON(cJSON *events_v1_ } - if(!cJSON_IsString(last_observed_time)) + if(!cJSON_IsString(last_observed_time) && !cJSON_IsNull(last_observed_time)) { goto end; //DateTime } diff --git a/kubernetes/model/v1_api_service_condition.c b/kubernetes/model/v1_api_service_condition.c index b7436dc7..21a8fbc8 100644 --- a/kubernetes/model/v1_api_service_condition.c +++ b/kubernetes/model/v1_api_service_condition.c @@ -113,7 +113,7 @@ v1_api_service_condition_t *v1_api_service_condition_parseFromJSON(cJSON *v1_api // v1_api_service_condition->last_transition_time cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1_api_service_conditionJSON, "lastTransitionTime"); if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } @@ -163,7 +163,7 @@ v1_api_service_condition_t *v1_api_service_condition_parseFromJSON(cJSON *v1_api v1_api_service_condition_local_var = v1_api_service_condition_create ( - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), diff --git a/kubernetes/model/v1_certificate_signing_request_condition.c b/kubernetes/model/v1_certificate_signing_request_condition.c index 5288a25b..b608825e 100644 --- a/kubernetes/model/v1_certificate_signing_request_condition.c +++ b/kubernetes/model/v1_certificate_signing_request_condition.c @@ -127,7 +127,7 @@ v1_certificate_signing_request_condition_t *v1_certificate_signing_request_condi // v1_certificate_signing_request_condition->last_transition_time cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1_certificate_signing_request_conditionJSON, "lastTransitionTime"); if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } @@ -136,7 +136,7 @@ v1_certificate_signing_request_condition_t *v1_certificate_signing_request_condi // v1_certificate_signing_request_condition->last_update_time cJSON *last_update_time = cJSON_GetObjectItemCaseSensitive(v1_certificate_signing_request_conditionJSON, "lastUpdateTime"); if (last_update_time) { - if(!cJSON_IsString(last_update_time)) + if(!cJSON_IsString(last_update_time) && !cJSON_IsNull(last_update_time)) { goto end; //DateTime } @@ -186,8 +186,8 @@ v1_certificate_signing_request_condition_t *v1_certificate_signing_request_condi v1_certificate_signing_request_condition_local_var = v1_certificate_signing_request_condition_create ( - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, - last_update_time ? strdup(last_update_time->valuestring) : NULL, + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, + last_update_time && !cJSON_IsNull(last_update_time) ? strdup(last_update_time->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), diff --git a/kubernetes/model/v1_condition.c b/kubernetes/model/v1_condition.c index b6e4ce2a..a8120fb6 100644 --- a/kubernetes/model/v1_condition.c +++ b/kubernetes/model/v1_condition.c @@ -130,7 +130,7 @@ v1_condition_t *v1_condition_parseFromJSON(cJSON *v1_conditionJSON){ } - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } diff --git a/kubernetes/model/v1_container_state_running.c b/kubernetes/model/v1_container_state_running.c index 99372607..ea7178b5 100644 --- a/kubernetes/model/v1_container_state_running.c +++ b/kubernetes/model/v1_container_state_running.c @@ -55,7 +55,7 @@ v1_container_state_running_t *v1_container_state_running_parseFromJSON(cJSON *v1 // v1_container_state_running->started_at cJSON *started_at = cJSON_GetObjectItemCaseSensitive(v1_container_state_runningJSON, "startedAt"); if (started_at) { - if(!cJSON_IsString(started_at)) + if(!cJSON_IsString(started_at) && !cJSON_IsNull(started_at)) { goto end; //DateTime } @@ -63,7 +63,7 @@ v1_container_state_running_t *v1_container_state_running_parseFromJSON(cJSON *v1 v1_container_state_running_local_var = v1_container_state_running_create ( - started_at ? strdup(started_at->valuestring) : NULL + started_at && !cJSON_IsNull(started_at) ? strdup(started_at->valuestring) : NULL ); return v1_container_state_running_local_var; diff --git a/kubernetes/model/v1_container_state_terminated.c b/kubernetes/model/v1_container_state_terminated.c index 8d1dfeef..5a3497a0 100644 --- a/kubernetes/model/v1_container_state_terminated.c +++ b/kubernetes/model/v1_container_state_terminated.c @@ -153,7 +153,7 @@ v1_container_state_terminated_t *v1_container_state_terminated_parseFromJSON(cJS // v1_container_state_terminated->finished_at cJSON *finished_at = cJSON_GetObjectItemCaseSensitive(v1_container_state_terminatedJSON, "finishedAt"); if (finished_at) { - if(!cJSON_IsString(finished_at)) + if(!cJSON_IsString(finished_at) && !cJSON_IsNull(finished_at)) { goto end; //DateTime } @@ -189,7 +189,7 @@ v1_container_state_terminated_t *v1_container_state_terminated_parseFromJSON(cJS // v1_container_state_terminated->started_at cJSON *started_at = cJSON_GetObjectItemCaseSensitive(v1_container_state_terminatedJSON, "startedAt"); if (started_at) { - if(!cJSON_IsString(started_at)) + if(!cJSON_IsString(started_at) && !cJSON_IsNull(started_at)) { goto end; //DateTime } @@ -199,11 +199,11 @@ v1_container_state_terminated_t *v1_container_state_terminated_parseFromJSON(cJS v1_container_state_terminated_local_var = v1_container_state_terminated_create ( container_id ? strdup(container_id->valuestring) : NULL, exit_code->valuedouble, - finished_at ? strdup(finished_at->valuestring) : NULL, + finished_at && !cJSON_IsNull(finished_at) ? strdup(finished_at->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, signal ? signal->valuedouble : 0, - started_at ? strdup(started_at->valuestring) : NULL + started_at && !cJSON_IsNull(started_at) ? strdup(started_at->valuestring) : NULL ); return v1_container_state_terminated_local_var; diff --git a/kubernetes/model/v1_cron_job_status.c b/kubernetes/model/v1_cron_job_status.c index 64da56fa..350bf3f9 100644 --- a/kubernetes/model/v1_cron_job_status.c +++ b/kubernetes/model/v1_cron_job_status.c @@ -122,7 +122,7 @@ v1_cron_job_status_t *v1_cron_job_status_parseFromJSON(cJSON *v1_cron_job_status // v1_cron_job_status->last_schedule_time cJSON *last_schedule_time = cJSON_GetObjectItemCaseSensitive(v1_cron_job_statusJSON, "lastScheduleTime"); if (last_schedule_time) { - if(!cJSON_IsString(last_schedule_time)) + if(!cJSON_IsString(last_schedule_time) && !cJSON_IsNull(last_schedule_time)) { goto end; //DateTime } @@ -131,7 +131,7 @@ v1_cron_job_status_t *v1_cron_job_status_parseFromJSON(cJSON *v1_cron_job_status // v1_cron_job_status->last_successful_time cJSON *last_successful_time = cJSON_GetObjectItemCaseSensitive(v1_cron_job_statusJSON, "lastSuccessfulTime"); if (last_successful_time) { - if(!cJSON_IsString(last_successful_time)) + if(!cJSON_IsString(last_successful_time) && !cJSON_IsNull(last_successful_time)) { goto end; //DateTime } @@ -140,8 +140,8 @@ v1_cron_job_status_t *v1_cron_job_status_parseFromJSON(cJSON *v1_cron_job_status v1_cron_job_status_local_var = v1_cron_job_status_create ( active ? activeList : NULL, - last_schedule_time ? strdup(last_schedule_time->valuestring) : NULL, - last_successful_time ? strdup(last_successful_time->valuestring) : NULL + last_schedule_time && !cJSON_IsNull(last_schedule_time) ? strdup(last_schedule_time->valuestring) : NULL, + last_successful_time && !cJSON_IsNull(last_successful_time) ? strdup(last_successful_time->valuestring) : NULL ); return v1_cron_job_status_local_var; diff --git a/kubernetes/model/v1_custom_resource_definition_condition.c b/kubernetes/model/v1_custom_resource_definition_condition.c index d13fc89a..253efcbf 100644 --- a/kubernetes/model/v1_custom_resource_definition_condition.c +++ b/kubernetes/model/v1_custom_resource_definition_condition.c @@ -113,7 +113,7 @@ v1_custom_resource_definition_condition_t *v1_custom_resource_definition_conditi // v1_custom_resource_definition_condition->last_transition_time cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_definition_conditionJSON, "lastTransitionTime"); if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } @@ -163,7 +163,7 @@ v1_custom_resource_definition_condition_t *v1_custom_resource_definition_conditi v1_custom_resource_definition_condition_local_var = v1_custom_resource_definition_condition_create ( - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), diff --git a/kubernetes/model/v1_daemon_set_condition.c b/kubernetes/model/v1_daemon_set_condition.c index 821408b6..bd70204d 100644 --- a/kubernetes/model/v1_daemon_set_condition.c +++ b/kubernetes/model/v1_daemon_set_condition.c @@ -113,7 +113,7 @@ v1_daemon_set_condition_t *v1_daemon_set_condition_parseFromJSON(cJSON *v1_daemo // v1_daemon_set_condition->last_transition_time cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1_daemon_set_conditionJSON, "lastTransitionTime"); if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } @@ -163,7 +163,7 @@ v1_daemon_set_condition_t *v1_daemon_set_condition_parseFromJSON(cJSON *v1_daemo v1_daemon_set_condition_local_var = v1_daemon_set_condition_create ( - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), diff --git a/kubernetes/model/v1_deployment_condition.c b/kubernetes/model/v1_deployment_condition.c index 7440050b..a193369d 100644 --- a/kubernetes/model/v1_deployment_condition.c +++ b/kubernetes/model/v1_deployment_condition.c @@ -127,7 +127,7 @@ v1_deployment_condition_t *v1_deployment_condition_parseFromJSON(cJSON *v1_deplo // v1_deployment_condition->last_transition_time cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1_deployment_conditionJSON, "lastTransitionTime"); if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } @@ -136,7 +136,7 @@ v1_deployment_condition_t *v1_deployment_condition_parseFromJSON(cJSON *v1_deplo // v1_deployment_condition->last_update_time cJSON *last_update_time = cJSON_GetObjectItemCaseSensitive(v1_deployment_conditionJSON, "lastUpdateTime"); if (last_update_time) { - if(!cJSON_IsString(last_update_time)) + if(!cJSON_IsString(last_update_time) && !cJSON_IsNull(last_update_time)) { goto end; //DateTime } @@ -186,8 +186,8 @@ v1_deployment_condition_t *v1_deployment_condition_parseFromJSON(cJSON *v1_deplo v1_deployment_condition_local_var = v1_deployment_condition_create ( - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, - last_update_time ? strdup(last_update_time->valuestring) : NULL, + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, + last_update_time && !cJSON_IsNull(last_update_time) ? strdup(last_update_time->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), diff --git a/kubernetes/model/v1_horizontal_pod_autoscaler_status.c b/kubernetes/model/v1_horizontal_pod_autoscaler_status.c index f1d5d194..fc977a90 100644 --- a/kubernetes/model/v1_horizontal_pod_autoscaler_status.c +++ b/kubernetes/model/v1_horizontal_pod_autoscaler_status.c @@ -130,7 +130,7 @@ v1_horizontal_pod_autoscaler_status_t *v1_horizontal_pod_autoscaler_status_parse // v1_horizontal_pod_autoscaler_status->last_scale_time cJSON *last_scale_time = cJSON_GetObjectItemCaseSensitive(v1_horizontal_pod_autoscaler_statusJSON, "lastScaleTime"); if (last_scale_time) { - if(!cJSON_IsString(last_scale_time)) + if(!cJSON_IsString(last_scale_time) && !cJSON_IsNull(last_scale_time)) { goto end; //DateTime } @@ -150,7 +150,7 @@ v1_horizontal_pod_autoscaler_status_t *v1_horizontal_pod_autoscaler_status_parse current_cpu_utilization_percentage ? current_cpu_utilization_percentage->valuedouble : 0, current_replicas->valuedouble, desired_replicas->valuedouble, - last_scale_time ? strdup(last_scale_time->valuestring) : NULL, + last_scale_time && !cJSON_IsNull(last_scale_time) ? strdup(last_scale_time->valuestring) : NULL, observed_generation ? observed_generation->valuedouble : 0 ); diff --git a/kubernetes/model/v1_job_condition.c b/kubernetes/model/v1_job_condition.c index f88a9e5a..008e41f3 100644 --- a/kubernetes/model/v1_job_condition.c +++ b/kubernetes/model/v1_job_condition.c @@ -127,7 +127,7 @@ v1_job_condition_t *v1_job_condition_parseFromJSON(cJSON *v1_job_conditionJSON){ // v1_job_condition->last_probe_time cJSON *last_probe_time = cJSON_GetObjectItemCaseSensitive(v1_job_conditionJSON, "lastProbeTime"); if (last_probe_time) { - if(!cJSON_IsString(last_probe_time)) + if(!cJSON_IsString(last_probe_time) && !cJSON_IsNull(last_probe_time)) { goto end; //DateTime } @@ -136,7 +136,7 @@ v1_job_condition_t *v1_job_condition_parseFromJSON(cJSON *v1_job_conditionJSON){ // v1_job_condition->last_transition_time cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1_job_conditionJSON, "lastTransitionTime"); if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } @@ -186,8 +186,8 @@ v1_job_condition_t *v1_job_condition_parseFromJSON(cJSON *v1_job_conditionJSON){ v1_job_condition_local_var = v1_job_condition_create ( - last_probe_time ? strdup(last_probe_time->valuestring) : NULL, - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, + last_probe_time && !cJSON_IsNull(last_probe_time) ? strdup(last_probe_time->valuestring) : NULL, + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), diff --git a/kubernetes/model/v1_job_status.c b/kubernetes/model/v1_job_status.c index b7c37e21..58f5f3f5 100644 --- a/kubernetes/model/v1_job_status.c +++ b/kubernetes/model/v1_job_status.c @@ -195,7 +195,7 @@ v1_job_status_t *v1_job_status_parseFromJSON(cJSON *v1_job_statusJSON){ // v1_job_status->completion_time cJSON *completion_time = cJSON_GetObjectItemCaseSensitive(v1_job_statusJSON, "completionTime"); if (completion_time) { - if(!cJSON_IsString(completion_time)) + if(!cJSON_IsString(completion_time) && !cJSON_IsNull(completion_time)) { goto end; //DateTime } @@ -243,7 +243,7 @@ v1_job_status_t *v1_job_status_parseFromJSON(cJSON *v1_job_statusJSON){ // v1_job_status->start_time cJSON *start_time = cJSON_GetObjectItemCaseSensitive(v1_job_statusJSON, "startTime"); if (start_time) { - if(!cJSON_IsString(start_time)) + if(!cJSON_IsString(start_time) && !cJSON_IsNull(start_time)) { goto end; //DateTime } @@ -268,11 +268,11 @@ v1_job_status_t *v1_job_status_parseFromJSON(cJSON *v1_job_statusJSON){ v1_job_status_local_var = v1_job_status_create ( active ? active->valuedouble : 0, completed_indexes ? strdup(completed_indexes->valuestring) : NULL, - completion_time ? strdup(completion_time->valuestring) : NULL, + completion_time && !cJSON_IsNull(completion_time) ? strdup(completion_time->valuestring) : NULL, conditions ? conditionsList : NULL, failed ? failed->valuedouble : 0, ready ? ready->valuedouble : 0, - start_time ? strdup(start_time->valuestring) : NULL, + start_time && !cJSON_IsNull(start_time) ? strdup(start_time->valuestring) : NULL, succeeded ? succeeded->valuedouble : 0, uncounted_terminated_pods ? uncounted_terminated_pods_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_lease_spec.c b/kubernetes/model/v1_lease_spec.c index f83e1fc0..65a0dea9 100644 --- a/kubernetes/model/v1_lease_spec.c +++ b/kubernetes/model/v1_lease_spec.c @@ -103,7 +103,7 @@ v1_lease_spec_t *v1_lease_spec_parseFromJSON(cJSON *v1_lease_specJSON){ // v1_lease_spec->acquire_time cJSON *acquire_time = cJSON_GetObjectItemCaseSensitive(v1_lease_specJSON, "acquireTime"); if (acquire_time) { - if(!cJSON_IsString(acquire_time)) + if(!cJSON_IsString(acquire_time) && !cJSON_IsNull(acquire_time)) { goto end; //DateTime } @@ -139,7 +139,7 @@ v1_lease_spec_t *v1_lease_spec_parseFromJSON(cJSON *v1_lease_specJSON){ // v1_lease_spec->renew_time cJSON *renew_time = cJSON_GetObjectItemCaseSensitive(v1_lease_specJSON, "renewTime"); if (renew_time) { - if(!cJSON_IsString(renew_time)) + if(!cJSON_IsString(renew_time) && !cJSON_IsNull(renew_time)) { goto end; //DateTime } @@ -147,11 +147,11 @@ v1_lease_spec_t *v1_lease_spec_parseFromJSON(cJSON *v1_lease_specJSON){ v1_lease_spec_local_var = v1_lease_spec_create ( - acquire_time ? strdup(acquire_time->valuestring) : NULL, + acquire_time && !cJSON_IsNull(acquire_time) ? strdup(acquire_time->valuestring) : NULL, holder_identity ? strdup(holder_identity->valuestring) : NULL, lease_duration_seconds ? lease_duration_seconds->valuedouble : 0, lease_transitions ? lease_transitions->valuedouble : 0, - renew_time ? strdup(renew_time->valuestring) : NULL + renew_time && !cJSON_IsNull(renew_time) ? strdup(renew_time->valuestring) : NULL ); return v1_lease_spec_local_var; diff --git a/kubernetes/model/v1_managed_fields_entry.c b/kubernetes/model/v1_managed_fields_entry.c index 8436ca24..97b9ecf5 100644 --- a/kubernetes/model/v1_managed_fields_entry.c +++ b/kubernetes/model/v1_managed_fields_entry.c @@ -196,7 +196,7 @@ v1_managed_fields_entry_t *v1_managed_fields_entry_parseFromJSON(cJSON *v1_manag // v1_managed_fields_entry->time cJSON *time = cJSON_GetObjectItemCaseSensitive(v1_managed_fields_entryJSON, "time"); if (time) { - if(!cJSON_IsString(time)) + if(!cJSON_IsString(time) && !cJSON_IsNull(time)) { goto end; //DateTime } @@ -210,7 +210,7 @@ v1_managed_fields_entry_t *v1_managed_fields_entry_parseFromJSON(cJSON *v1_manag manager ? strdup(manager->valuestring) : NULL, operation ? strdup(operation->valuestring) : NULL, subresource ? strdup(subresource->valuestring) : NULL, - time ? strdup(time->valuestring) : NULL + time && !cJSON_IsNull(time) ? strdup(time->valuestring) : NULL ); return v1_managed_fields_entry_local_var; diff --git a/kubernetes/model/v1_namespace_condition.c b/kubernetes/model/v1_namespace_condition.c index 2695d89a..40c7d60f 100644 --- a/kubernetes/model/v1_namespace_condition.c +++ b/kubernetes/model/v1_namespace_condition.c @@ -113,7 +113,7 @@ v1_namespace_condition_t *v1_namespace_condition_parseFromJSON(cJSON *v1_namespa // v1_namespace_condition->last_transition_time cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1_namespace_conditionJSON, "lastTransitionTime"); if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } @@ -163,7 +163,7 @@ v1_namespace_condition_t *v1_namespace_condition_parseFromJSON(cJSON *v1_namespa v1_namespace_condition_local_var = v1_namespace_condition_create ( - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), diff --git a/kubernetes/model/v1_node_condition.c b/kubernetes/model/v1_node_condition.c index b30116fd..f89269dc 100644 --- a/kubernetes/model/v1_node_condition.c +++ b/kubernetes/model/v1_node_condition.c @@ -127,7 +127,7 @@ v1_node_condition_t *v1_node_condition_parseFromJSON(cJSON *v1_node_conditionJSO // v1_node_condition->last_heartbeat_time cJSON *last_heartbeat_time = cJSON_GetObjectItemCaseSensitive(v1_node_conditionJSON, "lastHeartbeatTime"); if (last_heartbeat_time) { - if(!cJSON_IsString(last_heartbeat_time)) + if(!cJSON_IsString(last_heartbeat_time) && !cJSON_IsNull(last_heartbeat_time)) { goto end; //DateTime } @@ -136,7 +136,7 @@ v1_node_condition_t *v1_node_condition_parseFromJSON(cJSON *v1_node_conditionJSO // v1_node_condition->last_transition_time cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1_node_conditionJSON, "lastTransitionTime"); if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } @@ -186,8 +186,8 @@ v1_node_condition_t *v1_node_condition_parseFromJSON(cJSON *v1_node_conditionJSO v1_node_condition_local_var = v1_node_condition_create ( - last_heartbeat_time ? strdup(last_heartbeat_time->valuestring) : NULL, - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, + last_heartbeat_time && !cJSON_IsNull(last_heartbeat_time) ? strdup(last_heartbeat_time->valuestring) : NULL, + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), diff --git a/kubernetes/model/v1_object_meta.c b/kubernetes/model/v1_object_meta.c index 99a83943..987734ae 100644 --- a/kubernetes/model/v1_object_meta.c +++ b/kubernetes/model/v1_object_meta.c @@ -361,7 +361,7 @@ v1_object_meta_t *v1_object_meta_parseFromJSON(cJSON *v1_object_metaJSON){ // v1_object_meta->creation_timestamp cJSON *creation_timestamp = cJSON_GetObjectItemCaseSensitive(v1_object_metaJSON, "creationTimestamp"); if (creation_timestamp) { - if(!cJSON_IsString(creation_timestamp)) + if(!cJSON_IsString(creation_timestamp) && !cJSON_IsNull(creation_timestamp)) { goto end; //DateTime } @@ -379,7 +379,7 @@ v1_object_meta_t *v1_object_meta_parseFromJSON(cJSON *v1_object_metaJSON){ // v1_object_meta->deletion_timestamp cJSON *deletion_timestamp = cJSON_GetObjectItemCaseSensitive(v1_object_metaJSON, "deletionTimestamp"); if (deletion_timestamp) { - if(!cJSON_IsString(deletion_timestamp)) + if(!cJSON_IsString(deletion_timestamp) && !cJSON_IsNull(deletion_timestamp)) { goto end; //DateTime } @@ -537,9 +537,9 @@ v1_object_meta_t *v1_object_meta_parseFromJSON(cJSON *v1_object_metaJSON){ v1_object_meta_local_var = v1_object_meta_create ( annotations ? annotationsList : NULL, - creation_timestamp ? strdup(creation_timestamp->valuestring) : NULL, + creation_timestamp && !cJSON_IsNull(creation_timestamp) ? strdup(creation_timestamp->valuestring) : NULL, deletion_grace_period_seconds ? deletion_grace_period_seconds->valuedouble : 0, - deletion_timestamp ? strdup(deletion_timestamp->valuestring) : NULL, + deletion_timestamp && !cJSON_IsNull(deletion_timestamp) ? strdup(deletion_timestamp->valuestring) : NULL, finalizers ? finalizersList : NULL, generate_name ? strdup(generate_name->valuestring) : NULL, generation ? generation->valuedouble : 0, diff --git a/kubernetes/model/v1_persistent_volume_claim_condition.c b/kubernetes/model/v1_persistent_volume_claim_condition.c index 40772a36..44adf46e 100644 --- a/kubernetes/model/v1_persistent_volume_claim_condition.c +++ b/kubernetes/model/v1_persistent_volume_claim_condition.c @@ -127,7 +127,7 @@ v1_persistent_volume_claim_condition_t *v1_persistent_volume_claim_condition_par // v1_persistent_volume_claim_condition->last_probe_time cJSON *last_probe_time = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_claim_conditionJSON, "lastProbeTime"); if (last_probe_time) { - if(!cJSON_IsString(last_probe_time)) + if(!cJSON_IsString(last_probe_time) && !cJSON_IsNull(last_probe_time)) { goto end; //DateTime } @@ -136,7 +136,7 @@ v1_persistent_volume_claim_condition_t *v1_persistent_volume_claim_condition_par // v1_persistent_volume_claim_condition->last_transition_time cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_claim_conditionJSON, "lastTransitionTime"); if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } @@ -186,8 +186,8 @@ v1_persistent_volume_claim_condition_t *v1_persistent_volume_claim_condition_par v1_persistent_volume_claim_condition_local_var = v1_persistent_volume_claim_condition_create ( - last_probe_time ? strdup(last_probe_time->valuestring) : NULL, - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, + last_probe_time && !cJSON_IsNull(last_probe_time) ? strdup(last_probe_time->valuestring) : NULL, + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), diff --git a/kubernetes/model/v1_pod_condition.c b/kubernetes/model/v1_pod_condition.c index 6b2b5d55..4bbb9946 100644 --- a/kubernetes/model/v1_pod_condition.c +++ b/kubernetes/model/v1_pod_condition.c @@ -127,7 +127,7 @@ v1_pod_condition_t *v1_pod_condition_parseFromJSON(cJSON *v1_pod_conditionJSON){ // v1_pod_condition->last_probe_time cJSON *last_probe_time = cJSON_GetObjectItemCaseSensitive(v1_pod_conditionJSON, "lastProbeTime"); if (last_probe_time) { - if(!cJSON_IsString(last_probe_time)) + if(!cJSON_IsString(last_probe_time) && !cJSON_IsNull(last_probe_time)) { goto end; //DateTime } @@ -136,7 +136,7 @@ v1_pod_condition_t *v1_pod_condition_parseFromJSON(cJSON *v1_pod_conditionJSON){ // v1_pod_condition->last_transition_time cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1_pod_conditionJSON, "lastTransitionTime"); if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } @@ -186,8 +186,8 @@ v1_pod_condition_t *v1_pod_condition_parseFromJSON(cJSON *v1_pod_conditionJSON){ v1_pod_condition_local_var = v1_pod_condition_create ( - last_probe_time ? strdup(last_probe_time->valuestring) : NULL, - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, + last_probe_time && !cJSON_IsNull(last_probe_time) ? strdup(last_probe_time->valuestring) : NULL, + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), diff --git a/kubernetes/model/v1_pod_status.c b/kubernetes/model/v1_pod_status.c index 5b06c0a1..d1af5a0a 100644 --- a/kubernetes/model/v1_pod_status.c +++ b/kubernetes/model/v1_pod_status.c @@ -481,7 +481,7 @@ v1_pod_status_t *v1_pod_status_parseFromJSON(cJSON *v1_pod_statusJSON){ // v1_pod_status->start_time cJSON *start_time = cJSON_GetObjectItemCaseSensitive(v1_pod_statusJSON, "startTime"); if (start_time) { - if(!cJSON_IsString(start_time)) + if(!cJSON_IsString(start_time) && !cJSON_IsNull(start_time)) { goto end; //DateTime } @@ -501,7 +501,7 @@ v1_pod_status_t *v1_pod_status_parseFromJSON(cJSON *v1_pod_statusJSON){ pod_ips ? pod_ipsList : NULL, qos_class ? strdup(qos_class->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, - start_time ? strdup(start_time->valuestring) : NULL + start_time && !cJSON_IsNull(start_time) ? strdup(start_time->valuestring) : NULL ); return v1_pod_status_local_var; diff --git a/kubernetes/model/v1_replica_set_condition.c b/kubernetes/model/v1_replica_set_condition.c index b99257e8..93659ef5 100644 --- a/kubernetes/model/v1_replica_set_condition.c +++ b/kubernetes/model/v1_replica_set_condition.c @@ -113,7 +113,7 @@ v1_replica_set_condition_t *v1_replica_set_condition_parseFromJSON(cJSON *v1_rep // v1_replica_set_condition->last_transition_time cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1_replica_set_conditionJSON, "lastTransitionTime"); if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } @@ -163,7 +163,7 @@ v1_replica_set_condition_t *v1_replica_set_condition_parseFromJSON(cJSON *v1_rep v1_replica_set_condition_local_var = v1_replica_set_condition_create ( - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), diff --git a/kubernetes/model/v1_replication_controller_condition.c b/kubernetes/model/v1_replication_controller_condition.c index e793eb79..d112a056 100644 --- a/kubernetes/model/v1_replication_controller_condition.c +++ b/kubernetes/model/v1_replication_controller_condition.c @@ -113,7 +113,7 @@ v1_replication_controller_condition_t *v1_replication_controller_condition_parse // v1_replication_controller_condition->last_transition_time cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1_replication_controller_conditionJSON, "lastTransitionTime"); if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } @@ -163,7 +163,7 @@ v1_replication_controller_condition_t *v1_replication_controller_condition_parse v1_replication_controller_condition_local_var = v1_replication_controller_condition_create ( - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), diff --git a/kubernetes/model/v1_stateful_set_condition.c b/kubernetes/model/v1_stateful_set_condition.c index 5dfb6c22..988f39a7 100644 --- a/kubernetes/model/v1_stateful_set_condition.c +++ b/kubernetes/model/v1_stateful_set_condition.c @@ -113,7 +113,7 @@ v1_stateful_set_condition_t *v1_stateful_set_condition_parseFromJSON(cJSON *v1_s // v1_stateful_set_condition->last_transition_time cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1_stateful_set_conditionJSON, "lastTransitionTime"); if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } @@ -163,7 +163,7 @@ v1_stateful_set_condition_t *v1_stateful_set_condition_parseFromJSON(cJSON *v1_s v1_stateful_set_condition_local_var = v1_stateful_set_condition_create ( - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), diff --git a/kubernetes/model/v1_taint.c b/kubernetes/model/v1_taint.c index 93ce1693..9841ddce 100644 --- a/kubernetes/model/v1_taint.c +++ b/kubernetes/model/v1_taint.c @@ -123,7 +123,7 @@ v1_taint_t *v1_taint_parseFromJSON(cJSON *v1_taintJSON){ // v1_taint->time_added cJSON *time_added = cJSON_GetObjectItemCaseSensitive(v1_taintJSON, "timeAdded"); if (time_added) { - if(!cJSON_IsString(time_added)) + if(!cJSON_IsString(time_added) && !cJSON_IsNull(time_added)) { goto end; //DateTime } @@ -142,7 +142,7 @@ v1_taint_t *v1_taint_parseFromJSON(cJSON *v1_taintJSON){ v1_taint_local_var = v1_taint_create ( strdup(effect->valuestring), strdup(key->valuestring), - time_added ? strdup(time_added->valuestring) : NULL, + time_added && !cJSON_IsNull(time_added) ? strdup(time_added->valuestring) : NULL, value ? strdup(value->valuestring) : NULL ); diff --git a/kubernetes/model/v1_token_request_status.c b/kubernetes/model/v1_token_request_status.c index cc6bfc59..7a2f45c0 100644 --- a/kubernetes/model/v1_token_request_status.c +++ b/kubernetes/model/v1_token_request_status.c @@ -75,7 +75,7 @@ v1_token_request_status_t *v1_token_request_status_parseFromJSON(cJSON *v1_token } - if(!cJSON_IsString(expiration_timestamp)) + if(!cJSON_IsString(expiration_timestamp) && !cJSON_IsNull(expiration_timestamp)) { goto end; //DateTime } diff --git a/kubernetes/model/v1_volume_error.c b/kubernetes/model/v1_volume_error.c index 13bc59d7..dd1652cf 100644 --- a/kubernetes/model/v1_volume_error.c +++ b/kubernetes/model/v1_volume_error.c @@ -78,7 +78,7 @@ v1_volume_error_t *v1_volume_error_parseFromJSON(cJSON *v1_volume_errorJSON){ // v1_volume_error->time cJSON *time = cJSON_GetObjectItemCaseSensitive(v1_volume_errorJSON, "time"); if (time) { - if(!cJSON_IsString(time)) + if(!cJSON_IsString(time) && !cJSON_IsNull(time)) { goto end; //DateTime } @@ -87,7 +87,7 @@ v1_volume_error_t *v1_volume_error_parseFromJSON(cJSON *v1_volume_errorJSON){ v1_volume_error_local_var = v1_volume_error_create ( message ? strdup(message->valuestring) : NULL, - time ? strdup(time->valuestring) : NULL + time && !cJSON_IsNull(time) ? strdup(time->valuestring) : NULL ); return v1_volume_error_local_var; diff --git a/kubernetes/model/v1alpha1_storage_version_condition.c b/kubernetes/model/v1alpha1_storage_version_condition.c index 57d6c907..cdeaee52 100644 --- a/kubernetes/model/v1alpha1_storage_version_condition.c +++ b/kubernetes/model/v1alpha1_storage_version_condition.c @@ -124,7 +124,7 @@ v1alpha1_storage_version_condition_t *v1alpha1_storage_version_condition_parseFr // v1alpha1_storage_version_condition->last_transition_time cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1alpha1_storage_version_conditionJSON, "lastTransitionTime"); if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } @@ -186,7 +186,7 @@ v1alpha1_storage_version_condition_t *v1alpha1_storage_version_condition_parseFr v1alpha1_storage_version_condition_local_var = v1alpha1_storage_version_condition_create ( - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, observed_generation ? observed_generation->valuedouble : 0, strdup(reason->valuestring), diff --git a/kubernetes/model/v1beta1_flow_schema_condition.c b/kubernetes/model/v1beta1_flow_schema_condition.c index 4d2c5e4b..2578b3ab 100644 --- a/kubernetes/model/v1beta1_flow_schema_condition.c +++ b/kubernetes/model/v1beta1_flow_schema_condition.c @@ -111,7 +111,7 @@ v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition_parseFromJSON(cJS // v1beta1_flow_schema_condition->last_transition_time cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_conditionJSON, "lastTransitionTime"); if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } @@ -155,7 +155,7 @@ v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition_parseFromJSON(cJS v1beta1_flow_schema_condition_local_var = v1beta1_flow_schema_condition_create ( - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, status ? strdup(status->valuestring) : NULL, diff --git a/kubernetes/model/v1beta1_priority_level_configuration_condition.c b/kubernetes/model/v1beta1_priority_level_configuration_condition.c index 10b05f9d..67ce2def 100644 --- a/kubernetes/model/v1beta1_priority_level_configuration_condition.c +++ b/kubernetes/model/v1beta1_priority_level_configuration_condition.c @@ -111,7 +111,7 @@ v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configu // v1beta1_priority_level_configuration_condition->last_transition_time cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_conditionJSON, "lastTransitionTime"); if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } @@ -155,7 +155,7 @@ v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configu v1beta1_priority_level_configuration_condition_local_var = v1beta1_priority_level_configuration_condition_create ( - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, status ? strdup(status->valuestring) : NULL, diff --git a/kubernetes/model/v1beta2_flow_schema_condition.c b/kubernetes/model/v1beta2_flow_schema_condition.c index 86e40b01..b54920bd 100644 --- a/kubernetes/model/v1beta2_flow_schema_condition.c +++ b/kubernetes/model/v1beta2_flow_schema_condition.c @@ -111,7 +111,7 @@ v1beta2_flow_schema_condition_t *v1beta2_flow_schema_condition_parseFromJSON(cJS // v1beta2_flow_schema_condition->last_transition_time cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1beta2_flow_schema_conditionJSON, "lastTransitionTime"); if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } @@ -155,7 +155,7 @@ v1beta2_flow_schema_condition_t *v1beta2_flow_schema_condition_parseFromJSON(cJS v1beta2_flow_schema_condition_local_var = v1beta2_flow_schema_condition_create ( - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, status ? strdup(status->valuestring) : NULL, diff --git a/kubernetes/model/v1beta2_priority_level_configuration_condition.c b/kubernetes/model/v1beta2_priority_level_configuration_condition.c index 7a7e6c12..79be3074 100644 --- a/kubernetes/model/v1beta2_priority_level_configuration_condition.c +++ b/kubernetes/model/v1beta2_priority_level_configuration_condition.c @@ -111,7 +111,7 @@ v1beta2_priority_level_configuration_condition_t *v1beta2_priority_level_configu // v1beta2_priority_level_configuration_condition->last_transition_time cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1beta2_priority_level_configuration_conditionJSON, "lastTransitionTime"); if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } @@ -155,7 +155,7 @@ v1beta2_priority_level_configuration_condition_t *v1beta2_priority_level_configu v1beta2_priority_level_configuration_condition_local_var = v1beta2_priority_level_configuration_condition_create ( - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, status ? strdup(status->valuestring) : NULL, diff --git a/kubernetes/model/v2_horizontal_pod_autoscaler_condition.c b/kubernetes/model/v2_horizontal_pod_autoscaler_condition.c index 2944a9a8..39993743 100644 --- a/kubernetes/model/v2_horizontal_pod_autoscaler_condition.c +++ b/kubernetes/model/v2_horizontal_pod_autoscaler_condition.c @@ -113,7 +113,7 @@ v2_horizontal_pod_autoscaler_condition_t *v2_horizontal_pod_autoscaler_condition // v2_horizontal_pod_autoscaler_condition->last_transition_time cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v2_horizontal_pod_autoscaler_conditionJSON, "lastTransitionTime"); if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } @@ -163,7 +163,7 @@ v2_horizontal_pod_autoscaler_condition_t *v2_horizontal_pod_autoscaler_condition v2_horizontal_pod_autoscaler_condition_local_var = v2_horizontal_pod_autoscaler_condition_create ( - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), diff --git a/kubernetes/model/v2_horizontal_pod_autoscaler_status.c b/kubernetes/model/v2_horizontal_pod_autoscaler_status.c index 21ea8401..2b1e3653 100644 --- a/kubernetes/model/v2_horizontal_pod_autoscaler_status.c +++ b/kubernetes/model/v2_horizontal_pod_autoscaler_status.c @@ -213,7 +213,7 @@ v2_horizontal_pod_autoscaler_status_t *v2_horizontal_pod_autoscaler_status_parse // v2_horizontal_pod_autoscaler_status->last_scale_time cJSON *last_scale_time = cJSON_GetObjectItemCaseSensitive(v2_horizontal_pod_autoscaler_statusJSON, "lastScaleTime"); if (last_scale_time) { - if(!cJSON_IsString(last_scale_time)) + if(!cJSON_IsString(last_scale_time) && !cJSON_IsNull(last_scale_time)) { goto end; //DateTime } @@ -234,7 +234,7 @@ v2_horizontal_pod_autoscaler_status_t *v2_horizontal_pod_autoscaler_status_parse current_metrics ? current_metricsList : NULL, current_replicas ? current_replicas->valuedouble : 0, desired_replicas->valuedouble, - last_scale_time ? strdup(last_scale_time->valuestring) : NULL, + last_scale_time && !cJSON_IsNull(last_scale_time) ? strdup(last_scale_time->valuestring) : NULL, observed_generation ? observed_generation->valuedouble : 0 ); diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.c b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.c index b06450f3..a8bedf5f 100644 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.c +++ b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.c @@ -113,7 +113,7 @@ v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler // v2beta2_horizontal_pod_autoscaler_condition->last_transition_time cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_conditionJSON, "lastTransitionTime"); if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) { goto end; //DateTime } @@ -163,7 +163,7 @@ v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler v2beta2_horizontal_pod_autoscaler_condition_local_var = v2beta2_horizontal_pod_autoscaler_condition_create ( - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, message ? strdup(message->valuestring) : NULL, reason ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_status.c b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_status.c index c3fc9171..590aea97 100644 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_status.c +++ b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_status.c @@ -217,7 +217,7 @@ v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_st // v2beta2_horizontal_pod_autoscaler_status->last_scale_time cJSON *last_scale_time = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_statusJSON, "lastScaleTime"); if (last_scale_time) { - if(!cJSON_IsString(last_scale_time)) + if(!cJSON_IsString(last_scale_time) && !cJSON_IsNull(last_scale_time)) { goto end; //DateTime } @@ -238,7 +238,7 @@ v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_st current_metrics ? current_metricsList : NULL, current_replicas->valuedouble, desired_replicas->valuedouble, - last_scale_time ? strdup(last_scale_time->valuestring) : NULL, + last_scale_time && !cJSON_IsNull(last_scale_time) ? strdup(last_scale_time->valuestring) : NULL, observed_generation ? observed_generation->valuedouble : 0 ); From 18c9414a1af1831ad072173c4e8a6c4588498562 Mon Sep 17 00:00:00 2001 From: Hui Yu Date: Mon, 7 Nov 2022 11:05:38 +0800 Subject: [PATCH 02/19] Add an example to list events --- examples/Makefile | 4 ++ examples/list_event/.gitignore | 1 + examples/list_event/Makefile | 17 ++++++++ examples/list_event/main.c | 76 ++++++++++++++++++++++++++++++++++ 4 files changed, 98 insertions(+) create mode 100644 examples/list_event/.gitignore create mode 100644 examples/list_event/Makefile create mode 100644 examples/list_event/main.c diff --git a/examples/Makefile b/examples/Makefile index f58c848a..68ab5922 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -11,6 +11,7 @@ all: cd exec_pod; make cd list_secret; make cd configmap; make + cd list_event; make clean: cd create_pod; make clean @@ -25,6 +26,7 @@ clean: cd exec_pod; make clean cd list_secret; make clean cd configmap; make clean + cd list_event; make clean test: cd create_pod; make test; @@ -34,6 +36,7 @@ test: kubectl wait --for=delete pod/test-pod-6 -n default --timeout=120s cd list_secret; make test cd configmap; make test + cd list_event; make test cd generic; make test cd multi_thread; make test; kubectl wait --for=condition=ready pod/test-pod-8 -n default --timeout=60s @@ -48,6 +51,7 @@ memcheck: kubectl wait --for=delete pod/test-pod-6 -n default --timeout=120s cd list_secret; make memcheck cd configmap; make memcheck + cd list_event; make test cd generic; make memcheck cd multi_thread; make memcheck; kubectl wait --for=condition=ready pod/test-pod-8 -n default --timeout=60s diff --git a/examples/list_event/.gitignore b/examples/list_event/.gitignore new file mode 100644 index 00000000..ad4610c2 --- /dev/null +++ b/examples/list_event/.gitignore @@ -0,0 +1 @@ +list_event_bin diff --git a/examples/list_event/Makefile b/examples/list_event/Makefile new file mode 100644 index 00000000..b69a1be6 --- /dev/null +++ b/examples/list_event/Makefile @@ -0,0 +1,17 @@ +INCLUDE:=-I../../kubernetes/ +LIBS:=-L../../kubernetes/build -lyaml -lwebsockets -lkubernetes -L/usr/local/lib +CFLAGS:=-g +BIN:=list_event_bin + +.PHONY : all clean test memcheck +all: + gcc main.c $(CFLAGS) $(INCLUDE) $(LIBS) -o $(BIN) + +test: + ./$(BIN) + +memcheck: + valgrind --tool=memcheck --leak-check=full ./$(BIN) + +clean: + rm ./$(BIN) diff --git a/examples/list_event/main.c b/examples/list_event/main.c new file mode 100644 index 00000000..0c4189f7 --- /dev/null +++ b/examples/list_event/main.c @@ -0,0 +1,76 @@ +#include +#include +#include + +#include +#include +#include + +void list_event(apiClient_t * apiClient) +{ + core_v1_event_list_t *event_list = CoreV1API_listNamespacedEvent(apiClient, "default", /*namespace */ + "true", /* pretty */ + 0, /* allowWatchBookmarks */ + NULL, /* continue */ + NULL, /* fieldSelector */ + NULL, /* labelSelector */ + 0, /* limit */ + NULL, /* resourceVersion */ + NULL, /* resourceVersionMatch */ + 0, /* timeoutSeconds */ + 0 /* watch */ + ); + printf("The return code of HTTP request=%ld\n", apiClient->response_code); + if (event_list) { + if (event_list->items) { + listEntry_t *listEntry = NULL; + core_v1_event_t *event = NULL; + list_ForEach(listEntry, event_list->items) { + event = listEntry->data; + if (event) { + if (event->type) { + printf("Event Type: %s\n", event->type); + } + if (event->message) { + printf("Event Message: %s\n", event->message); + } + } + } + } else { + fprintf(stderr, "There are no events in event list.\n"); + } + core_v1_event_list_free(event_list); + event_list = NULL; + } else { + fprintf(stderr, "Cannot get event list.\n"); + } +} + +int main() +{ + char *basePath = NULL; + sslConfig_t *sslConfig = NULL; + list_t *apiKeys = NULL; + int rc = load_kube_config(&basePath, &sslConfig, &apiKeys, NULL); /* NULL means loading configuration from $HOME/.kube/config */ + if (rc != 0) { + fprintf(stderr, "Cannot load kubernetes configuration.\n"); + return -1; + } + apiClient_t *apiClient = apiClient_create_with_base_path(basePath, sslConfig, apiKeys); + if (!apiClient) { + fprintf(stderr, "Cannot create a kubernetes client.\n"); + return -1; + } + + list_event(apiClient); + + apiClient_free(apiClient); + apiClient = NULL; + free_client_config(basePath, sslConfig, apiKeys); + basePath = NULL; + sslConfig = NULL; + apiKeys = NULL; + apiClient_unsetupGlobalEnv(); + + return 0; +} From 9dca01932d6aaa3416da1a0494a27100ccaadfd9 Mon Sep 17 00:00:00 2001 From: Hui Yu Date: Wed, 30 Nov 2022 11:07:13 +0800 Subject: [PATCH 03/19] Always send integer or boolean query parameters to the API server --- kubernetes/api/AdmissionregistrationV1API.c | 44 +- kubernetes/api/ApiextensionsV1API.c | 24 +- kubernetes/api/ApiregistrationV1API.c | 24 +- kubernetes/api/AppsV1API.c | 164 +++--- kubernetes/api/AutoscalingV1API.c | 32 +- kubernetes/api/AutoscalingV2API.c | 32 +- kubernetes/api/AutoscalingV2beta2API.c | 32 +- kubernetes/api/BatchV1API.c | 64 +-- kubernetes/api/CertificatesV1API.c | 26 +- kubernetes/api/CoordinationV1API.c | 30 +- kubernetes/api/CoreV1API.c | 496 +++++++++--------- kubernetes/api/CustomObjectsAPI.c | 44 +- kubernetes/api/DiscoveryV1API.c | 30 +- kubernetes/api/EventsV1API.c | 30 +- .../api/FlowcontrolApiserverV1beta1API.c | 48 +- .../api/FlowcontrolApiserverV1beta2API.c | 48 +- kubernetes/api/InternalApiserverV1alpha1API.c | 24 +- kubernetes/api/NetworkingV1API.c | 86 +-- kubernetes/api/NetworkingV1alpha1API.c | 22 +- kubernetes/api/NodeV1API.c | 22 +- kubernetes/api/PolicyV1API.c | 32 +- kubernetes/api/RbacAuthorizationV1API.c | 104 ++-- kubernetes/api/SchedulingV1API.c | 22 +- kubernetes/api/StorageV1API.c | 120 ++--- kubernetes/api/StorageV1beta1API.c | 30 +- 25 files changed, 815 insertions(+), 815 deletions(-) diff --git a/kubernetes/api/AdmissionregistrationV1API.c b/kubernetes/api/AdmissionregistrationV1API.c index e4270aeb..08f34f79 100644 --- a/kubernetes/api/AdmissionregistrationV1API.c +++ b/kubernetes/api/AdmissionregistrationV1API.c @@ -454,7 +454,7 @@ AdmissionregistrationV1API_deleteCollectionMutatingWebhookConfiguration(apiClien char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -479,7 +479,7 @@ AdmissionregistrationV1API_deleteCollectionMutatingWebhookConfiguration(apiClien char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -492,7 +492,7 @@ AdmissionregistrationV1API_deleteCollectionMutatingWebhookConfiguration(apiClien char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -541,7 +541,7 @@ AdmissionregistrationV1API_deleteCollectionMutatingWebhookConfiguration(apiClien char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -827,7 +827,7 @@ AdmissionregistrationV1API_deleteCollectionValidatingWebhookConfiguration(apiCli char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -852,7 +852,7 @@ AdmissionregistrationV1API_deleteCollectionValidatingWebhookConfiguration(apiCli char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -865,7 +865,7 @@ AdmissionregistrationV1API_deleteCollectionValidatingWebhookConfiguration(apiCli char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -914,7 +914,7 @@ AdmissionregistrationV1API_deleteCollectionValidatingWebhookConfiguration(apiCli char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1186,7 +1186,7 @@ AdmissionregistrationV1API_deleteMutatingWebhookConfiguration(apiClient_t *apiCl char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1199,7 +1199,7 @@ AdmissionregistrationV1API_deleteMutatingWebhookConfiguration(apiClient_t *apiCl char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1404,7 +1404,7 @@ AdmissionregistrationV1API_deleteValidatingWebhookConfiguration(apiClient_t *api char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1417,7 +1417,7 @@ AdmissionregistrationV1API_deleteValidatingWebhookConfiguration(apiClient_t *api char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1667,7 +1667,7 @@ AdmissionregistrationV1API_listMutatingWebhookConfiguration(apiClient_t *apiClie char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -1716,7 +1716,7 @@ AdmissionregistrationV1API_listMutatingWebhookConfiguration(apiClient_t *apiClie char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1753,7 +1753,7 @@ AdmissionregistrationV1API_listMutatingWebhookConfiguration(apiClient_t *apiClie char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1766,7 +1766,7 @@ AdmissionregistrationV1API_listMutatingWebhookConfiguration(apiClient_t *apiClie char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1980,7 +1980,7 @@ AdmissionregistrationV1API_listValidatingWebhookConfiguration(apiClient_t *apiCl char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -2029,7 +2029,7 @@ AdmissionregistrationV1API_listValidatingWebhookConfiguration(apiClient_t *apiCl char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -2066,7 +2066,7 @@ AdmissionregistrationV1API_listValidatingWebhookConfiguration(apiClient_t *apiCl char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2079,7 +2079,7 @@ AdmissionregistrationV1API_listValidatingWebhookConfiguration(apiClient_t *apiCl char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -2339,7 +2339,7 @@ AdmissionregistrationV1API_patchMutatingWebhookConfiguration(apiClient_t *apiCli char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -2560,7 +2560,7 @@ AdmissionregistrationV1API_patchValidatingWebhookConfiguration(apiClient_t *apiC char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/ApiextensionsV1API.c b/kubernetes/api/ApiextensionsV1API.c index e9f78851..2e562767 100644 --- a/kubernetes/api/ApiextensionsV1API.c +++ b/kubernetes/api/ApiextensionsV1API.c @@ -269,7 +269,7 @@ ApiextensionsV1API_deleteCollectionCustomResourceDefinition(apiClient_t *apiClie char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -294,7 +294,7 @@ ApiextensionsV1API_deleteCollectionCustomResourceDefinition(apiClient_t *apiClie char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -307,7 +307,7 @@ ApiextensionsV1API_deleteCollectionCustomResourceDefinition(apiClient_t *apiClie char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -356,7 +356,7 @@ ApiextensionsV1API_deleteCollectionCustomResourceDefinition(apiClient_t *apiClie char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -628,7 +628,7 @@ ApiextensionsV1API_deleteCustomResourceDefinition(apiClient_t *apiClient, char * char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -641,7 +641,7 @@ ApiextensionsV1API_deleteCustomResourceDefinition(apiClient_t *apiClient, char * char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -891,7 +891,7 @@ ApiextensionsV1API_listCustomResourceDefinition(apiClient_t *apiClient, char * p char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -940,7 +940,7 @@ ApiextensionsV1API_listCustomResourceDefinition(apiClient_t *apiClient, char * p char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -977,7 +977,7 @@ ApiextensionsV1API_listCustomResourceDefinition(apiClient_t *apiClient, char * p char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -990,7 +990,7 @@ ApiextensionsV1API_listCustomResourceDefinition(apiClient_t *apiClient, char * p char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1250,7 +1250,7 @@ ApiextensionsV1API_patchCustomResourceDefinition(apiClient_t *apiClient, char * char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -1471,7 +1471,7 @@ ApiextensionsV1API_patchCustomResourceDefinitionStatus(apiClient_t *apiClient, c char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/ApiregistrationV1API.c b/kubernetes/api/ApiregistrationV1API.c index 982a9e3d..1558f6ae 100644 --- a/kubernetes/api/ApiregistrationV1API.c +++ b/kubernetes/api/ApiregistrationV1API.c @@ -255,7 +255,7 @@ ApiregistrationV1API_deleteAPIService(apiClient_t *apiClient, char * name , char char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -268,7 +268,7 @@ ApiregistrationV1API_deleteAPIService(apiClient_t *apiClient, char * name , char char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -487,7 +487,7 @@ ApiregistrationV1API_deleteCollectionAPIService(apiClient_t *apiClient, char * p char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -512,7 +512,7 @@ ApiregistrationV1API_deleteCollectionAPIService(apiClient_t *apiClient, char * p char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -525,7 +525,7 @@ ApiregistrationV1API_deleteCollectionAPIService(apiClient_t *apiClient, char * p char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -574,7 +574,7 @@ ApiregistrationV1API_deleteCollectionAPIService(apiClient_t *apiClient, char * p char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -891,7 +891,7 @@ ApiregistrationV1API_listAPIService(apiClient_t *apiClient, char * pretty , int char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -940,7 +940,7 @@ ApiregistrationV1API_listAPIService(apiClient_t *apiClient, char * pretty , int char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -977,7 +977,7 @@ ApiregistrationV1API_listAPIService(apiClient_t *apiClient, char * pretty , int char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -990,7 +990,7 @@ ApiregistrationV1API_listAPIService(apiClient_t *apiClient, char * pretty , int char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1250,7 +1250,7 @@ ApiregistrationV1API_patchAPIService(apiClient_t *apiClient, char * name , objec char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -1471,7 +1471,7 @@ ApiregistrationV1API_patchAPIServiceStatus(apiClient_t *apiClient, char * name , char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/AppsV1API.c b/kubernetes/api/AppsV1API.c index 7308f667..415cd10a 100644 --- a/kubernetes/api/AppsV1API.c +++ b/kubernetes/api/AppsV1API.c @@ -1074,7 +1074,7 @@ AppsV1API_deleteCollectionNamespacedControllerRevision(apiClient_t *apiClient, c char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1099,7 +1099,7 @@ AppsV1API_deleteCollectionNamespacedControllerRevision(apiClient_t *apiClient, c char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1112,7 +1112,7 @@ AppsV1API_deleteCollectionNamespacedControllerRevision(apiClient_t *apiClient, c char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1161,7 +1161,7 @@ AppsV1API_deleteCollectionNamespacedControllerRevision(apiClient_t *apiClient, c char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1458,7 +1458,7 @@ AppsV1API_deleteCollectionNamespacedDaemonSet(apiClient_t *apiClient, char * _na char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1483,7 +1483,7 @@ AppsV1API_deleteCollectionNamespacedDaemonSet(apiClient_t *apiClient, char * _na char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1496,7 +1496,7 @@ AppsV1API_deleteCollectionNamespacedDaemonSet(apiClient_t *apiClient, char * _na char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1545,7 +1545,7 @@ AppsV1API_deleteCollectionNamespacedDaemonSet(apiClient_t *apiClient, char * _na char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1842,7 +1842,7 @@ AppsV1API_deleteCollectionNamespacedDeployment(apiClient_t *apiClient, char * _n char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1867,7 +1867,7 @@ AppsV1API_deleteCollectionNamespacedDeployment(apiClient_t *apiClient, char * _n char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1880,7 +1880,7 @@ AppsV1API_deleteCollectionNamespacedDeployment(apiClient_t *apiClient, char * _n char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1929,7 +1929,7 @@ AppsV1API_deleteCollectionNamespacedDeployment(apiClient_t *apiClient, char * _n char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2226,7 +2226,7 @@ AppsV1API_deleteCollectionNamespacedReplicaSet(apiClient_t *apiClient, char * _n char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2251,7 +2251,7 @@ AppsV1API_deleteCollectionNamespacedReplicaSet(apiClient_t *apiClient, char * _n char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -2264,7 +2264,7 @@ AppsV1API_deleteCollectionNamespacedReplicaSet(apiClient_t *apiClient, char * _n char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -2313,7 +2313,7 @@ AppsV1API_deleteCollectionNamespacedReplicaSet(apiClient_t *apiClient, char * _n char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2610,7 +2610,7 @@ AppsV1API_deleteCollectionNamespacedStatefulSet(apiClient_t *apiClient, char * _ char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2635,7 +2635,7 @@ AppsV1API_deleteCollectionNamespacedStatefulSet(apiClient_t *apiClient, char * _ char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -2648,7 +2648,7 @@ AppsV1API_deleteCollectionNamespacedStatefulSet(apiClient_t *apiClient, char * _ char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -2697,7 +2697,7 @@ AppsV1API_deleteCollectionNamespacedStatefulSet(apiClient_t *apiClient, char * _ char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2980,7 +2980,7 @@ AppsV1API_deleteNamespacedControllerRevision(apiClient_t *apiClient, char * name char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2993,7 +2993,7 @@ AppsV1API_deleteNamespacedControllerRevision(apiClient_t *apiClient, char * name char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -3209,7 +3209,7 @@ AppsV1API_deleteNamespacedDaemonSet(apiClient_t *apiClient, char * name , char * char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -3222,7 +3222,7 @@ AppsV1API_deleteNamespacedDaemonSet(apiClient_t *apiClient, char * name , char * char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -3438,7 +3438,7 @@ AppsV1API_deleteNamespacedDeployment(apiClient_t *apiClient, char * name , char char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -3451,7 +3451,7 @@ AppsV1API_deleteNamespacedDeployment(apiClient_t *apiClient, char * name , char char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -3667,7 +3667,7 @@ AppsV1API_deleteNamespacedReplicaSet(apiClient_t *apiClient, char * name , char char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -3680,7 +3680,7 @@ AppsV1API_deleteNamespacedReplicaSet(apiClient_t *apiClient, char * name , char char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -3896,7 +3896,7 @@ AppsV1API_deleteNamespacedStatefulSet(apiClient_t *apiClient, char * name , char char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -3909,7 +3909,7 @@ AppsV1API_deleteNamespacedStatefulSet(apiClient_t *apiClient, char * name , char char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -4148,7 +4148,7 @@ AppsV1API_listControllerRevisionForAllNamespaces(apiClient_t *apiClient, int all char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -4197,7 +4197,7 @@ AppsV1API_listControllerRevisionForAllNamespaces(apiClient_t *apiClient, int all char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -4246,7 +4246,7 @@ AppsV1API_listControllerRevisionForAllNamespaces(apiClient_t *apiClient, int all char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -4259,7 +4259,7 @@ AppsV1API_listControllerRevisionForAllNamespaces(apiClient_t *apiClient, int all char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -4461,7 +4461,7 @@ AppsV1API_listDaemonSetForAllNamespaces(apiClient_t *apiClient, int allowWatchBo char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -4510,7 +4510,7 @@ AppsV1API_listDaemonSetForAllNamespaces(apiClient_t *apiClient, int allowWatchBo char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -4559,7 +4559,7 @@ AppsV1API_listDaemonSetForAllNamespaces(apiClient_t *apiClient, int allowWatchBo char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -4572,7 +4572,7 @@ AppsV1API_listDaemonSetForAllNamespaces(apiClient_t *apiClient, int allowWatchBo char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -4774,7 +4774,7 @@ AppsV1API_listDeploymentForAllNamespaces(apiClient_t *apiClient, int allowWatchB char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -4823,7 +4823,7 @@ AppsV1API_listDeploymentForAllNamespaces(apiClient_t *apiClient, int allowWatchB char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -4872,7 +4872,7 @@ AppsV1API_listDeploymentForAllNamespaces(apiClient_t *apiClient, int allowWatchB char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -4885,7 +4885,7 @@ AppsV1API_listDeploymentForAllNamespaces(apiClient_t *apiClient, int allowWatchB char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -5109,7 +5109,7 @@ AppsV1API_listNamespacedControllerRevision(apiClient_t *apiClient, char * _names char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -5158,7 +5158,7 @@ AppsV1API_listNamespacedControllerRevision(apiClient_t *apiClient, char * _names char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -5195,7 +5195,7 @@ AppsV1API_listNamespacedControllerRevision(apiClient_t *apiClient, char * _names char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -5208,7 +5208,7 @@ AppsV1API_listNamespacedControllerRevision(apiClient_t *apiClient, char * _names char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -5433,7 +5433,7 @@ AppsV1API_listNamespacedDaemonSet(apiClient_t *apiClient, char * _namespace , ch char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -5482,7 +5482,7 @@ AppsV1API_listNamespacedDaemonSet(apiClient_t *apiClient, char * _namespace , ch char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -5519,7 +5519,7 @@ AppsV1API_listNamespacedDaemonSet(apiClient_t *apiClient, char * _namespace , ch char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -5532,7 +5532,7 @@ AppsV1API_listNamespacedDaemonSet(apiClient_t *apiClient, char * _namespace , ch char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -5757,7 +5757,7 @@ AppsV1API_listNamespacedDeployment(apiClient_t *apiClient, char * _namespace , c char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -5806,7 +5806,7 @@ AppsV1API_listNamespacedDeployment(apiClient_t *apiClient, char * _namespace , c char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -5843,7 +5843,7 @@ AppsV1API_listNamespacedDeployment(apiClient_t *apiClient, char * _namespace , c char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -5856,7 +5856,7 @@ AppsV1API_listNamespacedDeployment(apiClient_t *apiClient, char * _namespace , c char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -6081,7 +6081,7 @@ AppsV1API_listNamespacedReplicaSet(apiClient_t *apiClient, char * _namespace , c char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -6130,7 +6130,7 @@ AppsV1API_listNamespacedReplicaSet(apiClient_t *apiClient, char * _namespace , c char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -6167,7 +6167,7 @@ AppsV1API_listNamespacedReplicaSet(apiClient_t *apiClient, char * _namespace , c char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -6180,7 +6180,7 @@ AppsV1API_listNamespacedReplicaSet(apiClient_t *apiClient, char * _namespace , c char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -6405,7 +6405,7 @@ AppsV1API_listNamespacedStatefulSet(apiClient_t *apiClient, char * _namespace , char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -6454,7 +6454,7 @@ AppsV1API_listNamespacedStatefulSet(apiClient_t *apiClient, char * _namespace , char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -6491,7 +6491,7 @@ AppsV1API_listNamespacedStatefulSet(apiClient_t *apiClient, char * _namespace , char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -6504,7 +6504,7 @@ AppsV1API_listNamespacedStatefulSet(apiClient_t *apiClient, char * _namespace , char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -6707,7 +6707,7 @@ AppsV1API_listReplicaSetForAllNamespaces(apiClient_t *apiClient, int allowWatchB char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -6756,7 +6756,7 @@ AppsV1API_listReplicaSetForAllNamespaces(apiClient_t *apiClient, int allowWatchB char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -6805,7 +6805,7 @@ AppsV1API_listReplicaSetForAllNamespaces(apiClient_t *apiClient, int allowWatchB char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -6818,7 +6818,7 @@ AppsV1API_listReplicaSetForAllNamespaces(apiClient_t *apiClient, int allowWatchB char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -7020,7 +7020,7 @@ AppsV1API_listStatefulSetForAllNamespaces(apiClient_t *apiClient, int allowWatch char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -7069,7 +7069,7 @@ AppsV1API_listStatefulSetForAllNamespaces(apiClient_t *apiClient, int allowWatch char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -7118,7 +7118,7 @@ AppsV1API_listStatefulSetForAllNamespaces(apiClient_t *apiClient, int allowWatch char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -7131,7 +7131,7 @@ AppsV1API_listStatefulSetForAllNamespaces(apiClient_t *apiClient, int allowWatch char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -7401,7 +7401,7 @@ AppsV1API_patchNamespacedControllerRevision(apiClient_t *apiClient, char * name char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -7633,7 +7633,7 @@ AppsV1API_patchNamespacedDaemonSet(apiClient_t *apiClient, char * name , char * char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -7865,7 +7865,7 @@ AppsV1API_patchNamespacedDaemonSetStatus(apiClient_t *apiClient, char * name , c char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -8097,7 +8097,7 @@ AppsV1API_patchNamespacedDeployment(apiClient_t *apiClient, char * name , char * char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -8329,7 +8329,7 @@ AppsV1API_patchNamespacedDeploymentScale(apiClient_t *apiClient, char * name , c char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -8561,7 +8561,7 @@ AppsV1API_patchNamespacedDeploymentStatus(apiClient_t *apiClient, char * name , char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -8793,7 +8793,7 @@ AppsV1API_patchNamespacedReplicaSet(apiClient_t *apiClient, char * name , char * char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -9025,7 +9025,7 @@ AppsV1API_patchNamespacedReplicaSetScale(apiClient_t *apiClient, char * name , c char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -9257,7 +9257,7 @@ AppsV1API_patchNamespacedReplicaSetStatus(apiClient_t *apiClient, char * name , char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -9489,7 +9489,7 @@ AppsV1API_patchNamespacedStatefulSet(apiClient_t *apiClient, char * name , char char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -9721,7 +9721,7 @@ AppsV1API_patchNamespacedStatefulSetScale(apiClient_t *apiClient, char * name , char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -9953,7 +9953,7 @@ AppsV1API_patchNamespacedStatefulSetStatus(apiClient_t *apiClient, char * name , char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/AutoscalingV1API.c b/kubernetes/api/AutoscalingV1API.c index f30bcf0a..b3d27c18 100644 --- a/kubernetes/api/AutoscalingV1API.c +++ b/kubernetes/api/AutoscalingV1API.c @@ -290,7 +290,7 @@ AutoscalingV1API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClient_t * char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -315,7 +315,7 @@ AutoscalingV1API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClient_t * char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -328,7 +328,7 @@ AutoscalingV1API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClient_t * char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -377,7 +377,7 @@ AutoscalingV1API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClient_t * char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -660,7 +660,7 @@ AutoscalingV1API_deleteNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -673,7 +673,7 @@ AutoscalingV1API_deleteNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -912,7 +912,7 @@ AutoscalingV1API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *apiCli char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -961,7 +961,7 @@ AutoscalingV1API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *apiCli char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1010,7 +1010,7 @@ AutoscalingV1API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *apiCli char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1023,7 +1023,7 @@ AutoscalingV1API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *apiCli char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1247,7 +1247,7 @@ AutoscalingV1API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, c char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -1296,7 +1296,7 @@ AutoscalingV1API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, c char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1333,7 +1333,7 @@ AutoscalingV1API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, c char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1346,7 +1346,7 @@ AutoscalingV1API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, c char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1617,7 +1617,7 @@ AutoscalingV1API_patchNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -1849,7 +1849,7 @@ AutoscalingV1API_patchNamespacedHorizontalPodAutoscalerStatus(apiClient_t *apiCl char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/AutoscalingV2API.c b/kubernetes/api/AutoscalingV2API.c index 248b714a..6c3e6055 100644 --- a/kubernetes/api/AutoscalingV2API.c +++ b/kubernetes/api/AutoscalingV2API.c @@ -290,7 +290,7 @@ AutoscalingV2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClient_t * char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -315,7 +315,7 @@ AutoscalingV2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClient_t * char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -328,7 +328,7 @@ AutoscalingV2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClient_t * char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -377,7 +377,7 @@ AutoscalingV2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClient_t * char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -660,7 +660,7 @@ AutoscalingV2API_deleteNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -673,7 +673,7 @@ AutoscalingV2API_deleteNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -912,7 +912,7 @@ AutoscalingV2API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *apiCli char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -961,7 +961,7 @@ AutoscalingV2API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *apiCli char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1010,7 +1010,7 @@ AutoscalingV2API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *apiCli char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1023,7 +1023,7 @@ AutoscalingV2API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *apiCli char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1247,7 +1247,7 @@ AutoscalingV2API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, c char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -1296,7 +1296,7 @@ AutoscalingV2API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, c char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1333,7 +1333,7 @@ AutoscalingV2API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, c char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1346,7 +1346,7 @@ AutoscalingV2API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, c char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1617,7 +1617,7 @@ AutoscalingV2API_patchNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -1849,7 +1849,7 @@ AutoscalingV2API_patchNamespacedHorizontalPodAutoscalerStatus(apiClient_t *apiCl char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/AutoscalingV2beta2API.c b/kubernetes/api/AutoscalingV2beta2API.c index c1af6ce1..ffae948b 100644 --- a/kubernetes/api/AutoscalingV2beta2API.c +++ b/kubernetes/api/AutoscalingV2beta2API.c @@ -290,7 +290,7 @@ AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClien char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -315,7 +315,7 @@ AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClien char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -328,7 +328,7 @@ AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClien char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -377,7 +377,7 @@ AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClien char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -660,7 +660,7 @@ AutoscalingV2beta2API_deleteNamespacedHorizontalPodAutoscaler(apiClient_t *apiCl char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -673,7 +673,7 @@ AutoscalingV2beta2API_deleteNamespacedHorizontalPodAutoscaler(apiClient_t *apiCl char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -912,7 +912,7 @@ AutoscalingV2beta2API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *a char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -961,7 +961,7 @@ AutoscalingV2beta2API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *a char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1010,7 +1010,7 @@ AutoscalingV2beta2API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *a char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1023,7 +1023,7 @@ AutoscalingV2beta2API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *a char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1247,7 +1247,7 @@ AutoscalingV2beta2API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClie char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -1296,7 +1296,7 @@ AutoscalingV2beta2API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClie char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1333,7 +1333,7 @@ AutoscalingV2beta2API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClie char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1346,7 +1346,7 @@ AutoscalingV2beta2API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClie char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1617,7 +1617,7 @@ AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscaler(apiClient_t *apiCli char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -1849,7 +1849,7 @@ AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscalerStatus(apiClient_t * char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/BatchV1API.c b/kubernetes/api/BatchV1API.c index aa8e9b7d..38edf3d9 100644 --- a/kubernetes/api/BatchV1API.c +++ b/kubernetes/api/BatchV1API.c @@ -486,7 +486,7 @@ BatchV1API_deleteCollectionNamespacedCronJob(apiClient_t *apiClient, char * _nam char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -511,7 +511,7 @@ BatchV1API_deleteCollectionNamespacedCronJob(apiClient_t *apiClient, char * _nam char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -524,7 +524,7 @@ BatchV1API_deleteCollectionNamespacedCronJob(apiClient_t *apiClient, char * _nam char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -573,7 +573,7 @@ BatchV1API_deleteCollectionNamespacedCronJob(apiClient_t *apiClient, char * _nam char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -870,7 +870,7 @@ BatchV1API_deleteCollectionNamespacedJob(apiClient_t *apiClient, char * _namespa char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -895,7 +895,7 @@ BatchV1API_deleteCollectionNamespacedJob(apiClient_t *apiClient, char * _namespa char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -908,7 +908,7 @@ BatchV1API_deleteCollectionNamespacedJob(apiClient_t *apiClient, char * _namespa char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -957,7 +957,7 @@ BatchV1API_deleteCollectionNamespacedJob(apiClient_t *apiClient, char * _namespa char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1240,7 +1240,7 @@ BatchV1API_deleteNamespacedCronJob(apiClient_t *apiClient, char * name , char * char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1253,7 +1253,7 @@ BatchV1API_deleteNamespacedCronJob(apiClient_t *apiClient, char * name , char * char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1469,7 +1469,7 @@ BatchV1API_deleteNamespacedJob(apiClient_t *apiClient, char * name , char * _nam char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1482,7 +1482,7 @@ BatchV1API_deleteNamespacedJob(apiClient_t *apiClient, char * name , char * _nam char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1721,7 +1721,7 @@ BatchV1API_listCronJobForAllNamespaces(apiClient_t *apiClient, int allowWatchBoo char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -1770,7 +1770,7 @@ BatchV1API_listCronJobForAllNamespaces(apiClient_t *apiClient, int allowWatchBoo char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1819,7 +1819,7 @@ BatchV1API_listCronJobForAllNamespaces(apiClient_t *apiClient, int allowWatchBoo char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1832,7 +1832,7 @@ BatchV1API_listCronJobForAllNamespaces(apiClient_t *apiClient, int allowWatchBoo char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -2034,7 +2034,7 @@ BatchV1API_listJobForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmar char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -2083,7 +2083,7 @@ BatchV1API_listJobForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmar char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -2132,7 +2132,7 @@ BatchV1API_listJobForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmar char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2145,7 +2145,7 @@ BatchV1API_listJobForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmar char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -2369,7 +2369,7 @@ BatchV1API_listNamespacedCronJob(apiClient_t *apiClient, char * _namespace , cha char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -2418,7 +2418,7 @@ BatchV1API_listNamespacedCronJob(apiClient_t *apiClient, char * _namespace , cha char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -2455,7 +2455,7 @@ BatchV1API_listNamespacedCronJob(apiClient_t *apiClient, char * _namespace , cha char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2468,7 +2468,7 @@ BatchV1API_listNamespacedCronJob(apiClient_t *apiClient, char * _namespace , cha char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -2693,7 +2693,7 @@ BatchV1API_listNamespacedJob(apiClient_t *apiClient, char * _namespace , char * char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -2742,7 +2742,7 @@ BatchV1API_listNamespacedJob(apiClient_t *apiClient, char * _namespace , char * char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -2779,7 +2779,7 @@ BatchV1API_listNamespacedJob(apiClient_t *apiClient, char * _namespace , char * char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2792,7 +2792,7 @@ BatchV1API_listNamespacedJob(apiClient_t *apiClient, char * _namespace , char * char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -3063,7 +3063,7 @@ BatchV1API_patchNamespacedCronJob(apiClient_t *apiClient, char * name , char * _ char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -3295,7 +3295,7 @@ BatchV1API_patchNamespacedCronJobStatus(apiClient_t *apiClient, char * name , ch char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -3527,7 +3527,7 @@ BatchV1API_patchNamespacedJob(apiClient_t *apiClient, char * name , char * _name char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -3759,7 +3759,7 @@ BatchV1API_patchNamespacedJobStatus(apiClient_t *apiClient, char * name , char * char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/CertificatesV1API.c b/kubernetes/api/CertificatesV1API.c index 26ce5ecb..c9cc23c7 100644 --- a/kubernetes/api/CertificatesV1API.c +++ b/kubernetes/api/CertificatesV1API.c @@ -255,7 +255,7 @@ CertificatesV1API_deleteCertificateSigningRequest(apiClient_t *apiClient, char * char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -268,7 +268,7 @@ CertificatesV1API_deleteCertificateSigningRequest(apiClient_t *apiClient, char * char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -487,7 +487,7 @@ CertificatesV1API_deleteCollectionCertificateSigningRequest(apiClient_t *apiClie char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -512,7 +512,7 @@ CertificatesV1API_deleteCollectionCertificateSigningRequest(apiClient_t *apiClie char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -525,7 +525,7 @@ CertificatesV1API_deleteCollectionCertificateSigningRequest(apiClient_t *apiClie char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -574,7 +574,7 @@ CertificatesV1API_deleteCollectionCertificateSigningRequest(apiClient_t *apiClie char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -891,7 +891,7 @@ CertificatesV1API_listCertificateSigningRequest(apiClient_t *apiClient, char * p char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -940,7 +940,7 @@ CertificatesV1API_listCertificateSigningRequest(apiClient_t *apiClient, char * p char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -977,7 +977,7 @@ CertificatesV1API_listCertificateSigningRequest(apiClient_t *apiClient, char * p char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -990,7 +990,7 @@ CertificatesV1API_listCertificateSigningRequest(apiClient_t *apiClient, char * p char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1250,7 +1250,7 @@ CertificatesV1API_patchCertificateSigningRequest(apiClient_t *apiClient, char * char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -1471,7 +1471,7 @@ CertificatesV1API_patchCertificateSigningRequestApproval(apiClient_t *apiClient, char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -1692,7 +1692,7 @@ CertificatesV1API_patchCertificateSigningRequestStatus(apiClient_t *apiClient, c char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/CoordinationV1API.c b/kubernetes/api/CoordinationV1API.c index 1740b3a0..00a3c53a 100644 --- a/kubernetes/api/CoordinationV1API.c +++ b/kubernetes/api/CoordinationV1API.c @@ -290,7 +290,7 @@ CoordinationV1API_deleteCollectionNamespacedLease(apiClient_t *apiClient, char * char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -315,7 +315,7 @@ CoordinationV1API_deleteCollectionNamespacedLease(apiClient_t *apiClient, char * char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -328,7 +328,7 @@ CoordinationV1API_deleteCollectionNamespacedLease(apiClient_t *apiClient, char * char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -377,7 +377,7 @@ CoordinationV1API_deleteCollectionNamespacedLease(apiClient_t *apiClient, char * char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -660,7 +660,7 @@ CoordinationV1API_deleteNamespacedLease(apiClient_t *apiClient, char * name , ch char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -673,7 +673,7 @@ CoordinationV1API_deleteNamespacedLease(apiClient_t *apiClient, char * name , ch char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -912,7 +912,7 @@ CoordinationV1API_listLeaseForAllNamespaces(apiClient_t *apiClient, int allowWat char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -961,7 +961,7 @@ CoordinationV1API_listLeaseForAllNamespaces(apiClient_t *apiClient, int allowWat char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1010,7 +1010,7 @@ CoordinationV1API_listLeaseForAllNamespaces(apiClient_t *apiClient, int allowWat char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1023,7 +1023,7 @@ CoordinationV1API_listLeaseForAllNamespaces(apiClient_t *apiClient, int allowWat char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1247,7 +1247,7 @@ CoordinationV1API_listNamespacedLease(apiClient_t *apiClient, char * _namespace char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -1296,7 +1296,7 @@ CoordinationV1API_listNamespacedLease(apiClient_t *apiClient, char * _namespace char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1333,7 +1333,7 @@ CoordinationV1API_listNamespacedLease(apiClient_t *apiClient, char * _namespace char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1346,7 +1346,7 @@ CoordinationV1API_listNamespacedLease(apiClient_t *apiClient, char * _namespace char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1617,7 +1617,7 @@ CoordinationV1API_patchNamespacedLease(apiClient_t *apiClient, char * name , cha char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/CoreV1API.c b/kubernetes/api/CoreV1API.c index 0dff85d8..dfb873ca 100644 --- a/kubernetes/api/CoreV1API.c +++ b/kubernetes/api/CoreV1API.c @@ -709,7 +709,7 @@ CoreV1API_connectGetNamespacedPodAttach(apiClient_t *apiClient, char * name , ch char *keyQuery__stderr = NULL; char * valueQuery__stderr = NULL; keyValuePair_t *keyPairQuery__stderr = 0; - if (_stderr) + if (1) // Always send boolean parameters to the API server { keyQuery__stderr = strdup("stderr"); valueQuery__stderr = calloc(1,MAX_NUMBER_LENGTH); @@ -722,7 +722,7 @@ CoreV1API_connectGetNamespacedPodAttach(apiClient_t *apiClient, char * name , ch char *keyQuery__stdin = NULL; char * valueQuery__stdin = NULL; keyValuePair_t *keyPairQuery__stdin = 0; - if (_stdin) + if (1) // Always send boolean parameters to the API server { keyQuery__stdin = strdup("stdin"); valueQuery__stdin = calloc(1,MAX_NUMBER_LENGTH); @@ -735,7 +735,7 @@ CoreV1API_connectGetNamespacedPodAttach(apiClient_t *apiClient, char * name , ch char *keyQuery__stdout = NULL; char * valueQuery__stdout = NULL; keyValuePair_t *keyPairQuery__stdout = 0; - if (_stdout) + if (1) // Always send boolean parameters to the API server { keyQuery__stdout = strdup("stdout"); valueQuery__stdout = calloc(1,MAX_NUMBER_LENGTH); @@ -748,7 +748,7 @@ CoreV1API_connectGetNamespacedPodAttach(apiClient_t *apiClient, char * name , ch char *keyQuery_tty = NULL; char * valueQuery_tty = NULL; keyValuePair_t *keyPairQuery_tty = 0; - if (tty) + if (1) // Always send boolean parameters to the API server { keyQuery_tty = strdup("tty"); valueQuery_tty = calloc(1,MAX_NUMBER_LENGTH); @@ -926,7 +926,7 @@ CoreV1API_connectGetNamespacedPodExec(apiClient_t *apiClient, char * name , char char *keyQuery__stderr = NULL; char * valueQuery__stderr = NULL; keyValuePair_t *keyPairQuery__stderr = 0; - if (_stderr) + if (1) // Always send boolean parameters to the API server { keyQuery__stderr = strdup("stderr"); valueQuery__stderr = calloc(1,MAX_NUMBER_LENGTH); @@ -939,7 +939,7 @@ CoreV1API_connectGetNamespacedPodExec(apiClient_t *apiClient, char * name , char char *keyQuery__stdin = NULL; char * valueQuery__stdin = NULL; keyValuePair_t *keyPairQuery__stdin = 0; - if (_stdin) + if (1) // Always send boolean parameters to the API server { keyQuery__stdin = strdup("stdin"); valueQuery__stdin = calloc(1,MAX_NUMBER_LENGTH); @@ -952,7 +952,7 @@ CoreV1API_connectGetNamespacedPodExec(apiClient_t *apiClient, char * name , char char *keyQuery__stdout = NULL; char * valueQuery__stdout = NULL; keyValuePair_t *keyPairQuery__stdout = 0; - if (_stdout) + if (1) // Always send boolean parameters to the API server { keyQuery__stdout = strdup("stdout"); valueQuery__stdout = calloc(1,MAX_NUMBER_LENGTH); @@ -965,7 +965,7 @@ CoreV1API_connectGetNamespacedPodExec(apiClient_t *apiClient, char * name , char char *keyQuery_tty = NULL; char * valueQuery_tty = NULL; keyValuePair_t *keyPairQuery_tty = 0; - if (tty) + if (1) // Always send boolean parameters to the API server { keyQuery_tty = strdup("tty"); valueQuery_tty = calloc(1,MAX_NUMBER_LENGTH); @@ -1131,7 +1131,7 @@ CoreV1API_connectGetNamespacedPodPortforward(apiClient_t *apiClient, char * name char *keyQuery_ports = NULL; char * valueQuery_ports = NULL; keyValuePair_t *keyPairQuery_ports = 0; - if (ports) + if (1) // Always send integer parameters to the API server { keyQuery_ports = strdup("ports"); valueQuery_ports = calloc(1,MAX_NUMBER_LENGTH); @@ -3813,7 +3813,7 @@ CoreV1API_connectPostNamespacedPodAttach(apiClient_t *apiClient, char * name , c char *keyQuery__stderr = NULL; char * valueQuery__stderr = NULL; keyValuePair_t *keyPairQuery__stderr = 0; - if (_stderr) + if (1) // Always send boolean parameters to the API server { keyQuery__stderr = strdup("stderr"); valueQuery__stderr = calloc(1,MAX_NUMBER_LENGTH); @@ -3826,7 +3826,7 @@ CoreV1API_connectPostNamespacedPodAttach(apiClient_t *apiClient, char * name , c char *keyQuery__stdin = NULL; char * valueQuery__stdin = NULL; keyValuePair_t *keyPairQuery__stdin = 0; - if (_stdin) + if (1) // Always send boolean parameters to the API server { keyQuery__stdin = strdup("stdin"); valueQuery__stdin = calloc(1,MAX_NUMBER_LENGTH); @@ -3839,7 +3839,7 @@ CoreV1API_connectPostNamespacedPodAttach(apiClient_t *apiClient, char * name , c char *keyQuery__stdout = NULL; char * valueQuery__stdout = NULL; keyValuePair_t *keyPairQuery__stdout = 0; - if (_stdout) + if (1) // Always send boolean parameters to the API server { keyQuery__stdout = strdup("stdout"); valueQuery__stdout = calloc(1,MAX_NUMBER_LENGTH); @@ -3852,7 +3852,7 @@ CoreV1API_connectPostNamespacedPodAttach(apiClient_t *apiClient, char * name , c char *keyQuery_tty = NULL; char * valueQuery_tty = NULL; keyValuePair_t *keyPairQuery_tty = 0; - if (tty) + if (1) // Always send boolean parameters to the API server { keyQuery_tty = strdup("tty"); valueQuery_tty = calloc(1,MAX_NUMBER_LENGTH); @@ -4030,7 +4030,7 @@ CoreV1API_connectPostNamespacedPodExec(apiClient_t *apiClient, char * name , cha char *keyQuery__stderr = NULL; char * valueQuery__stderr = NULL; keyValuePair_t *keyPairQuery__stderr = 0; - if (_stderr) + if (1) // Always send boolean parameters to the API server { keyQuery__stderr = strdup("stderr"); valueQuery__stderr = calloc(1,MAX_NUMBER_LENGTH); @@ -4043,7 +4043,7 @@ CoreV1API_connectPostNamespacedPodExec(apiClient_t *apiClient, char * name , cha char *keyQuery__stdin = NULL; char * valueQuery__stdin = NULL; keyValuePair_t *keyPairQuery__stdin = 0; - if (_stdin) + if (1) // Always send boolean parameters to the API server { keyQuery__stdin = strdup("stdin"); valueQuery__stdin = calloc(1,MAX_NUMBER_LENGTH); @@ -4056,7 +4056,7 @@ CoreV1API_connectPostNamespacedPodExec(apiClient_t *apiClient, char * name , cha char *keyQuery__stdout = NULL; char * valueQuery__stdout = NULL; keyValuePair_t *keyPairQuery__stdout = 0; - if (_stdout) + if (1) // Always send boolean parameters to the API server { keyQuery__stdout = strdup("stdout"); valueQuery__stdout = calloc(1,MAX_NUMBER_LENGTH); @@ -4069,7 +4069,7 @@ CoreV1API_connectPostNamespacedPodExec(apiClient_t *apiClient, char * name , cha char *keyQuery_tty = NULL; char * valueQuery_tty = NULL; keyValuePair_t *keyPairQuery_tty = 0; - if (tty) + if (1) // Always send boolean parameters to the API server { keyQuery_tty = strdup("tty"); valueQuery_tty = calloc(1,MAX_NUMBER_LENGTH); @@ -4235,7 +4235,7 @@ CoreV1API_connectPostNamespacedPodPortforward(apiClient_t *apiClient, char * nam char *keyQuery_ports = NULL; char * valueQuery_ports = NULL; keyValuePair_t *keyPairQuery_ports = 0; - if (ports) + if (1) // Always send integer parameters to the API server { keyQuery_ports = strdup("ports"); valueQuery_ports = calloc(1,MAX_NUMBER_LENGTH); @@ -9385,7 +9385,7 @@ CoreV1API_deleteCollectionNamespacedConfigMap(apiClient_t *apiClient, char * _na char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -9410,7 +9410,7 @@ CoreV1API_deleteCollectionNamespacedConfigMap(apiClient_t *apiClient, char * _na char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -9423,7 +9423,7 @@ CoreV1API_deleteCollectionNamespacedConfigMap(apiClient_t *apiClient, char * _na char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -9472,7 +9472,7 @@ CoreV1API_deleteCollectionNamespacedConfigMap(apiClient_t *apiClient, char * _na char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -9769,7 +9769,7 @@ CoreV1API_deleteCollectionNamespacedEndpoints(apiClient_t *apiClient, char * _na char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -9794,7 +9794,7 @@ CoreV1API_deleteCollectionNamespacedEndpoints(apiClient_t *apiClient, char * _na char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -9807,7 +9807,7 @@ CoreV1API_deleteCollectionNamespacedEndpoints(apiClient_t *apiClient, char * _na char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -9856,7 +9856,7 @@ CoreV1API_deleteCollectionNamespacedEndpoints(apiClient_t *apiClient, char * _na char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -10153,7 +10153,7 @@ CoreV1API_deleteCollectionNamespacedEvent(apiClient_t *apiClient, char * _namesp char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -10178,7 +10178,7 @@ CoreV1API_deleteCollectionNamespacedEvent(apiClient_t *apiClient, char * _namesp char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -10191,7 +10191,7 @@ CoreV1API_deleteCollectionNamespacedEvent(apiClient_t *apiClient, char * _namesp char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -10240,7 +10240,7 @@ CoreV1API_deleteCollectionNamespacedEvent(apiClient_t *apiClient, char * _namesp char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -10537,7 +10537,7 @@ CoreV1API_deleteCollectionNamespacedLimitRange(apiClient_t *apiClient, char * _n char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -10562,7 +10562,7 @@ CoreV1API_deleteCollectionNamespacedLimitRange(apiClient_t *apiClient, char * _n char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -10575,7 +10575,7 @@ CoreV1API_deleteCollectionNamespacedLimitRange(apiClient_t *apiClient, char * _n char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -10624,7 +10624,7 @@ CoreV1API_deleteCollectionNamespacedLimitRange(apiClient_t *apiClient, char * _n char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -10921,7 +10921,7 @@ CoreV1API_deleteCollectionNamespacedPersistentVolumeClaim(apiClient_t *apiClient char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -10946,7 +10946,7 @@ CoreV1API_deleteCollectionNamespacedPersistentVolumeClaim(apiClient_t *apiClient char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -10959,7 +10959,7 @@ CoreV1API_deleteCollectionNamespacedPersistentVolumeClaim(apiClient_t *apiClient char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -11008,7 +11008,7 @@ CoreV1API_deleteCollectionNamespacedPersistentVolumeClaim(apiClient_t *apiClient char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -11305,7 +11305,7 @@ CoreV1API_deleteCollectionNamespacedPod(apiClient_t *apiClient, char * _namespac char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -11330,7 +11330,7 @@ CoreV1API_deleteCollectionNamespacedPod(apiClient_t *apiClient, char * _namespac char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -11343,7 +11343,7 @@ CoreV1API_deleteCollectionNamespacedPod(apiClient_t *apiClient, char * _namespac char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -11392,7 +11392,7 @@ CoreV1API_deleteCollectionNamespacedPod(apiClient_t *apiClient, char * _namespac char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -11689,7 +11689,7 @@ CoreV1API_deleteCollectionNamespacedPodTemplate(apiClient_t *apiClient, char * _ char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -11714,7 +11714,7 @@ CoreV1API_deleteCollectionNamespacedPodTemplate(apiClient_t *apiClient, char * _ char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -11727,7 +11727,7 @@ CoreV1API_deleteCollectionNamespacedPodTemplate(apiClient_t *apiClient, char * _ char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -11776,7 +11776,7 @@ CoreV1API_deleteCollectionNamespacedPodTemplate(apiClient_t *apiClient, char * _ char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -12073,7 +12073,7 @@ CoreV1API_deleteCollectionNamespacedReplicationController(apiClient_t *apiClient char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -12098,7 +12098,7 @@ CoreV1API_deleteCollectionNamespacedReplicationController(apiClient_t *apiClient char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -12111,7 +12111,7 @@ CoreV1API_deleteCollectionNamespacedReplicationController(apiClient_t *apiClient char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -12160,7 +12160,7 @@ CoreV1API_deleteCollectionNamespacedReplicationController(apiClient_t *apiClient char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -12457,7 +12457,7 @@ CoreV1API_deleteCollectionNamespacedResourceQuota(apiClient_t *apiClient, char * char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -12482,7 +12482,7 @@ CoreV1API_deleteCollectionNamespacedResourceQuota(apiClient_t *apiClient, char * char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -12495,7 +12495,7 @@ CoreV1API_deleteCollectionNamespacedResourceQuota(apiClient_t *apiClient, char * char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -12544,7 +12544,7 @@ CoreV1API_deleteCollectionNamespacedResourceQuota(apiClient_t *apiClient, char * char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -12841,7 +12841,7 @@ CoreV1API_deleteCollectionNamespacedSecret(apiClient_t *apiClient, char * _names char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -12866,7 +12866,7 @@ CoreV1API_deleteCollectionNamespacedSecret(apiClient_t *apiClient, char * _names char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -12879,7 +12879,7 @@ CoreV1API_deleteCollectionNamespacedSecret(apiClient_t *apiClient, char * _names char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -12928,7 +12928,7 @@ CoreV1API_deleteCollectionNamespacedSecret(apiClient_t *apiClient, char * _names char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -13225,7 +13225,7 @@ CoreV1API_deleteCollectionNamespacedService(apiClient_t *apiClient, char * _name char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -13250,7 +13250,7 @@ CoreV1API_deleteCollectionNamespacedService(apiClient_t *apiClient, char * _name char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -13263,7 +13263,7 @@ CoreV1API_deleteCollectionNamespacedService(apiClient_t *apiClient, char * _name char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -13312,7 +13312,7 @@ CoreV1API_deleteCollectionNamespacedService(apiClient_t *apiClient, char * _name char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -13609,7 +13609,7 @@ CoreV1API_deleteCollectionNamespacedServiceAccount(apiClient_t *apiClient, char char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -13634,7 +13634,7 @@ CoreV1API_deleteCollectionNamespacedServiceAccount(apiClient_t *apiClient, char char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -13647,7 +13647,7 @@ CoreV1API_deleteCollectionNamespacedServiceAccount(apiClient_t *apiClient, char char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -13696,7 +13696,7 @@ CoreV1API_deleteCollectionNamespacedServiceAccount(apiClient_t *apiClient, char char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -13983,7 +13983,7 @@ CoreV1API_deleteCollectionNode(apiClient_t *apiClient, char * pretty , char * _c char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -14008,7 +14008,7 @@ CoreV1API_deleteCollectionNode(apiClient_t *apiClient, char * pretty , char * _c char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -14021,7 +14021,7 @@ CoreV1API_deleteCollectionNode(apiClient_t *apiClient, char * pretty , char * _c char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -14070,7 +14070,7 @@ CoreV1API_deleteCollectionNode(apiClient_t *apiClient, char * pretty , char * _c char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -14356,7 +14356,7 @@ CoreV1API_deleteCollectionPersistentVolume(apiClient_t *apiClient, char * pretty char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -14381,7 +14381,7 @@ CoreV1API_deleteCollectionPersistentVolume(apiClient_t *apiClient, char * pretty char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -14394,7 +14394,7 @@ CoreV1API_deleteCollectionPersistentVolume(apiClient_t *apiClient, char * pretty char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -14443,7 +14443,7 @@ CoreV1API_deleteCollectionPersistentVolume(apiClient_t *apiClient, char * pretty char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -14715,7 +14715,7 @@ CoreV1API_deleteNamespace(apiClient_t *apiClient, char * name , char * pretty , char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -14728,7 +14728,7 @@ CoreV1API_deleteNamespace(apiClient_t *apiClient, char * name , char * pretty , char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -14943,7 +14943,7 @@ CoreV1API_deleteNamespacedConfigMap(apiClient_t *apiClient, char * name , char * char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -14956,7 +14956,7 @@ CoreV1API_deleteNamespacedConfigMap(apiClient_t *apiClient, char * name , char * char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -15172,7 +15172,7 @@ CoreV1API_deleteNamespacedEndpoints(apiClient_t *apiClient, char * name , char * char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -15185,7 +15185,7 @@ CoreV1API_deleteNamespacedEndpoints(apiClient_t *apiClient, char * name , char * char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -15401,7 +15401,7 @@ CoreV1API_deleteNamespacedEvent(apiClient_t *apiClient, char * name , char * _na char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -15414,7 +15414,7 @@ CoreV1API_deleteNamespacedEvent(apiClient_t *apiClient, char * name , char * _na char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -15630,7 +15630,7 @@ CoreV1API_deleteNamespacedLimitRange(apiClient_t *apiClient, char * name , char char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -15643,7 +15643,7 @@ CoreV1API_deleteNamespacedLimitRange(apiClient_t *apiClient, char * name , char char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -15859,7 +15859,7 @@ CoreV1API_deleteNamespacedPersistentVolumeClaim(apiClient_t *apiClient, char * n char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -15872,7 +15872,7 @@ CoreV1API_deleteNamespacedPersistentVolumeClaim(apiClient_t *apiClient, char * n char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -16088,7 +16088,7 @@ CoreV1API_deleteNamespacedPod(apiClient_t *apiClient, char * name , char * _name char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -16101,7 +16101,7 @@ CoreV1API_deleteNamespacedPod(apiClient_t *apiClient, char * name , char * _name char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -16317,7 +16317,7 @@ CoreV1API_deleteNamespacedPodTemplate(apiClient_t *apiClient, char * name , char char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -16330,7 +16330,7 @@ CoreV1API_deleteNamespacedPodTemplate(apiClient_t *apiClient, char * name , char char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -16546,7 +16546,7 @@ CoreV1API_deleteNamespacedReplicationController(apiClient_t *apiClient, char * n char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -16559,7 +16559,7 @@ CoreV1API_deleteNamespacedReplicationController(apiClient_t *apiClient, char * n char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -16775,7 +16775,7 @@ CoreV1API_deleteNamespacedResourceQuota(apiClient_t *apiClient, char * name , ch char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -16788,7 +16788,7 @@ CoreV1API_deleteNamespacedResourceQuota(apiClient_t *apiClient, char * name , ch char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -17004,7 +17004,7 @@ CoreV1API_deleteNamespacedSecret(apiClient_t *apiClient, char * name , char * _n char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -17017,7 +17017,7 @@ CoreV1API_deleteNamespacedSecret(apiClient_t *apiClient, char * name , char * _n char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -17233,7 +17233,7 @@ CoreV1API_deleteNamespacedService(apiClient_t *apiClient, char * name , char * _ char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -17246,7 +17246,7 @@ CoreV1API_deleteNamespacedService(apiClient_t *apiClient, char * name , char * _ char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -17462,7 +17462,7 @@ CoreV1API_deleteNamespacedServiceAccount(apiClient_t *apiClient, char * name , c char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -17475,7 +17475,7 @@ CoreV1API_deleteNamespacedServiceAccount(apiClient_t *apiClient, char * name , c char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -17681,7 +17681,7 @@ CoreV1API_deleteNode(apiClient_t *apiClient, char * name , char * pretty , char char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -17694,7 +17694,7 @@ CoreV1API_deleteNode(apiClient_t *apiClient, char * name , char * pretty , char char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -17899,7 +17899,7 @@ CoreV1API_deletePersistentVolume(apiClient_t *apiClient, char * name , char * pr char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -17912,7 +17912,7 @@ CoreV1API_deletePersistentVolume(apiClient_t *apiClient, char * name , char * pr char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -18150,7 +18150,7 @@ CoreV1API_listComponentStatus(apiClient_t *apiClient, int allowWatchBookmarks , char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -18199,7 +18199,7 @@ CoreV1API_listComponentStatus(apiClient_t *apiClient, int allowWatchBookmarks , char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -18248,7 +18248,7 @@ CoreV1API_listComponentStatus(apiClient_t *apiClient, int allowWatchBookmarks , char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -18261,7 +18261,7 @@ CoreV1API_listComponentStatus(apiClient_t *apiClient, int allowWatchBookmarks , char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -18463,7 +18463,7 @@ CoreV1API_listConfigMapForAllNamespaces(apiClient_t *apiClient, int allowWatchBo char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -18512,7 +18512,7 @@ CoreV1API_listConfigMapForAllNamespaces(apiClient_t *apiClient, int allowWatchBo char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -18561,7 +18561,7 @@ CoreV1API_listConfigMapForAllNamespaces(apiClient_t *apiClient, int allowWatchBo char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -18574,7 +18574,7 @@ CoreV1API_listConfigMapForAllNamespaces(apiClient_t *apiClient, int allowWatchBo char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -18776,7 +18776,7 @@ CoreV1API_listEndpointsForAllNamespaces(apiClient_t *apiClient, int allowWatchBo char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -18825,7 +18825,7 @@ CoreV1API_listEndpointsForAllNamespaces(apiClient_t *apiClient, int allowWatchBo char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -18874,7 +18874,7 @@ CoreV1API_listEndpointsForAllNamespaces(apiClient_t *apiClient, int allowWatchBo char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -18887,7 +18887,7 @@ CoreV1API_listEndpointsForAllNamespaces(apiClient_t *apiClient, int allowWatchBo char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -19089,7 +19089,7 @@ CoreV1API_listEventForAllNamespaces(apiClient_t *apiClient, int allowWatchBookma char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -19138,7 +19138,7 @@ CoreV1API_listEventForAllNamespaces(apiClient_t *apiClient, int allowWatchBookma char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -19187,7 +19187,7 @@ CoreV1API_listEventForAllNamespaces(apiClient_t *apiClient, int allowWatchBookma char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -19200,7 +19200,7 @@ CoreV1API_listEventForAllNamespaces(apiClient_t *apiClient, int allowWatchBookma char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -19402,7 +19402,7 @@ CoreV1API_listLimitRangeForAllNamespaces(apiClient_t *apiClient, int allowWatchB char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -19451,7 +19451,7 @@ CoreV1API_listLimitRangeForAllNamespaces(apiClient_t *apiClient, int allowWatchB char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -19500,7 +19500,7 @@ CoreV1API_listLimitRangeForAllNamespaces(apiClient_t *apiClient, int allowWatchB char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -19513,7 +19513,7 @@ CoreV1API_listLimitRangeForAllNamespaces(apiClient_t *apiClient, int allowWatchB char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -19727,7 +19727,7 @@ CoreV1API_listNamespace(apiClient_t *apiClient, char * pretty , int allowWatchBo char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -19776,7 +19776,7 @@ CoreV1API_listNamespace(apiClient_t *apiClient, char * pretty , int allowWatchBo char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -19813,7 +19813,7 @@ CoreV1API_listNamespace(apiClient_t *apiClient, char * pretty , int allowWatchBo char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -19826,7 +19826,7 @@ CoreV1API_listNamespace(apiClient_t *apiClient, char * pretty , int allowWatchBo char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -20050,7 +20050,7 @@ CoreV1API_listNamespacedConfigMap(apiClient_t *apiClient, char * _namespace , ch char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -20099,7 +20099,7 @@ CoreV1API_listNamespacedConfigMap(apiClient_t *apiClient, char * _namespace , ch char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -20136,7 +20136,7 @@ CoreV1API_listNamespacedConfigMap(apiClient_t *apiClient, char * _namespace , ch char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -20149,7 +20149,7 @@ CoreV1API_listNamespacedConfigMap(apiClient_t *apiClient, char * _namespace , ch char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -20374,7 +20374,7 @@ CoreV1API_listNamespacedEndpoints(apiClient_t *apiClient, char * _namespace , ch char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -20423,7 +20423,7 @@ CoreV1API_listNamespacedEndpoints(apiClient_t *apiClient, char * _namespace , ch char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -20460,7 +20460,7 @@ CoreV1API_listNamespacedEndpoints(apiClient_t *apiClient, char * _namespace , ch char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -20473,7 +20473,7 @@ CoreV1API_listNamespacedEndpoints(apiClient_t *apiClient, char * _namespace , ch char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -20698,7 +20698,7 @@ CoreV1API_listNamespacedEvent(apiClient_t *apiClient, char * _namespace , char * char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -20747,7 +20747,7 @@ CoreV1API_listNamespacedEvent(apiClient_t *apiClient, char * _namespace , char * char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -20784,7 +20784,7 @@ CoreV1API_listNamespacedEvent(apiClient_t *apiClient, char * _namespace , char * char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -20797,7 +20797,7 @@ CoreV1API_listNamespacedEvent(apiClient_t *apiClient, char * _namespace , char * char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -21022,7 +21022,7 @@ CoreV1API_listNamespacedLimitRange(apiClient_t *apiClient, char * _namespace , c char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -21071,7 +21071,7 @@ CoreV1API_listNamespacedLimitRange(apiClient_t *apiClient, char * _namespace , c char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -21108,7 +21108,7 @@ CoreV1API_listNamespacedLimitRange(apiClient_t *apiClient, char * _namespace , c char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -21121,7 +21121,7 @@ CoreV1API_listNamespacedLimitRange(apiClient_t *apiClient, char * _namespace , c char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -21346,7 +21346,7 @@ CoreV1API_listNamespacedPersistentVolumeClaim(apiClient_t *apiClient, char * _na char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -21395,7 +21395,7 @@ CoreV1API_listNamespacedPersistentVolumeClaim(apiClient_t *apiClient, char * _na char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -21432,7 +21432,7 @@ CoreV1API_listNamespacedPersistentVolumeClaim(apiClient_t *apiClient, char * _na char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -21445,7 +21445,7 @@ CoreV1API_listNamespacedPersistentVolumeClaim(apiClient_t *apiClient, char * _na char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -21670,7 +21670,7 @@ CoreV1API_listNamespacedPod(apiClient_t *apiClient, char * _namespace , char * p char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -21719,7 +21719,7 @@ CoreV1API_listNamespacedPod(apiClient_t *apiClient, char * _namespace , char * p char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -21756,7 +21756,7 @@ CoreV1API_listNamespacedPod(apiClient_t *apiClient, char * _namespace , char * p char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -21769,7 +21769,7 @@ CoreV1API_listNamespacedPod(apiClient_t *apiClient, char * _namespace , char * p char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -21994,7 +21994,7 @@ CoreV1API_listNamespacedPodTemplate(apiClient_t *apiClient, char * _namespace , char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -22043,7 +22043,7 @@ CoreV1API_listNamespacedPodTemplate(apiClient_t *apiClient, char * _namespace , char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -22080,7 +22080,7 @@ CoreV1API_listNamespacedPodTemplate(apiClient_t *apiClient, char * _namespace , char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -22093,7 +22093,7 @@ CoreV1API_listNamespacedPodTemplate(apiClient_t *apiClient, char * _namespace , char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -22318,7 +22318,7 @@ CoreV1API_listNamespacedReplicationController(apiClient_t *apiClient, char * _na char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -22367,7 +22367,7 @@ CoreV1API_listNamespacedReplicationController(apiClient_t *apiClient, char * _na char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -22404,7 +22404,7 @@ CoreV1API_listNamespacedReplicationController(apiClient_t *apiClient, char * _na char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -22417,7 +22417,7 @@ CoreV1API_listNamespacedReplicationController(apiClient_t *apiClient, char * _na char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -22642,7 +22642,7 @@ CoreV1API_listNamespacedResourceQuota(apiClient_t *apiClient, char * _namespace char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -22691,7 +22691,7 @@ CoreV1API_listNamespacedResourceQuota(apiClient_t *apiClient, char * _namespace char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -22728,7 +22728,7 @@ CoreV1API_listNamespacedResourceQuota(apiClient_t *apiClient, char * _namespace char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -22741,7 +22741,7 @@ CoreV1API_listNamespacedResourceQuota(apiClient_t *apiClient, char * _namespace char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -22966,7 +22966,7 @@ CoreV1API_listNamespacedSecret(apiClient_t *apiClient, char * _namespace , char char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -23015,7 +23015,7 @@ CoreV1API_listNamespacedSecret(apiClient_t *apiClient, char * _namespace , char char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -23052,7 +23052,7 @@ CoreV1API_listNamespacedSecret(apiClient_t *apiClient, char * _namespace , char char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -23065,7 +23065,7 @@ CoreV1API_listNamespacedSecret(apiClient_t *apiClient, char * _namespace , char char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -23290,7 +23290,7 @@ CoreV1API_listNamespacedService(apiClient_t *apiClient, char * _namespace , char char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -23339,7 +23339,7 @@ CoreV1API_listNamespacedService(apiClient_t *apiClient, char * _namespace , char char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -23376,7 +23376,7 @@ CoreV1API_listNamespacedService(apiClient_t *apiClient, char * _namespace , char char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -23389,7 +23389,7 @@ CoreV1API_listNamespacedService(apiClient_t *apiClient, char * _namespace , char char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -23614,7 +23614,7 @@ CoreV1API_listNamespacedServiceAccount(apiClient_t *apiClient, char * _namespace char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -23663,7 +23663,7 @@ CoreV1API_listNamespacedServiceAccount(apiClient_t *apiClient, char * _namespace char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -23700,7 +23700,7 @@ CoreV1API_listNamespacedServiceAccount(apiClient_t *apiClient, char * _namespace char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -23713,7 +23713,7 @@ CoreV1API_listNamespacedServiceAccount(apiClient_t *apiClient, char * _namespace char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -23928,7 +23928,7 @@ CoreV1API_listNode(apiClient_t *apiClient, char * pretty , int allowWatchBookmar char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -23977,7 +23977,7 @@ CoreV1API_listNode(apiClient_t *apiClient, char * pretty , int allowWatchBookmar char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -24014,7 +24014,7 @@ CoreV1API_listNode(apiClient_t *apiClient, char * pretty , int allowWatchBookmar char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -24027,7 +24027,7 @@ CoreV1API_listNode(apiClient_t *apiClient, char * pretty , int allowWatchBookmar char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -24241,7 +24241,7 @@ CoreV1API_listPersistentVolume(apiClient_t *apiClient, char * pretty , int allow char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -24290,7 +24290,7 @@ CoreV1API_listPersistentVolume(apiClient_t *apiClient, char * pretty , int allow char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -24327,7 +24327,7 @@ CoreV1API_listPersistentVolume(apiClient_t *apiClient, char * pretty , int allow char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -24340,7 +24340,7 @@ CoreV1API_listPersistentVolume(apiClient_t *apiClient, char * pretty , int allow char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -24542,7 +24542,7 @@ CoreV1API_listPersistentVolumeClaimForAllNamespaces(apiClient_t *apiClient, int char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -24591,7 +24591,7 @@ CoreV1API_listPersistentVolumeClaimForAllNamespaces(apiClient_t *apiClient, int char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -24640,7 +24640,7 @@ CoreV1API_listPersistentVolumeClaimForAllNamespaces(apiClient_t *apiClient, int char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -24653,7 +24653,7 @@ CoreV1API_listPersistentVolumeClaimForAllNamespaces(apiClient_t *apiClient, int char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -24855,7 +24855,7 @@ CoreV1API_listPodForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmark char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -24904,7 +24904,7 @@ CoreV1API_listPodForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmark char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -24953,7 +24953,7 @@ CoreV1API_listPodForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmark char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -24966,7 +24966,7 @@ CoreV1API_listPodForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmark char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -25168,7 +25168,7 @@ CoreV1API_listPodTemplateForAllNamespaces(apiClient_t *apiClient, int allowWatch char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -25217,7 +25217,7 @@ CoreV1API_listPodTemplateForAllNamespaces(apiClient_t *apiClient, int allowWatch char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -25266,7 +25266,7 @@ CoreV1API_listPodTemplateForAllNamespaces(apiClient_t *apiClient, int allowWatch char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -25279,7 +25279,7 @@ CoreV1API_listPodTemplateForAllNamespaces(apiClient_t *apiClient, int allowWatch char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -25481,7 +25481,7 @@ CoreV1API_listReplicationControllerForAllNamespaces(apiClient_t *apiClient, int char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -25530,7 +25530,7 @@ CoreV1API_listReplicationControllerForAllNamespaces(apiClient_t *apiClient, int char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -25579,7 +25579,7 @@ CoreV1API_listReplicationControllerForAllNamespaces(apiClient_t *apiClient, int char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -25592,7 +25592,7 @@ CoreV1API_listReplicationControllerForAllNamespaces(apiClient_t *apiClient, int char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -25794,7 +25794,7 @@ CoreV1API_listResourceQuotaForAllNamespaces(apiClient_t *apiClient, int allowWat char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -25843,7 +25843,7 @@ CoreV1API_listResourceQuotaForAllNamespaces(apiClient_t *apiClient, int allowWat char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -25892,7 +25892,7 @@ CoreV1API_listResourceQuotaForAllNamespaces(apiClient_t *apiClient, int allowWat char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -25905,7 +25905,7 @@ CoreV1API_listResourceQuotaForAllNamespaces(apiClient_t *apiClient, int allowWat char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -26107,7 +26107,7 @@ CoreV1API_listSecretForAllNamespaces(apiClient_t *apiClient, int allowWatchBookm char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -26156,7 +26156,7 @@ CoreV1API_listSecretForAllNamespaces(apiClient_t *apiClient, int allowWatchBookm char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -26205,7 +26205,7 @@ CoreV1API_listSecretForAllNamespaces(apiClient_t *apiClient, int allowWatchBookm char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -26218,7 +26218,7 @@ CoreV1API_listSecretForAllNamespaces(apiClient_t *apiClient, int allowWatchBookm char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -26420,7 +26420,7 @@ CoreV1API_listServiceAccountForAllNamespaces(apiClient_t *apiClient, int allowWa char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -26469,7 +26469,7 @@ CoreV1API_listServiceAccountForAllNamespaces(apiClient_t *apiClient, int allowWa char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -26518,7 +26518,7 @@ CoreV1API_listServiceAccountForAllNamespaces(apiClient_t *apiClient, int allowWa char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -26531,7 +26531,7 @@ CoreV1API_listServiceAccountForAllNamespaces(apiClient_t *apiClient, int allowWa char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -26733,7 +26733,7 @@ CoreV1API_listServiceForAllNamespaces(apiClient_t *apiClient, int allowWatchBook char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -26782,7 +26782,7 @@ CoreV1API_listServiceForAllNamespaces(apiClient_t *apiClient, int allowWatchBook char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -26831,7 +26831,7 @@ CoreV1API_listServiceForAllNamespaces(apiClient_t *apiClient, int allowWatchBook char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -26844,7 +26844,7 @@ CoreV1API_listServiceForAllNamespaces(apiClient_t *apiClient, int allowWatchBook char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -27104,7 +27104,7 @@ CoreV1API_patchNamespace(apiClient_t *apiClient, char * name , object_t * body , char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -27325,7 +27325,7 @@ CoreV1API_patchNamespaceStatus(apiClient_t *apiClient, char * name , object_t * char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -27556,7 +27556,7 @@ CoreV1API_patchNamespacedConfigMap(apiClient_t *apiClient, char * name , char * char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -27788,7 +27788,7 @@ CoreV1API_patchNamespacedEndpoints(apiClient_t *apiClient, char * name , char * char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -28020,7 +28020,7 @@ CoreV1API_patchNamespacedEvent(apiClient_t *apiClient, char * name , char * _nam char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -28252,7 +28252,7 @@ CoreV1API_patchNamespacedLimitRange(apiClient_t *apiClient, char * name , char * char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -28484,7 +28484,7 @@ CoreV1API_patchNamespacedPersistentVolumeClaim(apiClient_t *apiClient, char * na char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -28716,7 +28716,7 @@ CoreV1API_patchNamespacedPersistentVolumeClaimStatus(apiClient_t *apiClient, cha char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -28948,7 +28948,7 @@ CoreV1API_patchNamespacedPod(apiClient_t *apiClient, char * name , char * _names char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -29180,7 +29180,7 @@ CoreV1API_patchNamespacedPodEphemeralcontainers(apiClient_t *apiClient, char * n char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -29412,7 +29412,7 @@ CoreV1API_patchNamespacedPodStatus(apiClient_t *apiClient, char * name , char * char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -29644,7 +29644,7 @@ CoreV1API_patchNamespacedPodTemplate(apiClient_t *apiClient, char * name , char char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -29876,7 +29876,7 @@ CoreV1API_patchNamespacedReplicationController(apiClient_t *apiClient, char * na char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -30108,7 +30108,7 @@ CoreV1API_patchNamespacedReplicationControllerScale(apiClient_t *apiClient, char char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -30340,7 +30340,7 @@ CoreV1API_patchNamespacedReplicationControllerStatus(apiClient_t *apiClient, cha char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -30572,7 +30572,7 @@ CoreV1API_patchNamespacedResourceQuota(apiClient_t *apiClient, char * name , cha char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -30804,7 +30804,7 @@ CoreV1API_patchNamespacedResourceQuotaStatus(apiClient_t *apiClient, char * name char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -31036,7 +31036,7 @@ CoreV1API_patchNamespacedSecret(apiClient_t *apiClient, char * name , char * _na char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -31268,7 +31268,7 @@ CoreV1API_patchNamespacedService(apiClient_t *apiClient, char * name , char * _n char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -31500,7 +31500,7 @@ CoreV1API_patchNamespacedServiceAccount(apiClient_t *apiClient, char * name , ch char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -31732,7 +31732,7 @@ CoreV1API_patchNamespacedServiceStatus(apiClient_t *apiClient, char * name , cha char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -31954,7 +31954,7 @@ CoreV1API_patchNode(apiClient_t *apiClient, char * name , object_t * body , char char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -32175,7 +32175,7 @@ CoreV1API_patchNodeStatus(apiClient_t *apiClient, char * name , object_t * body char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -32396,7 +32396,7 @@ CoreV1API_patchPersistentVolume(apiClient_t *apiClient, char * name , object_t * char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -32617,7 +32617,7 @@ CoreV1API_patchPersistentVolumeStatus(apiClient_t *apiClient, char * name , obje char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -34022,7 +34022,7 @@ CoreV1API_readNamespacedPodLog(apiClient_t *apiClient, char * name , char * _nam char *keyQuery_follow = NULL; char * valueQuery_follow = NULL; keyValuePair_t *keyPairQuery_follow = 0; - if (follow) + if (1) // Always send boolean parameters to the API server { keyQuery_follow = strdup("follow"); valueQuery_follow = calloc(1,MAX_NUMBER_LENGTH); @@ -34035,7 +34035,7 @@ CoreV1API_readNamespacedPodLog(apiClient_t *apiClient, char * name , char * _nam char *keyQuery_insecureSkipTLSVerifyBackend = NULL; char * valueQuery_insecureSkipTLSVerifyBackend = NULL; keyValuePair_t *keyPairQuery_insecureSkipTLSVerifyBackend = 0; - if (insecureSkipTLSVerifyBackend) + if (1) // Always send boolean parameters to the API server { keyQuery_insecureSkipTLSVerifyBackend = strdup("insecureSkipTLSVerifyBackend"); valueQuery_insecureSkipTLSVerifyBackend = calloc(1,MAX_NUMBER_LENGTH); @@ -34048,7 +34048,7 @@ CoreV1API_readNamespacedPodLog(apiClient_t *apiClient, char * name , char * _nam char *keyQuery_limitBytes = NULL; char * valueQuery_limitBytes = NULL; keyValuePair_t *keyPairQuery_limitBytes = 0; - if (limitBytes) + if (1) // Always send integer parameters to the API server { keyQuery_limitBytes = strdup("limitBytes"); valueQuery_limitBytes = calloc(1,MAX_NUMBER_LENGTH); @@ -34073,7 +34073,7 @@ CoreV1API_readNamespacedPodLog(apiClient_t *apiClient, char * name , char * _nam char *keyQuery_previous = NULL; char * valueQuery_previous = NULL; keyValuePair_t *keyPairQuery_previous = 0; - if (previous) + if (1) // Always send boolean parameters to the API server { keyQuery_previous = strdup("previous"); valueQuery_previous = calloc(1,MAX_NUMBER_LENGTH); @@ -34086,7 +34086,7 @@ CoreV1API_readNamespacedPodLog(apiClient_t *apiClient, char * name , char * _nam char *keyQuery_sinceSeconds = NULL; char * valueQuery_sinceSeconds = NULL; keyValuePair_t *keyPairQuery_sinceSeconds = 0; - if (sinceSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_sinceSeconds = strdup("sinceSeconds"); valueQuery_sinceSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -34099,7 +34099,7 @@ CoreV1API_readNamespacedPodLog(apiClient_t *apiClient, char * name , char * _nam char *keyQuery_tailLines = NULL; char * valueQuery_tailLines = NULL; keyValuePair_t *keyPairQuery_tailLines = 0; - if (tailLines) + if (1) // Always send integer parameters to the API server { keyQuery_tailLines = strdup("tailLines"); valueQuery_tailLines = calloc(1,MAX_NUMBER_LENGTH); @@ -34112,7 +34112,7 @@ CoreV1API_readNamespacedPodLog(apiClient_t *apiClient, char * name , char * _nam char *keyQuery_timestamps = NULL; char * valueQuery_timestamps = NULL; keyValuePair_t *keyPairQuery_timestamps = 0; - if (timestamps) + if (1) // Always send boolean parameters to the API server { keyQuery_timestamps = strdup("timestamps"); valueQuery_timestamps = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/CustomObjectsAPI.c b/kubernetes/api/CustomObjectsAPI.c index 1a3b0e98..33c73155 100644 --- a/kubernetes/api/CustomObjectsAPI.c +++ b/kubernetes/api/CustomObjectsAPI.c @@ -455,7 +455,7 @@ CustomObjectsAPI_deleteClusterCustomObject(apiClient_t *apiClient, char * group char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -468,7 +468,7 @@ CustomObjectsAPI_deleteClusterCustomObject(apiClient_t *apiClient, char * group char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -678,7 +678,7 @@ CustomObjectsAPI_deleteCollectionClusterCustomObject(apiClient_t *apiClient, cha char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -691,7 +691,7 @@ CustomObjectsAPI_deleteCollectionClusterCustomObject(apiClient_t *apiClient, cha char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -922,7 +922,7 @@ CustomObjectsAPI_deleteCollectionNamespacedCustomObject(apiClient_t *apiClient, char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -935,7 +935,7 @@ CustomObjectsAPI_deleteCollectionNamespacedCustomObject(apiClient_t *apiClient, char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1165,7 +1165,7 @@ CustomObjectsAPI_deleteNamespacedCustomObject(apiClient_t *apiClient, char * gro char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1178,7 +1178,7 @@ CustomObjectsAPI_deleteNamespacedCustomObject(apiClient_t *apiClient, char * gro char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -2084,7 +2084,7 @@ CustomObjectsAPI_listClusterCustomObject(apiClient_t *apiClient, char * group , char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -2133,7 +2133,7 @@ CustomObjectsAPI_listClusterCustomObject(apiClient_t *apiClient, char * group , char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -2170,7 +2170,7 @@ CustomObjectsAPI_listClusterCustomObject(apiClient_t *apiClient, char * group , char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2183,7 +2183,7 @@ CustomObjectsAPI_listClusterCustomObject(apiClient_t *apiClient, char * group , char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -2437,7 +2437,7 @@ CustomObjectsAPI_listNamespacedCustomObject(apiClient_t *apiClient, char * group char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -2486,7 +2486,7 @@ CustomObjectsAPI_listNamespacedCustomObject(apiClient_t *apiClient, char * group char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -2523,7 +2523,7 @@ CustomObjectsAPI_listNamespacedCustomObject(apiClient_t *apiClient, char * group char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2536,7 +2536,7 @@ CustomObjectsAPI_listNamespacedCustomObject(apiClient_t *apiClient, char * group char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -2803,7 +2803,7 @@ CustomObjectsAPI_patchClusterCustomObject(apiClient_t *apiClient, char * group , char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -3001,7 +3001,7 @@ CustomObjectsAPI_patchClusterCustomObjectScale(apiClient_t *apiClient, char * gr char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -3201,7 +3201,7 @@ CustomObjectsAPI_patchClusterCustomObjectStatus(apiClient_t *apiClient, char * g char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -3411,7 +3411,7 @@ CustomObjectsAPI_patchNamespacedCustomObject(apiClient_t *apiClient, char * grou char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -3620,7 +3620,7 @@ CustomObjectsAPI_patchNamespacedCustomObjectScale(apiClient_t *apiClient, char * char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -3832,7 +3832,7 @@ CustomObjectsAPI_patchNamespacedCustomObjectStatus(apiClient_t *apiClient, char char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/DiscoveryV1API.c b/kubernetes/api/DiscoveryV1API.c index fbce4e49..a723e3fa 100644 --- a/kubernetes/api/DiscoveryV1API.c +++ b/kubernetes/api/DiscoveryV1API.c @@ -290,7 +290,7 @@ DiscoveryV1API_deleteCollectionNamespacedEndpointSlice(apiClient_t *apiClient, c char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -315,7 +315,7 @@ DiscoveryV1API_deleteCollectionNamespacedEndpointSlice(apiClient_t *apiClient, c char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -328,7 +328,7 @@ DiscoveryV1API_deleteCollectionNamespacedEndpointSlice(apiClient_t *apiClient, c char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -377,7 +377,7 @@ DiscoveryV1API_deleteCollectionNamespacedEndpointSlice(apiClient_t *apiClient, c char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -660,7 +660,7 @@ DiscoveryV1API_deleteNamespacedEndpointSlice(apiClient_t *apiClient, char * name char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -673,7 +673,7 @@ DiscoveryV1API_deleteNamespacedEndpointSlice(apiClient_t *apiClient, char * name char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -912,7 +912,7 @@ DiscoveryV1API_listEndpointSliceForAllNamespaces(apiClient_t *apiClient, int all char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -961,7 +961,7 @@ DiscoveryV1API_listEndpointSliceForAllNamespaces(apiClient_t *apiClient, int all char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1010,7 +1010,7 @@ DiscoveryV1API_listEndpointSliceForAllNamespaces(apiClient_t *apiClient, int all char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1023,7 +1023,7 @@ DiscoveryV1API_listEndpointSliceForAllNamespaces(apiClient_t *apiClient, int all char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1247,7 +1247,7 @@ DiscoveryV1API_listNamespacedEndpointSlice(apiClient_t *apiClient, char * _names char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -1296,7 +1296,7 @@ DiscoveryV1API_listNamespacedEndpointSlice(apiClient_t *apiClient, char * _names char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1333,7 +1333,7 @@ DiscoveryV1API_listNamespacedEndpointSlice(apiClient_t *apiClient, char * _names char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1346,7 +1346,7 @@ DiscoveryV1API_listNamespacedEndpointSlice(apiClient_t *apiClient, char * _names char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1617,7 +1617,7 @@ DiscoveryV1API_patchNamespacedEndpointSlice(apiClient_t *apiClient, char * name char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/EventsV1API.c b/kubernetes/api/EventsV1API.c index 04282f20..bd5f3065 100644 --- a/kubernetes/api/EventsV1API.c +++ b/kubernetes/api/EventsV1API.c @@ -290,7 +290,7 @@ EventsV1API_deleteCollectionNamespacedEvent(apiClient_t *apiClient, char * _name char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -315,7 +315,7 @@ EventsV1API_deleteCollectionNamespacedEvent(apiClient_t *apiClient, char * _name char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -328,7 +328,7 @@ EventsV1API_deleteCollectionNamespacedEvent(apiClient_t *apiClient, char * _name char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -377,7 +377,7 @@ EventsV1API_deleteCollectionNamespacedEvent(apiClient_t *apiClient, char * _name char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -660,7 +660,7 @@ EventsV1API_deleteNamespacedEvent(apiClient_t *apiClient, char * name , char * _ char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -673,7 +673,7 @@ EventsV1API_deleteNamespacedEvent(apiClient_t *apiClient, char * name , char * _ char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -912,7 +912,7 @@ EventsV1API_listEventForAllNamespaces(apiClient_t *apiClient, int allowWatchBook char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -961,7 +961,7 @@ EventsV1API_listEventForAllNamespaces(apiClient_t *apiClient, int allowWatchBook char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1010,7 +1010,7 @@ EventsV1API_listEventForAllNamespaces(apiClient_t *apiClient, int allowWatchBook char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1023,7 +1023,7 @@ EventsV1API_listEventForAllNamespaces(apiClient_t *apiClient, int allowWatchBook char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1247,7 +1247,7 @@ EventsV1API_listNamespacedEvent(apiClient_t *apiClient, char * _namespace , char char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -1296,7 +1296,7 @@ EventsV1API_listNamespacedEvent(apiClient_t *apiClient, char * _namespace , char char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1333,7 +1333,7 @@ EventsV1API_listNamespacedEvent(apiClient_t *apiClient, char * _namespace , char char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1346,7 +1346,7 @@ EventsV1API_listNamespacedEvent(apiClient_t *apiClient, char * _namespace , char char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1617,7 +1617,7 @@ EventsV1API_patchNamespacedEvent(apiClient_t *apiClient, char * name , char * _n char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/FlowcontrolApiserverV1beta1API.c b/kubernetes/api/FlowcontrolApiserverV1beta1API.c index 5a6db254..ab531866 100644 --- a/kubernetes/api/FlowcontrolApiserverV1beta1API.c +++ b/kubernetes/api/FlowcontrolApiserverV1beta1API.c @@ -454,7 +454,7 @@ FlowcontrolApiserverV1beta1API_deleteCollectionFlowSchema(apiClient_t *apiClient char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -479,7 +479,7 @@ FlowcontrolApiserverV1beta1API_deleteCollectionFlowSchema(apiClient_t *apiClient char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -492,7 +492,7 @@ FlowcontrolApiserverV1beta1API_deleteCollectionFlowSchema(apiClient_t *apiClient char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -541,7 +541,7 @@ FlowcontrolApiserverV1beta1API_deleteCollectionFlowSchema(apiClient_t *apiClient char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -827,7 +827,7 @@ FlowcontrolApiserverV1beta1API_deleteCollectionPriorityLevelConfiguration(apiCli char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -852,7 +852,7 @@ FlowcontrolApiserverV1beta1API_deleteCollectionPriorityLevelConfiguration(apiCli char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -865,7 +865,7 @@ FlowcontrolApiserverV1beta1API_deleteCollectionPriorityLevelConfiguration(apiCli char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -914,7 +914,7 @@ FlowcontrolApiserverV1beta1API_deleteCollectionPriorityLevelConfiguration(apiCli char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1186,7 +1186,7 @@ FlowcontrolApiserverV1beta1API_deleteFlowSchema(apiClient_t *apiClient, char * n char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1199,7 +1199,7 @@ FlowcontrolApiserverV1beta1API_deleteFlowSchema(apiClient_t *apiClient, char * n char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1404,7 +1404,7 @@ FlowcontrolApiserverV1beta1API_deletePriorityLevelConfiguration(apiClient_t *api char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1417,7 +1417,7 @@ FlowcontrolApiserverV1beta1API_deletePriorityLevelConfiguration(apiClient_t *api char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1667,7 +1667,7 @@ FlowcontrolApiserverV1beta1API_listFlowSchema(apiClient_t *apiClient, char * pre char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -1716,7 +1716,7 @@ FlowcontrolApiserverV1beta1API_listFlowSchema(apiClient_t *apiClient, char * pre char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1753,7 +1753,7 @@ FlowcontrolApiserverV1beta1API_listFlowSchema(apiClient_t *apiClient, char * pre char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1766,7 +1766,7 @@ FlowcontrolApiserverV1beta1API_listFlowSchema(apiClient_t *apiClient, char * pre char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1980,7 +1980,7 @@ FlowcontrolApiserverV1beta1API_listPriorityLevelConfiguration(apiClient_t *apiCl char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -2029,7 +2029,7 @@ FlowcontrolApiserverV1beta1API_listPriorityLevelConfiguration(apiClient_t *apiCl char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -2066,7 +2066,7 @@ FlowcontrolApiserverV1beta1API_listPriorityLevelConfiguration(apiClient_t *apiCl char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2079,7 +2079,7 @@ FlowcontrolApiserverV1beta1API_listPriorityLevelConfiguration(apiClient_t *apiCl char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -2339,7 +2339,7 @@ FlowcontrolApiserverV1beta1API_patchFlowSchema(apiClient_t *apiClient, char * na char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -2560,7 +2560,7 @@ FlowcontrolApiserverV1beta1API_patchFlowSchemaStatus(apiClient_t *apiClient, cha char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -2781,7 +2781,7 @@ FlowcontrolApiserverV1beta1API_patchPriorityLevelConfiguration(apiClient_t *apiC char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -3002,7 +3002,7 @@ FlowcontrolApiserverV1beta1API_patchPriorityLevelConfigurationStatus(apiClient_t char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/FlowcontrolApiserverV1beta2API.c b/kubernetes/api/FlowcontrolApiserverV1beta2API.c index 1b9ddfcb..8b68fa5c 100644 --- a/kubernetes/api/FlowcontrolApiserverV1beta2API.c +++ b/kubernetes/api/FlowcontrolApiserverV1beta2API.c @@ -454,7 +454,7 @@ FlowcontrolApiserverV1beta2API_deleteCollectionFlowSchema(apiClient_t *apiClient char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -479,7 +479,7 @@ FlowcontrolApiserverV1beta2API_deleteCollectionFlowSchema(apiClient_t *apiClient char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -492,7 +492,7 @@ FlowcontrolApiserverV1beta2API_deleteCollectionFlowSchema(apiClient_t *apiClient char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -541,7 +541,7 @@ FlowcontrolApiserverV1beta2API_deleteCollectionFlowSchema(apiClient_t *apiClient char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -827,7 +827,7 @@ FlowcontrolApiserverV1beta2API_deleteCollectionPriorityLevelConfiguration(apiCli char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -852,7 +852,7 @@ FlowcontrolApiserverV1beta2API_deleteCollectionPriorityLevelConfiguration(apiCli char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -865,7 +865,7 @@ FlowcontrolApiserverV1beta2API_deleteCollectionPriorityLevelConfiguration(apiCli char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -914,7 +914,7 @@ FlowcontrolApiserverV1beta2API_deleteCollectionPriorityLevelConfiguration(apiCli char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1186,7 +1186,7 @@ FlowcontrolApiserverV1beta2API_deleteFlowSchema(apiClient_t *apiClient, char * n char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1199,7 +1199,7 @@ FlowcontrolApiserverV1beta2API_deleteFlowSchema(apiClient_t *apiClient, char * n char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1404,7 +1404,7 @@ FlowcontrolApiserverV1beta2API_deletePriorityLevelConfiguration(apiClient_t *api char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1417,7 +1417,7 @@ FlowcontrolApiserverV1beta2API_deletePriorityLevelConfiguration(apiClient_t *api char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1667,7 +1667,7 @@ FlowcontrolApiserverV1beta2API_listFlowSchema(apiClient_t *apiClient, char * pre char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -1716,7 +1716,7 @@ FlowcontrolApiserverV1beta2API_listFlowSchema(apiClient_t *apiClient, char * pre char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1753,7 +1753,7 @@ FlowcontrolApiserverV1beta2API_listFlowSchema(apiClient_t *apiClient, char * pre char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1766,7 +1766,7 @@ FlowcontrolApiserverV1beta2API_listFlowSchema(apiClient_t *apiClient, char * pre char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1980,7 +1980,7 @@ FlowcontrolApiserverV1beta2API_listPriorityLevelConfiguration(apiClient_t *apiCl char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -2029,7 +2029,7 @@ FlowcontrolApiserverV1beta2API_listPriorityLevelConfiguration(apiClient_t *apiCl char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -2066,7 +2066,7 @@ FlowcontrolApiserverV1beta2API_listPriorityLevelConfiguration(apiClient_t *apiCl char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2079,7 +2079,7 @@ FlowcontrolApiserverV1beta2API_listPriorityLevelConfiguration(apiClient_t *apiCl char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -2339,7 +2339,7 @@ FlowcontrolApiserverV1beta2API_patchFlowSchema(apiClient_t *apiClient, char * na char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -2560,7 +2560,7 @@ FlowcontrolApiserverV1beta2API_patchFlowSchemaStatus(apiClient_t *apiClient, cha char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -2781,7 +2781,7 @@ FlowcontrolApiserverV1beta2API_patchPriorityLevelConfiguration(apiClient_t *apiC char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -3002,7 +3002,7 @@ FlowcontrolApiserverV1beta2API_patchPriorityLevelConfigurationStatus(apiClient_t char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/InternalApiserverV1alpha1API.c b/kubernetes/api/InternalApiserverV1alpha1API.c index ce217980..74ac17de 100644 --- a/kubernetes/api/InternalApiserverV1alpha1API.c +++ b/kubernetes/api/InternalApiserverV1alpha1API.c @@ -269,7 +269,7 @@ InternalApiserverV1alpha1API_deleteCollectionStorageVersion(apiClient_t *apiClie char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -294,7 +294,7 @@ InternalApiserverV1alpha1API_deleteCollectionStorageVersion(apiClient_t *apiClie char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -307,7 +307,7 @@ InternalApiserverV1alpha1API_deleteCollectionStorageVersion(apiClient_t *apiClie char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -356,7 +356,7 @@ InternalApiserverV1alpha1API_deleteCollectionStorageVersion(apiClient_t *apiClie char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -628,7 +628,7 @@ InternalApiserverV1alpha1API_deleteStorageVersion(apiClient_t *apiClient, char * char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -641,7 +641,7 @@ InternalApiserverV1alpha1API_deleteStorageVersion(apiClient_t *apiClient, char * char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -891,7 +891,7 @@ InternalApiserverV1alpha1API_listStorageVersion(apiClient_t *apiClient, char * p char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -940,7 +940,7 @@ InternalApiserverV1alpha1API_listStorageVersion(apiClient_t *apiClient, char * p char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -977,7 +977,7 @@ InternalApiserverV1alpha1API_listStorageVersion(apiClient_t *apiClient, char * p char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -990,7 +990,7 @@ InternalApiserverV1alpha1API_listStorageVersion(apiClient_t *apiClient, char * p char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1250,7 +1250,7 @@ InternalApiserverV1alpha1API_patchStorageVersion(apiClient_t *apiClient, char * char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -1471,7 +1471,7 @@ InternalApiserverV1alpha1API_patchStorageVersionStatus(apiClient_t *apiClient, c char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/NetworkingV1API.c b/kubernetes/api/NetworkingV1API.c index 0cbce2e1..3b6961a7 100644 --- a/kubernetes/api/NetworkingV1API.c +++ b/kubernetes/api/NetworkingV1API.c @@ -661,7 +661,7 @@ NetworkingV1API_deleteCollectionIngressClass(apiClient_t *apiClient, char * pret char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -686,7 +686,7 @@ NetworkingV1API_deleteCollectionIngressClass(apiClient_t *apiClient, char * pret char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -699,7 +699,7 @@ NetworkingV1API_deleteCollectionIngressClass(apiClient_t *apiClient, char * pret char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -748,7 +748,7 @@ NetworkingV1API_deleteCollectionIngressClass(apiClient_t *apiClient, char * pret char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1044,7 +1044,7 @@ NetworkingV1API_deleteCollectionNamespacedIngress(apiClient_t *apiClient, char * char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1069,7 +1069,7 @@ NetworkingV1API_deleteCollectionNamespacedIngress(apiClient_t *apiClient, char * char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1082,7 +1082,7 @@ NetworkingV1API_deleteCollectionNamespacedIngress(apiClient_t *apiClient, char * char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1131,7 +1131,7 @@ NetworkingV1API_deleteCollectionNamespacedIngress(apiClient_t *apiClient, char * char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1428,7 +1428,7 @@ NetworkingV1API_deleteCollectionNamespacedNetworkPolicy(apiClient_t *apiClient, char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1453,7 +1453,7 @@ NetworkingV1API_deleteCollectionNamespacedNetworkPolicy(apiClient_t *apiClient, char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1466,7 +1466,7 @@ NetworkingV1API_deleteCollectionNamespacedNetworkPolicy(apiClient_t *apiClient, char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1515,7 +1515,7 @@ NetworkingV1API_deleteCollectionNamespacedNetworkPolicy(apiClient_t *apiClient, char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1788,7 +1788,7 @@ NetworkingV1API_deleteIngressClass(apiClient_t *apiClient, char * name , char * char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1801,7 +1801,7 @@ NetworkingV1API_deleteIngressClass(apiClient_t *apiClient, char * name , char * char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -2016,7 +2016,7 @@ NetworkingV1API_deleteNamespacedIngress(apiClient_t *apiClient, char * name , ch char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2029,7 +2029,7 @@ NetworkingV1API_deleteNamespacedIngress(apiClient_t *apiClient, char * name , ch char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -2245,7 +2245,7 @@ NetworkingV1API_deleteNamespacedNetworkPolicy(apiClient_t *apiClient, char * nam char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2258,7 +2258,7 @@ NetworkingV1API_deleteNamespacedNetworkPolicy(apiClient_t *apiClient, char * nam char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -2509,7 +2509,7 @@ NetworkingV1API_listIngressClass(apiClient_t *apiClient, char * pretty , int all char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -2558,7 +2558,7 @@ NetworkingV1API_listIngressClass(apiClient_t *apiClient, char * pretty , int all char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -2595,7 +2595,7 @@ NetworkingV1API_listIngressClass(apiClient_t *apiClient, char * pretty , int all char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2608,7 +2608,7 @@ NetworkingV1API_listIngressClass(apiClient_t *apiClient, char * pretty , int all char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -2810,7 +2810,7 @@ NetworkingV1API_listIngressForAllNamespaces(apiClient_t *apiClient, int allowWat char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -2859,7 +2859,7 @@ NetworkingV1API_listIngressForAllNamespaces(apiClient_t *apiClient, int allowWat char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -2908,7 +2908,7 @@ NetworkingV1API_listIngressForAllNamespaces(apiClient_t *apiClient, int allowWat char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2921,7 +2921,7 @@ NetworkingV1API_listIngressForAllNamespaces(apiClient_t *apiClient, int allowWat char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -3145,7 +3145,7 @@ NetworkingV1API_listNamespacedIngress(apiClient_t *apiClient, char * _namespace char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -3194,7 +3194,7 @@ NetworkingV1API_listNamespacedIngress(apiClient_t *apiClient, char * _namespace char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -3231,7 +3231,7 @@ NetworkingV1API_listNamespacedIngress(apiClient_t *apiClient, char * _namespace char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -3244,7 +3244,7 @@ NetworkingV1API_listNamespacedIngress(apiClient_t *apiClient, char * _namespace char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -3469,7 +3469,7 @@ NetworkingV1API_listNamespacedNetworkPolicy(apiClient_t *apiClient, char * _name char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -3518,7 +3518,7 @@ NetworkingV1API_listNamespacedNetworkPolicy(apiClient_t *apiClient, char * _name char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -3555,7 +3555,7 @@ NetworkingV1API_listNamespacedNetworkPolicy(apiClient_t *apiClient, char * _name char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -3568,7 +3568,7 @@ NetworkingV1API_listNamespacedNetworkPolicy(apiClient_t *apiClient, char * _name char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -3771,7 +3771,7 @@ NetworkingV1API_listNetworkPolicyForAllNamespaces(apiClient_t *apiClient, int al char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -3820,7 +3820,7 @@ NetworkingV1API_listNetworkPolicyForAllNamespaces(apiClient_t *apiClient, int al char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -3869,7 +3869,7 @@ NetworkingV1API_listNetworkPolicyForAllNamespaces(apiClient_t *apiClient, int al char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -3882,7 +3882,7 @@ NetworkingV1API_listNetworkPolicyForAllNamespaces(apiClient_t *apiClient, int al char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -4142,7 +4142,7 @@ NetworkingV1API_patchIngressClass(apiClient_t *apiClient, char * name , object_t char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -4373,7 +4373,7 @@ NetworkingV1API_patchNamespacedIngress(apiClient_t *apiClient, char * name , cha char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -4605,7 +4605,7 @@ NetworkingV1API_patchNamespacedIngressStatus(apiClient_t *apiClient, char * name char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -4837,7 +4837,7 @@ NetworkingV1API_patchNamespacedNetworkPolicy(apiClient_t *apiClient, char * name char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -5069,7 +5069,7 @@ NetworkingV1API_patchNamespacedNetworkPolicyStatus(apiClient_t *apiClient, char char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/NetworkingV1alpha1API.c b/kubernetes/api/NetworkingV1alpha1API.c index 28287a66..9fb99b1f 100644 --- a/kubernetes/api/NetworkingV1alpha1API.c +++ b/kubernetes/api/NetworkingV1alpha1API.c @@ -255,7 +255,7 @@ NetworkingV1alpha1API_deleteClusterCIDR(apiClient_t *apiClient, char * name , ch char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -268,7 +268,7 @@ NetworkingV1alpha1API_deleteClusterCIDR(apiClient_t *apiClient, char * name , ch char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -487,7 +487,7 @@ NetworkingV1alpha1API_deleteCollectionClusterCIDR(apiClient_t *apiClient, char * char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -512,7 +512,7 @@ NetworkingV1alpha1API_deleteCollectionClusterCIDR(apiClient_t *apiClient, char * char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -525,7 +525,7 @@ NetworkingV1alpha1API_deleteCollectionClusterCIDR(apiClient_t *apiClient, char * char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -574,7 +574,7 @@ NetworkingV1alpha1API_deleteCollectionClusterCIDR(apiClient_t *apiClient, char * char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -891,7 +891,7 @@ NetworkingV1alpha1API_listClusterCIDR(apiClient_t *apiClient, char * pretty , in char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -940,7 +940,7 @@ NetworkingV1alpha1API_listClusterCIDR(apiClient_t *apiClient, char * pretty , in char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -977,7 +977,7 @@ NetworkingV1alpha1API_listClusterCIDR(apiClient_t *apiClient, char * pretty , in char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -990,7 +990,7 @@ NetworkingV1alpha1API_listClusterCIDR(apiClient_t *apiClient, char * pretty , in char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1250,7 +1250,7 @@ NetworkingV1alpha1API_patchClusterCIDR(apiClient_t *apiClient, char * name , obj char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/NodeV1API.c b/kubernetes/api/NodeV1API.c index 47157726..070174ef 100644 --- a/kubernetes/api/NodeV1API.c +++ b/kubernetes/api/NodeV1API.c @@ -269,7 +269,7 @@ NodeV1API_deleteCollectionRuntimeClass(apiClient_t *apiClient, char * pretty , c char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -294,7 +294,7 @@ NodeV1API_deleteCollectionRuntimeClass(apiClient_t *apiClient, char * pretty , c char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -307,7 +307,7 @@ NodeV1API_deleteCollectionRuntimeClass(apiClient_t *apiClient, char * pretty , c char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -356,7 +356,7 @@ NodeV1API_deleteCollectionRuntimeClass(apiClient_t *apiClient, char * pretty , c char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -628,7 +628,7 @@ NodeV1API_deleteRuntimeClass(apiClient_t *apiClient, char * name , char * pretty char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -641,7 +641,7 @@ NodeV1API_deleteRuntimeClass(apiClient_t *apiClient, char * name , char * pretty char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -891,7 +891,7 @@ NodeV1API_listRuntimeClass(apiClient_t *apiClient, char * pretty , int allowWatc char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -940,7 +940,7 @@ NodeV1API_listRuntimeClass(apiClient_t *apiClient, char * pretty , int allowWatc char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -977,7 +977,7 @@ NodeV1API_listRuntimeClass(apiClient_t *apiClient, char * pretty , int allowWatc char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -990,7 +990,7 @@ NodeV1API_listRuntimeClass(apiClient_t *apiClient, char * pretty , int allowWatc char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1250,7 +1250,7 @@ NodeV1API_patchRuntimeClass(apiClient_t *apiClient, char * name , object_t * bod char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/PolicyV1API.c b/kubernetes/api/PolicyV1API.c index 332500d1..28395bee 100644 --- a/kubernetes/api/PolicyV1API.c +++ b/kubernetes/api/PolicyV1API.c @@ -290,7 +290,7 @@ PolicyV1API_deleteCollectionNamespacedPodDisruptionBudget(apiClient_t *apiClient char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -315,7 +315,7 @@ PolicyV1API_deleteCollectionNamespacedPodDisruptionBudget(apiClient_t *apiClient char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -328,7 +328,7 @@ PolicyV1API_deleteCollectionNamespacedPodDisruptionBudget(apiClient_t *apiClient char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -377,7 +377,7 @@ PolicyV1API_deleteCollectionNamespacedPodDisruptionBudget(apiClient_t *apiClient char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -660,7 +660,7 @@ PolicyV1API_deleteNamespacedPodDisruptionBudget(apiClient_t *apiClient, char * n char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -673,7 +673,7 @@ PolicyV1API_deleteNamespacedPodDisruptionBudget(apiClient_t *apiClient, char * n char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -934,7 +934,7 @@ PolicyV1API_listNamespacedPodDisruptionBudget(apiClient_t *apiClient, char * _na char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -983,7 +983,7 @@ PolicyV1API_listNamespacedPodDisruptionBudget(apiClient_t *apiClient, char * _na char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1020,7 +1020,7 @@ PolicyV1API_listNamespacedPodDisruptionBudget(apiClient_t *apiClient, char * _na char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1033,7 +1033,7 @@ PolicyV1API_listNamespacedPodDisruptionBudget(apiClient_t *apiClient, char * _na char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1236,7 +1236,7 @@ PolicyV1API_listPodDisruptionBudgetForAllNamespaces(apiClient_t *apiClient, int char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -1285,7 +1285,7 @@ PolicyV1API_listPodDisruptionBudgetForAllNamespaces(apiClient_t *apiClient, int char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1334,7 +1334,7 @@ PolicyV1API_listPodDisruptionBudgetForAllNamespaces(apiClient_t *apiClient, int char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1347,7 +1347,7 @@ PolicyV1API_listPodDisruptionBudgetForAllNamespaces(apiClient_t *apiClient, int char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1617,7 +1617,7 @@ PolicyV1API_patchNamespacedPodDisruptionBudget(apiClient_t *apiClient, char * na char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -1849,7 +1849,7 @@ PolicyV1API_patchNamespacedPodDisruptionBudgetStatus(apiClient_t *apiClient, cha char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/RbacAuthorizationV1API.c b/kubernetes/api/RbacAuthorizationV1API.c index 8750de2d..dbb4cfb8 100644 --- a/kubernetes/api/RbacAuthorizationV1API.c +++ b/kubernetes/api/RbacAuthorizationV1API.c @@ -832,7 +832,7 @@ RbacAuthorizationV1API_deleteClusterRole(apiClient_t *apiClient, char * name , c char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -845,7 +845,7 @@ RbacAuthorizationV1API_deleteClusterRole(apiClient_t *apiClient, char * name , c char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1050,7 +1050,7 @@ RbacAuthorizationV1API_deleteClusterRoleBinding(apiClient_t *apiClient, char * n char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1063,7 +1063,7 @@ RbacAuthorizationV1API_deleteClusterRoleBinding(apiClient_t *apiClient, char * n char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1282,7 +1282,7 @@ RbacAuthorizationV1API_deleteCollectionClusterRole(apiClient_t *apiClient, char char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1307,7 +1307,7 @@ RbacAuthorizationV1API_deleteCollectionClusterRole(apiClient_t *apiClient, char char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1320,7 +1320,7 @@ RbacAuthorizationV1API_deleteCollectionClusterRole(apiClient_t *apiClient, char char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1369,7 +1369,7 @@ RbacAuthorizationV1API_deleteCollectionClusterRole(apiClient_t *apiClient, char char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1655,7 +1655,7 @@ RbacAuthorizationV1API_deleteCollectionClusterRoleBinding(apiClient_t *apiClient char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1680,7 +1680,7 @@ RbacAuthorizationV1API_deleteCollectionClusterRoleBinding(apiClient_t *apiClient char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1693,7 +1693,7 @@ RbacAuthorizationV1API_deleteCollectionClusterRoleBinding(apiClient_t *apiClient char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1742,7 +1742,7 @@ RbacAuthorizationV1API_deleteCollectionClusterRoleBinding(apiClient_t *apiClient char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2038,7 +2038,7 @@ RbacAuthorizationV1API_deleteCollectionNamespacedRole(apiClient_t *apiClient, ch char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2063,7 +2063,7 @@ RbacAuthorizationV1API_deleteCollectionNamespacedRole(apiClient_t *apiClient, ch char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -2076,7 +2076,7 @@ RbacAuthorizationV1API_deleteCollectionNamespacedRole(apiClient_t *apiClient, ch char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -2125,7 +2125,7 @@ RbacAuthorizationV1API_deleteCollectionNamespacedRole(apiClient_t *apiClient, ch char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2422,7 +2422,7 @@ RbacAuthorizationV1API_deleteCollectionNamespacedRoleBinding(apiClient_t *apiCli char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2447,7 +2447,7 @@ RbacAuthorizationV1API_deleteCollectionNamespacedRoleBinding(apiClient_t *apiCli char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -2460,7 +2460,7 @@ RbacAuthorizationV1API_deleteCollectionNamespacedRoleBinding(apiClient_t *apiCli char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -2509,7 +2509,7 @@ RbacAuthorizationV1API_deleteCollectionNamespacedRoleBinding(apiClient_t *apiCli char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2792,7 +2792,7 @@ RbacAuthorizationV1API_deleteNamespacedRole(apiClient_t *apiClient, char * name char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2805,7 +2805,7 @@ RbacAuthorizationV1API_deleteNamespacedRole(apiClient_t *apiClient, char * name char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -3021,7 +3021,7 @@ RbacAuthorizationV1API_deleteNamespacedRoleBinding(apiClient_t *apiClient, char char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -3034,7 +3034,7 @@ RbacAuthorizationV1API_deleteNamespacedRoleBinding(apiClient_t *apiClient, char char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -3285,7 +3285,7 @@ RbacAuthorizationV1API_listClusterRole(apiClient_t *apiClient, char * pretty , i char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -3334,7 +3334,7 @@ RbacAuthorizationV1API_listClusterRole(apiClient_t *apiClient, char * pretty , i char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -3371,7 +3371,7 @@ RbacAuthorizationV1API_listClusterRole(apiClient_t *apiClient, char * pretty , i char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -3384,7 +3384,7 @@ RbacAuthorizationV1API_listClusterRole(apiClient_t *apiClient, char * pretty , i char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -3598,7 +3598,7 @@ RbacAuthorizationV1API_listClusterRoleBinding(apiClient_t *apiClient, char * pre char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -3647,7 +3647,7 @@ RbacAuthorizationV1API_listClusterRoleBinding(apiClient_t *apiClient, char * pre char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -3684,7 +3684,7 @@ RbacAuthorizationV1API_listClusterRoleBinding(apiClient_t *apiClient, char * pre char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -3697,7 +3697,7 @@ RbacAuthorizationV1API_listClusterRoleBinding(apiClient_t *apiClient, char * pre char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -3921,7 +3921,7 @@ RbacAuthorizationV1API_listNamespacedRole(apiClient_t *apiClient, char * _namesp char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -3970,7 +3970,7 @@ RbacAuthorizationV1API_listNamespacedRole(apiClient_t *apiClient, char * _namesp char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -4007,7 +4007,7 @@ RbacAuthorizationV1API_listNamespacedRole(apiClient_t *apiClient, char * _namesp char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -4020,7 +4020,7 @@ RbacAuthorizationV1API_listNamespacedRole(apiClient_t *apiClient, char * _namesp char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -4245,7 +4245,7 @@ RbacAuthorizationV1API_listNamespacedRoleBinding(apiClient_t *apiClient, char * char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -4294,7 +4294,7 @@ RbacAuthorizationV1API_listNamespacedRoleBinding(apiClient_t *apiClient, char * char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -4331,7 +4331,7 @@ RbacAuthorizationV1API_listNamespacedRoleBinding(apiClient_t *apiClient, char * char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -4344,7 +4344,7 @@ RbacAuthorizationV1API_listNamespacedRoleBinding(apiClient_t *apiClient, char * char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -4547,7 +4547,7 @@ RbacAuthorizationV1API_listRoleBindingForAllNamespaces(apiClient_t *apiClient, i char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -4596,7 +4596,7 @@ RbacAuthorizationV1API_listRoleBindingForAllNamespaces(apiClient_t *apiClient, i char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -4645,7 +4645,7 @@ RbacAuthorizationV1API_listRoleBindingForAllNamespaces(apiClient_t *apiClient, i char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -4658,7 +4658,7 @@ RbacAuthorizationV1API_listRoleBindingForAllNamespaces(apiClient_t *apiClient, i char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -4860,7 +4860,7 @@ RbacAuthorizationV1API_listRoleForAllNamespaces(apiClient_t *apiClient, int allo char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -4909,7 +4909,7 @@ RbacAuthorizationV1API_listRoleForAllNamespaces(apiClient_t *apiClient, int allo char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -4958,7 +4958,7 @@ RbacAuthorizationV1API_listRoleForAllNamespaces(apiClient_t *apiClient, int allo char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -4971,7 +4971,7 @@ RbacAuthorizationV1API_listRoleForAllNamespaces(apiClient_t *apiClient, int allo char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -5231,7 +5231,7 @@ RbacAuthorizationV1API_patchClusterRole(apiClient_t *apiClient, char * name , ob char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -5452,7 +5452,7 @@ RbacAuthorizationV1API_patchClusterRoleBinding(apiClient_t *apiClient, char * na char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -5683,7 +5683,7 @@ RbacAuthorizationV1API_patchNamespacedRole(apiClient_t *apiClient, char * name , char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -5915,7 +5915,7 @@ RbacAuthorizationV1API_patchNamespacedRoleBinding(apiClient_t *apiClient, char * char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/SchedulingV1API.c b/kubernetes/api/SchedulingV1API.c index a046369d..652928d0 100644 --- a/kubernetes/api/SchedulingV1API.c +++ b/kubernetes/api/SchedulingV1API.c @@ -269,7 +269,7 @@ SchedulingV1API_deleteCollectionPriorityClass(apiClient_t *apiClient, char * pre char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -294,7 +294,7 @@ SchedulingV1API_deleteCollectionPriorityClass(apiClient_t *apiClient, char * pre char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -307,7 +307,7 @@ SchedulingV1API_deleteCollectionPriorityClass(apiClient_t *apiClient, char * pre char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -356,7 +356,7 @@ SchedulingV1API_deleteCollectionPriorityClass(apiClient_t *apiClient, char * pre char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -628,7 +628,7 @@ SchedulingV1API_deletePriorityClass(apiClient_t *apiClient, char * name , char * char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -641,7 +641,7 @@ SchedulingV1API_deletePriorityClass(apiClient_t *apiClient, char * name , char * char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -891,7 +891,7 @@ SchedulingV1API_listPriorityClass(apiClient_t *apiClient, char * pretty , int al char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -940,7 +940,7 @@ SchedulingV1API_listPriorityClass(apiClient_t *apiClient, char * pretty , int al char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -977,7 +977,7 @@ SchedulingV1API_listPriorityClass(apiClient_t *apiClient, char * pretty , int al char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -990,7 +990,7 @@ SchedulingV1API_listPriorityClass(apiClient_t *apiClient, char * pretty , int al char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1250,7 +1250,7 @@ SchedulingV1API_patchPriorityClass(apiClient_t *apiClient, char * name , object_ char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/StorageV1API.c b/kubernetes/api/StorageV1API.c index 695a79cb..9cb5faff 100644 --- a/kubernetes/api/StorageV1API.c +++ b/kubernetes/api/StorageV1API.c @@ -1006,7 +1006,7 @@ StorageV1API_deleteCSIDriver(apiClient_t *apiClient, char * name , char * pretty char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1019,7 +1019,7 @@ StorageV1API_deleteCSIDriver(apiClient_t *apiClient, char * name , char * pretty char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1224,7 +1224,7 @@ StorageV1API_deleteCSINode(apiClient_t *apiClient, char * name , char * pretty , char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1237,7 +1237,7 @@ StorageV1API_deleteCSINode(apiClient_t *apiClient, char * name , char * pretty , char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1456,7 +1456,7 @@ StorageV1API_deleteCollectionCSIDriver(apiClient_t *apiClient, char * pretty , c char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1481,7 +1481,7 @@ StorageV1API_deleteCollectionCSIDriver(apiClient_t *apiClient, char * pretty , c char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1494,7 +1494,7 @@ StorageV1API_deleteCollectionCSIDriver(apiClient_t *apiClient, char * pretty , c char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1543,7 +1543,7 @@ StorageV1API_deleteCollectionCSIDriver(apiClient_t *apiClient, char * pretty , c char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1829,7 +1829,7 @@ StorageV1API_deleteCollectionCSINode(apiClient_t *apiClient, char * pretty , cha char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1854,7 +1854,7 @@ StorageV1API_deleteCollectionCSINode(apiClient_t *apiClient, char * pretty , cha char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1867,7 +1867,7 @@ StorageV1API_deleteCollectionCSINode(apiClient_t *apiClient, char * pretty , cha char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -1916,7 +1916,7 @@ StorageV1API_deleteCollectionCSINode(apiClient_t *apiClient, char * pretty , cha char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2212,7 +2212,7 @@ StorageV1API_deleteCollectionNamespacedCSIStorageCapacity(apiClient_t *apiClient char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2237,7 +2237,7 @@ StorageV1API_deleteCollectionNamespacedCSIStorageCapacity(apiClient_t *apiClient char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -2250,7 +2250,7 @@ StorageV1API_deleteCollectionNamespacedCSIStorageCapacity(apiClient_t *apiClient char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -2299,7 +2299,7 @@ StorageV1API_deleteCollectionNamespacedCSIStorageCapacity(apiClient_t *apiClient char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2586,7 +2586,7 @@ StorageV1API_deleteCollectionStorageClass(apiClient_t *apiClient, char * pretty char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2611,7 +2611,7 @@ StorageV1API_deleteCollectionStorageClass(apiClient_t *apiClient, char * pretty char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -2624,7 +2624,7 @@ StorageV1API_deleteCollectionStorageClass(apiClient_t *apiClient, char * pretty char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -2673,7 +2673,7 @@ StorageV1API_deleteCollectionStorageClass(apiClient_t *apiClient, char * pretty char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2959,7 +2959,7 @@ StorageV1API_deleteCollectionVolumeAttachment(apiClient_t *apiClient, char * pre char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -2984,7 +2984,7 @@ StorageV1API_deleteCollectionVolumeAttachment(apiClient_t *apiClient, char * pre char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -2997,7 +2997,7 @@ StorageV1API_deleteCollectionVolumeAttachment(apiClient_t *apiClient, char * pre char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -3046,7 +3046,7 @@ StorageV1API_deleteCollectionVolumeAttachment(apiClient_t *apiClient, char * pre char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -3328,7 +3328,7 @@ StorageV1API_deleteNamespacedCSIStorageCapacity(apiClient_t *apiClient, char * n char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -3341,7 +3341,7 @@ StorageV1API_deleteNamespacedCSIStorageCapacity(apiClient_t *apiClient, char * n char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -3547,7 +3547,7 @@ StorageV1API_deleteStorageClass(apiClient_t *apiClient, char * name , char * pre char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -3560,7 +3560,7 @@ StorageV1API_deleteStorageClass(apiClient_t *apiClient, char * name , char * pre char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -3765,7 +3765,7 @@ StorageV1API_deleteVolumeAttachment(apiClient_t *apiClient, char * name , char * char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -3778,7 +3778,7 @@ StorageV1API_deleteVolumeAttachment(apiClient_t *apiClient, char * name , char * char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -4028,7 +4028,7 @@ StorageV1API_listCSIDriver(apiClient_t *apiClient, char * pretty , int allowWatc char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -4077,7 +4077,7 @@ StorageV1API_listCSIDriver(apiClient_t *apiClient, char * pretty , int allowWatc char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -4114,7 +4114,7 @@ StorageV1API_listCSIDriver(apiClient_t *apiClient, char * pretty , int allowWatc char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -4127,7 +4127,7 @@ StorageV1API_listCSIDriver(apiClient_t *apiClient, char * pretty , int allowWatc char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -4341,7 +4341,7 @@ StorageV1API_listCSINode(apiClient_t *apiClient, char * pretty , int allowWatchB char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -4390,7 +4390,7 @@ StorageV1API_listCSINode(apiClient_t *apiClient, char * pretty , int allowWatchB char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -4427,7 +4427,7 @@ StorageV1API_listCSINode(apiClient_t *apiClient, char * pretty , int allowWatchB char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -4440,7 +4440,7 @@ StorageV1API_listCSINode(apiClient_t *apiClient, char * pretty , int allowWatchB char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -4642,7 +4642,7 @@ StorageV1API_listCSIStorageCapacityForAllNamespaces(apiClient_t *apiClient, int char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -4691,7 +4691,7 @@ StorageV1API_listCSIStorageCapacityForAllNamespaces(apiClient_t *apiClient, int char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -4740,7 +4740,7 @@ StorageV1API_listCSIStorageCapacityForAllNamespaces(apiClient_t *apiClient, int char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -4753,7 +4753,7 @@ StorageV1API_listCSIStorageCapacityForAllNamespaces(apiClient_t *apiClient, int char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -4977,7 +4977,7 @@ StorageV1API_listNamespacedCSIStorageCapacity(apiClient_t *apiClient, char * _na char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -5026,7 +5026,7 @@ StorageV1API_listNamespacedCSIStorageCapacity(apiClient_t *apiClient, char * _na char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -5063,7 +5063,7 @@ StorageV1API_listNamespacedCSIStorageCapacity(apiClient_t *apiClient, char * _na char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -5076,7 +5076,7 @@ StorageV1API_listNamespacedCSIStorageCapacity(apiClient_t *apiClient, char * _na char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -5291,7 +5291,7 @@ StorageV1API_listStorageClass(apiClient_t *apiClient, char * pretty , int allowW char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -5340,7 +5340,7 @@ StorageV1API_listStorageClass(apiClient_t *apiClient, char * pretty , int allowW char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -5377,7 +5377,7 @@ StorageV1API_listStorageClass(apiClient_t *apiClient, char * pretty , int allowW char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -5390,7 +5390,7 @@ StorageV1API_listStorageClass(apiClient_t *apiClient, char * pretty , int allowW char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -5604,7 +5604,7 @@ StorageV1API_listVolumeAttachment(apiClient_t *apiClient, char * pretty , int al char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -5653,7 +5653,7 @@ StorageV1API_listVolumeAttachment(apiClient_t *apiClient, char * pretty , int al char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -5690,7 +5690,7 @@ StorageV1API_listVolumeAttachment(apiClient_t *apiClient, char * pretty , int al char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -5703,7 +5703,7 @@ StorageV1API_listVolumeAttachment(apiClient_t *apiClient, char * pretty , int al char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -5963,7 +5963,7 @@ StorageV1API_patchCSIDriver(apiClient_t *apiClient, char * name , object_t * bod char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -6184,7 +6184,7 @@ StorageV1API_patchCSINode(apiClient_t *apiClient, char * name , object_t * body char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -6415,7 +6415,7 @@ StorageV1API_patchNamespacedCSIStorageCapacity(apiClient_t *apiClient, char * na char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -6637,7 +6637,7 @@ StorageV1API_patchStorageClass(apiClient_t *apiClient, char * name , object_t * char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -6858,7 +6858,7 @@ StorageV1API_patchVolumeAttachment(apiClient_t *apiClient, char * name , object_ char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); @@ -7079,7 +7079,7 @@ StorageV1API_patchVolumeAttachmentStatus(apiClient_t *apiClient, char * name , o char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); diff --git a/kubernetes/api/StorageV1beta1API.c b/kubernetes/api/StorageV1beta1API.c index 77e1686d..12a171fd 100644 --- a/kubernetes/api/StorageV1beta1API.c +++ b/kubernetes/api/StorageV1beta1API.c @@ -290,7 +290,7 @@ StorageV1beta1API_deleteCollectionNamespacedCSIStorageCapacity(apiClient_t *apiC char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -315,7 +315,7 @@ StorageV1beta1API_deleteCollectionNamespacedCSIStorageCapacity(apiClient_t *apiC char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -328,7 +328,7 @@ StorageV1beta1API_deleteCollectionNamespacedCSIStorageCapacity(apiClient_t *apiC char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -377,7 +377,7 @@ StorageV1beta1API_deleteCollectionNamespacedCSIStorageCapacity(apiClient_t *apiC char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -660,7 +660,7 @@ StorageV1beta1API_deleteNamespacedCSIStorageCapacity(apiClient_t *apiClient, cha char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; - if (gracePeriodSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -673,7 +673,7 @@ StorageV1beta1API_deleteNamespacedCSIStorageCapacity(apiClient_t *apiClient, cha char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; keyValuePair_t *keyPairQuery_orphanDependents = 0; - if (orphanDependents) + if (1) // Always send boolean parameters to the API server { keyQuery_orphanDependents = strdup("orphanDependents"); valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); @@ -912,7 +912,7 @@ StorageV1beta1API_listCSIStorageCapacityForAllNamespaces(apiClient_t *apiClient, char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -961,7 +961,7 @@ StorageV1beta1API_listCSIStorageCapacityForAllNamespaces(apiClient_t *apiClient, char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1010,7 +1010,7 @@ StorageV1beta1API_listCSIStorageCapacityForAllNamespaces(apiClient_t *apiClient, char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1023,7 +1023,7 @@ StorageV1beta1API_listCSIStorageCapacityForAllNamespaces(apiClient_t *apiClient, char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1247,7 +1247,7 @@ StorageV1beta1API_listNamespacedCSIStorageCapacity(apiClient_t *apiClient, char char *keyQuery_allowWatchBookmarks = NULL; char * valueQuery_allowWatchBookmarks = NULL; keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) + if (1) // Always send boolean parameters to the API server { keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); @@ -1296,7 +1296,7 @@ StorageV1beta1API_listNamespacedCSIStorageCapacity(apiClient_t *apiClient, char char *keyQuery_limit = NULL; char * valueQuery_limit = NULL; keyValuePair_t *keyPairQuery_limit = 0; - if (limit) + if (1) // Always send integer parameters to the API server { keyQuery_limit = strdup("limit"); valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); @@ -1333,7 +1333,7 @@ StorageV1beta1API_listNamespacedCSIStorageCapacity(apiClient_t *apiClient, char char *keyQuery_timeoutSeconds = NULL; char * valueQuery_timeoutSeconds = NULL; keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (timeoutSeconds) + if (1) // Always send integer parameters to the API server { keyQuery_timeoutSeconds = strdup("timeoutSeconds"); valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); @@ -1346,7 +1346,7 @@ StorageV1beta1API_listNamespacedCSIStorageCapacity(apiClient_t *apiClient, char char *keyQuery_watch = NULL; char * valueQuery_watch = NULL; keyValuePair_t *keyPairQuery_watch = 0; - if (watch) + if (1) // Always send boolean parameters to the API server { keyQuery_watch = strdup("watch"); valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); @@ -1617,7 +1617,7 @@ StorageV1beta1API_patchNamespacedCSIStorageCapacity(apiClient_t *apiClient, char char *keyQuery_force = NULL; char * valueQuery_force = NULL; keyValuePair_t *keyPairQuery_force = 0; - if (force) + if (1) // Always send boolean parameters to the API server { keyQuery_force = strdup("force"); valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); From ab0c7fc27621634b6520e90daf1f520e9ed853bc Mon Sep 17 00:00:00 2001 From: Hui Yu Date: Wed, 30 Nov 2022 11:29:05 +0800 Subject: [PATCH 04/19] Provide a grace period (30 seconds) for pod deletion --- examples/delete_pod/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/delete_pod/main.c b/examples/delete_pod/main.c index 45ddaf3a..dad5f00f 100644 --- a/examples/delete_pod/main.c +++ b/examples/delete_pod/main.c @@ -12,7 +12,7 @@ void delete_a_pod(apiClient_t * apiClient) "default", // char *namespace NULL, // char *pretty NULL, // char *dryRun - 0, // int gracePeriodSeconds + 30, // int gracePeriodSeconds 0, // int orphanDependents NULL, // char *propagationPolicy NULL // v1_delete_options_t *body From c740f061c9bd76fdd916dcc89c8e0770688333d3 Mon Sep 17 00:00:00 2001 From: Hui Yu Date: Thu, 29 Dec 2022 10:58:47 +0800 Subject: [PATCH 05/19] Allow cJSON_IsNull() for a string if it is not mandatory --- kubernetes/external/cJSON.c | 2 +- ...missionregistration_v1_service_reference.c | 4 +- ...ionregistration_v1_webhook_client_config.c | 4 +- .../apiextensions_v1_service_reference.c | 4 +- .../apiextensions_v1_webhook_client_config.c | 4 +- .../apiregistration_v1_service_reference.c | 8 ++-- .../model/authentication_v1_token_request.c | 8 ++-- kubernetes/model/core_v1_endpoint_port.c | 12 ++--- kubernetes/model/core_v1_event.c | 32 +++++++------- kubernetes/model/core_v1_event_list.c | 8 ++-- kubernetes/model/discovery_v1_endpoint_port.c | 12 ++--- kubernetes/model/events_v1_event.c | 32 +++++++------- kubernetes/model/events_v1_event_list.c | 8 ++-- kubernetes/model/v1_api_group.c | 8 ++-- kubernetes/model/v1_api_group_list.c | 8 ++-- kubernetes/model/v1_api_resource.c | 12 ++--- kubernetes/model/v1_api_resource_list.c | 8 ++-- kubernetes/model/v1_api_service.c | 8 ++-- kubernetes/model/v1_api_service_condition.c | 8 ++-- kubernetes/model/v1_api_service_list.c | 8 ++-- kubernetes/model/v1_api_service_spec.c | 8 ++-- kubernetes/model/v1_api_versions.c | 8 ++-- ...v1_aws_elastic_block_store_volume_source.c | 4 +- .../model/v1_azure_disk_volume_source.c | 12 ++--- .../v1_azure_file_persistent_volume_source.c | 4 +- kubernetes/model/v1_binding.c | 8 ++-- kubernetes/model/v1_bound_object_reference.c | 16 +++---- .../v1_ceph_fs_persistent_volume_source.c | 12 ++--- kubernetes/model/v1_ceph_fs_volume_source.c | 12 ++--- .../model/v1_certificate_signing_request.c | 8 ++-- ...v1_certificate_signing_request_condition.c | 8 ++-- .../v1_certificate_signing_request_list.c | 8 ++-- .../v1_certificate_signing_request_spec.c | 8 ++-- .../v1_cinder_persistent_volume_source.c | 4 +- kubernetes/model/v1_cinder_volume_source.c | 4 +- kubernetes/model/v1_cluster_role.c | 8 ++-- kubernetes/model/v1_cluster_role_binding.c | 8 ++-- .../model/v1_cluster_role_binding_list.c | 8 ++-- kubernetes/model/v1_cluster_role_list.c | 8 ++-- kubernetes/model/v1_component_condition.c | 8 ++-- kubernetes/model/v1_component_status.c | 8 ++-- kubernetes/model/v1_component_status_list.c | 8 ++-- kubernetes/model/v1_config_map.c | 8 ++-- kubernetes/model/v1_config_map_env_source.c | 4 +- kubernetes/model/v1_config_map_key_selector.c | 4 +- kubernetes/model/v1_config_map_list.c | 8 ++-- .../model/v1_config_map_node_config_source.c | 8 ++-- kubernetes/model/v1_config_map_projection.c | 4 +- .../model/v1_config_map_volume_source.c | 4 +- kubernetes/model/v1_container.c | 20 ++++----- kubernetes/model/v1_container_port.c | 12 ++--- .../model/v1_container_state_terminated.c | 12 ++--- kubernetes/model/v1_container_state_waiting.c | 8 ++-- kubernetes/model/v1_container_status.c | 4 +- kubernetes/model/v1_controller_revision.c | 8 ++-- .../model/v1_controller_revision_list.c | 8 ++-- kubernetes/model/v1_cron_job.c | 8 ++-- kubernetes/model/v1_cron_job_list.c | 8 ++-- kubernetes/model/v1_cron_job_spec.c | 8 ++-- .../model/v1_cross_version_object_reference.c | 4 +- kubernetes/model/v1_csi_driver.c | 8 ++-- kubernetes/model/v1_csi_driver_list.c | 8 ++-- kubernetes/model/v1_csi_driver_spec.c | 4 +- kubernetes/model/v1_csi_node.c | 8 ++-- kubernetes/model/v1_csi_node_list.c | 8 ++-- .../model/v1_csi_persistent_volume_source.c | 4 +- kubernetes/model/v1_csi_storage_capacity.c | 16 +++---- .../model/v1_csi_storage_capacity_list.c | 8 ++-- kubernetes/model/v1_csi_volume_source.c | 4 +- .../v1_custom_resource_column_definition.c | 8 ++-- .../model/v1_custom_resource_definition.c | 8 ++-- .../v1_custom_resource_definition_condition.c | 8 ++-- .../v1_custom_resource_definition_list.c | 8 ++-- .../v1_custom_resource_definition_names.c | 8 ++-- .../v1_custom_resource_definition_version.c | 4 +- .../v1_custom_resource_subresource_scale.c | 4 +- kubernetes/model/v1_daemon_set.c | 8 ++-- kubernetes/model/v1_daemon_set_condition.c | 8 ++-- kubernetes/model/v1_daemon_set_list.c | 8 ++-- .../model/v1_daemon_set_update_strategy.c | 4 +- kubernetes/model/v1_delete_options.c | 12 ++--- kubernetes/model/v1_deployment.c | 8 ++-- kubernetes/model/v1_deployment_condition.c | 8 ++-- kubernetes/model/v1_deployment_list.c | 8 ++-- kubernetes/model/v1_deployment_strategy.c | 4 +- kubernetes/model/v1_empty_dir_volume_source.c | 8 ++-- kubernetes/model/v1_endpoint.c | 12 ++--- kubernetes/model/v1_endpoint_address.c | 8 ++-- kubernetes/model/v1_endpoint_slice.c | 8 ++-- kubernetes/model/v1_endpoint_slice_list.c | 8 ++-- kubernetes/model/v1_endpoints.c | 8 ++-- kubernetes/model/v1_endpoints_list.c | 8 ++-- kubernetes/model/v1_env_from_source.c | 4 +- kubernetes/model/v1_env_var.c | 4 +- kubernetes/model/v1_ephemeral_container.c | 24 +++++----- kubernetes/model/v1_event_source.c | 8 ++-- kubernetes/model/v1_eviction.c | 8 ++-- kubernetes/model/v1_external_documentation.c | 8 ++-- kubernetes/model/v1_fc_volume_source.c | 4 +- .../model/v1_flex_persistent_volume_source.c | 4 +- kubernetes/model/v1_flex_volume_source.c | 4 +- kubernetes/model/v1_flocker_volume_source.c | 8 ++-- .../v1_gce_persistent_disk_volume_source.c | 4 +- kubernetes/model/v1_git_repo_volume_source.c | 8 ++-- .../v1_glusterfs_persistent_volume_source.c | 4 +- kubernetes/model/v1_grpc_action.c | 4 +- .../model/v1_horizontal_pod_autoscaler.c | 8 ++-- .../model/v1_horizontal_pod_autoscaler_list.c | 8 ++-- kubernetes/model/v1_host_alias.c | 4 +- kubernetes/model/v1_host_path_volume_source.c | 4 +- kubernetes/model/v1_http_get_action.c | 12 ++--- kubernetes/model/v1_http_ingress_path.c | 4 +- kubernetes/model/v1_ingress.c | 8 ++-- kubernetes/model/v1_ingress_class.c | 8 ++-- kubernetes/model/v1_ingress_class_list.c | 8 ++-- .../v1_ingress_class_parameters_reference.c | 12 ++--- kubernetes/model/v1_ingress_class_spec.c | 4 +- kubernetes/model/v1_ingress_list.c | 8 ++-- kubernetes/model/v1_ingress_rule.c | 4 +- kubernetes/model/v1_ingress_spec.c | 4 +- kubernetes/model/v1_ingress_tls.c | 4 +- .../model/v1_iscsi_persistent_volume_source.c | 12 ++--- kubernetes/model/v1_iscsi_volume_source.c | 12 ++--- kubernetes/model/v1_job.c | 8 ++-- kubernetes/model/v1_job_condition.c | 8 ++-- kubernetes/model/v1_job_list.c | 8 ++-- kubernetes/model/v1_job_spec.c | 4 +- kubernetes/model/v1_job_status.c | 4 +- kubernetes/model/v1_json_schema_props.c | 40 ++++++++--------- kubernetes/model/v1_lease.c | 8 ++-- kubernetes/model/v1_lease_list.c | 8 ++-- kubernetes/model/v1_lease_spec.c | 4 +- kubernetes/model/v1_limit_range.c | 8 ++-- kubernetes/model/v1_limit_range_list.c | 8 ++-- kubernetes/model/v1_list_meta.c | 12 ++--- kubernetes/model/v1_load_balancer_ingress.c | 8 ++-- kubernetes/model/v1_local_object_reference.c | 4 +- .../model/v1_local_subject_access_review.c | 8 ++-- kubernetes/model/v1_local_volume_source.c | 4 +- kubernetes/model/v1_managed_fields_entry.c | 20 ++++----- kubernetes/model/v1_mutating_webhook.c | 12 ++--- .../model/v1_mutating_webhook_configuration.c | 8 ++-- .../v1_mutating_webhook_configuration_list.c | 8 ++-- kubernetes/model/v1_namespace.c | 8 ++-- kubernetes/model/v1_namespace_condition.c | 8 ++-- kubernetes/model/v1_namespace_list.c | 8 ++-- kubernetes/model/v1_namespace_status.c | 4 +- kubernetes/model/v1_network_policy.c | 8 ++-- kubernetes/model/v1_network_policy_list.c | 8 ++-- kubernetes/model/v1_network_policy_port.c | 4 +- kubernetes/model/v1_node.c | 8 ++-- kubernetes/model/v1_node_condition.c | 8 ++-- kubernetes/model/v1_node_config_status.c | 4 +- kubernetes/model/v1_node_list.c | 8 ++-- kubernetes/model/v1_node_spec.c | 12 ++--- kubernetes/model/v1_node_status.c | 4 +- kubernetes/model/v1_non_resource_attributes.c | 8 ++-- kubernetes/model/v1_object_field_selector.c | 4 +- kubernetes/model/v1_object_meta.c | 24 +++++----- kubernetes/model/v1_object_reference.c | 28 ++++++------ kubernetes/model/v1_persistent_volume.c | 8 ++-- kubernetes/model/v1_persistent_volume_claim.c | 8 ++-- .../v1_persistent_volume_claim_condition.c | 8 ++-- .../model/v1_persistent_volume_claim_list.c | 8 ++-- .../model/v1_persistent_volume_claim_spec.c | 12 ++--- .../model/v1_persistent_volume_claim_status.c | 8 ++-- kubernetes/model/v1_persistent_volume_list.c | 8 ++-- kubernetes/model/v1_persistent_volume_spec.c | 12 ++--- .../model/v1_persistent_volume_status.c | 12 ++--- .../v1_photon_persistent_disk_volume_source.c | 4 +- kubernetes/model/v1_pod.c | 8 ++-- kubernetes/model/v1_pod_condition.c | 8 ++-- kubernetes/model/v1_pod_disruption_budget.c | 8 ++-- .../model/v1_pod_disruption_budget_list.c | 8 ++-- kubernetes/model/v1_pod_dns_config_option.c | 8 ++-- ...failure_policy_on_exit_codes_requirement.c | 4 +- kubernetes/model/v1_pod_ip.c | 4 +- kubernetes/model/v1_pod_list.c | 8 ++-- kubernetes/model/v1_pod_security_context.c | 4 +- kubernetes/model/v1_pod_spec.c | 44 +++++++++---------- kubernetes/model/v1_pod_status.c | 28 ++++++------ kubernetes/model/v1_pod_template.c | 8 ++-- kubernetes/model/v1_pod_template_list.c | 8 ++-- kubernetes/model/v1_port_status.c | 4 +- kubernetes/model/v1_portworx_volume_source.c | 4 +- kubernetes/model/v1_preconditions.c | 8 ++-- kubernetes/model/v1_priority_class.c | 16 +++---- kubernetes/model/v1_priority_class_list.c | 8 ++-- kubernetes/model/v1_quobyte_volume_source.c | 12 ++--- .../model/v1_rbd_persistent_volume_source.c | 16 +++---- kubernetes/model/v1_rbd_volume_source.c | 16 +++---- kubernetes/model/v1_replica_set.c | 8 ++-- kubernetes/model/v1_replica_set_condition.c | 8 ++-- kubernetes/model/v1_replica_set_list.c | 8 ++-- kubernetes/model/v1_replication_controller.c | 8 ++-- .../v1_replication_controller_condition.c | 8 ++-- .../model/v1_replication_controller_list.c | 8 ++-- kubernetes/model/v1_resource_attributes.c | 28 ++++++------ kubernetes/model/v1_resource_field_selector.c | 8 ++-- kubernetes/model/v1_resource_quota.c | 8 ++-- kubernetes/model/v1_resource_quota_list.c | 8 ++-- kubernetes/model/v1_role.c | 8 ++-- kubernetes/model/v1_role_binding.c | 8 ++-- kubernetes/model/v1_role_binding_list.c | 8 ++-- kubernetes/model/v1_role_list.c | 8 ++-- kubernetes/model/v1_rule_with_operations.c | 4 +- kubernetes/model/v1_runtime_class.c | 8 ++-- kubernetes/model/v1_runtime_class_list.c | 8 ++-- kubernetes/model/v1_scale.c | 8 ++-- .../v1_scale_io_persistent_volume_source.c | 20 ++++----- kubernetes/model/v1_scale_io_volume_source.c | 20 ++++----- kubernetes/model/v1_scale_status.c | 4 +- kubernetes/model/v1_se_linux_options.c | 16 +++---- kubernetes/model/v1_seccomp_profile.c | 4 +- kubernetes/model/v1_secret.c | 12 ++--- kubernetes/model/v1_secret_env_source.c | 4 +- kubernetes/model/v1_secret_key_selector.c | 4 +- kubernetes/model/v1_secret_list.c | 8 ++-- kubernetes/model/v1_secret_projection.c | 4 +- kubernetes/model/v1_secret_reference.c | 8 ++-- kubernetes/model/v1_secret_volume_source.c | 4 +- kubernetes/model/v1_security_context.c | 4 +- .../model/v1_self_subject_access_review.c | 8 ++-- .../model/v1_self_subject_rules_review.c | 8 ++-- .../model/v1_self_subject_rules_review_spec.c | 4 +- kubernetes/model/v1_service.c | 8 ++-- kubernetes/model/v1_service_account.c | 8 ++-- kubernetes/model/v1_service_account_list.c | 8 ++-- .../v1_service_account_token_projection.c | 4 +- kubernetes/model/v1_service_backend_port.c | 4 +- kubernetes/model/v1_service_list.c | 8 ++-- kubernetes/model/v1_service_port.c | 12 ++--- kubernetes/model/v1_service_spec.c | 36 +++++++-------- kubernetes/model/v1_stateful_set.c | 8 ++-- kubernetes/model/v1_stateful_set_condition.c | 8 ++-- kubernetes/model/v1_stateful_set_list.c | 8 ++-- ...persistent_volume_claim_retention_policy.c | 8 ++-- kubernetes/model/v1_stateful_set_spec.c | 4 +- kubernetes/model/v1_stateful_set_status.c | 8 ++-- .../model/v1_stateful_set_update_strategy.c | 4 +- kubernetes/model/v1_status.c | 20 ++++----- kubernetes/model/v1_status_cause.c | 12 ++--- kubernetes/model/v1_status_details.c | 16 +++---- kubernetes/model/v1_storage_class.c | 16 +++---- kubernetes/model/v1_storage_class_list.c | 8 ++-- .../v1_storage_os_persistent_volume_source.c | 12 ++--- .../model/v1_storage_os_volume_source.c | 12 ++--- kubernetes/model/v1_subject.c | 8 ++-- kubernetes/model/v1_subject_access_review.c | 8 ++-- .../model/v1_subject_access_review_spec.c | 8 ++-- .../model/v1_subject_access_review_status.c | 8 ++-- .../model/v1_subject_rules_review_status.c | 4 +- kubernetes/model/v1_taint.c | 4 +- kubernetes/model/v1_tcp_socket_action.c | 4 +- kubernetes/model/v1_token_review.c | 8 ++-- kubernetes/model/v1_token_review_spec.c | 4 +- kubernetes/model/v1_token_review_status.c | 4 +- kubernetes/model/v1_toleration.c | 16 +++---- .../model/v1_topology_spread_constraint.c | 8 ++-- .../model/v1_typed_local_object_reference.c | 4 +- kubernetes/model/v1_user_info.c | 8 ++-- kubernetes/model/v1_validating_webhook.c | 8 ++-- .../v1_validating_webhook_configuration.c | 8 ++-- ...v1_validating_webhook_configuration_list.c | 8 ++-- kubernetes/model/v1_validation_rule.c | 4 +- kubernetes/model/v1_volume_attachment.c | 8 ++-- kubernetes/model/v1_volume_attachment_list.c | 8 ++-- .../model/v1_volume_attachment_source.c | 4 +- kubernetes/model/v1_volume_error.c | 4 +- kubernetes/model/v1_volume_mount.c | 12 ++--- .../v1_vsphere_virtual_disk_volume_source.c | 12 ++--- .../v1_windows_security_context_options.c | 12 ++--- kubernetes/model/v1alpha1_cluster_cidr.c | 8 ++-- kubernetes/model/v1alpha1_cluster_cidr_list.c | 8 ++-- kubernetes/model/v1alpha1_cluster_cidr_spec.c | 8 ++-- .../model/v1alpha1_server_storage_version.c | 8 ++-- kubernetes/model/v1alpha1_storage_version.c | 8 ++-- .../v1alpha1_storage_version_condition.c | 4 +- .../model/v1alpha1_storage_version_list.c | 8 ++-- .../model/v1alpha1_storage_version_status.c | 4 +- .../model/v1beta1_csi_storage_capacity.c | 16 +++---- .../model/v1beta1_csi_storage_capacity_list.c | 8 ++-- kubernetes/model/v1beta1_flow_schema.c | 8 ++-- .../model/v1beta1_flow_schema_condition.c | 16 +++---- kubernetes/model/v1beta1_flow_schema_list.c | 8 ++-- .../v1beta1_priority_level_configuration.c | 8 ++-- ...1_priority_level_configuration_condition.c | 16 +++---- ...1beta1_priority_level_configuration_list.c | 8 ++-- kubernetes/model/v1beta2_flow_schema.c | 8 ++-- .../model/v1beta2_flow_schema_condition.c | 16 +++---- kubernetes/model/v1beta2_flow_schema_list.c | 8 ++-- .../v1beta2_priority_level_configuration.c | 8 ++-- ...2_priority_level_configuration_condition.c | 16 +++---- ...1beta2_priority_level_configuration_list.c | 8 ++-- .../model/v2_cross_version_object_reference.c | 4 +- .../model/v2_horizontal_pod_autoscaler.c | 8 ++-- .../v2_horizontal_pod_autoscaler_condition.c | 8 ++-- .../model/v2_horizontal_pod_autoscaler_list.c | 8 ++-- kubernetes/model/v2_hpa_scaling_rules.c | 4 +- kubernetes/model/v2_metric_target.c | 8 ++-- kubernetes/model/v2_metric_value_status.c | 8 ++-- .../v2beta2_cross_version_object_reference.c | 4 +- .../model/v2beta2_horizontal_pod_autoscaler.c | 8 ++-- ...eta2_horizontal_pod_autoscaler_condition.c | 8 ++-- .../v2beta2_horizontal_pod_autoscaler_list.c | 8 ++-- kubernetes/model/v2beta2_hpa_scaling_rules.c | 4 +- kubernetes/model/v2beta2_metric_target.c | 8 ++-- .../model/v2beta2_metric_value_status.c | 8 ++-- 308 files changed, 1331 insertions(+), 1331 deletions(-) diff --git a/kubernetes/external/cJSON.c b/kubernetes/external/cJSON.c index 2139b5ef..afc9ff0d 100644 --- a/kubernetes/external/cJSON.c +++ b/kubernetes/external/cJSON.c @@ -125,7 +125,7 @@ typedef struct internal_hooks } internal_hooks; #if defined(_MSC_VER) -/* work around MSVC error C2322: '...' address of dillimport '...' is not static */ +/* work around MSVC error C2322: '...' address of dllimport '...' is not static */ static void *internal_malloc(size_t size) { return malloc(size); diff --git a/kubernetes/model/admissionregistration_v1_service_reference.c b/kubernetes/model/admissionregistration_v1_service_reference.c index 43d3dd9b..ee78bbca 100644 --- a/kubernetes/model/admissionregistration_v1_service_reference.c +++ b/kubernetes/model/admissionregistration_v1_service_reference.c @@ -119,7 +119,7 @@ admissionregistration_v1_service_reference_t *admissionregistration_v1_service_r // admissionregistration_v1_service_reference->path cJSON *path = cJSON_GetObjectItemCaseSensitive(admissionregistration_v1_service_referenceJSON, "path"); if (path) { - if(!cJSON_IsString(path)) + if(!cJSON_IsString(path) && !cJSON_IsNull(path)) { goto end; //String } @@ -138,7 +138,7 @@ admissionregistration_v1_service_reference_t *admissionregistration_v1_service_r admissionregistration_v1_service_reference_local_var = admissionregistration_v1_service_reference_create ( strdup(name->valuestring), strdup(_namespace->valuestring), - path ? strdup(path->valuestring) : NULL, + path && !cJSON_IsNull(path) ? strdup(path->valuestring) : NULL, port ? port->valuedouble : 0 ); diff --git a/kubernetes/model/admissionregistration_v1_webhook_client_config.c b/kubernetes/model/admissionregistration_v1_webhook_client_config.c index de4a3e4c..8b172a8a 100644 --- a/kubernetes/model/admissionregistration_v1_webhook_client_config.c +++ b/kubernetes/model/admissionregistration_v1_webhook_client_config.c @@ -106,7 +106,7 @@ admissionregistration_v1_webhook_client_config_t *admissionregistration_v1_webho // admissionregistration_v1_webhook_client_config->url cJSON *url = cJSON_GetObjectItemCaseSensitive(admissionregistration_v1_webhook_client_configJSON, "url"); if (url) { - if(!cJSON_IsString(url)) + if(!cJSON_IsString(url) && !cJSON_IsNull(url)) { goto end; //String } @@ -116,7 +116,7 @@ admissionregistration_v1_webhook_client_config_t *admissionregistration_v1_webho admissionregistration_v1_webhook_client_config_local_var = admissionregistration_v1_webhook_client_config_create ( ca_bundle ? strdup(ca_bundle->valuestring) : NULL, service ? service_local_nonprim : NULL, - url ? strdup(url->valuestring) : NULL + url && !cJSON_IsNull(url) ? strdup(url->valuestring) : NULL ); return admissionregistration_v1_webhook_client_config_local_var; diff --git a/kubernetes/model/apiextensions_v1_service_reference.c b/kubernetes/model/apiextensions_v1_service_reference.c index 21e7574e..be40aa05 100644 --- a/kubernetes/model/apiextensions_v1_service_reference.c +++ b/kubernetes/model/apiextensions_v1_service_reference.c @@ -119,7 +119,7 @@ apiextensions_v1_service_reference_t *apiextensions_v1_service_reference_parseFr // apiextensions_v1_service_reference->path cJSON *path = cJSON_GetObjectItemCaseSensitive(apiextensions_v1_service_referenceJSON, "path"); if (path) { - if(!cJSON_IsString(path)) + if(!cJSON_IsString(path) && !cJSON_IsNull(path)) { goto end; //String } @@ -138,7 +138,7 @@ apiextensions_v1_service_reference_t *apiextensions_v1_service_reference_parseFr apiextensions_v1_service_reference_local_var = apiextensions_v1_service_reference_create ( strdup(name->valuestring), strdup(_namespace->valuestring), - path ? strdup(path->valuestring) : NULL, + path && !cJSON_IsNull(path) ? strdup(path->valuestring) : NULL, port ? port->valuedouble : 0 ); diff --git a/kubernetes/model/apiextensions_v1_webhook_client_config.c b/kubernetes/model/apiextensions_v1_webhook_client_config.c index 825b9b3f..a7a4c0b2 100644 --- a/kubernetes/model/apiextensions_v1_webhook_client_config.c +++ b/kubernetes/model/apiextensions_v1_webhook_client_config.c @@ -106,7 +106,7 @@ apiextensions_v1_webhook_client_config_t *apiextensions_v1_webhook_client_config // apiextensions_v1_webhook_client_config->url cJSON *url = cJSON_GetObjectItemCaseSensitive(apiextensions_v1_webhook_client_configJSON, "url"); if (url) { - if(!cJSON_IsString(url)) + if(!cJSON_IsString(url) && !cJSON_IsNull(url)) { goto end; //String } @@ -116,7 +116,7 @@ apiextensions_v1_webhook_client_config_t *apiextensions_v1_webhook_client_config apiextensions_v1_webhook_client_config_local_var = apiextensions_v1_webhook_client_config_create ( ca_bundle ? strdup(ca_bundle->valuestring) : NULL, service ? service_local_nonprim : NULL, - url ? strdup(url->valuestring) : NULL + url && !cJSON_IsNull(url) ? strdup(url->valuestring) : NULL ); return apiextensions_v1_webhook_client_config_local_var; diff --git a/kubernetes/model/apiregistration_v1_service_reference.c b/kubernetes/model/apiregistration_v1_service_reference.c index e8b496d1..25321ce3 100644 --- a/kubernetes/model/apiregistration_v1_service_reference.c +++ b/kubernetes/model/apiregistration_v1_service_reference.c @@ -79,7 +79,7 @@ apiregistration_v1_service_reference_t *apiregistration_v1_service_reference_par // apiregistration_v1_service_reference->name cJSON *name = cJSON_GetObjectItemCaseSensitive(apiregistration_v1_service_referenceJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -88,7 +88,7 @@ apiregistration_v1_service_reference_t *apiregistration_v1_service_reference_par // apiregistration_v1_service_reference->_namespace cJSON *_namespace = cJSON_GetObjectItemCaseSensitive(apiregistration_v1_service_referenceJSON, "namespace"); if (_namespace) { - if(!cJSON_IsString(_namespace)) + if(!cJSON_IsString(_namespace) && !cJSON_IsNull(_namespace)) { goto end; //String } @@ -105,8 +105,8 @@ apiregistration_v1_service_reference_t *apiregistration_v1_service_reference_par apiregistration_v1_service_reference_local_var = apiregistration_v1_service_reference_create ( - name ? strdup(name->valuestring) : NULL, - _namespace ? strdup(_namespace->valuestring) : NULL, + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, + _namespace && !cJSON_IsNull(_namespace) ? strdup(_namespace->valuestring) : NULL, port ? port->valuedouble : 0 ); diff --git a/kubernetes/model/authentication_v1_token_request.c b/kubernetes/model/authentication_v1_token_request.c index 1d6ebfac..273228de 100644 --- a/kubernetes/model/authentication_v1_token_request.c +++ b/kubernetes/model/authentication_v1_token_request.c @@ -136,7 +136,7 @@ authentication_v1_token_request_t *authentication_v1_token_request_parseFromJSON // authentication_v1_token_request->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(authentication_v1_token_requestJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -145,7 +145,7 @@ authentication_v1_token_request_t *authentication_v1_token_request_parseFromJSON // authentication_v1_token_request->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(authentication_v1_token_requestJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -174,8 +174,8 @@ authentication_v1_token_request_t *authentication_v1_token_request_parseFromJSON authentication_v1_token_request_local_var = authentication_v1_token_request_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec_local_nonprim, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/core_v1_endpoint_port.c b/kubernetes/model/core_v1_endpoint_port.c index f68b9d01..75e4c9a3 100644 --- a/kubernetes/model/core_v1_endpoint_port.c +++ b/kubernetes/model/core_v1_endpoint_port.c @@ -94,7 +94,7 @@ core_v1_endpoint_port_t *core_v1_endpoint_port_parseFromJSON(cJSON *core_v1_endp // core_v1_endpoint_port->app_protocol cJSON *app_protocol = cJSON_GetObjectItemCaseSensitive(core_v1_endpoint_portJSON, "appProtocol"); if (app_protocol) { - if(!cJSON_IsString(app_protocol)) + if(!cJSON_IsString(app_protocol) && !cJSON_IsNull(app_protocol)) { goto end; //String } @@ -103,7 +103,7 @@ core_v1_endpoint_port_t *core_v1_endpoint_port_parseFromJSON(cJSON *core_v1_endp // core_v1_endpoint_port->name cJSON *name = cJSON_GetObjectItemCaseSensitive(core_v1_endpoint_portJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -124,7 +124,7 @@ core_v1_endpoint_port_t *core_v1_endpoint_port_parseFromJSON(cJSON *core_v1_endp // core_v1_endpoint_port->protocol cJSON *protocol = cJSON_GetObjectItemCaseSensitive(core_v1_endpoint_portJSON, "protocol"); if (protocol) { - if(!cJSON_IsString(protocol)) + if(!cJSON_IsString(protocol) && !cJSON_IsNull(protocol)) { goto end; //String } @@ -132,10 +132,10 @@ core_v1_endpoint_port_t *core_v1_endpoint_port_parseFromJSON(cJSON *core_v1_endp core_v1_endpoint_port_local_var = core_v1_endpoint_port_create ( - app_protocol ? strdup(app_protocol->valuestring) : NULL, - name ? strdup(name->valuestring) : NULL, + app_protocol && !cJSON_IsNull(app_protocol) ? strdup(app_protocol->valuestring) : NULL, + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, port->valuedouble, - protocol ? strdup(protocol->valuestring) : NULL + protocol && !cJSON_IsNull(protocol) ? strdup(protocol->valuestring) : NULL ); return core_v1_endpoint_port_local_var; diff --git a/kubernetes/model/core_v1_event.c b/kubernetes/model/core_v1_event.c index 9f95d47f..5729a317 100644 --- a/kubernetes/model/core_v1_event.c +++ b/kubernetes/model/core_v1_event.c @@ -317,7 +317,7 @@ core_v1_event_t *core_v1_event_parseFromJSON(cJSON *core_v1_eventJSON){ // core_v1_event->action cJSON *action = cJSON_GetObjectItemCaseSensitive(core_v1_eventJSON, "action"); if (action) { - if(!cJSON_IsString(action)) + if(!cJSON_IsString(action) && !cJSON_IsNull(action)) { goto end; //String } @@ -326,7 +326,7 @@ core_v1_event_t *core_v1_event_parseFromJSON(cJSON *core_v1_eventJSON){ // core_v1_event->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(core_v1_eventJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -371,7 +371,7 @@ core_v1_event_t *core_v1_event_parseFromJSON(cJSON *core_v1_eventJSON){ // core_v1_event->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(core_v1_eventJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -389,7 +389,7 @@ core_v1_event_t *core_v1_event_parseFromJSON(cJSON *core_v1_eventJSON){ // core_v1_event->message cJSON *message = cJSON_GetObjectItemCaseSensitive(core_v1_eventJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -407,7 +407,7 @@ core_v1_event_t *core_v1_event_parseFromJSON(cJSON *core_v1_eventJSON){ // core_v1_event->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(core_v1_eventJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -422,7 +422,7 @@ core_v1_event_t *core_v1_event_parseFromJSON(cJSON *core_v1_eventJSON){ // core_v1_event->reporting_component cJSON *reporting_component = cJSON_GetObjectItemCaseSensitive(core_v1_eventJSON, "reportingComponent"); if (reporting_component) { - if(!cJSON_IsString(reporting_component)) + if(!cJSON_IsString(reporting_component) && !cJSON_IsNull(reporting_component)) { goto end; //String } @@ -431,7 +431,7 @@ core_v1_event_t *core_v1_event_parseFromJSON(cJSON *core_v1_eventJSON){ // core_v1_event->reporting_instance cJSON *reporting_instance = cJSON_GetObjectItemCaseSensitive(core_v1_eventJSON, "reportingInstance"); if (reporting_instance) { - if(!cJSON_IsString(reporting_instance)) + if(!cJSON_IsString(reporting_instance) && !cJSON_IsNull(reporting_instance)) { goto end; //String } @@ -452,7 +452,7 @@ core_v1_event_t *core_v1_event_parseFromJSON(cJSON *core_v1_eventJSON){ // core_v1_event->type cJSON *type = cJSON_GetObjectItemCaseSensitive(core_v1_eventJSON, "type"); if (type) { - if(!cJSON_IsString(type)) + if(!cJSON_IsString(type) && !cJSON_IsNull(type)) { goto end; //String } @@ -460,23 +460,23 @@ core_v1_event_t *core_v1_event_parseFromJSON(cJSON *core_v1_eventJSON){ core_v1_event_local_var = core_v1_event_create ( - action ? strdup(action->valuestring) : NULL, - api_version ? strdup(api_version->valuestring) : NULL, + action && !cJSON_IsNull(action) ? strdup(action->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, count ? count->valuedouble : 0, event_time && !cJSON_IsNull(event_time) ? strdup(event_time->valuestring) : NULL, first_timestamp && !cJSON_IsNull(first_timestamp) ? strdup(first_timestamp->valuestring) : NULL, involved_object_local_nonprim, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, last_timestamp && !cJSON_IsNull(last_timestamp) ? strdup(last_timestamp->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, metadata_local_nonprim, - reason ? strdup(reason->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, related ? related_local_nonprim : NULL, - reporting_component ? strdup(reporting_component->valuestring) : NULL, - reporting_instance ? strdup(reporting_instance->valuestring) : NULL, + reporting_component && !cJSON_IsNull(reporting_component) ? strdup(reporting_component->valuestring) : NULL, + reporting_instance && !cJSON_IsNull(reporting_instance) ? strdup(reporting_instance->valuestring) : NULL, series ? series_local_nonprim : NULL, source ? source_local_nonprim : NULL, - type ? strdup(type->valuestring) : NULL + type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL ); return core_v1_event_local_var; diff --git a/kubernetes/model/core_v1_event_list.c b/kubernetes/model/core_v1_event_list.c index c881113e..5e2a44b5 100644 --- a/kubernetes/model/core_v1_event_list.c +++ b/kubernetes/model/core_v1_event_list.c @@ -124,7 +124,7 @@ core_v1_event_list_t *core_v1_event_list_parseFromJSON(cJSON *core_v1_event_list // core_v1_event_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(core_v1_event_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ core_v1_event_list_t *core_v1_event_list_parseFromJSON(cJSON *core_v1_event_list // core_v1_event_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(core_v1_event_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ core_v1_event_list_t *core_v1_event_list_parseFromJSON(cJSON *core_v1_event_list core_v1_event_list_local_var = core_v1_event_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/discovery_v1_endpoint_port.c b/kubernetes/model/discovery_v1_endpoint_port.c index 217c8068..91ac8e7c 100644 --- a/kubernetes/model/discovery_v1_endpoint_port.c +++ b/kubernetes/model/discovery_v1_endpoint_port.c @@ -93,7 +93,7 @@ discovery_v1_endpoint_port_t *discovery_v1_endpoint_port_parseFromJSON(cJSON *di // discovery_v1_endpoint_port->app_protocol cJSON *app_protocol = cJSON_GetObjectItemCaseSensitive(discovery_v1_endpoint_portJSON, "appProtocol"); if (app_protocol) { - if(!cJSON_IsString(app_protocol)) + if(!cJSON_IsString(app_protocol) && !cJSON_IsNull(app_protocol)) { goto end; //String } @@ -102,7 +102,7 @@ discovery_v1_endpoint_port_t *discovery_v1_endpoint_port_parseFromJSON(cJSON *di // discovery_v1_endpoint_port->name cJSON *name = cJSON_GetObjectItemCaseSensitive(discovery_v1_endpoint_portJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -120,7 +120,7 @@ discovery_v1_endpoint_port_t *discovery_v1_endpoint_port_parseFromJSON(cJSON *di // discovery_v1_endpoint_port->protocol cJSON *protocol = cJSON_GetObjectItemCaseSensitive(discovery_v1_endpoint_portJSON, "protocol"); if (protocol) { - if(!cJSON_IsString(protocol)) + if(!cJSON_IsString(protocol) && !cJSON_IsNull(protocol)) { goto end; //String } @@ -128,10 +128,10 @@ discovery_v1_endpoint_port_t *discovery_v1_endpoint_port_parseFromJSON(cJSON *di discovery_v1_endpoint_port_local_var = discovery_v1_endpoint_port_create ( - app_protocol ? strdup(app_protocol->valuestring) : NULL, - name ? strdup(name->valuestring) : NULL, + app_protocol && !cJSON_IsNull(app_protocol) ? strdup(app_protocol->valuestring) : NULL, + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, port ? port->valuedouble : 0, - protocol ? strdup(protocol->valuestring) : NULL + protocol && !cJSON_IsNull(protocol) ? strdup(protocol->valuestring) : NULL ); return discovery_v1_endpoint_port_local_var; diff --git a/kubernetes/model/events_v1_event.c b/kubernetes/model/events_v1_event.c index 05bb87fa..59a4e2d8 100644 --- a/kubernetes/model/events_v1_event.c +++ b/kubernetes/model/events_v1_event.c @@ -316,7 +316,7 @@ events_v1_event_t *events_v1_event_parseFromJSON(cJSON *events_v1_eventJSON){ // events_v1_event->action cJSON *action = cJSON_GetObjectItemCaseSensitive(events_v1_eventJSON, "action"); if (action) { - if(!cJSON_IsString(action)) + if(!cJSON_IsString(action) && !cJSON_IsNull(action)) { goto end; //String } @@ -325,7 +325,7 @@ events_v1_event_t *events_v1_event_parseFromJSON(cJSON *events_v1_eventJSON){ // events_v1_event->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(events_v1_eventJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -379,7 +379,7 @@ events_v1_event_t *events_v1_event_parseFromJSON(cJSON *events_v1_eventJSON){ // events_v1_event->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(events_v1_eventJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -394,7 +394,7 @@ events_v1_event_t *events_v1_event_parseFromJSON(cJSON *events_v1_eventJSON){ // events_v1_event->note cJSON *note = cJSON_GetObjectItemCaseSensitive(events_v1_eventJSON, "note"); if (note) { - if(!cJSON_IsString(note)) + if(!cJSON_IsString(note) && !cJSON_IsNull(note)) { goto end; //String } @@ -403,7 +403,7 @@ events_v1_event_t *events_v1_event_parseFromJSON(cJSON *events_v1_eventJSON){ // events_v1_event->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(events_v1_eventJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -424,7 +424,7 @@ events_v1_event_t *events_v1_event_parseFromJSON(cJSON *events_v1_eventJSON){ // events_v1_event->reporting_controller cJSON *reporting_controller = cJSON_GetObjectItemCaseSensitive(events_v1_eventJSON, "reportingController"); if (reporting_controller) { - if(!cJSON_IsString(reporting_controller)) + if(!cJSON_IsString(reporting_controller) && !cJSON_IsNull(reporting_controller)) { goto end; //String } @@ -433,7 +433,7 @@ events_v1_event_t *events_v1_event_parseFromJSON(cJSON *events_v1_eventJSON){ // events_v1_event->reporting_instance cJSON *reporting_instance = cJSON_GetObjectItemCaseSensitive(events_v1_eventJSON, "reportingInstance"); if (reporting_instance) { - if(!cJSON_IsString(reporting_instance)) + if(!cJSON_IsString(reporting_instance) && !cJSON_IsNull(reporting_instance)) { goto end; //String } @@ -448,7 +448,7 @@ events_v1_event_t *events_v1_event_parseFromJSON(cJSON *events_v1_eventJSON){ // events_v1_event->type cJSON *type = cJSON_GetObjectItemCaseSensitive(events_v1_eventJSON, "type"); if (type) { - if(!cJSON_IsString(type)) + if(!cJSON_IsString(type) && !cJSON_IsNull(type)) { goto end; //String } @@ -456,23 +456,23 @@ events_v1_event_t *events_v1_event_parseFromJSON(cJSON *events_v1_eventJSON){ events_v1_event_local_var = events_v1_event_create ( - action ? strdup(action->valuestring) : NULL, - api_version ? strdup(api_version->valuestring) : NULL, + action && !cJSON_IsNull(action) ? strdup(action->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, deprecated_count ? deprecated_count->valuedouble : 0, deprecated_first_timestamp && !cJSON_IsNull(deprecated_first_timestamp) ? strdup(deprecated_first_timestamp->valuestring) : NULL, deprecated_last_timestamp && !cJSON_IsNull(deprecated_last_timestamp) ? strdup(deprecated_last_timestamp->valuestring) : NULL, deprecated_source ? deprecated_source_local_nonprim : NULL, strdup(event_time->valuestring), - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, - note ? strdup(note->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, + note && !cJSON_IsNull(note) ? strdup(note->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, regarding ? regarding_local_nonprim : NULL, related ? related_local_nonprim : NULL, - reporting_controller ? strdup(reporting_controller->valuestring) : NULL, - reporting_instance ? strdup(reporting_instance->valuestring) : NULL, + reporting_controller && !cJSON_IsNull(reporting_controller) ? strdup(reporting_controller->valuestring) : NULL, + reporting_instance && !cJSON_IsNull(reporting_instance) ? strdup(reporting_instance->valuestring) : NULL, series ? series_local_nonprim : NULL, - type ? strdup(type->valuestring) : NULL + type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL ); return events_v1_event_local_var; diff --git a/kubernetes/model/events_v1_event_list.c b/kubernetes/model/events_v1_event_list.c index c847309e..44144285 100644 --- a/kubernetes/model/events_v1_event_list.c +++ b/kubernetes/model/events_v1_event_list.c @@ -124,7 +124,7 @@ events_v1_event_list_t *events_v1_event_list_parseFromJSON(cJSON *events_v1_even // events_v1_event_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(events_v1_event_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ events_v1_event_list_t *events_v1_event_list_parseFromJSON(cJSON *events_v1_even // events_v1_event_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(events_v1_event_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ events_v1_event_list_t *events_v1_event_list_parseFromJSON(cJSON *events_v1_even events_v1_event_list_local_var = events_v1_event_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_api_group.c b/kubernetes/model/v1_api_group.c index 27a66bc2..9a9d98d4 100644 --- a/kubernetes/model/v1_api_group.c +++ b/kubernetes/model/v1_api_group.c @@ -171,7 +171,7 @@ v1_api_group_t *v1_api_group_parseFromJSON(cJSON *v1_api_groupJSON){ // v1_api_group->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_api_groupJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -180,7 +180,7 @@ v1_api_group_t *v1_api_group_parseFromJSON(cJSON *v1_api_groupJSON){ // v1_api_group->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_api_groupJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -251,8 +251,8 @@ v1_api_group_t *v1_api_group_parseFromJSON(cJSON *v1_api_groupJSON){ v1_api_group_local_var = v1_api_group_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, strdup(name->valuestring), preferred_version ? preferred_version_local_nonprim : NULL, server_address_by_client_cidrs ? server_address_by_client_cidrsList : NULL, diff --git a/kubernetes/model/v1_api_group_list.c b/kubernetes/model/v1_api_group_list.c index 3c228ed3..67744251 100644 --- a/kubernetes/model/v1_api_group_list.c +++ b/kubernetes/model/v1_api_group_list.c @@ -102,7 +102,7 @@ v1_api_group_list_t *v1_api_group_list_parseFromJSON(cJSON *v1_api_group_listJSO // v1_api_group_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_api_group_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -135,7 +135,7 @@ v1_api_group_list_t *v1_api_group_list_parseFromJSON(cJSON *v1_api_group_listJSO // v1_api_group_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_api_group_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -143,9 +143,9 @@ v1_api_group_list_t *v1_api_group_list_parseFromJSON(cJSON *v1_api_group_listJSO v1_api_group_list_local_var = v1_api_group_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, groupsList, - kind ? strdup(kind->valuestring) : NULL + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL ); return v1_api_group_list_local_var; diff --git a/kubernetes/model/v1_api_resource.c b/kubernetes/model/v1_api_resource.c index 050cbf95..a295132c 100644 --- a/kubernetes/model/v1_api_resource.c +++ b/kubernetes/model/v1_api_resource.c @@ -246,7 +246,7 @@ v1_api_resource_t *v1_api_resource_parseFromJSON(cJSON *v1_api_resourceJSON){ // v1_api_resource->group cJSON *group = cJSON_GetObjectItemCaseSensitive(v1_api_resourceJSON, "group"); if (group) { - if(!cJSON_IsString(group)) + if(!cJSON_IsString(group) && !cJSON_IsNull(group)) { goto end; //String } @@ -322,7 +322,7 @@ v1_api_resource_t *v1_api_resource_parseFromJSON(cJSON *v1_api_resourceJSON){ // v1_api_resource->storage_version_hash cJSON *storage_version_hash = cJSON_GetObjectItemCaseSensitive(v1_api_resourceJSON, "storageVersionHash"); if (storage_version_hash) { - if(!cJSON_IsString(storage_version_hash)) + if(!cJSON_IsString(storage_version_hash) && !cJSON_IsNull(storage_version_hash)) { goto end; //String } @@ -353,7 +353,7 @@ v1_api_resource_t *v1_api_resource_parseFromJSON(cJSON *v1_api_resourceJSON){ // v1_api_resource->version cJSON *version = cJSON_GetObjectItemCaseSensitive(v1_api_resourceJSON, "version"); if (version) { - if(!cJSON_IsString(version)) + if(!cJSON_IsString(version) && !cJSON_IsNull(version)) { goto end; //String } @@ -362,15 +362,15 @@ v1_api_resource_t *v1_api_resource_parseFromJSON(cJSON *v1_api_resourceJSON){ v1_api_resource_local_var = v1_api_resource_create ( categories ? categoriesList : NULL, - group ? strdup(group->valuestring) : NULL, + group && !cJSON_IsNull(group) ? strdup(group->valuestring) : NULL, strdup(kind->valuestring), strdup(name->valuestring), namespaced->valueint, short_names ? short_namesList : NULL, strdup(singular_name->valuestring), - storage_version_hash ? strdup(storage_version_hash->valuestring) : NULL, + storage_version_hash && !cJSON_IsNull(storage_version_hash) ? strdup(storage_version_hash->valuestring) : NULL, verbsList, - version ? strdup(version->valuestring) : NULL + version && !cJSON_IsNull(version) ? strdup(version->valuestring) : NULL ); return v1_api_resource_local_var; diff --git a/kubernetes/model/v1_api_resource_list.c b/kubernetes/model/v1_api_resource_list.c index 6d015f40..4c363f20 100644 --- a/kubernetes/model/v1_api_resource_list.c +++ b/kubernetes/model/v1_api_resource_list.c @@ -117,7 +117,7 @@ v1_api_resource_list_t *v1_api_resource_list_parseFromJSON(cJSON *v1_api_resourc // v1_api_resource_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_api_resource_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -138,7 +138,7 @@ v1_api_resource_list_t *v1_api_resource_list_parseFromJSON(cJSON *v1_api_resourc // v1_api_resource_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_api_resource_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,9 +170,9 @@ v1_api_resource_list_t *v1_api_resource_list_parseFromJSON(cJSON *v1_api_resourc v1_api_resource_list_local_var = v1_api_resource_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, strdup(group_version->valuestring), - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, resourcesList ); diff --git a/kubernetes/model/v1_api_service.c b/kubernetes/model/v1_api_service.c index 89e0a021..c8f75998 100644 --- a/kubernetes/model/v1_api_service.c +++ b/kubernetes/model/v1_api_service.c @@ -135,7 +135,7 @@ v1_api_service_t *v1_api_service_parseFromJSON(cJSON *v1_api_serviceJSON){ // v1_api_service->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_api_serviceJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1_api_service_t *v1_api_service_parseFromJSON(cJSON *v1_api_serviceJSON){ // v1_api_service->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_api_serviceJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1_api_service_t *v1_api_service_parseFromJSON(cJSON *v1_api_serviceJSON){ v1_api_service_local_var = v1_api_service_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_api_service_condition.c b/kubernetes/model/v1_api_service_condition.c index 21a8fbc8..a27ccf17 100644 --- a/kubernetes/model/v1_api_service_condition.c +++ b/kubernetes/model/v1_api_service_condition.c @@ -122,7 +122,7 @@ v1_api_service_condition_t *v1_api_service_condition_parseFromJSON(cJSON *v1_api // v1_api_service_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_api_service_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -131,7 +131,7 @@ v1_api_service_condition_t *v1_api_service_condition_parseFromJSON(cJSON *v1_api // v1_api_service_condition->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_api_service_conditionJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -164,8 +164,8 @@ v1_api_service_condition_t *v1_api_service_condition_parseFromJSON(cJSON *v1_api v1_api_service_condition_local_var = v1_api_service_condition_create ( last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), strdup(type->valuestring) ); diff --git a/kubernetes/model/v1_api_service_list.c b/kubernetes/model/v1_api_service_list.c index 25541361..ac102c65 100644 --- a/kubernetes/model/v1_api_service_list.c +++ b/kubernetes/model/v1_api_service_list.c @@ -124,7 +124,7 @@ v1_api_service_list_t *v1_api_service_list_parseFromJSON(cJSON *v1_api_service_l // v1_api_service_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_api_service_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_api_service_list_t *v1_api_service_list_parseFromJSON(cJSON *v1_api_service_l // v1_api_service_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_api_service_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_api_service_list_t *v1_api_service_list_parseFromJSON(cJSON *v1_api_service_l v1_api_service_list_local_var = v1_api_service_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_api_service_spec.c b/kubernetes/model/v1_api_service_spec.c index faf26e46..c2ec8f4e 100644 --- a/kubernetes/model/v1_api_service_spec.c +++ b/kubernetes/model/v1_api_service_spec.c @@ -146,7 +146,7 @@ v1_api_service_spec_t *v1_api_service_spec_parseFromJSON(cJSON *v1_api_service_s // v1_api_service_spec->group cJSON *group = cJSON_GetObjectItemCaseSensitive(v1_api_service_specJSON, "group"); if (group) { - if(!cJSON_IsString(group)) + if(!cJSON_IsString(group) && !cJSON_IsNull(group)) { goto end; //String } @@ -182,7 +182,7 @@ v1_api_service_spec_t *v1_api_service_spec_parseFromJSON(cJSON *v1_api_service_s // v1_api_service_spec->version cJSON *version = cJSON_GetObjectItemCaseSensitive(v1_api_service_specJSON, "version"); if (version) { - if(!cJSON_IsString(version)) + if(!cJSON_IsString(version) && !cJSON_IsNull(version)) { goto end; //String } @@ -203,11 +203,11 @@ v1_api_service_spec_t *v1_api_service_spec_parseFromJSON(cJSON *v1_api_service_s v1_api_service_spec_local_var = v1_api_service_spec_create ( ca_bundle ? strdup(ca_bundle->valuestring) : NULL, - group ? strdup(group->valuestring) : NULL, + group && !cJSON_IsNull(group) ? strdup(group->valuestring) : NULL, group_priority_minimum->valuedouble, insecure_skip_tls_verify ? insecure_skip_tls_verify->valueint : 0, service ? service_local_nonprim : NULL, - version ? strdup(version->valuestring) : NULL, + version && !cJSON_IsNull(version) ? strdup(version->valuestring) : NULL, version_priority->valuedouble ); diff --git a/kubernetes/model/v1_api_versions.c b/kubernetes/model/v1_api_versions.c index 9a068709..6f5e539e 100644 --- a/kubernetes/model/v1_api_versions.c +++ b/kubernetes/model/v1_api_versions.c @@ -132,7 +132,7 @@ v1_api_versions_t *v1_api_versions_parseFromJSON(cJSON *v1_api_versionsJSON){ // v1_api_versions->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_api_versionsJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -141,7 +141,7 @@ v1_api_versions_t *v1_api_versions_parseFromJSON(cJSON *v1_api_versionsJSON){ // v1_api_versions->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_api_versionsJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -195,8 +195,8 @@ v1_api_versions_t *v1_api_versions_parseFromJSON(cJSON *v1_api_versionsJSON){ v1_api_versions_local_var = v1_api_versions_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, server_address_by_client_cidrsList, versionsList ); diff --git a/kubernetes/model/v1_aws_elastic_block_store_volume_source.c b/kubernetes/model/v1_aws_elastic_block_store_volume_source.c index 30178356..ce6f760b 100644 --- a/kubernetes/model/v1_aws_elastic_block_store_volume_source.c +++ b/kubernetes/model/v1_aws_elastic_block_store_volume_source.c @@ -90,7 +90,7 @@ v1_aws_elastic_block_store_volume_source_t *v1_aws_elastic_block_store_volume_so // v1_aws_elastic_block_store_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_aws_elastic_block_store_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -128,7 +128,7 @@ v1_aws_elastic_block_store_volume_source_t *v1_aws_elastic_block_store_volume_so v1_aws_elastic_block_store_volume_source_local_var = v1_aws_elastic_block_store_volume_source_create ( - fs_type ? strdup(fs_type->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, partition ? partition->valuedouble : 0, read_only ? read_only->valueint : 0, strdup(volume_id->valuestring) diff --git a/kubernetes/model/v1_azure_disk_volume_source.c b/kubernetes/model/v1_azure_disk_volume_source.c index e1e61900..558e6413 100644 --- a/kubernetes/model/v1_azure_disk_volume_source.c +++ b/kubernetes/model/v1_azure_disk_volume_source.c @@ -123,7 +123,7 @@ v1_azure_disk_volume_source_t *v1_azure_disk_volume_source_parseFromJSON(cJSON * // v1_azure_disk_volume_source->caching_mode cJSON *caching_mode = cJSON_GetObjectItemCaseSensitive(v1_azure_disk_volume_sourceJSON, "cachingMode"); if (caching_mode) { - if(!cJSON_IsString(caching_mode)) + if(!cJSON_IsString(caching_mode) && !cJSON_IsNull(caching_mode)) { goto end; //String } @@ -156,7 +156,7 @@ v1_azure_disk_volume_source_t *v1_azure_disk_volume_source_parseFromJSON(cJSON * // v1_azure_disk_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_azure_disk_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -165,7 +165,7 @@ v1_azure_disk_volume_source_t *v1_azure_disk_volume_source_parseFromJSON(cJSON * // v1_azure_disk_volume_source->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_azure_disk_volume_sourceJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -182,11 +182,11 @@ v1_azure_disk_volume_source_t *v1_azure_disk_volume_source_parseFromJSON(cJSON * v1_azure_disk_volume_source_local_var = v1_azure_disk_volume_source_create ( - caching_mode ? strdup(caching_mode->valuestring) : NULL, + caching_mode && !cJSON_IsNull(caching_mode) ? strdup(caching_mode->valuestring) : NULL, strdup(disk_name->valuestring), strdup(disk_uri->valuestring), - fs_type ? strdup(fs_type->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, read_only ? read_only->valueint : 0 ); diff --git a/kubernetes/model/v1_azure_file_persistent_volume_source.c b/kubernetes/model/v1_azure_file_persistent_volume_source.c index 0663c1aa..203f7151 100644 --- a/kubernetes/model/v1_azure_file_persistent_volume_source.c +++ b/kubernetes/model/v1_azure_file_persistent_volume_source.c @@ -116,7 +116,7 @@ v1_azure_file_persistent_volume_source_t *v1_azure_file_persistent_volume_source // v1_azure_file_persistent_volume_source->secret_namespace cJSON *secret_namespace = cJSON_GetObjectItemCaseSensitive(v1_azure_file_persistent_volume_sourceJSON, "secretNamespace"); if (secret_namespace) { - if(!cJSON_IsString(secret_namespace)) + if(!cJSON_IsString(secret_namespace) && !cJSON_IsNull(secret_namespace)) { goto end; //String } @@ -138,7 +138,7 @@ v1_azure_file_persistent_volume_source_t *v1_azure_file_persistent_volume_source v1_azure_file_persistent_volume_source_local_var = v1_azure_file_persistent_volume_source_create ( read_only ? read_only->valueint : 0, strdup(secret_name->valuestring), - secret_namespace ? strdup(secret_namespace->valuestring) : NULL, + secret_namespace && !cJSON_IsNull(secret_namespace) ? strdup(secret_namespace->valuestring) : NULL, strdup(share_name->valuestring) ); diff --git a/kubernetes/model/v1_binding.c b/kubernetes/model/v1_binding.c index 884fed56..0757ba4f 100644 --- a/kubernetes/model/v1_binding.c +++ b/kubernetes/model/v1_binding.c @@ -114,7 +114,7 @@ v1_binding_t *v1_binding_parseFromJSON(cJSON *v1_bindingJSON){ // v1_binding->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_bindingJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -123,7 +123,7 @@ v1_binding_t *v1_binding_parseFromJSON(cJSON *v1_bindingJSON){ // v1_binding->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_bindingJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -146,8 +146,8 @@ v1_binding_t *v1_binding_parseFromJSON(cJSON *v1_bindingJSON){ v1_binding_local_var = v1_binding_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, target_local_nonprim ); diff --git a/kubernetes/model/v1_bound_object_reference.c b/kubernetes/model/v1_bound_object_reference.c index 35880038..ccb2b3a4 100644 --- a/kubernetes/model/v1_bound_object_reference.c +++ b/kubernetes/model/v1_bound_object_reference.c @@ -97,7 +97,7 @@ v1_bound_object_reference_t *v1_bound_object_reference_parseFromJSON(cJSON *v1_b // v1_bound_object_reference->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_bound_object_referenceJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -106,7 +106,7 @@ v1_bound_object_reference_t *v1_bound_object_reference_parseFromJSON(cJSON *v1_b // v1_bound_object_reference->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_bound_object_referenceJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -115,7 +115,7 @@ v1_bound_object_reference_t *v1_bound_object_reference_parseFromJSON(cJSON *v1_b // v1_bound_object_reference->name cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_bound_object_referenceJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -124,7 +124,7 @@ v1_bound_object_reference_t *v1_bound_object_reference_parseFromJSON(cJSON *v1_b // v1_bound_object_reference->uid cJSON *uid = cJSON_GetObjectItemCaseSensitive(v1_bound_object_referenceJSON, "uid"); if (uid) { - if(!cJSON_IsString(uid)) + if(!cJSON_IsString(uid) && !cJSON_IsNull(uid)) { goto end; //String } @@ -132,10 +132,10 @@ v1_bound_object_reference_t *v1_bound_object_reference_parseFromJSON(cJSON *v1_b v1_bound_object_reference_local_var = v1_bound_object_reference_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, - name ? strdup(name->valuestring) : NULL, - uid ? strdup(uid->valuestring) : NULL + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, + uid && !cJSON_IsNull(uid) ? strdup(uid->valuestring) : NULL ); return v1_bound_object_reference_local_var; diff --git a/kubernetes/model/v1_ceph_fs_persistent_volume_source.c b/kubernetes/model/v1_ceph_fs_persistent_volume_source.c index f60ac7dc..0c775349 100644 --- a/kubernetes/model/v1_ceph_fs_persistent_volume_source.c +++ b/kubernetes/model/v1_ceph_fs_persistent_volume_source.c @@ -167,7 +167,7 @@ v1_ceph_fs_persistent_volume_source_t *v1_ceph_fs_persistent_volume_source_parse // v1_ceph_fs_persistent_volume_source->path cJSON *path = cJSON_GetObjectItemCaseSensitive(v1_ceph_fs_persistent_volume_sourceJSON, "path"); if (path) { - if(!cJSON_IsString(path)) + if(!cJSON_IsString(path) && !cJSON_IsNull(path)) { goto end; //String } @@ -185,7 +185,7 @@ v1_ceph_fs_persistent_volume_source_t *v1_ceph_fs_persistent_volume_source_parse // v1_ceph_fs_persistent_volume_source->secret_file cJSON *secret_file = cJSON_GetObjectItemCaseSensitive(v1_ceph_fs_persistent_volume_sourceJSON, "secretFile"); if (secret_file) { - if(!cJSON_IsString(secret_file)) + if(!cJSON_IsString(secret_file) && !cJSON_IsNull(secret_file)) { goto end; //String } @@ -200,7 +200,7 @@ v1_ceph_fs_persistent_volume_source_t *v1_ceph_fs_persistent_volume_source_parse // v1_ceph_fs_persistent_volume_source->user cJSON *user = cJSON_GetObjectItemCaseSensitive(v1_ceph_fs_persistent_volume_sourceJSON, "user"); if (user) { - if(!cJSON_IsString(user)) + if(!cJSON_IsString(user) && !cJSON_IsNull(user)) { goto end; //String } @@ -209,11 +209,11 @@ v1_ceph_fs_persistent_volume_source_t *v1_ceph_fs_persistent_volume_source_parse v1_ceph_fs_persistent_volume_source_local_var = v1_ceph_fs_persistent_volume_source_create ( monitorsList, - path ? strdup(path->valuestring) : NULL, + path && !cJSON_IsNull(path) ? strdup(path->valuestring) : NULL, read_only ? read_only->valueint : 0, - secret_file ? strdup(secret_file->valuestring) : NULL, + secret_file && !cJSON_IsNull(secret_file) ? strdup(secret_file->valuestring) : NULL, secret_ref ? secret_ref_local_nonprim : NULL, - user ? strdup(user->valuestring) : NULL + user && !cJSON_IsNull(user) ? strdup(user->valuestring) : NULL ); return v1_ceph_fs_persistent_volume_source_local_var; diff --git a/kubernetes/model/v1_ceph_fs_volume_source.c b/kubernetes/model/v1_ceph_fs_volume_source.c index c106c3c4..8fb840ed 100644 --- a/kubernetes/model/v1_ceph_fs_volume_source.c +++ b/kubernetes/model/v1_ceph_fs_volume_source.c @@ -167,7 +167,7 @@ v1_ceph_fs_volume_source_t *v1_ceph_fs_volume_source_parseFromJSON(cJSON *v1_cep // v1_ceph_fs_volume_source->path cJSON *path = cJSON_GetObjectItemCaseSensitive(v1_ceph_fs_volume_sourceJSON, "path"); if (path) { - if(!cJSON_IsString(path)) + if(!cJSON_IsString(path) && !cJSON_IsNull(path)) { goto end; //String } @@ -185,7 +185,7 @@ v1_ceph_fs_volume_source_t *v1_ceph_fs_volume_source_parseFromJSON(cJSON *v1_cep // v1_ceph_fs_volume_source->secret_file cJSON *secret_file = cJSON_GetObjectItemCaseSensitive(v1_ceph_fs_volume_sourceJSON, "secretFile"); if (secret_file) { - if(!cJSON_IsString(secret_file)) + if(!cJSON_IsString(secret_file) && !cJSON_IsNull(secret_file)) { goto end; //String } @@ -200,7 +200,7 @@ v1_ceph_fs_volume_source_t *v1_ceph_fs_volume_source_parseFromJSON(cJSON *v1_cep // v1_ceph_fs_volume_source->user cJSON *user = cJSON_GetObjectItemCaseSensitive(v1_ceph_fs_volume_sourceJSON, "user"); if (user) { - if(!cJSON_IsString(user)) + if(!cJSON_IsString(user) && !cJSON_IsNull(user)) { goto end; //String } @@ -209,11 +209,11 @@ v1_ceph_fs_volume_source_t *v1_ceph_fs_volume_source_parseFromJSON(cJSON *v1_cep v1_ceph_fs_volume_source_local_var = v1_ceph_fs_volume_source_create ( monitorsList, - path ? strdup(path->valuestring) : NULL, + path && !cJSON_IsNull(path) ? strdup(path->valuestring) : NULL, read_only ? read_only->valueint : 0, - secret_file ? strdup(secret_file->valuestring) : NULL, + secret_file && !cJSON_IsNull(secret_file) ? strdup(secret_file->valuestring) : NULL, secret_ref ? secret_ref_local_nonprim : NULL, - user ? strdup(user->valuestring) : NULL + user && !cJSON_IsNull(user) ? strdup(user->valuestring) : NULL ); return v1_ceph_fs_volume_source_local_var; diff --git a/kubernetes/model/v1_certificate_signing_request.c b/kubernetes/model/v1_certificate_signing_request.c index e9d87606..c551e175 100644 --- a/kubernetes/model/v1_certificate_signing_request.c +++ b/kubernetes/model/v1_certificate_signing_request.c @@ -136,7 +136,7 @@ v1_certificate_signing_request_t *v1_certificate_signing_request_parseFromJSON(c // v1_certificate_signing_request->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_certificate_signing_requestJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -145,7 +145,7 @@ v1_certificate_signing_request_t *v1_certificate_signing_request_parseFromJSON(c // v1_certificate_signing_request->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_certificate_signing_requestJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -174,8 +174,8 @@ v1_certificate_signing_request_t *v1_certificate_signing_request_parseFromJSON(c v1_certificate_signing_request_local_var = v1_certificate_signing_request_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec_local_nonprim, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_certificate_signing_request_condition.c b/kubernetes/model/v1_certificate_signing_request_condition.c index b608825e..93e82fd6 100644 --- a/kubernetes/model/v1_certificate_signing_request_condition.c +++ b/kubernetes/model/v1_certificate_signing_request_condition.c @@ -145,7 +145,7 @@ v1_certificate_signing_request_condition_t *v1_certificate_signing_request_condi // v1_certificate_signing_request_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_certificate_signing_request_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -154,7 +154,7 @@ v1_certificate_signing_request_condition_t *v1_certificate_signing_request_condi // v1_certificate_signing_request_condition->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_certificate_signing_request_conditionJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -188,8 +188,8 @@ v1_certificate_signing_request_condition_t *v1_certificate_signing_request_condi v1_certificate_signing_request_condition_local_var = v1_certificate_signing_request_condition_create ( last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, last_update_time && !cJSON_IsNull(last_update_time) ? strdup(last_update_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), strdup(type->valuestring) ); diff --git a/kubernetes/model/v1_certificate_signing_request_list.c b/kubernetes/model/v1_certificate_signing_request_list.c index 7c9158ac..cb757e3c 100644 --- a/kubernetes/model/v1_certificate_signing_request_list.c +++ b/kubernetes/model/v1_certificate_signing_request_list.c @@ -124,7 +124,7 @@ v1_certificate_signing_request_list_t *v1_certificate_signing_request_list_parse // v1_certificate_signing_request_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_certificate_signing_request_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_certificate_signing_request_list_t *v1_certificate_signing_request_list_parse // v1_certificate_signing_request_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_certificate_signing_request_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_certificate_signing_request_list_t *v1_certificate_signing_request_list_parse v1_certificate_signing_request_list_local_var = v1_certificate_signing_request_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_certificate_signing_request_spec.c b/kubernetes/model/v1_certificate_signing_request_spec.c index fad3d8de..d559fd83 100644 --- a/kubernetes/model/v1_certificate_signing_request_spec.c +++ b/kubernetes/model/v1_certificate_signing_request_spec.c @@ -270,7 +270,7 @@ v1_certificate_signing_request_spec_t *v1_certificate_signing_request_spec_parse // v1_certificate_signing_request_spec->uid cJSON *uid = cJSON_GetObjectItemCaseSensitive(v1_certificate_signing_request_specJSON, "uid"); if (uid) { - if(!cJSON_IsString(uid)) + if(!cJSON_IsString(uid) && !cJSON_IsNull(uid)) { goto end; //String } @@ -298,7 +298,7 @@ v1_certificate_signing_request_spec_t *v1_certificate_signing_request_spec_parse // v1_certificate_signing_request_spec->username cJSON *username = cJSON_GetObjectItemCaseSensitive(v1_certificate_signing_request_specJSON, "username"); if (username) { - if(!cJSON_IsString(username)) + if(!cJSON_IsString(username) && !cJSON_IsNull(username)) { goto end; //String } @@ -311,9 +311,9 @@ v1_certificate_signing_request_spec_t *v1_certificate_signing_request_spec_parse groups ? groupsList : NULL, strdup(request->valuestring), strdup(signer_name->valuestring), - uid ? strdup(uid->valuestring) : NULL, + uid && !cJSON_IsNull(uid) ? strdup(uid->valuestring) : NULL, usages ? usagesList : NULL, - username ? strdup(username->valuestring) : NULL + username && !cJSON_IsNull(username) ? strdup(username->valuestring) : NULL ); return v1_certificate_signing_request_spec_local_var; diff --git a/kubernetes/model/v1_cinder_persistent_volume_source.c b/kubernetes/model/v1_cinder_persistent_volume_source.c index 25256a41..186407f6 100644 --- a/kubernetes/model/v1_cinder_persistent_volume_source.c +++ b/kubernetes/model/v1_cinder_persistent_volume_source.c @@ -102,7 +102,7 @@ v1_cinder_persistent_volume_source_t *v1_cinder_persistent_volume_source_parseFr // v1_cinder_persistent_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_cinder_persistent_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -137,7 +137,7 @@ v1_cinder_persistent_volume_source_t *v1_cinder_persistent_volume_source_parseFr v1_cinder_persistent_volume_source_local_var = v1_cinder_persistent_volume_source_create ( - fs_type ? strdup(fs_type->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, read_only ? read_only->valueint : 0, secret_ref ? secret_ref_local_nonprim : NULL, strdup(volume_id->valuestring) diff --git a/kubernetes/model/v1_cinder_volume_source.c b/kubernetes/model/v1_cinder_volume_source.c index 17529aac..e8aedc9e 100644 --- a/kubernetes/model/v1_cinder_volume_source.c +++ b/kubernetes/model/v1_cinder_volume_source.c @@ -102,7 +102,7 @@ v1_cinder_volume_source_t *v1_cinder_volume_source_parseFromJSON(cJSON *v1_cinde // v1_cinder_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_cinder_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -137,7 +137,7 @@ v1_cinder_volume_source_t *v1_cinder_volume_source_parseFromJSON(cJSON *v1_cinde v1_cinder_volume_source_local_var = v1_cinder_volume_source_create ( - fs_type ? strdup(fs_type->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, read_only ? read_only->valueint : 0, secret_ref ? secret_ref_local_nonprim : NULL, strdup(volume_id->valuestring) diff --git a/kubernetes/model/v1_cluster_role.c b/kubernetes/model/v1_cluster_role.c index 76314e87..adeb2006 100644 --- a/kubernetes/model/v1_cluster_role.c +++ b/kubernetes/model/v1_cluster_role.c @@ -151,7 +151,7 @@ v1_cluster_role_t *v1_cluster_role_parseFromJSON(cJSON *v1_cluster_roleJSON){ // v1_cluster_role->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_cluster_roleJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -160,7 +160,7 @@ v1_cluster_role_t *v1_cluster_role_parseFromJSON(cJSON *v1_cluster_roleJSON){ // v1_cluster_role->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_cluster_roleJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -196,8 +196,8 @@ v1_cluster_role_t *v1_cluster_role_parseFromJSON(cJSON *v1_cluster_roleJSON){ v1_cluster_role_local_var = v1_cluster_role_create ( aggregation_rule ? aggregation_rule_local_nonprim : NULL, - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, rules ? rulesList : NULL ); diff --git a/kubernetes/model/v1_cluster_role_binding.c b/kubernetes/model/v1_cluster_role_binding.c index dee25d50..4b2bd29e 100644 --- a/kubernetes/model/v1_cluster_role_binding.c +++ b/kubernetes/model/v1_cluster_role_binding.c @@ -146,7 +146,7 @@ v1_cluster_role_binding_t *v1_cluster_role_binding_parseFromJSON(cJSON *v1_clust // v1_cluster_role_binding->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_cluster_role_bindingJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -155,7 +155,7 @@ v1_cluster_role_binding_t *v1_cluster_role_binding_parseFromJSON(cJSON *v1_clust // v1_cluster_role_binding->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_cluster_role_bindingJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -199,8 +199,8 @@ v1_cluster_role_binding_t *v1_cluster_role_binding_parseFromJSON(cJSON *v1_clust v1_cluster_role_binding_local_var = v1_cluster_role_binding_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, role_ref_local_nonprim, subjects ? subjectsList : NULL diff --git a/kubernetes/model/v1_cluster_role_binding_list.c b/kubernetes/model/v1_cluster_role_binding_list.c index 9e1089fa..48ed6f18 100644 --- a/kubernetes/model/v1_cluster_role_binding_list.c +++ b/kubernetes/model/v1_cluster_role_binding_list.c @@ -124,7 +124,7 @@ v1_cluster_role_binding_list_t *v1_cluster_role_binding_list_parseFromJSON(cJSON // v1_cluster_role_binding_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_cluster_role_binding_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_cluster_role_binding_list_t *v1_cluster_role_binding_list_parseFromJSON(cJSON // v1_cluster_role_binding_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_cluster_role_binding_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_cluster_role_binding_list_t *v1_cluster_role_binding_list_parseFromJSON(cJSON v1_cluster_role_binding_list_local_var = v1_cluster_role_binding_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_cluster_role_list.c b/kubernetes/model/v1_cluster_role_list.c index bc12ec21..f4a9cbb1 100644 --- a/kubernetes/model/v1_cluster_role_list.c +++ b/kubernetes/model/v1_cluster_role_list.c @@ -124,7 +124,7 @@ v1_cluster_role_list_t *v1_cluster_role_list_parseFromJSON(cJSON *v1_cluster_rol // v1_cluster_role_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_cluster_role_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_cluster_role_list_t *v1_cluster_role_list_parseFromJSON(cJSON *v1_cluster_rol // v1_cluster_role_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_cluster_role_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_cluster_role_list_t *v1_cluster_role_list_parseFromJSON(cJSON *v1_cluster_rol v1_cluster_role_list_local_var = v1_cluster_role_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_component_condition.c b/kubernetes/model/v1_component_condition.c index ff4887e2..a6e220fa 100644 --- a/kubernetes/model/v1_component_condition.c +++ b/kubernetes/model/v1_component_condition.c @@ -99,7 +99,7 @@ v1_component_condition_t *v1_component_condition_parseFromJSON(cJSON *v1_compone // v1_component_condition->error cJSON *error = cJSON_GetObjectItemCaseSensitive(v1_component_conditionJSON, "error"); if (error) { - if(!cJSON_IsString(error)) + if(!cJSON_IsString(error) && !cJSON_IsNull(error)) { goto end; //String } @@ -108,7 +108,7 @@ v1_component_condition_t *v1_component_condition_parseFromJSON(cJSON *v1_compone // v1_component_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_component_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -140,8 +140,8 @@ v1_component_condition_t *v1_component_condition_parseFromJSON(cJSON *v1_compone v1_component_condition_local_var = v1_component_condition_create ( - error ? strdup(error->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, + error && !cJSON_IsNull(error) ? strdup(error->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, strdup(status->valuestring), strdup(type->valuestring) ); diff --git a/kubernetes/model/v1_component_status.c b/kubernetes/model/v1_component_status.c index e5929e9e..cb9eace8 100644 --- a/kubernetes/model/v1_component_status.c +++ b/kubernetes/model/v1_component_status.c @@ -123,7 +123,7 @@ v1_component_status_t *v1_component_status_parseFromJSON(cJSON *v1_component_sta // v1_component_status->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_component_statusJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -153,7 +153,7 @@ v1_component_status_t *v1_component_status_parseFromJSON(cJSON *v1_component_sta // v1_component_status->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_component_statusJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -167,9 +167,9 @@ v1_component_status_t *v1_component_status_parseFromJSON(cJSON *v1_component_sta v1_component_status_local_var = v1_component_status_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, conditions ? conditionsList : NULL, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_component_status_list.c b/kubernetes/model/v1_component_status_list.c index 4ab2a540..4671645e 100644 --- a/kubernetes/model/v1_component_status_list.c +++ b/kubernetes/model/v1_component_status_list.c @@ -124,7 +124,7 @@ v1_component_status_list_t *v1_component_status_list_parseFromJSON(cJSON *v1_com // v1_component_status_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_component_status_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_component_status_list_t *v1_component_status_list_parseFromJSON(cJSON *v1_com // v1_component_status_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_component_status_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_component_status_list_t *v1_component_status_list_parseFromJSON(cJSON *v1_com v1_component_status_list_local_var = v1_component_status_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_config_map.c b/kubernetes/model/v1_config_map.c index 5d17a846..2493d0ac 100644 --- a/kubernetes/model/v1_config_map.c +++ b/kubernetes/model/v1_config_map.c @@ -171,7 +171,7 @@ v1_config_map_t *v1_config_map_parseFromJSON(cJSON *v1_config_mapJSON){ // v1_config_map->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_config_mapJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -239,7 +239,7 @@ v1_config_map_t *v1_config_map_parseFromJSON(cJSON *v1_config_mapJSON){ // v1_config_map->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_config_mapJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -253,11 +253,11 @@ v1_config_map_t *v1_config_map_parseFromJSON(cJSON *v1_config_mapJSON){ v1_config_map_local_var = v1_config_map_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, binary_data ? binary_dataList : NULL, data ? dataList : NULL, immutable ? immutable->valueint : 0, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_config_map_env_source.c b/kubernetes/model/v1_config_map_env_source.c index 863479ad..c9295b56 100644 --- a/kubernetes/model/v1_config_map_env_source.c +++ b/kubernetes/model/v1_config_map_env_source.c @@ -65,7 +65,7 @@ v1_config_map_env_source_t *v1_config_map_env_source_parseFromJSON(cJSON *v1_con // v1_config_map_env_source->name cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_config_map_env_sourceJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -82,7 +82,7 @@ v1_config_map_env_source_t *v1_config_map_env_source_parseFromJSON(cJSON *v1_con v1_config_map_env_source_local_var = v1_config_map_env_source_create ( - name ? strdup(name->valuestring) : NULL, + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, optional ? optional->valueint : 0 ); diff --git a/kubernetes/model/v1_config_map_key_selector.c b/kubernetes/model/v1_config_map_key_selector.c index 586a6882..f0644ff8 100644 --- a/kubernetes/model/v1_config_map_key_selector.c +++ b/kubernetes/model/v1_config_map_key_selector.c @@ -92,7 +92,7 @@ v1_config_map_key_selector_t *v1_config_map_key_selector_parseFromJSON(cJSON *v1 // v1_config_map_key_selector->name cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_config_map_key_selectorJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -110,7 +110,7 @@ v1_config_map_key_selector_t *v1_config_map_key_selector_parseFromJSON(cJSON *v1 v1_config_map_key_selector_local_var = v1_config_map_key_selector_create ( strdup(key->valuestring), - name ? strdup(name->valuestring) : NULL, + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, optional ? optional->valueint : 0 ); diff --git a/kubernetes/model/v1_config_map_list.c b/kubernetes/model/v1_config_map_list.c index 286b3384..a69bfdb1 100644 --- a/kubernetes/model/v1_config_map_list.c +++ b/kubernetes/model/v1_config_map_list.c @@ -124,7 +124,7 @@ v1_config_map_list_t *v1_config_map_list_parseFromJSON(cJSON *v1_config_map_list // v1_config_map_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_config_map_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_config_map_list_t *v1_config_map_list_parseFromJSON(cJSON *v1_config_map_list // v1_config_map_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_config_map_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_config_map_list_t *v1_config_map_list_parseFromJSON(cJSON *v1_config_map_list v1_config_map_list_local_var = v1_config_map_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_config_map_node_config_source.c b/kubernetes/model/v1_config_map_node_config_source.c index b8655b2a..334fcf7c 100644 --- a/kubernetes/model/v1_config_map_node_config_source.c +++ b/kubernetes/model/v1_config_map_node_config_source.c @@ -150,7 +150,7 @@ v1_config_map_node_config_source_t *v1_config_map_node_config_source_parseFromJS // v1_config_map_node_config_source->resource_version cJSON *resource_version = cJSON_GetObjectItemCaseSensitive(v1_config_map_node_config_sourceJSON, "resourceVersion"); if (resource_version) { - if(!cJSON_IsString(resource_version)) + if(!cJSON_IsString(resource_version) && !cJSON_IsNull(resource_version)) { goto end; //String } @@ -159,7 +159,7 @@ v1_config_map_node_config_source_t *v1_config_map_node_config_source_parseFromJS // v1_config_map_node_config_source->uid cJSON *uid = cJSON_GetObjectItemCaseSensitive(v1_config_map_node_config_sourceJSON, "uid"); if (uid) { - if(!cJSON_IsString(uid)) + if(!cJSON_IsString(uid) && !cJSON_IsNull(uid)) { goto end; //String } @@ -170,8 +170,8 @@ v1_config_map_node_config_source_t *v1_config_map_node_config_source_parseFromJS strdup(kubelet_config_key->valuestring), strdup(name->valuestring), strdup(_namespace->valuestring), - resource_version ? strdup(resource_version->valuestring) : NULL, - uid ? strdup(uid->valuestring) : NULL + resource_version && !cJSON_IsNull(resource_version) ? strdup(resource_version->valuestring) : NULL, + uid && !cJSON_IsNull(uid) ? strdup(uid->valuestring) : NULL ); return v1_config_map_node_config_source_local_var; diff --git a/kubernetes/model/v1_config_map_projection.c b/kubernetes/model/v1_config_map_projection.c index 51e39774..37329a78 100644 --- a/kubernetes/model/v1_config_map_projection.c +++ b/kubernetes/model/v1_config_map_projection.c @@ -118,7 +118,7 @@ v1_config_map_projection_t *v1_config_map_projection_parseFromJSON(cJSON *v1_con // v1_config_map_projection->name cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_config_map_projectionJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -136,7 +136,7 @@ v1_config_map_projection_t *v1_config_map_projection_parseFromJSON(cJSON *v1_con v1_config_map_projection_local_var = v1_config_map_projection_create ( items ? itemsList : NULL, - name ? strdup(name->valuestring) : NULL, + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, optional ? optional->valueint : 0 ); diff --git a/kubernetes/model/v1_config_map_volume_source.c b/kubernetes/model/v1_config_map_volume_source.c index 80b8ffbe..ff28e18a 100644 --- a/kubernetes/model/v1_config_map_volume_source.c +++ b/kubernetes/model/v1_config_map_volume_source.c @@ -137,7 +137,7 @@ v1_config_map_volume_source_t *v1_config_map_volume_source_parseFromJSON(cJSON * // v1_config_map_volume_source->name cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_config_map_volume_sourceJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -156,7 +156,7 @@ v1_config_map_volume_source_t *v1_config_map_volume_source_parseFromJSON(cJSON * v1_config_map_volume_source_local_var = v1_config_map_volume_source_create ( default_mode ? default_mode->valuedouble : 0, items ? itemsList : NULL, - name ? strdup(name->valuestring) : NULL, + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, optional ? optional->valueint : 0 ); diff --git a/kubernetes/model/v1_container.c b/kubernetes/model/v1_container.c index 93cfb8da..27503aff 100644 --- a/kubernetes/model/v1_container.c +++ b/kubernetes/model/v1_container.c @@ -586,7 +586,7 @@ v1_container_t *v1_container_parseFromJSON(cJSON *v1_containerJSON){ // v1_container->image cJSON *image = cJSON_GetObjectItemCaseSensitive(v1_containerJSON, "image"); if (image) { - if(!cJSON_IsString(image)) + if(!cJSON_IsString(image) && !cJSON_IsNull(image)) { goto end; //String } @@ -595,7 +595,7 @@ v1_container_t *v1_container_parseFromJSON(cJSON *v1_containerJSON){ // v1_container->image_pull_policy cJSON *image_pull_policy = cJSON_GetObjectItemCaseSensitive(v1_containerJSON, "imagePullPolicy"); if (image_pull_policy) { - if(!cJSON_IsString(image_pull_policy)) + if(!cJSON_IsString(image_pull_policy) && !cJSON_IsNull(image_pull_policy)) { goto end; //String } @@ -691,7 +691,7 @@ v1_container_t *v1_container_parseFromJSON(cJSON *v1_containerJSON){ // v1_container->termination_message_path cJSON *termination_message_path = cJSON_GetObjectItemCaseSensitive(v1_containerJSON, "terminationMessagePath"); if (termination_message_path) { - if(!cJSON_IsString(termination_message_path)) + if(!cJSON_IsString(termination_message_path) && !cJSON_IsNull(termination_message_path)) { goto end; //String } @@ -700,7 +700,7 @@ v1_container_t *v1_container_parseFromJSON(cJSON *v1_containerJSON){ // v1_container->termination_message_policy cJSON *termination_message_policy = cJSON_GetObjectItemCaseSensitive(v1_containerJSON, "terminationMessagePolicy"); if (termination_message_policy) { - if(!cJSON_IsString(termination_message_policy)) + if(!cJSON_IsString(termination_message_policy) && !cJSON_IsNull(termination_message_policy)) { goto end; //String } @@ -760,7 +760,7 @@ v1_container_t *v1_container_parseFromJSON(cJSON *v1_containerJSON){ // v1_container->working_dir cJSON *working_dir = cJSON_GetObjectItemCaseSensitive(v1_containerJSON, "workingDir"); if (working_dir) { - if(!cJSON_IsString(working_dir)) + if(!cJSON_IsString(working_dir) && !cJSON_IsNull(working_dir)) { goto end; //String } @@ -772,8 +772,8 @@ v1_container_t *v1_container_parseFromJSON(cJSON *v1_containerJSON){ command ? commandList : NULL, env ? envList : NULL, env_from ? env_fromList : NULL, - image ? strdup(image->valuestring) : NULL, - image_pull_policy ? strdup(image_pull_policy->valuestring) : NULL, + image && !cJSON_IsNull(image) ? strdup(image->valuestring) : NULL, + image_pull_policy && !cJSON_IsNull(image_pull_policy) ? strdup(image_pull_policy->valuestring) : NULL, lifecycle ? lifecycle_local_nonprim : NULL, liveness_probe ? liveness_probe_local_nonprim : NULL, strdup(name->valuestring), @@ -784,12 +784,12 @@ v1_container_t *v1_container_parseFromJSON(cJSON *v1_containerJSON){ startup_probe ? startup_probe_local_nonprim : NULL, _stdin ? _stdin->valueint : 0, stdin_once ? stdin_once->valueint : 0, - termination_message_path ? strdup(termination_message_path->valuestring) : NULL, - termination_message_policy ? strdup(termination_message_policy->valuestring) : NULL, + termination_message_path && !cJSON_IsNull(termination_message_path) ? strdup(termination_message_path->valuestring) : NULL, + termination_message_policy && !cJSON_IsNull(termination_message_policy) ? strdup(termination_message_policy->valuestring) : NULL, tty ? tty->valueint : 0, volume_devices ? volume_devicesList : NULL, volume_mounts ? volume_mountsList : NULL, - working_dir ? strdup(working_dir->valuestring) : NULL + working_dir && !cJSON_IsNull(working_dir) ? strdup(working_dir->valuestring) : NULL ); return v1_container_local_var; diff --git a/kubernetes/model/v1_container_port.c b/kubernetes/model/v1_container_port.c index d13e4969..f72e1cc0 100644 --- a/kubernetes/model/v1_container_port.c +++ b/kubernetes/model/v1_container_port.c @@ -116,7 +116,7 @@ v1_container_port_t *v1_container_port_parseFromJSON(cJSON *v1_container_portJSO // v1_container_port->host_ip cJSON *host_ip = cJSON_GetObjectItemCaseSensitive(v1_container_portJSON, "hostIP"); if (host_ip) { - if(!cJSON_IsString(host_ip)) + if(!cJSON_IsString(host_ip) && !cJSON_IsNull(host_ip)) { goto end; //String } @@ -134,7 +134,7 @@ v1_container_port_t *v1_container_port_parseFromJSON(cJSON *v1_container_portJSO // v1_container_port->name cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_container_portJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -143,7 +143,7 @@ v1_container_port_t *v1_container_port_parseFromJSON(cJSON *v1_container_portJSO // v1_container_port->protocol cJSON *protocol = cJSON_GetObjectItemCaseSensitive(v1_container_portJSON, "protocol"); if (protocol) { - if(!cJSON_IsString(protocol)) + if(!cJSON_IsString(protocol) && !cJSON_IsNull(protocol)) { goto end; //String } @@ -152,10 +152,10 @@ v1_container_port_t *v1_container_port_parseFromJSON(cJSON *v1_container_portJSO v1_container_port_local_var = v1_container_port_create ( container_port->valuedouble, - host_ip ? strdup(host_ip->valuestring) : NULL, + host_ip && !cJSON_IsNull(host_ip) ? strdup(host_ip->valuestring) : NULL, host_port ? host_port->valuedouble : 0, - name ? strdup(name->valuestring) : NULL, - protocol ? strdup(protocol->valuestring) : NULL + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, + protocol && !cJSON_IsNull(protocol) ? strdup(protocol->valuestring) : NULL ); return v1_container_port_local_var; diff --git a/kubernetes/model/v1_container_state_terminated.c b/kubernetes/model/v1_container_state_terminated.c index 5a3497a0..d7d30d24 100644 --- a/kubernetes/model/v1_container_state_terminated.c +++ b/kubernetes/model/v1_container_state_terminated.c @@ -132,7 +132,7 @@ v1_container_state_terminated_t *v1_container_state_terminated_parseFromJSON(cJS // v1_container_state_terminated->container_id cJSON *container_id = cJSON_GetObjectItemCaseSensitive(v1_container_state_terminatedJSON, "containerID"); if (container_id) { - if(!cJSON_IsString(container_id)) + if(!cJSON_IsString(container_id) && !cJSON_IsNull(container_id)) { goto end; //String } @@ -162,7 +162,7 @@ v1_container_state_terminated_t *v1_container_state_terminated_parseFromJSON(cJS // v1_container_state_terminated->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_container_state_terminatedJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -171,7 +171,7 @@ v1_container_state_terminated_t *v1_container_state_terminated_parseFromJSON(cJS // v1_container_state_terminated->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_container_state_terminatedJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -197,11 +197,11 @@ v1_container_state_terminated_t *v1_container_state_terminated_parseFromJSON(cJS v1_container_state_terminated_local_var = v1_container_state_terminated_create ( - container_id ? strdup(container_id->valuestring) : NULL, + container_id && !cJSON_IsNull(container_id) ? strdup(container_id->valuestring) : NULL, exit_code->valuedouble, finished_at && !cJSON_IsNull(finished_at) ? strdup(finished_at->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, signal ? signal->valuedouble : 0, started_at && !cJSON_IsNull(started_at) ? strdup(started_at->valuestring) : NULL ); diff --git a/kubernetes/model/v1_container_state_waiting.c b/kubernetes/model/v1_container_state_waiting.c index e1a96756..40307351 100644 --- a/kubernetes/model/v1_container_state_waiting.c +++ b/kubernetes/model/v1_container_state_waiting.c @@ -69,7 +69,7 @@ v1_container_state_waiting_t *v1_container_state_waiting_parseFromJSON(cJSON *v1 // v1_container_state_waiting->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_container_state_waitingJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -78,7 +78,7 @@ v1_container_state_waiting_t *v1_container_state_waiting_parseFromJSON(cJSON *v1 // v1_container_state_waiting->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_container_state_waitingJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -86,8 +86,8 @@ v1_container_state_waiting_t *v1_container_state_waiting_parseFromJSON(cJSON *v1 v1_container_state_waiting_local_var = v1_container_state_waiting_create ( - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL ); return v1_container_state_waiting_local_var; diff --git a/kubernetes/model/v1_container_status.c b/kubernetes/model/v1_container_status.c index 3bc3c757..cc182c25 100644 --- a/kubernetes/model/v1_container_status.c +++ b/kubernetes/model/v1_container_status.c @@ -176,7 +176,7 @@ v1_container_status_t *v1_container_status_parseFromJSON(cJSON *v1_container_sta // v1_container_status->container_id cJSON *container_id = cJSON_GetObjectItemCaseSensitive(v1_container_statusJSON, "containerID"); if (container_id) { - if(!cJSON_IsString(container_id)) + if(!cJSON_IsString(container_id) && !cJSON_IsNull(container_id)) { goto end; //String } @@ -265,7 +265,7 @@ v1_container_status_t *v1_container_status_parseFromJSON(cJSON *v1_container_sta v1_container_status_local_var = v1_container_status_create ( - container_id ? strdup(container_id->valuestring) : NULL, + container_id && !cJSON_IsNull(container_id) ? strdup(container_id->valuestring) : NULL, strdup(image->valuestring), strdup(image_id->valuestring), last_state ? last_state_local_nonprim : NULL, diff --git a/kubernetes/model/v1_controller_revision.c b/kubernetes/model/v1_controller_revision.c index bea084a9..c1c799f6 100644 --- a/kubernetes/model/v1_controller_revision.c +++ b/kubernetes/model/v1_controller_revision.c @@ -121,7 +121,7 @@ v1_controller_revision_t *v1_controller_revision_parseFromJSON(cJSON *v1_control // v1_controller_revision->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_controller_revisionJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -137,7 +137,7 @@ v1_controller_revision_t *v1_controller_revision_parseFromJSON(cJSON *v1_control // v1_controller_revision->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_controller_revisionJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -163,9 +163,9 @@ v1_controller_revision_t *v1_controller_revision_parseFromJSON(cJSON *v1_control v1_controller_revision_local_var = v1_controller_revision_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, data ? data_local_object : NULL, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, revision->valuedouble ); diff --git a/kubernetes/model/v1_controller_revision_list.c b/kubernetes/model/v1_controller_revision_list.c index 24dfa8fd..2b0ecdcc 100644 --- a/kubernetes/model/v1_controller_revision_list.c +++ b/kubernetes/model/v1_controller_revision_list.c @@ -124,7 +124,7 @@ v1_controller_revision_list_t *v1_controller_revision_list_parseFromJSON(cJSON * // v1_controller_revision_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_controller_revision_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_controller_revision_list_t *v1_controller_revision_list_parseFromJSON(cJSON * // v1_controller_revision_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_controller_revision_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_controller_revision_list_t *v1_controller_revision_list_parseFromJSON(cJSON * v1_controller_revision_list_local_var = v1_controller_revision_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_cron_job.c b/kubernetes/model/v1_cron_job.c index a0f24521..e5970a30 100644 --- a/kubernetes/model/v1_cron_job.c +++ b/kubernetes/model/v1_cron_job.c @@ -135,7 +135,7 @@ v1_cron_job_t *v1_cron_job_parseFromJSON(cJSON *v1_cron_jobJSON){ // v1_cron_job->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_cron_jobJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1_cron_job_t *v1_cron_job_parseFromJSON(cJSON *v1_cron_jobJSON){ // v1_cron_job->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_cron_jobJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1_cron_job_t *v1_cron_job_parseFromJSON(cJSON *v1_cron_jobJSON){ v1_cron_job_local_var = v1_cron_job_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_cron_job_list.c b/kubernetes/model/v1_cron_job_list.c index 61942470..ce8f82de 100644 --- a/kubernetes/model/v1_cron_job_list.c +++ b/kubernetes/model/v1_cron_job_list.c @@ -124,7 +124,7 @@ v1_cron_job_list_t *v1_cron_job_list_parseFromJSON(cJSON *v1_cron_job_listJSON){ // v1_cron_job_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_cron_job_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_cron_job_list_t *v1_cron_job_list_parseFromJSON(cJSON *v1_cron_job_listJSON){ // v1_cron_job_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_cron_job_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_cron_job_list_t *v1_cron_job_list_parseFromJSON(cJSON *v1_cron_job_listJSON){ v1_cron_job_list_local_var = v1_cron_job_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_cron_job_spec.c b/kubernetes/model/v1_cron_job_spec.c index a961f9cc..4cbfb714 100644 --- a/kubernetes/model/v1_cron_job_spec.c +++ b/kubernetes/model/v1_cron_job_spec.c @@ -147,7 +147,7 @@ v1_cron_job_spec_t *v1_cron_job_spec_parseFromJSON(cJSON *v1_cron_job_specJSON){ // v1_cron_job_spec->concurrency_policy cJSON *concurrency_policy = cJSON_GetObjectItemCaseSensitive(v1_cron_job_specJSON, "concurrencyPolicy"); if (concurrency_policy) { - if(!cJSON_IsString(concurrency_policy)) + if(!cJSON_IsString(concurrency_policy) && !cJSON_IsNull(concurrency_policy)) { goto end; //String } @@ -213,7 +213,7 @@ v1_cron_job_spec_t *v1_cron_job_spec_parseFromJSON(cJSON *v1_cron_job_specJSON){ // v1_cron_job_spec->time_zone cJSON *time_zone = cJSON_GetObjectItemCaseSensitive(v1_cron_job_specJSON, "timeZone"); if (time_zone) { - if(!cJSON_IsString(time_zone)) + if(!cJSON_IsString(time_zone) && !cJSON_IsNull(time_zone)) { goto end; //String } @@ -221,14 +221,14 @@ v1_cron_job_spec_t *v1_cron_job_spec_parseFromJSON(cJSON *v1_cron_job_specJSON){ v1_cron_job_spec_local_var = v1_cron_job_spec_create ( - concurrency_policy ? strdup(concurrency_policy->valuestring) : NULL, + concurrency_policy && !cJSON_IsNull(concurrency_policy) ? strdup(concurrency_policy->valuestring) : NULL, failed_jobs_history_limit ? failed_jobs_history_limit->valuedouble : 0, job_template_local_nonprim, strdup(schedule->valuestring), starting_deadline_seconds ? starting_deadline_seconds->valuedouble : 0, successful_jobs_history_limit ? successful_jobs_history_limit->valuedouble : 0, suspend ? suspend->valueint : 0, - time_zone ? strdup(time_zone->valuestring) : NULL + time_zone && !cJSON_IsNull(time_zone) ? strdup(time_zone->valuestring) : NULL ); return v1_cron_job_spec_local_var; diff --git a/kubernetes/model/v1_cross_version_object_reference.c b/kubernetes/model/v1_cross_version_object_reference.c index 8b6f45f6..f8ea97ca 100644 --- a/kubernetes/model/v1_cross_version_object_reference.c +++ b/kubernetes/model/v1_cross_version_object_reference.c @@ -85,7 +85,7 @@ v1_cross_version_object_reference_t *v1_cross_version_object_reference_parseFrom // v1_cross_version_object_reference->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_cross_version_object_referenceJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -117,7 +117,7 @@ v1_cross_version_object_reference_t *v1_cross_version_object_reference_parseFrom v1_cross_version_object_reference_local_var = v1_cross_version_object_reference_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, strdup(kind->valuestring), strdup(name->valuestring) ); diff --git a/kubernetes/model/v1_csi_driver.c b/kubernetes/model/v1_csi_driver.c index e28b447a..8bbc7cad 100644 --- a/kubernetes/model/v1_csi_driver.c +++ b/kubernetes/model/v1_csi_driver.c @@ -114,7 +114,7 @@ v1_csi_driver_t *v1_csi_driver_parseFromJSON(cJSON *v1_csi_driverJSON){ // v1_csi_driver->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_csi_driverJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -123,7 +123,7 @@ v1_csi_driver_t *v1_csi_driver_parseFromJSON(cJSON *v1_csi_driverJSON){ // v1_csi_driver->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_csi_driverJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -146,8 +146,8 @@ v1_csi_driver_t *v1_csi_driver_parseFromJSON(cJSON *v1_csi_driverJSON){ v1_csi_driver_local_var = v1_csi_driver_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec_local_nonprim ); diff --git a/kubernetes/model/v1_csi_driver_list.c b/kubernetes/model/v1_csi_driver_list.c index a5a86b59..a7f181b9 100644 --- a/kubernetes/model/v1_csi_driver_list.c +++ b/kubernetes/model/v1_csi_driver_list.c @@ -124,7 +124,7 @@ v1_csi_driver_list_t *v1_csi_driver_list_parseFromJSON(cJSON *v1_csi_driver_list // v1_csi_driver_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_csi_driver_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_csi_driver_list_t *v1_csi_driver_list_parseFromJSON(cJSON *v1_csi_driver_list // v1_csi_driver_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_csi_driver_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_csi_driver_list_t *v1_csi_driver_list_parseFromJSON(cJSON *v1_csi_driver_list v1_csi_driver_list_local_var = v1_csi_driver_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_csi_driver_spec.c b/kubernetes/model/v1_csi_driver_spec.c index 1b5f8e61..680352b4 100644 --- a/kubernetes/model/v1_csi_driver_spec.c +++ b/kubernetes/model/v1_csi_driver_spec.c @@ -175,7 +175,7 @@ v1_csi_driver_spec_t *v1_csi_driver_spec_parseFromJSON(cJSON *v1_csi_driver_spec // v1_csi_driver_spec->fs_group_policy cJSON *fs_group_policy = cJSON_GetObjectItemCaseSensitive(v1_csi_driver_specJSON, "fsGroupPolicy"); if (fs_group_policy) { - if(!cJSON_IsString(fs_group_policy)) + if(!cJSON_IsString(fs_group_policy) && !cJSON_IsNull(fs_group_policy)) { goto end; //String } @@ -260,7 +260,7 @@ v1_csi_driver_spec_t *v1_csi_driver_spec_parseFromJSON(cJSON *v1_csi_driver_spec v1_csi_driver_spec_local_var = v1_csi_driver_spec_create ( attach_required ? attach_required->valueint : 0, - fs_group_policy ? strdup(fs_group_policy->valuestring) : NULL, + fs_group_policy && !cJSON_IsNull(fs_group_policy) ? strdup(fs_group_policy->valuestring) : NULL, pod_info_on_mount ? pod_info_on_mount->valueint : 0, requires_republish ? requires_republish->valueint : 0, se_linux_mount ? se_linux_mount->valueint : 0, diff --git a/kubernetes/model/v1_csi_node.c b/kubernetes/model/v1_csi_node.c index 7f1ec63b..f82fc508 100644 --- a/kubernetes/model/v1_csi_node.c +++ b/kubernetes/model/v1_csi_node.c @@ -114,7 +114,7 @@ v1_csi_node_t *v1_csi_node_parseFromJSON(cJSON *v1_csi_nodeJSON){ // v1_csi_node->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_csi_nodeJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -123,7 +123,7 @@ v1_csi_node_t *v1_csi_node_parseFromJSON(cJSON *v1_csi_nodeJSON){ // v1_csi_node->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_csi_nodeJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -146,8 +146,8 @@ v1_csi_node_t *v1_csi_node_parseFromJSON(cJSON *v1_csi_nodeJSON){ v1_csi_node_local_var = v1_csi_node_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec_local_nonprim ); diff --git a/kubernetes/model/v1_csi_node_list.c b/kubernetes/model/v1_csi_node_list.c index 6c387f77..34a14eb6 100644 --- a/kubernetes/model/v1_csi_node_list.c +++ b/kubernetes/model/v1_csi_node_list.c @@ -124,7 +124,7 @@ v1_csi_node_list_t *v1_csi_node_list_parseFromJSON(cJSON *v1_csi_node_listJSON){ // v1_csi_node_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_csi_node_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_csi_node_list_t *v1_csi_node_list_parseFromJSON(cJSON *v1_csi_node_listJSON){ // v1_csi_node_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_csi_node_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_csi_node_list_t *v1_csi_node_list_parseFromJSON(cJSON *v1_csi_node_listJSON){ v1_csi_node_list_local_var = v1_csi_node_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_csi_persistent_volume_source.c b/kubernetes/model/v1_csi_persistent_volume_source.c index 20d1d054..9ff820e7 100644 --- a/kubernetes/model/v1_csi_persistent_volume_source.c +++ b/kubernetes/model/v1_csi_persistent_volume_source.c @@ -264,7 +264,7 @@ v1_csi_persistent_volume_source_t *v1_csi_persistent_volume_source_parseFromJSON // v1_csi_persistent_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_csi_persistent_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -339,7 +339,7 @@ v1_csi_persistent_volume_source_t *v1_csi_persistent_volume_source_parseFromJSON controller_expand_secret_ref ? controller_expand_secret_ref_local_nonprim : NULL, controller_publish_secret_ref ? controller_publish_secret_ref_local_nonprim : NULL, strdup(driver->valuestring), - fs_type ? strdup(fs_type->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, node_expand_secret_ref ? node_expand_secret_ref_local_nonprim : NULL, node_publish_secret_ref ? node_publish_secret_ref_local_nonprim : NULL, node_stage_secret_ref ? node_stage_secret_ref_local_nonprim : NULL, diff --git a/kubernetes/model/v1_csi_storage_capacity.c b/kubernetes/model/v1_csi_storage_capacity.c index 09142a47..c320361c 100644 --- a/kubernetes/model/v1_csi_storage_capacity.c +++ b/kubernetes/model/v1_csi_storage_capacity.c @@ -156,7 +156,7 @@ v1_csi_storage_capacity_t *v1_csi_storage_capacity_parseFromJSON(cJSON *v1_csi_s // v1_csi_storage_capacity->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_csi_storage_capacityJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -165,7 +165,7 @@ v1_csi_storage_capacity_t *v1_csi_storage_capacity_parseFromJSON(cJSON *v1_csi_s // v1_csi_storage_capacity->capacity cJSON *capacity = cJSON_GetObjectItemCaseSensitive(v1_csi_storage_capacityJSON, "capacity"); if (capacity) { - if(!cJSON_IsString(capacity)) + if(!cJSON_IsString(capacity) && !cJSON_IsNull(capacity)) { goto end; //String } @@ -174,7 +174,7 @@ v1_csi_storage_capacity_t *v1_csi_storage_capacity_parseFromJSON(cJSON *v1_csi_s // v1_csi_storage_capacity->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_csi_storage_capacityJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -183,7 +183,7 @@ v1_csi_storage_capacity_t *v1_csi_storage_capacity_parseFromJSON(cJSON *v1_csi_s // v1_csi_storage_capacity->maximum_volume_size cJSON *maximum_volume_size = cJSON_GetObjectItemCaseSensitive(v1_csi_storage_capacityJSON, "maximumVolumeSize"); if (maximum_volume_size) { - if(!cJSON_IsString(maximum_volume_size)) + if(!cJSON_IsString(maximum_volume_size) && !cJSON_IsNull(maximum_volume_size)) { goto end; //String } @@ -215,10 +215,10 @@ v1_csi_storage_capacity_t *v1_csi_storage_capacity_parseFromJSON(cJSON *v1_csi_s v1_csi_storage_capacity_local_var = v1_csi_storage_capacity_create ( - api_version ? strdup(api_version->valuestring) : NULL, - capacity ? strdup(capacity->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, - maximum_volume_size ? strdup(maximum_volume_size->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + capacity && !cJSON_IsNull(capacity) ? strdup(capacity->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + maximum_volume_size && !cJSON_IsNull(maximum_volume_size) ? strdup(maximum_volume_size->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, node_topology ? node_topology_local_nonprim : NULL, strdup(storage_class_name->valuestring) diff --git a/kubernetes/model/v1_csi_storage_capacity_list.c b/kubernetes/model/v1_csi_storage_capacity_list.c index 2f25d134..c17a8b3e 100644 --- a/kubernetes/model/v1_csi_storage_capacity_list.c +++ b/kubernetes/model/v1_csi_storage_capacity_list.c @@ -124,7 +124,7 @@ v1_csi_storage_capacity_list_t *v1_csi_storage_capacity_list_parseFromJSON(cJSON // v1_csi_storage_capacity_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_csi_storage_capacity_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_csi_storage_capacity_list_t *v1_csi_storage_capacity_list_parseFromJSON(cJSON // v1_csi_storage_capacity_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_csi_storage_capacity_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_csi_storage_capacity_list_t *v1_csi_storage_capacity_list_parseFromJSON(cJSON v1_csi_storage_capacity_list_local_var = v1_csi_storage_capacity_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_csi_volume_source.c b/kubernetes/model/v1_csi_volume_source.c index fc267b5e..171a46bc 100644 --- a/kubernetes/model/v1_csi_volume_source.c +++ b/kubernetes/model/v1_csi_volume_source.c @@ -149,7 +149,7 @@ v1_csi_volume_source_t *v1_csi_volume_source_parseFromJSON(cJSON *v1_csi_volume_ // v1_csi_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_csi_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -198,7 +198,7 @@ v1_csi_volume_source_t *v1_csi_volume_source_parseFromJSON(cJSON *v1_csi_volume_ v1_csi_volume_source_local_var = v1_csi_volume_source_create ( strdup(driver->valuestring), - fs_type ? strdup(fs_type->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, node_publish_secret_ref ? node_publish_secret_ref_local_nonprim : NULL, read_only ? read_only->valueint : 0, volume_attributes ? volume_attributesList : NULL diff --git a/kubernetes/model/v1_custom_resource_column_definition.c b/kubernetes/model/v1_custom_resource_column_definition.c index 838bd09b..b3e63b88 100644 --- a/kubernetes/model/v1_custom_resource_column_definition.c +++ b/kubernetes/model/v1_custom_resource_column_definition.c @@ -124,7 +124,7 @@ v1_custom_resource_column_definition_t *v1_custom_resource_column_definition_par // v1_custom_resource_column_definition->description cJSON *description = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_column_definitionJSON, "description"); if (description) { - if(!cJSON_IsString(description)) + if(!cJSON_IsString(description) && !cJSON_IsNull(description)) { goto end; //String } @@ -133,7 +133,7 @@ v1_custom_resource_column_definition_t *v1_custom_resource_column_definition_par // v1_custom_resource_column_definition->format cJSON *format = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_column_definitionJSON, "format"); if (format) { - if(!cJSON_IsString(format)) + if(!cJSON_IsString(format) && !cJSON_IsNull(format)) { goto end; //String } @@ -186,8 +186,8 @@ v1_custom_resource_column_definition_t *v1_custom_resource_column_definition_par v1_custom_resource_column_definition_local_var = v1_custom_resource_column_definition_create ( - description ? strdup(description->valuestring) : NULL, - format ? strdup(format->valuestring) : NULL, + description && !cJSON_IsNull(description) ? strdup(description->valuestring) : NULL, + format && !cJSON_IsNull(format) ? strdup(format->valuestring) : NULL, strdup(json_path->valuestring), strdup(name->valuestring), priority ? priority->valuedouble : 0, diff --git a/kubernetes/model/v1_custom_resource_definition.c b/kubernetes/model/v1_custom_resource_definition.c index c6a93f12..e5028e66 100644 --- a/kubernetes/model/v1_custom_resource_definition.c +++ b/kubernetes/model/v1_custom_resource_definition.c @@ -136,7 +136,7 @@ v1_custom_resource_definition_t *v1_custom_resource_definition_parseFromJSON(cJS // v1_custom_resource_definition->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_definitionJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -145,7 +145,7 @@ v1_custom_resource_definition_t *v1_custom_resource_definition_parseFromJSON(cJS // v1_custom_resource_definition->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_definitionJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -174,8 +174,8 @@ v1_custom_resource_definition_t *v1_custom_resource_definition_parseFromJSON(cJS v1_custom_resource_definition_local_var = v1_custom_resource_definition_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec_local_nonprim, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_custom_resource_definition_condition.c b/kubernetes/model/v1_custom_resource_definition_condition.c index 253efcbf..290a1839 100644 --- a/kubernetes/model/v1_custom_resource_definition_condition.c +++ b/kubernetes/model/v1_custom_resource_definition_condition.c @@ -122,7 +122,7 @@ v1_custom_resource_definition_condition_t *v1_custom_resource_definition_conditi // v1_custom_resource_definition_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_definition_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -131,7 +131,7 @@ v1_custom_resource_definition_condition_t *v1_custom_resource_definition_conditi // v1_custom_resource_definition_condition->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_definition_conditionJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -164,8 +164,8 @@ v1_custom_resource_definition_condition_t *v1_custom_resource_definition_conditi v1_custom_resource_definition_condition_local_var = v1_custom_resource_definition_condition_create ( last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), strdup(type->valuestring) ); diff --git a/kubernetes/model/v1_custom_resource_definition_list.c b/kubernetes/model/v1_custom_resource_definition_list.c index cd899100..aa95f5cf 100644 --- a/kubernetes/model/v1_custom_resource_definition_list.c +++ b/kubernetes/model/v1_custom_resource_definition_list.c @@ -124,7 +124,7 @@ v1_custom_resource_definition_list_t *v1_custom_resource_definition_list_parseFr // v1_custom_resource_definition_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_definition_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_custom_resource_definition_list_t *v1_custom_resource_definition_list_parseFr // v1_custom_resource_definition_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_definition_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_custom_resource_definition_list_t *v1_custom_resource_definition_list_parseFr v1_custom_resource_definition_list_local_var = v1_custom_resource_definition_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_custom_resource_definition_names.c b/kubernetes/model/v1_custom_resource_definition_names.c index 4d0e84d5..8a557fa4 100644 --- a/kubernetes/model/v1_custom_resource_definition_names.c +++ b/kubernetes/model/v1_custom_resource_definition_names.c @@ -188,7 +188,7 @@ v1_custom_resource_definition_names_t *v1_custom_resource_definition_names_parse // v1_custom_resource_definition_names->list_kind cJSON *list_kind = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_definition_namesJSON, "listKind"); if (list_kind) { - if(!cJSON_IsString(list_kind)) + if(!cJSON_IsString(list_kind) && !cJSON_IsNull(list_kind)) { goto end; //String } @@ -228,7 +228,7 @@ v1_custom_resource_definition_names_t *v1_custom_resource_definition_names_parse // v1_custom_resource_definition_names->singular cJSON *singular = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_definition_namesJSON, "singular"); if (singular) { - if(!cJSON_IsString(singular)) + if(!cJSON_IsString(singular) && !cJSON_IsNull(singular)) { goto end; //String } @@ -238,10 +238,10 @@ v1_custom_resource_definition_names_t *v1_custom_resource_definition_names_parse v1_custom_resource_definition_names_local_var = v1_custom_resource_definition_names_create ( categories ? categoriesList : NULL, strdup(kind->valuestring), - list_kind ? strdup(list_kind->valuestring) : NULL, + list_kind && !cJSON_IsNull(list_kind) ? strdup(list_kind->valuestring) : NULL, strdup(plural->valuestring), short_names ? short_namesList : NULL, - singular ? strdup(singular->valuestring) : NULL + singular && !cJSON_IsNull(singular) ? strdup(singular->valuestring) : NULL ); return v1_custom_resource_definition_names_local_var; diff --git a/kubernetes/model/v1_custom_resource_definition_version.c b/kubernetes/model/v1_custom_resource_definition_version.c index 1037b189..ca0fcf6c 100644 --- a/kubernetes/model/v1_custom_resource_definition_version.c +++ b/kubernetes/model/v1_custom_resource_definition_version.c @@ -208,7 +208,7 @@ v1_custom_resource_definition_version_t *v1_custom_resource_definition_version_p // v1_custom_resource_definition_version->deprecation_warning cJSON *deprecation_warning = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_definition_versionJSON, "deprecationWarning"); if (deprecation_warning) { - if(!cJSON_IsString(deprecation_warning)) + if(!cJSON_IsString(deprecation_warning) && !cJSON_IsNull(deprecation_warning)) { goto end; //String } @@ -266,7 +266,7 @@ v1_custom_resource_definition_version_t *v1_custom_resource_definition_version_p v1_custom_resource_definition_version_local_var = v1_custom_resource_definition_version_create ( additional_printer_columns ? additional_printer_columnsList : NULL, deprecated ? deprecated->valueint : 0, - deprecation_warning ? strdup(deprecation_warning->valuestring) : NULL, + deprecation_warning && !cJSON_IsNull(deprecation_warning) ? strdup(deprecation_warning->valuestring) : NULL, strdup(name->valuestring), schema ? schema_local_nonprim : NULL, served->valueint, diff --git a/kubernetes/model/v1_custom_resource_subresource_scale.c b/kubernetes/model/v1_custom_resource_subresource_scale.c index c65cd048..227174e5 100644 --- a/kubernetes/model/v1_custom_resource_subresource_scale.c +++ b/kubernetes/model/v1_custom_resource_subresource_scale.c @@ -85,7 +85,7 @@ v1_custom_resource_subresource_scale_t *v1_custom_resource_subresource_scale_par // v1_custom_resource_subresource_scale->label_selector_path cJSON *label_selector_path = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_subresource_scaleJSON, "labelSelectorPath"); if (label_selector_path) { - if(!cJSON_IsString(label_selector_path)) + if(!cJSON_IsString(label_selector_path) && !cJSON_IsNull(label_selector_path)) { goto end; //String } @@ -117,7 +117,7 @@ v1_custom_resource_subresource_scale_t *v1_custom_resource_subresource_scale_par v1_custom_resource_subresource_scale_local_var = v1_custom_resource_subresource_scale_create ( - label_selector_path ? strdup(label_selector_path->valuestring) : NULL, + label_selector_path && !cJSON_IsNull(label_selector_path) ? strdup(label_selector_path->valuestring) : NULL, strdup(spec_replicas_path->valuestring), strdup(status_replicas_path->valuestring) ); diff --git a/kubernetes/model/v1_daemon_set.c b/kubernetes/model/v1_daemon_set.c index 6e7dfc00..7b74f53c 100644 --- a/kubernetes/model/v1_daemon_set.c +++ b/kubernetes/model/v1_daemon_set.c @@ -135,7 +135,7 @@ v1_daemon_set_t *v1_daemon_set_parseFromJSON(cJSON *v1_daemon_setJSON){ // v1_daemon_set->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_daemon_setJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1_daemon_set_t *v1_daemon_set_parseFromJSON(cJSON *v1_daemon_setJSON){ // v1_daemon_set->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_daemon_setJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1_daemon_set_t *v1_daemon_set_parseFromJSON(cJSON *v1_daemon_setJSON){ v1_daemon_set_local_var = v1_daemon_set_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_daemon_set_condition.c b/kubernetes/model/v1_daemon_set_condition.c index bd70204d..0fa723b5 100644 --- a/kubernetes/model/v1_daemon_set_condition.c +++ b/kubernetes/model/v1_daemon_set_condition.c @@ -122,7 +122,7 @@ v1_daemon_set_condition_t *v1_daemon_set_condition_parseFromJSON(cJSON *v1_daemo // v1_daemon_set_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_daemon_set_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -131,7 +131,7 @@ v1_daemon_set_condition_t *v1_daemon_set_condition_parseFromJSON(cJSON *v1_daemo // v1_daemon_set_condition->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_daemon_set_conditionJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -164,8 +164,8 @@ v1_daemon_set_condition_t *v1_daemon_set_condition_parseFromJSON(cJSON *v1_daemo v1_daemon_set_condition_local_var = v1_daemon_set_condition_create ( last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), strdup(type->valuestring) ); diff --git a/kubernetes/model/v1_daemon_set_list.c b/kubernetes/model/v1_daemon_set_list.c index 700802ff..0b43b4fc 100644 --- a/kubernetes/model/v1_daemon_set_list.c +++ b/kubernetes/model/v1_daemon_set_list.c @@ -124,7 +124,7 @@ v1_daemon_set_list_t *v1_daemon_set_list_parseFromJSON(cJSON *v1_daemon_set_list // v1_daemon_set_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_daemon_set_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_daemon_set_list_t *v1_daemon_set_list_parseFromJSON(cJSON *v1_daemon_set_list // v1_daemon_set_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_daemon_set_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_daemon_set_list_t *v1_daemon_set_list_parseFromJSON(cJSON *v1_daemon_set_list v1_daemon_set_list_local_var = v1_daemon_set_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_daemon_set_update_strategy.c b/kubernetes/model/v1_daemon_set_update_strategy.c index 812d28e3..22e54f50 100644 --- a/kubernetes/model/v1_daemon_set_update_strategy.c +++ b/kubernetes/model/v1_daemon_set_update_strategy.c @@ -83,7 +83,7 @@ v1_daemon_set_update_strategy_t *v1_daemon_set_update_strategy_parseFromJSON(cJS // v1_daemon_set_update_strategy->type cJSON *type = cJSON_GetObjectItemCaseSensitive(v1_daemon_set_update_strategyJSON, "type"); if (type) { - if(!cJSON_IsString(type)) + if(!cJSON_IsString(type) && !cJSON_IsNull(type)) { goto end; //String } @@ -92,7 +92,7 @@ v1_daemon_set_update_strategy_t *v1_daemon_set_update_strategy_parseFromJSON(cJS v1_daemon_set_update_strategy_local_var = v1_daemon_set_update_strategy_create ( rolling_update ? rolling_update_local_nonprim : NULL, - type ? strdup(type->valuestring) : NULL + type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL ); return v1_daemon_set_update_strategy_local_var; diff --git a/kubernetes/model/v1_delete_options.c b/kubernetes/model/v1_delete_options.c index 346230ad..7d6e6910 100644 --- a/kubernetes/model/v1_delete_options.c +++ b/kubernetes/model/v1_delete_options.c @@ -154,7 +154,7 @@ v1_delete_options_t *v1_delete_options_parseFromJSON(cJSON *v1_delete_optionsJSO // v1_delete_options->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_delete_optionsJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -191,7 +191,7 @@ v1_delete_options_t *v1_delete_options_parseFromJSON(cJSON *v1_delete_optionsJSO // v1_delete_options->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_delete_optionsJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -215,7 +215,7 @@ v1_delete_options_t *v1_delete_options_parseFromJSON(cJSON *v1_delete_optionsJSO // v1_delete_options->propagation_policy cJSON *propagation_policy = cJSON_GetObjectItemCaseSensitive(v1_delete_optionsJSON, "propagationPolicy"); if (propagation_policy) { - if(!cJSON_IsString(propagation_policy)) + if(!cJSON_IsString(propagation_policy) && !cJSON_IsNull(propagation_policy)) { goto end; //String } @@ -223,13 +223,13 @@ v1_delete_options_t *v1_delete_options_parseFromJSON(cJSON *v1_delete_optionsJSO v1_delete_options_local_var = v1_delete_options_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, dry_run ? dry_runList : NULL, grace_period_seconds ? grace_period_seconds->valuedouble : 0, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, orphan_dependents ? orphan_dependents->valueint : 0, preconditions ? preconditions_local_nonprim : NULL, - propagation_policy ? strdup(propagation_policy->valuestring) : NULL + propagation_policy && !cJSON_IsNull(propagation_policy) ? strdup(propagation_policy->valuestring) : NULL ); return v1_delete_options_local_var; diff --git a/kubernetes/model/v1_deployment.c b/kubernetes/model/v1_deployment.c index 496a4696..9523acb8 100644 --- a/kubernetes/model/v1_deployment.c +++ b/kubernetes/model/v1_deployment.c @@ -135,7 +135,7 @@ v1_deployment_t *v1_deployment_parseFromJSON(cJSON *v1_deploymentJSON){ // v1_deployment->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_deploymentJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1_deployment_t *v1_deployment_parseFromJSON(cJSON *v1_deploymentJSON){ // v1_deployment->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_deploymentJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1_deployment_t *v1_deployment_parseFromJSON(cJSON *v1_deploymentJSON){ v1_deployment_local_var = v1_deployment_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_deployment_condition.c b/kubernetes/model/v1_deployment_condition.c index a193369d..29ef5ca6 100644 --- a/kubernetes/model/v1_deployment_condition.c +++ b/kubernetes/model/v1_deployment_condition.c @@ -145,7 +145,7 @@ v1_deployment_condition_t *v1_deployment_condition_parseFromJSON(cJSON *v1_deplo // v1_deployment_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_deployment_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -154,7 +154,7 @@ v1_deployment_condition_t *v1_deployment_condition_parseFromJSON(cJSON *v1_deplo // v1_deployment_condition->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_deployment_conditionJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -188,8 +188,8 @@ v1_deployment_condition_t *v1_deployment_condition_parseFromJSON(cJSON *v1_deplo v1_deployment_condition_local_var = v1_deployment_condition_create ( last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, last_update_time && !cJSON_IsNull(last_update_time) ? strdup(last_update_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), strdup(type->valuestring) ); diff --git a/kubernetes/model/v1_deployment_list.c b/kubernetes/model/v1_deployment_list.c index e6827839..f5770943 100644 --- a/kubernetes/model/v1_deployment_list.c +++ b/kubernetes/model/v1_deployment_list.c @@ -124,7 +124,7 @@ v1_deployment_list_t *v1_deployment_list_parseFromJSON(cJSON *v1_deployment_list // v1_deployment_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_deployment_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_deployment_list_t *v1_deployment_list_parseFromJSON(cJSON *v1_deployment_list // v1_deployment_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_deployment_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_deployment_list_t *v1_deployment_list_parseFromJSON(cJSON *v1_deployment_list v1_deployment_list_local_var = v1_deployment_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_deployment_strategy.c b/kubernetes/model/v1_deployment_strategy.c index 04afb0c5..e0668567 100644 --- a/kubernetes/model/v1_deployment_strategy.c +++ b/kubernetes/model/v1_deployment_strategy.c @@ -83,7 +83,7 @@ v1_deployment_strategy_t *v1_deployment_strategy_parseFromJSON(cJSON *v1_deploym // v1_deployment_strategy->type cJSON *type = cJSON_GetObjectItemCaseSensitive(v1_deployment_strategyJSON, "type"); if (type) { - if(!cJSON_IsString(type)) + if(!cJSON_IsString(type) && !cJSON_IsNull(type)) { goto end; //String } @@ -92,7 +92,7 @@ v1_deployment_strategy_t *v1_deployment_strategy_parseFromJSON(cJSON *v1_deploym v1_deployment_strategy_local_var = v1_deployment_strategy_create ( rolling_update ? rolling_update_local_nonprim : NULL, - type ? strdup(type->valuestring) : NULL + type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL ); return v1_deployment_strategy_local_var; diff --git a/kubernetes/model/v1_empty_dir_volume_source.c b/kubernetes/model/v1_empty_dir_volume_source.c index 358f9938..3050c39c 100644 --- a/kubernetes/model/v1_empty_dir_volume_source.c +++ b/kubernetes/model/v1_empty_dir_volume_source.c @@ -69,7 +69,7 @@ v1_empty_dir_volume_source_t *v1_empty_dir_volume_source_parseFromJSON(cJSON *v1 // v1_empty_dir_volume_source->medium cJSON *medium = cJSON_GetObjectItemCaseSensitive(v1_empty_dir_volume_sourceJSON, "medium"); if (medium) { - if(!cJSON_IsString(medium)) + if(!cJSON_IsString(medium) && !cJSON_IsNull(medium)) { goto end; //String } @@ -78,7 +78,7 @@ v1_empty_dir_volume_source_t *v1_empty_dir_volume_source_parseFromJSON(cJSON *v1 // v1_empty_dir_volume_source->size_limit cJSON *size_limit = cJSON_GetObjectItemCaseSensitive(v1_empty_dir_volume_sourceJSON, "sizeLimit"); if (size_limit) { - if(!cJSON_IsString(size_limit)) + if(!cJSON_IsString(size_limit) && !cJSON_IsNull(size_limit)) { goto end; //String } @@ -86,8 +86,8 @@ v1_empty_dir_volume_source_t *v1_empty_dir_volume_source_parseFromJSON(cJSON *v1 v1_empty_dir_volume_source_local_var = v1_empty_dir_volume_source_create ( - medium ? strdup(medium->valuestring) : NULL, - size_limit ? strdup(size_limit->valuestring) : NULL + medium && !cJSON_IsNull(medium) ? strdup(medium->valuestring) : NULL, + size_limit && !cJSON_IsNull(size_limit) ? strdup(size_limit->valuestring) : NULL ); return v1_empty_dir_volume_source_local_var; diff --git a/kubernetes/model/v1_endpoint.c b/kubernetes/model/v1_endpoint.c index 8969a6e6..098157cc 100644 --- a/kubernetes/model/v1_endpoint.c +++ b/kubernetes/model/v1_endpoint.c @@ -273,7 +273,7 @@ v1_endpoint_t *v1_endpoint_parseFromJSON(cJSON *v1_endpointJSON){ // v1_endpoint->hostname cJSON *hostname = cJSON_GetObjectItemCaseSensitive(v1_endpointJSON, "hostname"); if (hostname) { - if(!cJSON_IsString(hostname)) + if(!cJSON_IsString(hostname) && !cJSON_IsNull(hostname)) { goto end; //String } @@ -282,7 +282,7 @@ v1_endpoint_t *v1_endpoint_parseFromJSON(cJSON *v1_endpointJSON){ // v1_endpoint->node_name cJSON *node_name = cJSON_GetObjectItemCaseSensitive(v1_endpointJSON, "nodeName"); if (node_name) { - if(!cJSON_IsString(node_name)) + if(!cJSON_IsString(node_name) && !cJSON_IsNull(node_name)) { goto end; //String } @@ -297,7 +297,7 @@ v1_endpoint_t *v1_endpoint_parseFromJSON(cJSON *v1_endpointJSON){ // v1_endpoint->zone cJSON *zone = cJSON_GetObjectItemCaseSensitive(v1_endpointJSON, "zone"); if (zone) { - if(!cJSON_IsString(zone)) + if(!cJSON_IsString(zone) && !cJSON_IsNull(zone)) { goto end; //String } @@ -309,10 +309,10 @@ v1_endpoint_t *v1_endpoint_parseFromJSON(cJSON *v1_endpointJSON){ conditions ? conditions_local_nonprim : NULL, deprecated_topology ? deprecated_topologyList : NULL, hints ? hints_local_nonprim : NULL, - hostname ? strdup(hostname->valuestring) : NULL, - node_name ? strdup(node_name->valuestring) : NULL, + hostname && !cJSON_IsNull(hostname) ? strdup(hostname->valuestring) : NULL, + node_name && !cJSON_IsNull(node_name) ? strdup(node_name->valuestring) : NULL, target_ref ? target_ref_local_nonprim : NULL, - zone ? strdup(zone->valuestring) : NULL + zone && !cJSON_IsNull(zone) ? strdup(zone->valuestring) : NULL ); return v1_endpoint_local_var; diff --git a/kubernetes/model/v1_endpoint_address.c b/kubernetes/model/v1_endpoint_address.c index fc91e557..cfb5e263 100644 --- a/kubernetes/model/v1_endpoint_address.c +++ b/kubernetes/model/v1_endpoint_address.c @@ -106,7 +106,7 @@ v1_endpoint_address_t *v1_endpoint_address_parseFromJSON(cJSON *v1_endpoint_addr // v1_endpoint_address->hostname cJSON *hostname = cJSON_GetObjectItemCaseSensitive(v1_endpoint_addressJSON, "hostname"); if (hostname) { - if(!cJSON_IsString(hostname)) + if(!cJSON_IsString(hostname) && !cJSON_IsNull(hostname)) { goto end; //String } @@ -127,7 +127,7 @@ v1_endpoint_address_t *v1_endpoint_address_parseFromJSON(cJSON *v1_endpoint_addr // v1_endpoint_address->node_name cJSON *node_name = cJSON_GetObjectItemCaseSensitive(v1_endpoint_addressJSON, "nodeName"); if (node_name) { - if(!cJSON_IsString(node_name)) + if(!cJSON_IsString(node_name) && !cJSON_IsNull(node_name)) { goto end; //String } @@ -141,9 +141,9 @@ v1_endpoint_address_t *v1_endpoint_address_parseFromJSON(cJSON *v1_endpoint_addr v1_endpoint_address_local_var = v1_endpoint_address_create ( - hostname ? strdup(hostname->valuestring) : NULL, + hostname && !cJSON_IsNull(hostname) ? strdup(hostname->valuestring) : NULL, strdup(ip->valuestring), - node_name ? strdup(node_name->valuestring) : NULL, + node_name && !cJSON_IsNull(node_name) ? strdup(node_name->valuestring) : NULL, target_ref ? target_ref_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_endpoint_slice.c b/kubernetes/model/v1_endpoint_slice.c index a025fba7..4d7e7704 100644 --- a/kubernetes/model/v1_endpoint_slice.c +++ b/kubernetes/model/v1_endpoint_slice.c @@ -183,7 +183,7 @@ v1_endpoint_slice_t *v1_endpoint_slice_parseFromJSON(cJSON *v1_endpoint_sliceJSO // v1_endpoint_slice->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_endpoint_sliceJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -216,7 +216,7 @@ v1_endpoint_slice_t *v1_endpoint_slice_parseFromJSON(cJSON *v1_endpoint_sliceJSO // v1_endpoint_slice->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_endpoint_sliceJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -252,9 +252,9 @@ v1_endpoint_slice_t *v1_endpoint_slice_parseFromJSON(cJSON *v1_endpoint_sliceJSO v1_endpoint_slice_local_var = v1_endpoint_slice_create ( strdup(address_type->valuestring), - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, endpointsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, ports ? portsList : NULL ); diff --git a/kubernetes/model/v1_endpoint_slice_list.c b/kubernetes/model/v1_endpoint_slice_list.c index 72d87be4..50070287 100644 --- a/kubernetes/model/v1_endpoint_slice_list.c +++ b/kubernetes/model/v1_endpoint_slice_list.c @@ -124,7 +124,7 @@ v1_endpoint_slice_list_t *v1_endpoint_slice_list_parseFromJSON(cJSON *v1_endpoin // v1_endpoint_slice_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_endpoint_slice_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_endpoint_slice_list_t *v1_endpoint_slice_list_parseFromJSON(cJSON *v1_endpoin // v1_endpoint_slice_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_endpoint_slice_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_endpoint_slice_list_t *v1_endpoint_slice_list_parseFromJSON(cJSON *v1_endpoin v1_endpoint_slice_list_local_var = v1_endpoint_slice_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_endpoints.c b/kubernetes/model/v1_endpoints.c index 6279fafe..fa69094b 100644 --- a/kubernetes/model/v1_endpoints.c +++ b/kubernetes/model/v1_endpoints.c @@ -123,7 +123,7 @@ v1_endpoints_t *v1_endpoints_parseFromJSON(cJSON *v1_endpointsJSON){ // v1_endpoints->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_endpointsJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -132,7 +132,7 @@ v1_endpoints_t *v1_endpoints_parseFromJSON(cJSON *v1_endpointsJSON){ // v1_endpoints->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_endpointsJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -167,8 +167,8 @@ v1_endpoints_t *v1_endpoints_parseFromJSON(cJSON *v1_endpointsJSON){ v1_endpoints_local_var = v1_endpoints_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, subsets ? subsetsList : NULL ); diff --git a/kubernetes/model/v1_endpoints_list.c b/kubernetes/model/v1_endpoints_list.c index fb16547a..471b09ee 100644 --- a/kubernetes/model/v1_endpoints_list.c +++ b/kubernetes/model/v1_endpoints_list.c @@ -124,7 +124,7 @@ v1_endpoints_list_t *v1_endpoints_list_parseFromJSON(cJSON *v1_endpoints_listJSO // v1_endpoints_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_endpoints_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_endpoints_list_t *v1_endpoints_list_parseFromJSON(cJSON *v1_endpoints_listJSO // v1_endpoints_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_endpoints_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_endpoints_list_t *v1_endpoints_list_parseFromJSON(cJSON *v1_endpoints_listJSO v1_endpoints_list_local_var = v1_endpoints_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_env_from_source.c b/kubernetes/model/v1_env_from_source.c index e368527a..f31fb7aa 100644 --- a/kubernetes/model/v1_env_from_source.c +++ b/kubernetes/model/v1_env_from_source.c @@ -105,7 +105,7 @@ v1_env_from_source_t *v1_env_from_source_parseFromJSON(cJSON *v1_env_from_source // v1_env_from_source->prefix cJSON *prefix = cJSON_GetObjectItemCaseSensitive(v1_env_from_sourceJSON, "prefix"); if (prefix) { - if(!cJSON_IsString(prefix)) + if(!cJSON_IsString(prefix) && !cJSON_IsNull(prefix)) { goto end; //String } @@ -120,7 +120,7 @@ v1_env_from_source_t *v1_env_from_source_parseFromJSON(cJSON *v1_env_from_source v1_env_from_source_local_var = v1_env_from_source_create ( config_map_ref ? config_map_ref_local_nonprim : NULL, - prefix ? strdup(prefix->valuestring) : NULL, + prefix && !cJSON_IsNull(prefix) ? strdup(prefix->valuestring) : NULL, secret_ref ? secret_ref_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_env_var.c b/kubernetes/model/v1_env_var.c index 219c6b01..dd382299 100644 --- a/kubernetes/model/v1_env_var.c +++ b/kubernetes/model/v1_env_var.c @@ -104,7 +104,7 @@ v1_env_var_t *v1_env_var_parseFromJSON(cJSON *v1_env_varJSON){ // v1_env_var->value cJSON *value = cJSON_GetObjectItemCaseSensitive(v1_env_varJSON, "value"); if (value) { - if(!cJSON_IsString(value)) + if(!cJSON_IsString(value) && !cJSON_IsNull(value)) { goto end; //String } @@ -119,7 +119,7 @@ v1_env_var_t *v1_env_var_parseFromJSON(cJSON *v1_env_varJSON){ v1_env_var_local_var = v1_env_var_create ( strdup(name->valuestring), - value ? strdup(value->valuestring) : NULL, + value && !cJSON_IsNull(value) ? strdup(value->valuestring) : NULL, value_from ? value_from_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_ephemeral_container.c b/kubernetes/model/v1_ephemeral_container.c index 07c96345..573ad677 100644 --- a/kubernetes/model/v1_ephemeral_container.c +++ b/kubernetes/model/v1_ephemeral_container.c @@ -600,7 +600,7 @@ v1_ephemeral_container_t *v1_ephemeral_container_parseFromJSON(cJSON *v1_ephemer // v1_ephemeral_container->image cJSON *image = cJSON_GetObjectItemCaseSensitive(v1_ephemeral_containerJSON, "image"); if (image) { - if(!cJSON_IsString(image)) + if(!cJSON_IsString(image) && !cJSON_IsNull(image)) { goto end; //String } @@ -609,7 +609,7 @@ v1_ephemeral_container_t *v1_ephemeral_container_parseFromJSON(cJSON *v1_ephemer // v1_ephemeral_container->image_pull_policy cJSON *image_pull_policy = cJSON_GetObjectItemCaseSensitive(v1_ephemeral_containerJSON, "imagePullPolicy"); if (image_pull_policy) { - if(!cJSON_IsString(image_pull_policy)) + if(!cJSON_IsString(image_pull_policy) && !cJSON_IsNull(image_pull_policy)) { goto end; //String } @@ -705,7 +705,7 @@ v1_ephemeral_container_t *v1_ephemeral_container_parseFromJSON(cJSON *v1_ephemer // v1_ephemeral_container->target_container_name cJSON *target_container_name = cJSON_GetObjectItemCaseSensitive(v1_ephemeral_containerJSON, "targetContainerName"); if (target_container_name) { - if(!cJSON_IsString(target_container_name)) + if(!cJSON_IsString(target_container_name) && !cJSON_IsNull(target_container_name)) { goto end; //String } @@ -714,7 +714,7 @@ v1_ephemeral_container_t *v1_ephemeral_container_parseFromJSON(cJSON *v1_ephemer // v1_ephemeral_container->termination_message_path cJSON *termination_message_path = cJSON_GetObjectItemCaseSensitive(v1_ephemeral_containerJSON, "terminationMessagePath"); if (termination_message_path) { - if(!cJSON_IsString(termination_message_path)) + if(!cJSON_IsString(termination_message_path) && !cJSON_IsNull(termination_message_path)) { goto end; //String } @@ -723,7 +723,7 @@ v1_ephemeral_container_t *v1_ephemeral_container_parseFromJSON(cJSON *v1_ephemer // v1_ephemeral_container->termination_message_policy cJSON *termination_message_policy = cJSON_GetObjectItemCaseSensitive(v1_ephemeral_containerJSON, "terminationMessagePolicy"); if (termination_message_policy) { - if(!cJSON_IsString(termination_message_policy)) + if(!cJSON_IsString(termination_message_policy) && !cJSON_IsNull(termination_message_policy)) { goto end; //String } @@ -783,7 +783,7 @@ v1_ephemeral_container_t *v1_ephemeral_container_parseFromJSON(cJSON *v1_ephemer // v1_ephemeral_container->working_dir cJSON *working_dir = cJSON_GetObjectItemCaseSensitive(v1_ephemeral_containerJSON, "workingDir"); if (working_dir) { - if(!cJSON_IsString(working_dir)) + if(!cJSON_IsString(working_dir) && !cJSON_IsNull(working_dir)) { goto end; //String } @@ -795,8 +795,8 @@ v1_ephemeral_container_t *v1_ephemeral_container_parseFromJSON(cJSON *v1_ephemer command ? commandList : NULL, env ? envList : NULL, env_from ? env_fromList : NULL, - image ? strdup(image->valuestring) : NULL, - image_pull_policy ? strdup(image_pull_policy->valuestring) : NULL, + image && !cJSON_IsNull(image) ? strdup(image->valuestring) : NULL, + image_pull_policy && !cJSON_IsNull(image_pull_policy) ? strdup(image_pull_policy->valuestring) : NULL, lifecycle ? lifecycle_local_nonprim : NULL, liveness_probe ? liveness_probe_local_nonprim : NULL, strdup(name->valuestring), @@ -807,13 +807,13 @@ v1_ephemeral_container_t *v1_ephemeral_container_parseFromJSON(cJSON *v1_ephemer startup_probe ? startup_probe_local_nonprim : NULL, _stdin ? _stdin->valueint : 0, stdin_once ? stdin_once->valueint : 0, - target_container_name ? strdup(target_container_name->valuestring) : NULL, - termination_message_path ? strdup(termination_message_path->valuestring) : NULL, - termination_message_policy ? strdup(termination_message_policy->valuestring) : NULL, + target_container_name && !cJSON_IsNull(target_container_name) ? strdup(target_container_name->valuestring) : NULL, + termination_message_path && !cJSON_IsNull(termination_message_path) ? strdup(termination_message_path->valuestring) : NULL, + termination_message_policy && !cJSON_IsNull(termination_message_policy) ? strdup(termination_message_policy->valuestring) : NULL, tty ? tty->valueint : 0, volume_devices ? volume_devicesList : NULL, volume_mounts ? volume_mountsList : NULL, - working_dir ? strdup(working_dir->valuestring) : NULL + working_dir && !cJSON_IsNull(working_dir) ? strdup(working_dir->valuestring) : NULL ); return v1_ephemeral_container_local_var; diff --git a/kubernetes/model/v1_event_source.c b/kubernetes/model/v1_event_source.c index 378896cc..dd8c056a 100644 --- a/kubernetes/model/v1_event_source.c +++ b/kubernetes/model/v1_event_source.c @@ -69,7 +69,7 @@ v1_event_source_t *v1_event_source_parseFromJSON(cJSON *v1_event_sourceJSON){ // v1_event_source->component cJSON *component = cJSON_GetObjectItemCaseSensitive(v1_event_sourceJSON, "component"); if (component) { - if(!cJSON_IsString(component)) + if(!cJSON_IsString(component) && !cJSON_IsNull(component)) { goto end; //String } @@ -78,7 +78,7 @@ v1_event_source_t *v1_event_source_parseFromJSON(cJSON *v1_event_sourceJSON){ // v1_event_source->host cJSON *host = cJSON_GetObjectItemCaseSensitive(v1_event_sourceJSON, "host"); if (host) { - if(!cJSON_IsString(host)) + if(!cJSON_IsString(host) && !cJSON_IsNull(host)) { goto end; //String } @@ -86,8 +86,8 @@ v1_event_source_t *v1_event_source_parseFromJSON(cJSON *v1_event_sourceJSON){ v1_event_source_local_var = v1_event_source_create ( - component ? strdup(component->valuestring) : NULL, - host ? strdup(host->valuestring) : NULL + component && !cJSON_IsNull(component) ? strdup(component->valuestring) : NULL, + host && !cJSON_IsNull(host) ? strdup(host->valuestring) : NULL ); return v1_event_source_local_var; diff --git a/kubernetes/model/v1_eviction.c b/kubernetes/model/v1_eviction.c index 99457b37..65a25b77 100644 --- a/kubernetes/model/v1_eviction.c +++ b/kubernetes/model/v1_eviction.c @@ -113,7 +113,7 @@ v1_eviction_t *v1_eviction_parseFromJSON(cJSON *v1_evictionJSON){ // v1_eviction->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_evictionJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -128,7 +128,7 @@ v1_eviction_t *v1_eviction_parseFromJSON(cJSON *v1_evictionJSON){ // v1_eviction->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_evictionJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -142,9 +142,9 @@ v1_eviction_t *v1_eviction_parseFromJSON(cJSON *v1_evictionJSON){ v1_eviction_local_var = v1_eviction_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, delete_options ? delete_options_local_nonprim : NULL, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_external_documentation.c b/kubernetes/model/v1_external_documentation.c index 6513c37c..12a82ad8 100644 --- a/kubernetes/model/v1_external_documentation.c +++ b/kubernetes/model/v1_external_documentation.c @@ -69,7 +69,7 @@ v1_external_documentation_t *v1_external_documentation_parseFromJSON(cJSON *v1_e // v1_external_documentation->description cJSON *description = cJSON_GetObjectItemCaseSensitive(v1_external_documentationJSON, "description"); if (description) { - if(!cJSON_IsString(description)) + if(!cJSON_IsString(description) && !cJSON_IsNull(description)) { goto end; //String } @@ -78,7 +78,7 @@ v1_external_documentation_t *v1_external_documentation_parseFromJSON(cJSON *v1_e // v1_external_documentation->url cJSON *url = cJSON_GetObjectItemCaseSensitive(v1_external_documentationJSON, "url"); if (url) { - if(!cJSON_IsString(url)) + if(!cJSON_IsString(url) && !cJSON_IsNull(url)) { goto end; //String } @@ -86,8 +86,8 @@ v1_external_documentation_t *v1_external_documentation_parseFromJSON(cJSON *v1_e v1_external_documentation_local_var = v1_external_documentation_create ( - description ? strdup(description->valuestring) : NULL, - url ? strdup(url->valuestring) : NULL + description && !cJSON_IsNull(description) ? strdup(description->valuestring) : NULL, + url && !cJSON_IsNull(url) ? strdup(url->valuestring) : NULL ); return v1_external_documentation_local_var; diff --git a/kubernetes/model/v1_fc_volume_source.c b/kubernetes/model/v1_fc_volume_source.c index 6ca1a913..f5213c4d 100644 --- a/kubernetes/model/v1_fc_volume_source.c +++ b/kubernetes/model/v1_fc_volume_source.c @@ -133,7 +133,7 @@ v1_fc_volume_source_t *v1_fc_volume_source_parseFromJSON(cJSON *v1_fc_volume_sou // v1_fc_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_fc_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -197,7 +197,7 @@ v1_fc_volume_source_t *v1_fc_volume_source_parseFromJSON(cJSON *v1_fc_volume_sou v1_fc_volume_source_local_var = v1_fc_volume_source_create ( - fs_type ? strdup(fs_type->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, lun ? lun->valuedouble : 0, read_only ? read_only->valueint : 0, target_wwns ? target_wwnsList : NULL, diff --git a/kubernetes/model/v1_flex_persistent_volume_source.c b/kubernetes/model/v1_flex_persistent_volume_source.c index 1523c959..07677ef2 100644 --- a/kubernetes/model/v1_flex_persistent_volume_source.c +++ b/kubernetes/model/v1_flex_persistent_volume_source.c @@ -149,7 +149,7 @@ v1_flex_persistent_volume_source_t *v1_flex_persistent_volume_source_parseFromJS // v1_flex_persistent_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_flex_persistent_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -198,7 +198,7 @@ v1_flex_persistent_volume_source_t *v1_flex_persistent_volume_source_parseFromJS v1_flex_persistent_volume_source_local_var = v1_flex_persistent_volume_source_create ( strdup(driver->valuestring), - fs_type ? strdup(fs_type->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, options ? optionsList : NULL, read_only ? read_only->valueint : 0, secret_ref ? secret_ref_local_nonprim : NULL diff --git a/kubernetes/model/v1_flex_volume_source.c b/kubernetes/model/v1_flex_volume_source.c index 6940b855..2c1a3c5c 100644 --- a/kubernetes/model/v1_flex_volume_source.c +++ b/kubernetes/model/v1_flex_volume_source.c @@ -149,7 +149,7 @@ v1_flex_volume_source_t *v1_flex_volume_source_parseFromJSON(cJSON *v1_flex_volu // v1_flex_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_flex_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -198,7 +198,7 @@ v1_flex_volume_source_t *v1_flex_volume_source_parseFromJSON(cJSON *v1_flex_volu v1_flex_volume_source_local_var = v1_flex_volume_source_create ( strdup(driver->valuestring), - fs_type ? strdup(fs_type->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, options ? optionsList : NULL, read_only ? read_only->valueint : 0, secret_ref ? secret_ref_local_nonprim : NULL diff --git a/kubernetes/model/v1_flocker_volume_source.c b/kubernetes/model/v1_flocker_volume_source.c index 70a31c1c..e86ae458 100644 --- a/kubernetes/model/v1_flocker_volume_source.c +++ b/kubernetes/model/v1_flocker_volume_source.c @@ -69,7 +69,7 @@ v1_flocker_volume_source_t *v1_flocker_volume_source_parseFromJSON(cJSON *v1_flo // v1_flocker_volume_source->dataset_name cJSON *dataset_name = cJSON_GetObjectItemCaseSensitive(v1_flocker_volume_sourceJSON, "datasetName"); if (dataset_name) { - if(!cJSON_IsString(dataset_name)) + if(!cJSON_IsString(dataset_name) && !cJSON_IsNull(dataset_name)) { goto end; //String } @@ -78,7 +78,7 @@ v1_flocker_volume_source_t *v1_flocker_volume_source_parseFromJSON(cJSON *v1_flo // v1_flocker_volume_source->dataset_uuid cJSON *dataset_uuid = cJSON_GetObjectItemCaseSensitive(v1_flocker_volume_sourceJSON, "datasetUUID"); if (dataset_uuid) { - if(!cJSON_IsString(dataset_uuid)) + if(!cJSON_IsString(dataset_uuid) && !cJSON_IsNull(dataset_uuid)) { goto end; //String } @@ -86,8 +86,8 @@ v1_flocker_volume_source_t *v1_flocker_volume_source_parseFromJSON(cJSON *v1_flo v1_flocker_volume_source_local_var = v1_flocker_volume_source_create ( - dataset_name ? strdup(dataset_name->valuestring) : NULL, - dataset_uuid ? strdup(dataset_uuid->valuestring) : NULL + dataset_name && !cJSON_IsNull(dataset_name) ? strdup(dataset_name->valuestring) : NULL, + dataset_uuid && !cJSON_IsNull(dataset_uuid) ? strdup(dataset_uuid->valuestring) : NULL ); return v1_flocker_volume_source_local_var; diff --git a/kubernetes/model/v1_gce_persistent_disk_volume_source.c b/kubernetes/model/v1_gce_persistent_disk_volume_source.c index 07f35bfc..f37f1837 100644 --- a/kubernetes/model/v1_gce_persistent_disk_volume_source.c +++ b/kubernetes/model/v1_gce_persistent_disk_volume_source.c @@ -90,7 +90,7 @@ v1_gce_persistent_disk_volume_source_t *v1_gce_persistent_disk_volume_source_par // v1_gce_persistent_disk_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_gce_persistent_disk_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -128,7 +128,7 @@ v1_gce_persistent_disk_volume_source_t *v1_gce_persistent_disk_volume_source_par v1_gce_persistent_disk_volume_source_local_var = v1_gce_persistent_disk_volume_source_create ( - fs_type ? strdup(fs_type->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, partition ? partition->valuedouble : 0, strdup(pd_name->valuestring), read_only ? read_only->valueint : 0 diff --git a/kubernetes/model/v1_git_repo_volume_source.c b/kubernetes/model/v1_git_repo_volume_source.c index 5ad39f55..d8128c10 100644 --- a/kubernetes/model/v1_git_repo_volume_source.c +++ b/kubernetes/model/v1_git_repo_volume_source.c @@ -84,7 +84,7 @@ v1_git_repo_volume_source_t *v1_git_repo_volume_source_parseFromJSON(cJSON *v1_g // v1_git_repo_volume_source->directory cJSON *directory = cJSON_GetObjectItemCaseSensitive(v1_git_repo_volume_sourceJSON, "directory"); if (directory) { - if(!cJSON_IsString(directory)) + if(!cJSON_IsString(directory) && !cJSON_IsNull(directory)) { goto end; //String } @@ -105,7 +105,7 @@ v1_git_repo_volume_source_t *v1_git_repo_volume_source_parseFromJSON(cJSON *v1_g // v1_git_repo_volume_source->revision cJSON *revision = cJSON_GetObjectItemCaseSensitive(v1_git_repo_volume_sourceJSON, "revision"); if (revision) { - if(!cJSON_IsString(revision)) + if(!cJSON_IsString(revision) && !cJSON_IsNull(revision)) { goto end; //String } @@ -113,9 +113,9 @@ v1_git_repo_volume_source_t *v1_git_repo_volume_source_parseFromJSON(cJSON *v1_g v1_git_repo_volume_source_local_var = v1_git_repo_volume_source_create ( - directory ? strdup(directory->valuestring) : NULL, + directory && !cJSON_IsNull(directory) ? strdup(directory->valuestring) : NULL, strdup(repository->valuestring), - revision ? strdup(revision->valuestring) : NULL + revision && !cJSON_IsNull(revision) ? strdup(revision->valuestring) : NULL ); return v1_git_repo_volume_source_local_var; diff --git a/kubernetes/model/v1_glusterfs_persistent_volume_source.c b/kubernetes/model/v1_glusterfs_persistent_volume_source.c index 22be0c61..853c17a1 100644 --- a/kubernetes/model/v1_glusterfs_persistent_volume_source.c +++ b/kubernetes/model/v1_glusterfs_persistent_volume_source.c @@ -107,7 +107,7 @@ v1_glusterfs_persistent_volume_source_t *v1_glusterfs_persistent_volume_source_p // v1_glusterfs_persistent_volume_source->endpoints_namespace cJSON *endpoints_namespace = cJSON_GetObjectItemCaseSensitive(v1_glusterfs_persistent_volume_sourceJSON, "endpointsNamespace"); if (endpoints_namespace) { - if(!cJSON_IsString(endpoints_namespace)) + if(!cJSON_IsString(endpoints_namespace) && !cJSON_IsNull(endpoints_namespace)) { goto end; //String } @@ -137,7 +137,7 @@ v1_glusterfs_persistent_volume_source_t *v1_glusterfs_persistent_volume_source_p v1_glusterfs_persistent_volume_source_local_var = v1_glusterfs_persistent_volume_source_create ( strdup(endpoints->valuestring), - endpoints_namespace ? strdup(endpoints_namespace->valuestring) : NULL, + endpoints_namespace && !cJSON_IsNull(endpoints_namespace) ? strdup(endpoints_namespace->valuestring) : NULL, strdup(path->valuestring), read_only ? read_only->valueint : 0 ); diff --git a/kubernetes/model/v1_grpc_action.c b/kubernetes/model/v1_grpc_action.c index d652a75e..ddef26c7 100644 --- a/kubernetes/model/v1_grpc_action.c +++ b/kubernetes/model/v1_grpc_action.c @@ -78,7 +78,7 @@ v1_grpc_action_t *v1_grpc_action_parseFromJSON(cJSON *v1_grpc_actionJSON){ // v1_grpc_action->service cJSON *service = cJSON_GetObjectItemCaseSensitive(v1_grpc_actionJSON, "service"); if (service) { - if(!cJSON_IsString(service)) + if(!cJSON_IsString(service) && !cJSON_IsNull(service)) { goto end; //String } @@ -87,7 +87,7 @@ v1_grpc_action_t *v1_grpc_action_parseFromJSON(cJSON *v1_grpc_actionJSON){ v1_grpc_action_local_var = v1_grpc_action_create ( port->valuedouble, - service ? strdup(service->valuestring) : NULL + service && !cJSON_IsNull(service) ? strdup(service->valuestring) : NULL ); return v1_grpc_action_local_var; diff --git a/kubernetes/model/v1_horizontal_pod_autoscaler.c b/kubernetes/model/v1_horizontal_pod_autoscaler.c index bf55c75e..3032bd2f 100644 --- a/kubernetes/model/v1_horizontal_pod_autoscaler.c +++ b/kubernetes/model/v1_horizontal_pod_autoscaler.c @@ -135,7 +135,7 @@ v1_horizontal_pod_autoscaler_t *v1_horizontal_pod_autoscaler_parseFromJSON(cJSON // v1_horizontal_pod_autoscaler->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_horizontal_pod_autoscalerJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1_horizontal_pod_autoscaler_t *v1_horizontal_pod_autoscaler_parseFromJSON(cJSON // v1_horizontal_pod_autoscaler->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_horizontal_pod_autoscalerJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1_horizontal_pod_autoscaler_t *v1_horizontal_pod_autoscaler_parseFromJSON(cJSON v1_horizontal_pod_autoscaler_local_var = v1_horizontal_pod_autoscaler_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_horizontal_pod_autoscaler_list.c b/kubernetes/model/v1_horizontal_pod_autoscaler_list.c index 16c9c278..2ccd447f 100644 --- a/kubernetes/model/v1_horizontal_pod_autoscaler_list.c +++ b/kubernetes/model/v1_horizontal_pod_autoscaler_list.c @@ -124,7 +124,7 @@ v1_horizontal_pod_autoscaler_list_t *v1_horizontal_pod_autoscaler_list_parseFrom // v1_horizontal_pod_autoscaler_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_horizontal_pod_autoscaler_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_horizontal_pod_autoscaler_list_t *v1_horizontal_pod_autoscaler_list_parseFrom // v1_horizontal_pod_autoscaler_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_horizontal_pod_autoscaler_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_horizontal_pod_autoscaler_list_t *v1_horizontal_pod_autoscaler_list_parseFrom v1_horizontal_pod_autoscaler_list_local_var = v1_horizontal_pod_autoscaler_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_host_alias.c b/kubernetes/model/v1_host_alias.c index 53c3f0cc..62406d9e 100644 --- a/kubernetes/model/v1_host_alias.c +++ b/kubernetes/model/v1_host_alias.c @@ -103,7 +103,7 @@ v1_host_alias_t *v1_host_alias_parseFromJSON(cJSON *v1_host_aliasJSON){ // v1_host_alias->ip cJSON *ip = cJSON_GetObjectItemCaseSensitive(v1_host_aliasJSON, "ip"); if (ip) { - if(!cJSON_IsString(ip)) + if(!cJSON_IsString(ip) && !cJSON_IsNull(ip)) { goto end; //String } @@ -112,7 +112,7 @@ v1_host_alias_t *v1_host_alias_parseFromJSON(cJSON *v1_host_aliasJSON){ v1_host_alias_local_var = v1_host_alias_create ( hostnames ? hostnamesList : NULL, - ip ? strdup(ip->valuestring) : NULL + ip && !cJSON_IsNull(ip) ? strdup(ip->valuestring) : NULL ); return v1_host_alias_local_var; diff --git a/kubernetes/model/v1_host_path_volume_source.c b/kubernetes/model/v1_host_path_volume_source.c index 5bef8cea..71b83626 100644 --- a/kubernetes/model/v1_host_path_volume_source.c +++ b/kubernetes/model/v1_host_path_volume_source.c @@ -82,7 +82,7 @@ v1_host_path_volume_source_t *v1_host_path_volume_source_parseFromJSON(cJSON *v1 // v1_host_path_volume_source->type cJSON *type = cJSON_GetObjectItemCaseSensitive(v1_host_path_volume_sourceJSON, "type"); if (type) { - if(!cJSON_IsString(type)) + if(!cJSON_IsString(type) && !cJSON_IsNull(type)) { goto end; //String } @@ -91,7 +91,7 @@ v1_host_path_volume_source_t *v1_host_path_volume_source_parseFromJSON(cJSON *v1 v1_host_path_volume_source_local_var = v1_host_path_volume_source_create ( strdup(path->valuestring), - type ? strdup(type->valuestring) : NULL + type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL ); return v1_host_path_volume_source_local_var; diff --git a/kubernetes/model/v1_http_get_action.c b/kubernetes/model/v1_http_get_action.c index 4c796ae0..0bc2f4a5 100644 --- a/kubernetes/model/v1_http_get_action.c +++ b/kubernetes/model/v1_http_get_action.c @@ -138,7 +138,7 @@ v1_http_get_action_t *v1_http_get_action_parseFromJSON(cJSON *v1_http_get_action // v1_http_get_action->host cJSON *host = cJSON_GetObjectItemCaseSensitive(v1_http_get_actionJSON, "host"); if (host) { - if(!cJSON_IsString(host)) + if(!cJSON_IsString(host) && !cJSON_IsNull(host)) { goto end; //String } @@ -168,7 +168,7 @@ v1_http_get_action_t *v1_http_get_action_parseFromJSON(cJSON *v1_http_get_action // v1_http_get_action->path cJSON *path = cJSON_GetObjectItemCaseSensitive(v1_http_get_actionJSON, "path"); if (path) { - if(!cJSON_IsString(path)) + if(!cJSON_IsString(path) && !cJSON_IsNull(path)) { goto end; //String } @@ -186,7 +186,7 @@ v1_http_get_action_t *v1_http_get_action_parseFromJSON(cJSON *v1_http_get_action // v1_http_get_action->scheme cJSON *scheme = cJSON_GetObjectItemCaseSensitive(v1_http_get_actionJSON, "scheme"); if (scheme) { - if(!cJSON_IsString(scheme)) + if(!cJSON_IsString(scheme) && !cJSON_IsNull(scheme)) { goto end; //String } @@ -194,11 +194,11 @@ v1_http_get_action_t *v1_http_get_action_parseFromJSON(cJSON *v1_http_get_action v1_http_get_action_local_var = v1_http_get_action_create ( - host ? strdup(host->valuestring) : NULL, + host && !cJSON_IsNull(host) ? strdup(host->valuestring) : NULL, http_headers ? http_headersList : NULL, - path ? strdup(path->valuestring) : NULL, + path && !cJSON_IsNull(path) ? strdup(path->valuestring) : NULL, port_local_nonprim, - scheme ? strdup(scheme->valuestring) : NULL + scheme && !cJSON_IsNull(scheme) ? strdup(scheme->valuestring) : NULL ); return v1_http_get_action_local_var; diff --git a/kubernetes/model/v1_http_ingress_path.c b/kubernetes/model/v1_http_ingress_path.c index 97e8093b..1a9ee969 100644 --- a/kubernetes/model/v1_http_ingress_path.c +++ b/kubernetes/model/v1_http_ingress_path.c @@ -102,7 +102,7 @@ v1_http_ingress_path_t *v1_http_ingress_path_parseFromJSON(cJSON *v1_http_ingres // v1_http_ingress_path->path cJSON *path = cJSON_GetObjectItemCaseSensitive(v1_http_ingress_pathJSON, "path"); if (path) { - if(!cJSON_IsString(path)) + if(!cJSON_IsString(path) && !cJSON_IsNull(path)) { goto end; //String } @@ -123,7 +123,7 @@ v1_http_ingress_path_t *v1_http_ingress_path_parseFromJSON(cJSON *v1_http_ingres v1_http_ingress_path_local_var = v1_http_ingress_path_create ( backend_local_nonprim, - path ? strdup(path->valuestring) : NULL, + path && !cJSON_IsNull(path) ? strdup(path->valuestring) : NULL, strdup(path_type->valuestring) ); diff --git a/kubernetes/model/v1_ingress.c b/kubernetes/model/v1_ingress.c index b9009b46..5f2c8941 100644 --- a/kubernetes/model/v1_ingress.c +++ b/kubernetes/model/v1_ingress.c @@ -135,7 +135,7 @@ v1_ingress_t *v1_ingress_parseFromJSON(cJSON *v1_ingressJSON){ // v1_ingress->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_ingressJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1_ingress_t *v1_ingress_parseFromJSON(cJSON *v1_ingressJSON){ // v1_ingress->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_ingressJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1_ingress_t *v1_ingress_parseFromJSON(cJSON *v1_ingressJSON){ v1_ingress_local_var = v1_ingress_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_ingress_class.c b/kubernetes/model/v1_ingress_class.c index 83ce4eb8..ebe925b3 100644 --- a/kubernetes/model/v1_ingress_class.c +++ b/kubernetes/model/v1_ingress_class.c @@ -113,7 +113,7 @@ v1_ingress_class_t *v1_ingress_class_parseFromJSON(cJSON *v1_ingress_classJSON){ // v1_ingress_class->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_ingress_classJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -122,7 +122,7 @@ v1_ingress_class_t *v1_ingress_class_parseFromJSON(cJSON *v1_ingress_classJSON){ // v1_ingress_class->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_ingress_classJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -142,8 +142,8 @@ v1_ingress_class_t *v1_ingress_class_parseFromJSON(cJSON *v1_ingress_classJSON){ v1_ingress_class_local_var = v1_ingress_class_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_ingress_class_list.c b/kubernetes/model/v1_ingress_class_list.c index 40319673..7c902b54 100644 --- a/kubernetes/model/v1_ingress_class_list.c +++ b/kubernetes/model/v1_ingress_class_list.c @@ -124,7 +124,7 @@ v1_ingress_class_list_t *v1_ingress_class_list_parseFromJSON(cJSON *v1_ingress_c // v1_ingress_class_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_ingress_class_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_ingress_class_list_t *v1_ingress_class_list_parseFromJSON(cJSON *v1_ingress_c // v1_ingress_class_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_ingress_class_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_ingress_class_list_t *v1_ingress_class_list_parseFromJSON(cJSON *v1_ingress_c v1_ingress_class_list_local_var = v1_ingress_class_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_ingress_class_parameters_reference.c b/kubernetes/model/v1_ingress_class_parameters_reference.c index 34f4eecc..d8aae0e2 100644 --- a/kubernetes/model/v1_ingress_class_parameters_reference.c +++ b/kubernetes/model/v1_ingress_class_parameters_reference.c @@ -113,7 +113,7 @@ v1_ingress_class_parameters_reference_t *v1_ingress_class_parameters_reference_p // v1_ingress_class_parameters_reference->api_group cJSON *api_group = cJSON_GetObjectItemCaseSensitive(v1_ingress_class_parameters_referenceJSON, "apiGroup"); if (api_group) { - if(!cJSON_IsString(api_group)) + if(!cJSON_IsString(api_group) && !cJSON_IsNull(api_group)) { goto end; //String } @@ -146,7 +146,7 @@ v1_ingress_class_parameters_reference_t *v1_ingress_class_parameters_reference_p // v1_ingress_class_parameters_reference->_namespace cJSON *_namespace = cJSON_GetObjectItemCaseSensitive(v1_ingress_class_parameters_referenceJSON, "namespace"); if (_namespace) { - if(!cJSON_IsString(_namespace)) + if(!cJSON_IsString(_namespace) && !cJSON_IsNull(_namespace)) { goto end; //String } @@ -155,7 +155,7 @@ v1_ingress_class_parameters_reference_t *v1_ingress_class_parameters_reference_p // v1_ingress_class_parameters_reference->scope cJSON *scope = cJSON_GetObjectItemCaseSensitive(v1_ingress_class_parameters_referenceJSON, "scope"); if (scope) { - if(!cJSON_IsString(scope)) + if(!cJSON_IsString(scope) && !cJSON_IsNull(scope)) { goto end; //String } @@ -163,11 +163,11 @@ v1_ingress_class_parameters_reference_t *v1_ingress_class_parameters_reference_p v1_ingress_class_parameters_reference_local_var = v1_ingress_class_parameters_reference_create ( - api_group ? strdup(api_group->valuestring) : NULL, + api_group && !cJSON_IsNull(api_group) ? strdup(api_group->valuestring) : NULL, strdup(kind->valuestring), strdup(name->valuestring), - _namespace ? strdup(_namespace->valuestring) : NULL, - scope ? strdup(scope->valuestring) : NULL + _namespace && !cJSON_IsNull(_namespace) ? strdup(_namespace->valuestring) : NULL, + scope && !cJSON_IsNull(scope) ? strdup(scope->valuestring) : NULL ); return v1_ingress_class_parameters_reference_local_var; diff --git a/kubernetes/model/v1_ingress_class_spec.c b/kubernetes/model/v1_ingress_class_spec.c index 0048b28d..a17355a9 100644 --- a/kubernetes/model/v1_ingress_class_spec.c +++ b/kubernetes/model/v1_ingress_class_spec.c @@ -77,7 +77,7 @@ v1_ingress_class_spec_t *v1_ingress_class_spec_parseFromJSON(cJSON *v1_ingress_c // v1_ingress_class_spec->controller cJSON *controller = cJSON_GetObjectItemCaseSensitive(v1_ingress_class_specJSON, "controller"); if (controller) { - if(!cJSON_IsString(controller)) + if(!cJSON_IsString(controller) && !cJSON_IsNull(controller)) { goto end; //String } @@ -91,7 +91,7 @@ v1_ingress_class_spec_t *v1_ingress_class_spec_parseFromJSON(cJSON *v1_ingress_c v1_ingress_class_spec_local_var = v1_ingress_class_spec_create ( - controller ? strdup(controller->valuestring) : NULL, + controller && !cJSON_IsNull(controller) ? strdup(controller->valuestring) : NULL, parameters ? parameters_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_ingress_list.c b/kubernetes/model/v1_ingress_list.c index 4329b0bd..880c1018 100644 --- a/kubernetes/model/v1_ingress_list.c +++ b/kubernetes/model/v1_ingress_list.c @@ -124,7 +124,7 @@ v1_ingress_list_t *v1_ingress_list_parseFromJSON(cJSON *v1_ingress_listJSON){ // v1_ingress_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_ingress_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_ingress_list_t *v1_ingress_list_parseFromJSON(cJSON *v1_ingress_listJSON){ // v1_ingress_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_ingress_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_ingress_list_t *v1_ingress_list_parseFromJSON(cJSON *v1_ingress_listJSON){ v1_ingress_list_local_var = v1_ingress_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_ingress_rule.c b/kubernetes/model/v1_ingress_rule.c index 5d446c83..9eb70041 100644 --- a/kubernetes/model/v1_ingress_rule.c +++ b/kubernetes/model/v1_ingress_rule.c @@ -77,7 +77,7 @@ v1_ingress_rule_t *v1_ingress_rule_parseFromJSON(cJSON *v1_ingress_ruleJSON){ // v1_ingress_rule->host cJSON *host = cJSON_GetObjectItemCaseSensitive(v1_ingress_ruleJSON, "host"); if (host) { - if(!cJSON_IsString(host)) + if(!cJSON_IsString(host) && !cJSON_IsNull(host)) { goto end; //String } @@ -91,7 +91,7 @@ v1_ingress_rule_t *v1_ingress_rule_parseFromJSON(cJSON *v1_ingress_ruleJSON){ v1_ingress_rule_local_var = v1_ingress_rule_create ( - host ? strdup(host->valuestring) : NULL, + host && !cJSON_IsNull(host) ? strdup(host->valuestring) : NULL, http ? http_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_ingress_spec.c b/kubernetes/model/v1_ingress_spec.c index ff5f84b9..e3702912 100644 --- a/kubernetes/model/v1_ingress_spec.c +++ b/kubernetes/model/v1_ingress_spec.c @@ -147,7 +147,7 @@ v1_ingress_spec_t *v1_ingress_spec_parseFromJSON(cJSON *v1_ingress_specJSON){ // v1_ingress_spec->ingress_class_name cJSON *ingress_class_name = cJSON_GetObjectItemCaseSensitive(v1_ingress_specJSON, "ingressClassName"); if (ingress_class_name) { - if(!cJSON_IsString(ingress_class_name)) + if(!cJSON_IsString(ingress_class_name) && !cJSON_IsNull(ingress_class_name)) { goto end; //String } @@ -198,7 +198,7 @@ v1_ingress_spec_t *v1_ingress_spec_parseFromJSON(cJSON *v1_ingress_specJSON){ v1_ingress_spec_local_var = v1_ingress_spec_create ( default_backend ? default_backend_local_nonprim : NULL, - ingress_class_name ? strdup(ingress_class_name->valuestring) : NULL, + ingress_class_name && !cJSON_IsNull(ingress_class_name) ? strdup(ingress_class_name->valuestring) : NULL, rules ? rulesList : NULL, tls ? tlsList : NULL ); diff --git a/kubernetes/model/v1_ingress_tls.c b/kubernetes/model/v1_ingress_tls.c index 137c01e1..60de9fa6 100644 --- a/kubernetes/model/v1_ingress_tls.c +++ b/kubernetes/model/v1_ingress_tls.c @@ -103,7 +103,7 @@ v1_ingress_tls_t *v1_ingress_tls_parseFromJSON(cJSON *v1_ingress_tlsJSON){ // v1_ingress_tls->secret_name cJSON *secret_name = cJSON_GetObjectItemCaseSensitive(v1_ingress_tlsJSON, "secretName"); if (secret_name) { - if(!cJSON_IsString(secret_name)) + if(!cJSON_IsString(secret_name) && !cJSON_IsNull(secret_name)) { goto end; //String } @@ -112,7 +112,7 @@ v1_ingress_tls_t *v1_ingress_tls_parseFromJSON(cJSON *v1_ingress_tlsJSON){ v1_ingress_tls_local_var = v1_ingress_tls_create ( hosts ? hostsList : NULL, - secret_name ? strdup(secret_name->valuestring) : NULL + secret_name && !cJSON_IsNull(secret_name) ? strdup(secret_name->valuestring) : NULL ); return v1_ingress_tls_local_var; diff --git a/kubernetes/model/v1_iscsi_persistent_volume_source.c b/kubernetes/model/v1_iscsi_persistent_volume_source.c index 1c18d5ad..025a8911 100644 --- a/kubernetes/model/v1_iscsi_persistent_volume_source.c +++ b/kubernetes/model/v1_iscsi_persistent_volume_source.c @@ -223,7 +223,7 @@ v1_iscsi_persistent_volume_source_t *v1_iscsi_persistent_volume_source_parseFrom // v1_iscsi_persistent_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_iscsi_persistent_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -232,7 +232,7 @@ v1_iscsi_persistent_volume_source_t *v1_iscsi_persistent_volume_source_parseFrom // v1_iscsi_persistent_volume_source->initiator_name cJSON *initiator_name = cJSON_GetObjectItemCaseSensitive(v1_iscsi_persistent_volume_sourceJSON, "initiatorName"); if (initiator_name) { - if(!cJSON_IsString(initiator_name)) + if(!cJSON_IsString(initiator_name) && !cJSON_IsNull(initiator_name)) { goto end; //String } @@ -253,7 +253,7 @@ v1_iscsi_persistent_volume_source_t *v1_iscsi_persistent_volume_source_parseFrom // v1_iscsi_persistent_volume_source->iscsi_interface cJSON *iscsi_interface = cJSON_GetObjectItemCaseSensitive(v1_iscsi_persistent_volume_sourceJSON, "iscsiInterface"); if (iscsi_interface) { - if(!cJSON_IsString(iscsi_interface)) + if(!cJSON_IsString(iscsi_interface) && !cJSON_IsNull(iscsi_interface)) { goto end; //String } @@ -321,10 +321,10 @@ v1_iscsi_persistent_volume_source_t *v1_iscsi_persistent_volume_source_parseFrom v1_iscsi_persistent_volume_source_local_var = v1_iscsi_persistent_volume_source_create ( chap_auth_discovery ? chap_auth_discovery->valueint : 0, chap_auth_session ? chap_auth_session->valueint : 0, - fs_type ? strdup(fs_type->valuestring) : NULL, - initiator_name ? strdup(initiator_name->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, + initiator_name && !cJSON_IsNull(initiator_name) ? strdup(initiator_name->valuestring) : NULL, strdup(iqn->valuestring), - iscsi_interface ? strdup(iscsi_interface->valuestring) : NULL, + iscsi_interface && !cJSON_IsNull(iscsi_interface) ? strdup(iscsi_interface->valuestring) : NULL, lun->valuedouble, portals ? portalsList : NULL, read_only ? read_only->valueint : 0, diff --git a/kubernetes/model/v1_iscsi_volume_source.c b/kubernetes/model/v1_iscsi_volume_source.c index 3497d7a4..7276802a 100644 --- a/kubernetes/model/v1_iscsi_volume_source.c +++ b/kubernetes/model/v1_iscsi_volume_source.c @@ -223,7 +223,7 @@ v1_iscsi_volume_source_t *v1_iscsi_volume_source_parseFromJSON(cJSON *v1_iscsi_v // v1_iscsi_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_iscsi_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -232,7 +232,7 @@ v1_iscsi_volume_source_t *v1_iscsi_volume_source_parseFromJSON(cJSON *v1_iscsi_v // v1_iscsi_volume_source->initiator_name cJSON *initiator_name = cJSON_GetObjectItemCaseSensitive(v1_iscsi_volume_sourceJSON, "initiatorName"); if (initiator_name) { - if(!cJSON_IsString(initiator_name)) + if(!cJSON_IsString(initiator_name) && !cJSON_IsNull(initiator_name)) { goto end; //String } @@ -253,7 +253,7 @@ v1_iscsi_volume_source_t *v1_iscsi_volume_source_parseFromJSON(cJSON *v1_iscsi_v // v1_iscsi_volume_source->iscsi_interface cJSON *iscsi_interface = cJSON_GetObjectItemCaseSensitive(v1_iscsi_volume_sourceJSON, "iscsiInterface"); if (iscsi_interface) { - if(!cJSON_IsString(iscsi_interface)) + if(!cJSON_IsString(iscsi_interface) && !cJSON_IsNull(iscsi_interface)) { goto end; //String } @@ -321,10 +321,10 @@ v1_iscsi_volume_source_t *v1_iscsi_volume_source_parseFromJSON(cJSON *v1_iscsi_v v1_iscsi_volume_source_local_var = v1_iscsi_volume_source_create ( chap_auth_discovery ? chap_auth_discovery->valueint : 0, chap_auth_session ? chap_auth_session->valueint : 0, - fs_type ? strdup(fs_type->valuestring) : NULL, - initiator_name ? strdup(initiator_name->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, + initiator_name && !cJSON_IsNull(initiator_name) ? strdup(initiator_name->valuestring) : NULL, strdup(iqn->valuestring), - iscsi_interface ? strdup(iscsi_interface->valuestring) : NULL, + iscsi_interface && !cJSON_IsNull(iscsi_interface) ? strdup(iscsi_interface->valuestring) : NULL, lun->valuedouble, portals ? portalsList : NULL, read_only ? read_only->valueint : 0, diff --git a/kubernetes/model/v1_job.c b/kubernetes/model/v1_job.c index c5e8df6e..cffd0d3e 100644 --- a/kubernetes/model/v1_job.c +++ b/kubernetes/model/v1_job.c @@ -135,7 +135,7 @@ v1_job_t *v1_job_parseFromJSON(cJSON *v1_jobJSON){ // v1_job->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_jobJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1_job_t *v1_job_parseFromJSON(cJSON *v1_jobJSON){ // v1_job->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_jobJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1_job_t *v1_job_parseFromJSON(cJSON *v1_jobJSON){ v1_job_local_var = v1_job_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_job_condition.c b/kubernetes/model/v1_job_condition.c index 008e41f3..4d03fe4b 100644 --- a/kubernetes/model/v1_job_condition.c +++ b/kubernetes/model/v1_job_condition.c @@ -145,7 +145,7 @@ v1_job_condition_t *v1_job_condition_parseFromJSON(cJSON *v1_job_conditionJSON){ // v1_job_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_job_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -154,7 +154,7 @@ v1_job_condition_t *v1_job_condition_parseFromJSON(cJSON *v1_job_conditionJSON){ // v1_job_condition->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_job_conditionJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -188,8 +188,8 @@ v1_job_condition_t *v1_job_condition_parseFromJSON(cJSON *v1_job_conditionJSON){ v1_job_condition_local_var = v1_job_condition_create ( last_probe_time && !cJSON_IsNull(last_probe_time) ? strdup(last_probe_time->valuestring) : NULL, last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), strdup(type->valuestring) ); diff --git a/kubernetes/model/v1_job_list.c b/kubernetes/model/v1_job_list.c index 74381cd0..0404df89 100644 --- a/kubernetes/model/v1_job_list.c +++ b/kubernetes/model/v1_job_list.c @@ -124,7 +124,7 @@ v1_job_list_t *v1_job_list_parseFromJSON(cJSON *v1_job_listJSON){ // v1_job_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_job_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_job_list_t *v1_job_list_parseFromJSON(cJSON *v1_job_listJSON){ // v1_job_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_job_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_job_list_t *v1_job_list_parseFromJSON(cJSON *v1_job_listJSON){ v1_job_list_local_var = v1_job_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_job_spec.c b/kubernetes/model/v1_job_spec.c index 9bb438ef..3e554a45 100644 --- a/kubernetes/model/v1_job_spec.c +++ b/kubernetes/model/v1_job_spec.c @@ -210,7 +210,7 @@ v1_job_spec_t *v1_job_spec_parseFromJSON(cJSON *v1_job_specJSON){ // v1_job_spec->completion_mode cJSON *completion_mode = cJSON_GetObjectItemCaseSensitive(v1_job_specJSON, "completionMode"); if (completion_mode) { - if(!cJSON_IsString(completion_mode)) + if(!cJSON_IsString(completion_mode) && !cJSON_IsNull(completion_mode)) { goto end; //String } @@ -286,7 +286,7 @@ v1_job_spec_t *v1_job_spec_parseFromJSON(cJSON *v1_job_specJSON){ v1_job_spec_local_var = v1_job_spec_create ( active_deadline_seconds ? active_deadline_seconds->valuedouble : 0, backoff_limit ? backoff_limit->valuedouble : 0, - completion_mode ? strdup(completion_mode->valuestring) : NULL, + completion_mode && !cJSON_IsNull(completion_mode) ? strdup(completion_mode->valuestring) : NULL, completions ? completions->valuedouble : 0, manual_selector ? manual_selector->valueint : 0, parallelism ? parallelism->valuedouble : 0, diff --git a/kubernetes/model/v1_job_status.c b/kubernetes/model/v1_job_status.c index 58f5f3f5..778a9515 100644 --- a/kubernetes/model/v1_job_status.c +++ b/kubernetes/model/v1_job_status.c @@ -186,7 +186,7 @@ v1_job_status_t *v1_job_status_parseFromJSON(cJSON *v1_job_statusJSON){ // v1_job_status->completed_indexes cJSON *completed_indexes = cJSON_GetObjectItemCaseSensitive(v1_job_statusJSON, "completedIndexes"); if (completed_indexes) { - if(!cJSON_IsString(completed_indexes)) + if(!cJSON_IsString(completed_indexes) && !cJSON_IsNull(completed_indexes)) { goto end; //String } @@ -267,7 +267,7 @@ v1_job_status_t *v1_job_status_parseFromJSON(cJSON *v1_job_statusJSON){ v1_job_status_local_var = v1_job_status_create ( active ? active->valuedouble : 0, - completed_indexes ? strdup(completed_indexes->valuestring) : NULL, + completed_indexes && !cJSON_IsNull(completed_indexes) ? strdup(completed_indexes->valuestring) : NULL, completion_time && !cJSON_IsNull(completion_time) ? strdup(completion_time->valuestring) : NULL, conditions ? conditionsList : NULL, failed ? failed->valuedouble : 0, diff --git a/kubernetes/model/v1_json_schema_props.c b/kubernetes/model/v1_json_schema_props.c index 57a8e50c..41316951 100644 --- a/kubernetes/model/v1_json_schema_props.c +++ b/kubernetes/model/v1_json_schema_props.c @@ -822,7 +822,7 @@ v1_json_schema_props_t *v1_json_schema_props_parseFromJSON(cJSON *v1_json_schema // v1_json_schema_props->ref cJSON *ref = cJSON_GetObjectItemCaseSensitive(v1_json_schema_propsJSON, "$ref"); if (ref) { - if(!cJSON_IsString(ref)) + if(!cJSON_IsString(ref) && !cJSON_IsNull(ref)) { goto end; //String } @@ -831,7 +831,7 @@ v1_json_schema_props_t *v1_json_schema_props_parseFromJSON(cJSON *v1_json_schema // v1_json_schema_props->schema cJSON *schema = cJSON_GetObjectItemCaseSensitive(v1_json_schema_propsJSON, "$schema"); if (schema) { - if(!cJSON_IsString(schema)) + if(!cJSON_IsString(schema) && !cJSON_IsNull(schema)) { goto end; //String } @@ -931,7 +931,7 @@ v1_json_schema_props_t *v1_json_schema_props_parseFromJSON(cJSON *v1_json_schema // v1_json_schema_props->description cJSON *description = cJSON_GetObjectItemCaseSensitive(v1_json_schema_propsJSON, "description"); if (description) { - if(!cJSON_IsString(description)) + if(!cJSON_IsString(description) && !cJSON_IsNull(description)) { goto end; //String } @@ -992,7 +992,7 @@ v1_json_schema_props_t *v1_json_schema_props_parseFromJSON(cJSON *v1_json_schema // v1_json_schema_props->format cJSON *format = cJSON_GetObjectItemCaseSensitive(v1_json_schema_propsJSON, "format"); if (format) { - if(!cJSON_IsString(format)) + if(!cJSON_IsString(format) && !cJSON_IsNull(format)) { goto end; //String } @@ -1001,7 +1001,7 @@ v1_json_schema_props_t *v1_json_schema_props_parseFromJSON(cJSON *v1_json_schema // v1_json_schema_props->id cJSON *id = cJSON_GetObjectItemCaseSensitive(v1_json_schema_propsJSON, "id"); if (id) { - if(!cJSON_IsString(id)) + if(!cJSON_IsString(id) && !cJSON_IsNull(id)) { goto end; //String } @@ -1134,7 +1134,7 @@ v1_json_schema_props_t *v1_json_schema_props_parseFromJSON(cJSON *v1_json_schema // v1_json_schema_props->pattern cJSON *pattern = cJSON_GetObjectItemCaseSensitive(v1_json_schema_propsJSON, "pattern"); if (pattern) { - if(!cJSON_IsString(pattern)) + if(!cJSON_IsString(pattern) && !cJSON_IsNull(pattern)) { goto end; //String } @@ -1178,7 +1178,7 @@ v1_json_schema_props_t *v1_json_schema_props_parseFromJSON(cJSON *v1_json_schema // v1_json_schema_props->title cJSON *title = cJSON_GetObjectItemCaseSensitive(v1_json_schema_propsJSON, "title"); if (title) { - if(!cJSON_IsString(title)) + if(!cJSON_IsString(title) && !cJSON_IsNull(title)) { goto end; //String } @@ -1187,7 +1187,7 @@ v1_json_schema_props_t *v1_json_schema_props_parseFromJSON(cJSON *v1_json_schema // v1_json_schema_props->type cJSON *type = cJSON_GetObjectItemCaseSensitive(v1_json_schema_propsJSON, "type"); if (type) { - if(!cJSON_IsString(type)) + if(!cJSON_IsString(type) && !cJSON_IsNull(type)) { goto end; //String } @@ -1242,7 +1242,7 @@ v1_json_schema_props_t *v1_json_schema_props_parseFromJSON(cJSON *v1_json_schema // v1_json_schema_props->x_kubernetes_list_type cJSON *x_kubernetes_list_type = cJSON_GetObjectItemCaseSensitive(v1_json_schema_propsJSON, "x-kubernetes-list-type"); if (x_kubernetes_list_type) { - if(!cJSON_IsString(x_kubernetes_list_type)) + if(!cJSON_IsString(x_kubernetes_list_type) && !cJSON_IsNull(x_kubernetes_list_type)) { goto end; //String } @@ -1251,7 +1251,7 @@ v1_json_schema_props_t *v1_json_schema_props_parseFromJSON(cJSON *v1_json_schema // v1_json_schema_props->x_kubernetes_map_type cJSON *x_kubernetes_map_type = cJSON_GetObjectItemCaseSensitive(v1_json_schema_propsJSON, "x-kubernetes-map-type"); if (x_kubernetes_map_type) { - if(!cJSON_IsString(x_kubernetes_map_type)) + if(!cJSON_IsString(x_kubernetes_map_type) && !cJSON_IsNull(x_kubernetes_map_type)) { goto end; //String } @@ -1289,8 +1289,8 @@ v1_json_schema_props_t *v1_json_schema_props_parseFromJSON(cJSON *v1_json_schema v1_json_schema_props_local_var = v1_json_schema_props_create ( - ref ? strdup(ref->valuestring) : NULL, - schema ? strdup(schema->valuestring) : NULL, + ref && !cJSON_IsNull(ref) ? strdup(ref->valuestring) : NULL, + schema && !cJSON_IsNull(schema) ? strdup(schema->valuestring) : NULL, additional_items ? additional_items_local_object : NULL, additional_properties ? additional_properties_local_object : NULL, all_of ? all_ofList : NULL, @@ -1298,14 +1298,14 @@ v1_json_schema_props_t *v1_json_schema_props_parseFromJSON(cJSON *v1_json_schema _default ? _default_local_object : NULL, definitions ? definitionsList : NULL, dependencies ? dependenciesList : NULL, - description ? strdup(description->valuestring) : NULL, + description && !cJSON_IsNull(description) ? strdup(description->valuestring) : NULL, _enum ? _enumList : NULL, example ? example_local_object : NULL, exclusive_maximum ? exclusive_maximum->valueint : 0, exclusive_minimum ? exclusive_minimum->valueint : 0, external_docs ? external_docs_local_nonprim : NULL, - format ? strdup(format->valuestring) : NULL, - id ? strdup(id->valuestring) : NULL, + format && !cJSON_IsNull(format) ? strdup(format->valuestring) : NULL, + id && !cJSON_IsNull(id) ? strdup(id->valuestring) : NULL, items ? items_local_object : NULL, max_items ? max_items->valuedouble : 0, max_length ? max_length->valuedouble : 0, @@ -1319,18 +1319,18 @@ v1_json_schema_props_t *v1_json_schema_props_parseFromJSON(cJSON *v1_json_schema _not ? _not_local_nonprim : NULL, nullable ? nullable->valueint : 0, one_of ? one_ofList : NULL, - pattern ? strdup(pattern->valuestring) : NULL, + pattern && !cJSON_IsNull(pattern) ? strdup(pattern->valuestring) : NULL, pattern_properties ? pattern_propertiesList : NULL, properties ? propertiesList : NULL, required ? requiredList : NULL, - title ? strdup(title->valuestring) : NULL, - type ? strdup(type->valuestring) : NULL, + title && !cJSON_IsNull(title) ? strdup(title->valuestring) : NULL, + type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL, unique_items ? unique_items->valueint : 0, x_kubernetes_embedded_resource ? x_kubernetes_embedded_resource->valueint : 0, x_kubernetes_int_or_string ? x_kubernetes_int_or_string->valueint : 0, x_kubernetes_list_map_keys ? x_kubernetes_list_map_keysList : NULL, - x_kubernetes_list_type ? strdup(x_kubernetes_list_type->valuestring) : NULL, - x_kubernetes_map_type ? strdup(x_kubernetes_map_type->valuestring) : NULL, + x_kubernetes_list_type && !cJSON_IsNull(x_kubernetes_list_type) ? strdup(x_kubernetes_list_type->valuestring) : NULL, + x_kubernetes_map_type && !cJSON_IsNull(x_kubernetes_map_type) ? strdup(x_kubernetes_map_type->valuestring) : NULL, x_kubernetes_preserve_unknown_fields ? x_kubernetes_preserve_unknown_fields->valueint : 0, x_kubernetes_validations ? x_kubernetes_validationsList : NULL ); diff --git a/kubernetes/model/v1_lease.c b/kubernetes/model/v1_lease.c index 34432d58..acccb67c 100644 --- a/kubernetes/model/v1_lease.c +++ b/kubernetes/model/v1_lease.c @@ -113,7 +113,7 @@ v1_lease_t *v1_lease_parseFromJSON(cJSON *v1_leaseJSON){ // v1_lease->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_leaseJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -122,7 +122,7 @@ v1_lease_t *v1_lease_parseFromJSON(cJSON *v1_leaseJSON){ // v1_lease->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_leaseJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -142,8 +142,8 @@ v1_lease_t *v1_lease_parseFromJSON(cJSON *v1_leaseJSON){ v1_lease_local_var = v1_lease_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_lease_list.c b/kubernetes/model/v1_lease_list.c index b9d22be9..45163a65 100644 --- a/kubernetes/model/v1_lease_list.c +++ b/kubernetes/model/v1_lease_list.c @@ -124,7 +124,7 @@ v1_lease_list_t *v1_lease_list_parseFromJSON(cJSON *v1_lease_listJSON){ // v1_lease_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_lease_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_lease_list_t *v1_lease_list_parseFromJSON(cJSON *v1_lease_listJSON){ // v1_lease_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_lease_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_lease_list_t *v1_lease_list_parseFromJSON(cJSON *v1_lease_listJSON){ v1_lease_list_local_var = v1_lease_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_lease_spec.c b/kubernetes/model/v1_lease_spec.c index 65a0dea9..9a424d96 100644 --- a/kubernetes/model/v1_lease_spec.c +++ b/kubernetes/model/v1_lease_spec.c @@ -112,7 +112,7 @@ v1_lease_spec_t *v1_lease_spec_parseFromJSON(cJSON *v1_lease_specJSON){ // v1_lease_spec->holder_identity cJSON *holder_identity = cJSON_GetObjectItemCaseSensitive(v1_lease_specJSON, "holderIdentity"); if (holder_identity) { - if(!cJSON_IsString(holder_identity)) + if(!cJSON_IsString(holder_identity) && !cJSON_IsNull(holder_identity)) { goto end; //String } @@ -148,7 +148,7 @@ v1_lease_spec_t *v1_lease_spec_parseFromJSON(cJSON *v1_lease_specJSON){ v1_lease_spec_local_var = v1_lease_spec_create ( acquire_time && !cJSON_IsNull(acquire_time) ? strdup(acquire_time->valuestring) : NULL, - holder_identity ? strdup(holder_identity->valuestring) : NULL, + holder_identity && !cJSON_IsNull(holder_identity) ? strdup(holder_identity->valuestring) : NULL, lease_duration_seconds ? lease_duration_seconds->valuedouble : 0, lease_transitions ? lease_transitions->valuedouble : 0, renew_time && !cJSON_IsNull(renew_time) ? strdup(renew_time->valuestring) : NULL diff --git a/kubernetes/model/v1_limit_range.c b/kubernetes/model/v1_limit_range.c index fbba5251..900f1966 100644 --- a/kubernetes/model/v1_limit_range.c +++ b/kubernetes/model/v1_limit_range.c @@ -113,7 +113,7 @@ v1_limit_range_t *v1_limit_range_parseFromJSON(cJSON *v1_limit_rangeJSON){ // v1_limit_range->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_limit_rangeJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -122,7 +122,7 @@ v1_limit_range_t *v1_limit_range_parseFromJSON(cJSON *v1_limit_rangeJSON){ // v1_limit_range->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_limit_rangeJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -142,8 +142,8 @@ v1_limit_range_t *v1_limit_range_parseFromJSON(cJSON *v1_limit_rangeJSON){ v1_limit_range_local_var = v1_limit_range_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_limit_range_list.c b/kubernetes/model/v1_limit_range_list.c index cb7b2882..613ad041 100644 --- a/kubernetes/model/v1_limit_range_list.c +++ b/kubernetes/model/v1_limit_range_list.c @@ -124,7 +124,7 @@ v1_limit_range_list_t *v1_limit_range_list_parseFromJSON(cJSON *v1_limit_range_l // v1_limit_range_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_limit_range_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_limit_range_list_t *v1_limit_range_list_parseFromJSON(cJSON *v1_limit_range_l // v1_limit_range_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_limit_range_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_limit_range_list_t *v1_limit_range_list_parseFromJSON(cJSON *v1_limit_range_l v1_limit_range_list_local_var = v1_limit_range_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_list_meta.c b/kubernetes/model/v1_list_meta.c index dce9f853..7de1d516 100644 --- a/kubernetes/model/v1_list_meta.c +++ b/kubernetes/model/v1_list_meta.c @@ -93,7 +93,7 @@ v1_list_meta_t *v1_list_meta_parseFromJSON(cJSON *v1_list_metaJSON){ // v1_list_meta->_continue cJSON *_continue = cJSON_GetObjectItemCaseSensitive(v1_list_metaJSON, "continue"); if (_continue) { - if(!cJSON_IsString(_continue)) + if(!cJSON_IsString(_continue) && !cJSON_IsNull(_continue)) { goto end; //String } @@ -111,7 +111,7 @@ v1_list_meta_t *v1_list_meta_parseFromJSON(cJSON *v1_list_metaJSON){ // v1_list_meta->resource_version cJSON *resource_version = cJSON_GetObjectItemCaseSensitive(v1_list_metaJSON, "resourceVersion"); if (resource_version) { - if(!cJSON_IsString(resource_version)) + if(!cJSON_IsString(resource_version) && !cJSON_IsNull(resource_version)) { goto end; //String } @@ -120,7 +120,7 @@ v1_list_meta_t *v1_list_meta_parseFromJSON(cJSON *v1_list_metaJSON){ // v1_list_meta->self_link cJSON *self_link = cJSON_GetObjectItemCaseSensitive(v1_list_metaJSON, "selfLink"); if (self_link) { - if(!cJSON_IsString(self_link)) + if(!cJSON_IsString(self_link) && !cJSON_IsNull(self_link)) { goto end; //String } @@ -128,10 +128,10 @@ v1_list_meta_t *v1_list_meta_parseFromJSON(cJSON *v1_list_metaJSON){ v1_list_meta_local_var = v1_list_meta_create ( - _continue ? strdup(_continue->valuestring) : NULL, + _continue && !cJSON_IsNull(_continue) ? strdup(_continue->valuestring) : NULL, remaining_item_count ? remaining_item_count->valuedouble : 0, - resource_version ? strdup(resource_version->valuestring) : NULL, - self_link ? strdup(self_link->valuestring) : NULL + resource_version && !cJSON_IsNull(resource_version) ? strdup(resource_version->valuestring) : NULL, + self_link && !cJSON_IsNull(self_link) ? strdup(self_link->valuestring) : NULL ); return v1_list_meta_local_var; diff --git a/kubernetes/model/v1_load_balancer_ingress.c b/kubernetes/model/v1_load_balancer_ingress.c index 8c4c38f9..bc80c160 100644 --- a/kubernetes/model/v1_load_balancer_ingress.c +++ b/kubernetes/model/v1_load_balancer_ingress.c @@ -101,7 +101,7 @@ v1_load_balancer_ingress_t *v1_load_balancer_ingress_parseFromJSON(cJSON *v1_loa // v1_load_balancer_ingress->hostname cJSON *hostname = cJSON_GetObjectItemCaseSensitive(v1_load_balancer_ingressJSON, "hostname"); if (hostname) { - if(!cJSON_IsString(hostname)) + if(!cJSON_IsString(hostname) && !cJSON_IsNull(hostname)) { goto end; //String } @@ -110,7 +110,7 @@ v1_load_balancer_ingress_t *v1_load_balancer_ingress_parseFromJSON(cJSON *v1_loa // v1_load_balancer_ingress->ip cJSON *ip = cJSON_GetObjectItemCaseSensitive(v1_load_balancer_ingressJSON, "ip"); if (ip) { - if(!cJSON_IsString(ip)) + if(!cJSON_IsString(ip) && !cJSON_IsNull(ip)) { goto end; //String } @@ -139,8 +139,8 @@ v1_load_balancer_ingress_t *v1_load_balancer_ingress_parseFromJSON(cJSON *v1_loa v1_load_balancer_ingress_local_var = v1_load_balancer_ingress_create ( - hostname ? strdup(hostname->valuestring) : NULL, - ip ? strdup(ip->valuestring) : NULL, + hostname && !cJSON_IsNull(hostname) ? strdup(hostname->valuestring) : NULL, + ip && !cJSON_IsNull(ip) ? strdup(ip->valuestring) : NULL, ports ? portsList : NULL ); diff --git a/kubernetes/model/v1_local_object_reference.c b/kubernetes/model/v1_local_object_reference.c index e4f362e3..c91e875c 100644 --- a/kubernetes/model/v1_local_object_reference.c +++ b/kubernetes/model/v1_local_object_reference.c @@ -55,7 +55,7 @@ v1_local_object_reference_t *v1_local_object_reference_parseFromJSON(cJSON *v1_l // v1_local_object_reference->name cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_local_object_referenceJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -63,7 +63,7 @@ v1_local_object_reference_t *v1_local_object_reference_parseFromJSON(cJSON *v1_l v1_local_object_reference_local_var = v1_local_object_reference_create ( - name ? strdup(name->valuestring) : NULL + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL ); return v1_local_object_reference_local_var; diff --git a/kubernetes/model/v1_local_subject_access_review.c b/kubernetes/model/v1_local_subject_access_review.c index 8e58df40..b4000ae9 100644 --- a/kubernetes/model/v1_local_subject_access_review.c +++ b/kubernetes/model/v1_local_subject_access_review.c @@ -136,7 +136,7 @@ v1_local_subject_access_review_t *v1_local_subject_access_review_parseFromJSON(c // v1_local_subject_access_review->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_local_subject_access_reviewJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -145,7 +145,7 @@ v1_local_subject_access_review_t *v1_local_subject_access_review_parseFromJSON(c // v1_local_subject_access_review->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_local_subject_access_reviewJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -174,8 +174,8 @@ v1_local_subject_access_review_t *v1_local_subject_access_review_parseFromJSON(c v1_local_subject_access_review_local_var = v1_local_subject_access_review_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec_local_nonprim, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_local_volume_source.c b/kubernetes/model/v1_local_volume_source.c index 0a623fcc..28509c37 100644 --- a/kubernetes/model/v1_local_volume_source.c +++ b/kubernetes/model/v1_local_volume_source.c @@ -70,7 +70,7 @@ v1_local_volume_source_t *v1_local_volume_source_parseFromJSON(cJSON *v1_local_v // v1_local_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_local_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -90,7 +90,7 @@ v1_local_volume_source_t *v1_local_volume_source_parseFromJSON(cJSON *v1_local_v v1_local_volume_source_local_var = v1_local_volume_source_create ( - fs_type ? strdup(fs_type->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, strdup(path->valuestring) ); diff --git a/kubernetes/model/v1_managed_fields_entry.c b/kubernetes/model/v1_managed_fields_entry.c index 97b9ecf5..cb3f417f 100644 --- a/kubernetes/model/v1_managed_fields_entry.c +++ b/kubernetes/model/v1_managed_fields_entry.c @@ -144,7 +144,7 @@ v1_managed_fields_entry_t *v1_managed_fields_entry_parseFromJSON(cJSON *v1_manag // v1_managed_fields_entry->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_managed_fields_entryJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -153,7 +153,7 @@ v1_managed_fields_entry_t *v1_managed_fields_entry_parseFromJSON(cJSON *v1_manag // v1_managed_fields_entry->fields_type cJSON *fields_type = cJSON_GetObjectItemCaseSensitive(v1_managed_fields_entryJSON, "fieldsType"); if (fields_type) { - if(!cJSON_IsString(fields_type)) + if(!cJSON_IsString(fields_type) && !cJSON_IsNull(fields_type)) { goto end; //String } @@ -169,7 +169,7 @@ v1_managed_fields_entry_t *v1_managed_fields_entry_parseFromJSON(cJSON *v1_manag // v1_managed_fields_entry->manager cJSON *manager = cJSON_GetObjectItemCaseSensitive(v1_managed_fields_entryJSON, "manager"); if (manager) { - if(!cJSON_IsString(manager)) + if(!cJSON_IsString(manager) && !cJSON_IsNull(manager)) { goto end; //String } @@ -178,7 +178,7 @@ v1_managed_fields_entry_t *v1_managed_fields_entry_parseFromJSON(cJSON *v1_manag // v1_managed_fields_entry->operation cJSON *operation = cJSON_GetObjectItemCaseSensitive(v1_managed_fields_entryJSON, "operation"); if (operation) { - if(!cJSON_IsString(operation)) + if(!cJSON_IsString(operation) && !cJSON_IsNull(operation)) { goto end; //String } @@ -187,7 +187,7 @@ v1_managed_fields_entry_t *v1_managed_fields_entry_parseFromJSON(cJSON *v1_manag // v1_managed_fields_entry->subresource cJSON *subresource = cJSON_GetObjectItemCaseSensitive(v1_managed_fields_entryJSON, "subresource"); if (subresource) { - if(!cJSON_IsString(subresource)) + if(!cJSON_IsString(subresource) && !cJSON_IsNull(subresource)) { goto end; //String } @@ -204,12 +204,12 @@ v1_managed_fields_entry_t *v1_managed_fields_entry_parseFromJSON(cJSON *v1_manag v1_managed_fields_entry_local_var = v1_managed_fields_entry_create ( - api_version ? strdup(api_version->valuestring) : NULL, - fields_type ? strdup(fields_type->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + fields_type && !cJSON_IsNull(fields_type) ? strdup(fields_type->valuestring) : NULL, fields_v1 ? fields_v1_local_object : NULL, - manager ? strdup(manager->valuestring) : NULL, - operation ? strdup(operation->valuestring) : NULL, - subresource ? strdup(subresource->valuestring) : NULL, + manager && !cJSON_IsNull(manager) ? strdup(manager->valuestring) : NULL, + operation && !cJSON_IsNull(operation) ? strdup(operation->valuestring) : NULL, + subresource && !cJSON_IsNull(subresource) ? strdup(subresource->valuestring) : NULL, time && !cJSON_IsNull(time) ? strdup(time->valuestring) : NULL ); diff --git a/kubernetes/model/v1_mutating_webhook.c b/kubernetes/model/v1_mutating_webhook.c index d1169b52..ceae3509 100644 --- a/kubernetes/model/v1_mutating_webhook.c +++ b/kubernetes/model/v1_mutating_webhook.c @@ -283,7 +283,7 @@ v1_mutating_webhook_t *v1_mutating_webhook_parseFromJSON(cJSON *v1_mutating_webh // v1_mutating_webhook->failure_policy cJSON *failure_policy = cJSON_GetObjectItemCaseSensitive(v1_mutating_webhookJSON, "failurePolicy"); if (failure_policy) { - if(!cJSON_IsString(failure_policy)) + if(!cJSON_IsString(failure_policy) && !cJSON_IsNull(failure_policy)) { goto end; //String } @@ -292,7 +292,7 @@ v1_mutating_webhook_t *v1_mutating_webhook_parseFromJSON(cJSON *v1_mutating_webh // v1_mutating_webhook->match_policy cJSON *match_policy = cJSON_GetObjectItemCaseSensitive(v1_mutating_webhookJSON, "matchPolicy"); if (match_policy) { - if(!cJSON_IsString(match_policy)) + if(!cJSON_IsString(match_policy) && !cJSON_IsNull(match_policy)) { goto end; //String } @@ -325,7 +325,7 @@ v1_mutating_webhook_t *v1_mutating_webhook_parseFromJSON(cJSON *v1_mutating_webh // v1_mutating_webhook->reinvocation_policy cJSON *reinvocation_policy = cJSON_GetObjectItemCaseSensitive(v1_mutating_webhookJSON, "reinvocationPolicy"); if (reinvocation_policy) { - if(!cJSON_IsString(reinvocation_policy)) + if(!cJSON_IsString(reinvocation_policy) && !cJSON_IsNull(reinvocation_policy)) { goto end; //String } @@ -377,12 +377,12 @@ v1_mutating_webhook_t *v1_mutating_webhook_parseFromJSON(cJSON *v1_mutating_webh v1_mutating_webhook_local_var = v1_mutating_webhook_create ( admission_review_versionsList, client_config_local_nonprim, - failure_policy ? strdup(failure_policy->valuestring) : NULL, - match_policy ? strdup(match_policy->valuestring) : NULL, + failure_policy && !cJSON_IsNull(failure_policy) ? strdup(failure_policy->valuestring) : NULL, + match_policy && !cJSON_IsNull(match_policy) ? strdup(match_policy->valuestring) : NULL, strdup(name->valuestring), namespace_selector ? namespace_selector_local_nonprim : NULL, object_selector ? object_selector_local_nonprim : NULL, - reinvocation_policy ? strdup(reinvocation_policy->valuestring) : NULL, + reinvocation_policy && !cJSON_IsNull(reinvocation_policy) ? strdup(reinvocation_policy->valuestring) : NULL, rules ? rulesList : NULL, strdup(side_effects->valuestring), timeout_seconds ? timeout_seconds->valuedouble : 0 diff --git a/kubernetes/model/v1_mutating_webhook_configuration.c b/kubernetes/model/v1_mutating_webhook_configuration.c index 063d997c..0718d433 100644 --- a/kubernetes/model/v1_mutating_webhook_configuration.c +++ b/kubernetes/model/v1_mutating_webhook_configuration.c @@ -123,7 +123,7 @@ v1_mutating_webhook_configuration_t *v1_mutating_webhook_configuration_parseFrom // v1_mutating_webhook_configuration->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_mutating_webhook_configurationJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -132,7 +132,7 @@ v1_mutating_webhook_configuration_t *v1_mutating_webhook_configuration_parseFrom // v1_mutating_webhook_configuration->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_mutating_webhook_configurationJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -167,8 +167,8 @@ v1_mutating_webhook_configuration_t *v1_mutating_webhook_configuration_parseFrom v1_mutating_webhook_configuration_local_var = v1_mutating_webhook_configuration_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, webhooks ? webhooksList : NULL ); diff --git a/kubernetes/model/v1_mutating_webhook_configuration_list.c b/kubernetes/model/v1_mutating_webhook_configuration_list.c index cfe8f5b3..c61ca0bb 100644 --- a/kubernetes/model/v1_mutating_webhook_configuration_list.c +++ b/kubernetes/model/v1_mutating_webhook_configuration_list.c @@ -124,7 +124,7 @@ v1_mutating_webhook_configuration_list_t *v1_mutating_webhook_configuration_list // v1_mutating_webhook_configuration_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_mutating_webhook_configuration_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_mutating_webhook_configuration_list_t *v1_mutating_webhook_configuration_list // v1_mutating_webhook_configuration_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_mutating_webhook_configuration_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_mutating_webhook_configuration_list_t *v1_mutating_webhook_configuration_list v1_mutating_webhook_configuration_list_local_var = v1_mutating_webhook_configuration_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_namespace.c b/kubernetes/model/v1_namespace.c index fee6698f..ddac77bd 100644 --- a/kubernetes/model/v1_namespace.c +++ b/kubernetes/model/v1_namespace.c @@ -135,7 +135,7 @@ v1_namespace_t *v1_namespace_parseFromJSON(cJSON *v1_namespaceJSON){ // v1_namespace->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_namespaceJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1_namespace_t *v1_namespace_parseFromJSON(cJSON *v1_namespaceJSON){ // v1_namespace->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_namespaceJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1_namespace_t *v1_namespace_parseFromJSON(cJSON *v1_namespaceJSON){ v1_namespace_local_var = v1_namespace_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_namespace_condition.c b/kubernetes/model/v1_namespace_condition.c index 40c7d60f..a1a25bc8 100644 --- a/kubernetes/model/v1_namespace_condition.c +++ b/kubernetes/model/v1_namespace_condition.c @@ -122,7 +122,7 @@ v1_namespace_condition_t *v1_namespace_condition_parseFromJSON(cJSON *v1_namespa // v1_namespace_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_namespace_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -131,7 +131,7 @@ v1_namespace_condition_t *v1_namespace_condition_parseFromJSON(cJSON *v1_namespa // v1_namespace_condition->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_namespace_conditionJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -164,8 +164,8 @@ v1_namespace_condition_t *v1_namespace_condition_parseFromJSON(cJSON *v1_namespa v1_namespace_condition_local_var = v1_namespace_condition_create ( last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), strdup(type->valuestring) ); diff --git a/kubernetes/model/v1_namespace_list.c b/kubernetes/model/v1_namespace_list.c index d9b275d5..b93de994 100644 --- a/kubernetes/model/v1_namespace_list.c +++ b/kubernetes/model/v1_namespace_list.c @@ -124,7 +124,7 @@ v1_namespace_list_t *v1_namespace_list_parseFromJSON(cJSON *v1_namespace_listJSO // v1_namespace_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_namespace_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_namespace_list_t *v1_namespace_list_parseFromJSON(cJSON *v1_namespace_listJSO // v1_namespace_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_namespace_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_namespace_list_t *v1_namespace_list_parseFromJSON(cJSON *v1_namespace_listJSO v1_namespace_list_local_var = v1_namespace_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_namespace_status.c b/kubernetes/model/v1_namespace_status.c index 723d74d8..e77d818a 100644 --- a/kubernetes/model/v1_namespace_status.c +++ b/kubernetes/model/v1_namespace_status.c @@ -108,7 +108,7 @@ v1_namespace_status_t *v1_namespace_status_parseFromJSON(cJSON *v1_namespace_sta // v1_namespace_status->phase cJSON *phase = cJSON_GetObjectItemCaseSensitive(v1_namespace_statusJSON, "phase"); if (phase) { - if(!cJSON_IsString(phase)) + if(!cJSON_IsString(phase) && !cJSON_IsNull(phase)) { goto end; //String } @@ -117,7 +117,7 @@ v1_namespace_status_t *v1_namespace_status_parseFromJSON(cJSON *v1_namespace_sta v1_namespace_status_local_var = v1_namespace_status_create ( conditions ? conditionsList : NULL, - phase ? strdup(phase->valuestring) : NULL + phase && !cJSON_IsNull(phase) ? strdup(phase->valuestring) : NULL ); return v1_namespace_status_local_var; diff --git a/kubernetes/model/v1_network_policy.c b/kubernetes/model/v1_network_policy.c index 5c6de50e..f2a612e0 100644 --- a/kubernetes/model/v1_network_policy.c +++ b/kubernetes/model/v1_network_policy.c @@ -135,7 +135,7 @@ v1_network_policy_t *v1_network_policy_parseFromJSON(cJSON *v1_network_policyJSO // v1_network_policy->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_network_policyJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1_network_policy_t *v1_network_policy_parseFromJSON(cJSON *v1_network_policyJSO // v1_network_policy->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_network_policyJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1_network_policy_t *v1_network_policy_parseFromJSON(cJSON *v1_network_policyJSO v1_network_policy_local_var = v1_network_policy_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_network_policy_list.c b/kubernetes/model/v1_network_policy_list.c index 857f877f..45ae9a6c 100644 --- a/kubernetes/model/v1_network_policy_list.c +++ b/kubernetes/model/v1_network_policy_list.c @@ -124,7 +124,7 @@ v1_network_policy_list_t *v1_network_policy_list_parseFromJSON(cJSON *v1_network // v1_network_policy_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_network_policy_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_network_policy_list_t *v1_network_policy_list_parseFromJSON(cJSON *v1_network // v1_network_policy_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_network_policy_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_network_policy_list_t *v1_network_policy_list_parseFromJSON(cJSON *v1_network v1_network_policy_list_local_var = v1_network_policy_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_network_policy_port.c b/kubernetes/model/v1_network_policy_port.c index a2835db1..f05e8a56 100644 --- a/kubernetes/model/v1_network_policy_port.c +++ b/kubernetes/model/v1_network_policy_port.c @@ -102,7 +102,7 @@ v1_network_policy_port_t *v1_network_policy_port_parseFromJSON(cJSON *v1_network // v1_network_policy_port->protocol cJSON *protocol = cJSON_GetObjectItemCaseSensitive(v1_network_policy_portJSON, "protocol"); if (protocol) { - if(!cJSON_IsString(protocol)) + if(!cJSON_IsString(protocol) && !cJSON_IsNull(protocol)) { goto end; //String } @@ -112,7 +112,7 @@ v1_network_policy_port_t *v1_network_policy_port_parseFromJSON(cJSON *v1_network v1_network_policy_port_local_var = v1_network_policy_port_create ( end_port ? end_port->valuedouble : 0, port ? port_local_nonprim : NULL, - protocol ? strdup(protocol->valuestring) : NULL + protocol && !cJSON_IsNull(protocol) ? strdup(protocol->valuestring) : NULL ); return v1_network_policy_port_local_var; diff --git a/kubernetes/model/v1_node.c b/kubernetes/model/v1_node.c index 39451e40..c9f3dbf9 100644 --- a/kubernetes/model/v1_node.c +++ b/kubernetes/model/v1_node.c @@ -135,7 +135,7 @@ v1_node_t *v1_node_parseFromJSON(cJSON *v1_nodeJSON){ // v1_node->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_nodeJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1_node_t *v1_node_parseFromJSON(cJSON *v1_nodeJSON){ // v1_node->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_nodeJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1_node_t *v1_node_parseFromJSON(cJSON *v1_nodeJSON){ v1_node_local_var = v1_node_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_node_condition.c b/kubernetes/model/v1_node_condition.c index f89269dc..4a716c6a 100644 --- a/kubernetes/model/v1_node_condition.c +++ b/kubernetes/model/v1_node_condition.c @@ -145,7 +145,7 @@ v1_node_condition_t *v1_node_condition_parseFromJSON(cJSON *v1_node_conditionJSO // v1_node_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_node_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -154,7 +154,7 @@ v1_node_condition_t *v1_node_condition_parseFromJSON(cJSON *v1_node_conditionJSO // v1_node_condition->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_node_conditionJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -188,8 +188,8 @@ v1_node_condition_t *v1_node_condition_parseFromJSON(cJSON *v1_node_conditionJSO v1_node_condition_local_var = v1_node_condition_create ( last_heartbeat_time && !cJSON_IsNull(last_heartbeat_time) ? strdup(last_heartbeat_time->valuestring) : NULL, last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), strdup(type->valuestring) ); diff --git a/kubernetes/model/v1_node_config_status.c b/kubernetes/model/v1_node_config_status.c index 658f09d7..7386d50b 100644 --- a/kubernetes/model/v1_node_config_status.c +++ b/kubernetes/model/v1_node_config_status.c @@ -133,7 +133,7 @@ v1_node_config_status_t *v1_node_config_status_parseFromJSON(cJSON *v1_node_conf // v1_node_config_status->error cJSON *error = cJSON_GetObjectItemCaseSensitive(v1_node_config_statusJSON, "error"); if (error) { - if(!cJSON_IsString(error)) + if(!cJSON_IsString(error) && !cJSON_IsNull(error)) { goto end; //String } @@ -149,7 +149,7 @@ v1_node_config_status_t *v1_node_config_status_parseFromJSON(cJSON *v1_node_conf v1_node_config_status_local_var = v1_node_config_status_create ( active ? active_local_nonprim : NULL, assigned ? assigned_local_nonprim : NULL, - error ? strdup(error->valuestring) : NULL, + error && !cJSON_IsNull(error) ? strdup(error->valuestring) : NULL, last_known_good ? last_known_good_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_node_list.c b/kubernetes/model/v1_node_list.c index 5d67ad02..49041211 100644 --- a/kubernetes/model/v1_node_list.c +++ b/kubernetes/model/v1_node_list.c @@ -124,7 +124,7 @@ v1_node_list_t *v1_node_list_parseFromJSON(cJSON *v1_node_listJSON){ // v1_node_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_node_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_node_list_t *v1_node_list_parseFromJSON(cJSON *v1_node_listJSON){ // v1_node_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_node_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_node_list_t *v1_node_list_parseFromJSON(cJSON *v1_node_listJSON){ v1_node_list_local_var = v1_node_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_node_spec.c b/kubernetes/model/v1_node_spec.c index 88b78b41..afddd5f3 100644 --- a/kubernetes/model/v1_node_spec.c +++ b/kubernetes/model/v1_node_spec.c @@ -182,7 +182,7 @@ v1_node_spec_t *v1_node_spec_parseFromJSON(cJSON *v1_node_specJSON){ // v1_node_spec->external_id cJSON *external_id = cJSON_GetObjectItemCaseSensitive(v1_node_specJSON, "externalID"); if (external_id) { - if(!cJSON_IsString(external_id)) + if(!cJSON_IsString(external_id) && !cJSON_IsNull(external_id)) { goto end; //String } @@ -191,7 +191,7 @@ v1_node_spec_t *v1_node_spec_parseFromJSON(cJSON *v1_node_specJSON){ // v1_node_spec->pod_cidr cJSON *pod_cidr = cJSON_GetObjectItemCaseSensitive(v1_node_specJSON, "podCIDR"); if (pod_cidr) { - if(!cJSON_IsString(pod_cidr)) + if(!cJSON_IsString(pod_cidr) && !cJSON_IsNull(pod_cidr)) { goto end; //String } @@ -219,7 +219,7 @@ v1_node_spec_t *v1_node_spec_parseFromJSON(cJSON *v1_node_specJSON){ // v1_node_spec->provider_id cJSON *provider_id = cJSON_GetObjectItemCaseSensitive(v1_node_specJSON, "providerID"); if (provider_id) { - if(!cJSON_IsString(provider_id)) + if(!cJSON_IsString(provider_id) && !cJSON_IsNull(provider_id)) { goto end; //String } @@ -258,10 +258,10 @@ v1_node_spec_t *v1_node_spec_parseFromJSON(cJSON *v1_node_specJSON){ v1_node_spec_local_var = v1_node_spec_create ( config_source ? config_source_local_nonprim : NULL, - external_id ? strdup(external_id->valuestring) : NULL, - pod_cidr ? strdup(pod_cidr->valuestring) : NULL, + external_id && !cJSON_IsNull(external_id) ? strdup(external_id->valuestring) : NULL, + pod_cidr && !cJSON_IsNull(pod_cidr) ? strdup(pod_cidr->valuestring) : NULL, pod_cidrs ? pod_cidrsList : NULL, - provider_id ? strdup(provider_id->valuestring) : NULL, + provider_id && !cJSON_IsNull(provider_id) ? strdup(provider_id->valuestring) : NULL, taints ? taintsList : NULL, unschedulable ? unschedulable->valueint : 0 ); diff --git a/kubernetes/model/v1_node_status.c b/kubernetes/model/v1_node_status.c index d78be5b3..e923734b 100644 --- a/kubernetes/model/v1_node_status.c +++ b/kubernetes/model/v1_node_status.c @@ -479,7 +479,7 @@ v1_node_status_t *v1_node_status_parseFromJSON(cJSON *v1_node_statusJSON){ // v1_node_status->phase cJSON *phase = cJSON_GetObjectItemCaseSensitive(v1_node_statusJSON, "phase"); if (phase) { - if(!cJSON_IsString(phase)) + if(!cJSON_IsString(phase) && !cJSON_IsNull(phase)) { goto end; //String } @@ -535,7 +535,7 @@ v1_node_status_t *v1_node_status_parseFromJSON(cJSON *v1_node_statusJSON){ daemon_endpoints ? daemon_endpoints_local_nonprim : NULL, images ? imagesList : NULL, node_info ? node_info_local_nonprim : NULL, - phase ? strdup(phase->valuestring) : NULL, + phase && !cJSON_IsNull(phase) ? strdup(phase->valuestring) : NULL, volumes_attached ? volumes_attachedList : NULL, volumes_in_use ? volumes_in_useList : NULL ); diff --git a/kubernetes/model/v1_non_resource_attributes.c b/kubernetes/model/v1_non_resource_attributes.c index 626adb6b..5a7c9cad 100644 --- a/kubernetes/model/v1_non_resource_attributes.c +++ b/kubernetes/model/v1_non_resource_attributes.c @@ -69,7 +69,7 @@ v1_non_resource_attributes_t *v1_non_resource_attributes_parseFromJSON(cJSON *v1 // v1_non_resource_attributes->path cJSON *path = cJSON_GetObjectItemCaseSensitive(v1_non_resource_attributesJSON, "path"); if (path) { - if(!cJSON_IsString(path)) + if(!cJSON_IsString(path) && !cJSON_IsNull(path)) { goto end; //String } @@ -78,7 +78,7 @@ v1_non_resource_attributes_t *v1_non_resource_attributes_parseFromJSON(cJSON *v1 // v1_non_resource_attributes->verb cJSON *verb = cJSON_GetObjectItemCaseSensitive(v1_non_resource_attributesJSON, "verb"); if (verb) { - if(!cJSON_IsString(verb)) + if(!cJSON_IsString(verb) && !cJSON_IsNull(verb)) { goto end; //String } @@ -86,8 +86,8 @@ v1_non_resource_attributes_t *v1_non_resource_attributes_parseFromJSON(cJSON *v1 v1_non_resource_attributes_local_var = v1_non_resource_attributes_create ( - path ? strdup(path->valuestring) : NULL, - verb ? strdup(verb->valuestring) : NULL + path && !cJSON_IsNull(path) ? strdup(path->valuestring) : NULL, + verb && !cJSON_IsNull(verb) ? strdup(verb->valuestring) : NULL ); return v1_non_resource_attributes_local_var; diff --git a/kubernetes/model/v1_object_field_selector.c b/kubernetes/model/v1_object_field_selector.c index 6990b13f..5396e76f 100644 --- a/kubernetes/model/v1_object_field_selector.c +++ b/kubernetes/model/v1_object_field_selector.c @@ -70,7 +70,7 @@ v1_object_field_selector_t *v1_object_field_selector_parseFromJSON(cJSON *v1_obj // v1_object_field_selector->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_object_field_selectorJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -90,7 +90,7 @@ v1_object_field_selector_t *v1_object_field_selector_parseFromJSON(cJSON *v1_obj v1_object_field_selector_local_var = v1_object_field_selector_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, strdup(field_path->valuestring) ); diff --git a/kubernetes/model/v1_object_meta.c b/kubernetes/model/v1_object_meta.c index 987734ae..dd05b011 100644 --- a/kubernetes/model/v1_object_meta.c +++ b/kubernetes/model/v1_object_meta.c @@ -407,7 +407,7 @@ v1_object_meta_t *v1_object_meta_parseFromJSON(cJSON *v1_object_metaJSON){ // v1_object_meta->generate_name cJSON *generate_name = cJSON_GetObjectItemCaseSensitive(v1_object_metaJSON, "generateName"); if (generate_name) { - if(!cJSON_IsString(generate_name)) + if(!cJSON_IsString(generate_name) && !cJSON_IsNull(generate_name)) { goto end; //String } @@ -471,7 +471,7 @@ v1_object_meta_t *v1_object_meta_parseFromJSON(cJSON *v1_object_metaJSON){ // v1_object_meta->name cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_object_metaJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -480,7 +480,7 @@ v1_object_meta_t *v1_object_meta_parseFromJSON(cJSON *v1_object_metaJSON){ // v1_object_meta->_namespace cJSON *_namespace = cJSON_GetObjectItemCaseSensitive(v1_object_metaJSON, "namespace"); if (_namespace) { - if(!cJSON_IsString(_namespace)) + if(!cJSON_IsString(_namespace) && !cJSON_IsNull(_namespace)) { goto end; //String } @@ -510,7 +510,7 @@ v1_object_meta_t *v1_object_meta_parseFromJSON(cJSON *v1_object_metaJSON){ // v1_object_meta->resource_version cJSON *resource_version = cJSON_GetObjectItemCaseSensitive(v1_object_metaJSON, "resourceVersion"); if (resource_version) { - if(!cJSON_IsString(resource_version)) + if(!cJSON_IsString(resource_version) && !cJSON_IsNull(resource_version)) { goto end; //String } @@ -519,7 +519,7 @@ v1_object_meta_t *v1_object_meta_parseFromJSON(cJSON *v1_object_metaJSON){ // v1_object_meta->self_link cJSON *self_link = cJSON_GetObjectItemCaseSensitive(v1_object_metaJSON, "selfLink"); if (self_link) { - if(!cJSON_IsString(self_link)) + if(!cJSON_IsString(self_link) && !cJSON_IsNull(self_link)) { goto end; //String } @@ -528,7 +528,7 @@ v1_object_meta_t *v1_object_meta_parseFromJSON(cJSON *v1_object_metaJSON){ // v1_object_meta->uid cJSON *uid = cJSON_GetObjectItemCaseSensitive(v1_object_metaJSON, "uid"); if (uid) { - if(!cJSON_IsString(uid)) + if(!cJSON_IsString(uid) && !cJSON_IsNull(uid)) { goto end; //String } @@ -541,16 +541,16 @@ v1_object_meta_t *v1_object_meta_parseFromJSON(cJSON *v1_object_metaJSON){ deletion_grace_period_seconds ? deletion_grace_period_seconds->valuedouble : 0, deletion_timestamp && !cJSON_IsNull(deletion_timestamp) ? strdup(deletion_timestamp->valuestring) : NULL, finalizers ? finalizersList : NULL, - generate_name ? strdup(generate_name->valuestring) : NULL, + generate_name && !cJSON_IsNull(generate_name) ? strdup(generate_name->valuestring) : NULL, generation ? generation->valuedouble : 0, labels ? labelsList : NULL, managed_fields ? managed_fieldsList : NULL, - name ? strdup(name->valuestring) : NULL, - _namespace ? strdup(_namespace->valuestring) : NULL, + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, + _namespace && !cJSON_IsNull(_namespace) ? strdup(_namespace->valuestring) : NULL, owner_references ? owner_referencesList : NULL, - resource_version ? strdup(resource_version->valuestring) : NULL, - self_link ? strdup(self_link->valuestring) : NULL, - uid ? strdup(uid->valuestring) : NULL + resource_version && !cJSON_IsNull(resource_version) ? strdup(resource_version->valuestring) : NULL, + self_link && !cJSON_IsNull(self_link) ? strdup(self_link->valuestring) : NULL, + uid && !cJSON_IsNull(uid) ? strdup(uid->valuestring) : NULL ); return v1_object_meta_local_var; diff --git a/kubernetes/model/v1_object_reference.c b/kubernetes/model/v1_object_reference.c index e17d1009..71e30bd9 100644 --- a/kubernetes/model/v1_object_reference.c +++ b/kubernetes/model/v1_object_reference.c @@ -139,7 +139,7 @@ v1_object_reference_t *v1_object_reference_parseFromJSON(cJSON *v1_object_refere // v1_object_reference->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_object_referenceJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -148,7 +148,7 @@ v1_object_reference_t *v1_object_reference_parseFromJSON(cJSON *v1_object_refere // v1_object_reference->field_path cJSON *field_path = cJSON_GetObjectItemCaseSensitive(v1_object_referenceJSON, "fieldPath"); if (field_path) { - if(!cJSON_IsString(field_path)) + if(!cJSON_IsString(field_path) && !cJSON_IsNull(field_path)) { goto end; //String } @@ -157,7 +157,7 @@ v1_object_reference_t *v1_object_reference_parseFromJSON(cJSON *v1_object_refere // v1_object_reference->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_object_referenceJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -166,7 +166,7 @@ v1_object_reference_t *v1_object_reference_parseFromJSON(cJSON *v1_object_refere // v1_object_reference->name cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_object_referenceJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -175,7 +175,7 @@ v1_object_reference_t *v1_object_reference_parseFromJSON(cJSON *v1_object_refere // v1_object_reference->_namespace cJSON *_namespace = cJSON_GetObjectItemCaseSensitive(v1_object_referenceJSON, "namespace"); if (_namespace) { - if(!cJSON_IsString(_namespace)) + if(!cJSON_IsString(_namespace) && !cJSON_IsNull(_namespace)) { goto end; //String } @@ -184,7 +184,7 @@ v1_object_reference_t *v1_object_reference_parseFromJSON(cJSON *v1_object_refere // v1_object_reference->resource_version cJSON *resource_version = cJSON_GetObjectItemCaseSensitive(v1_object_referenceJSON, "resourceVersion"); if (resource_version) { - if(!cJSON_IsString(resource_version)) + if(!cJSON_IsString(resource_version) && !cJSON_IsNull(resource_version)) { goto end; //String } @@ -193,7 +193,7 @@ v1_object_reference_t *v1_object_reference_parseFromJSON(cJSON *v1_object_refere // v1_object_reference->uid cJSON *uid = cJSON_GetObjectItemCaseSensitive(v1_object_referenceJSON, "uid"); if (uid) { - if(!cJSON_IsString(uid)) + if(!cJSON_IsString(uid) && !cJSON_IsNull(uid)) { goto end; //String } @@ -201,13 +201,13 @@ v1_object_reference_t *v1_object_reference_parseFromJSON(cJSON *v1_object_refere v1_object_reference_local_var = v1_object_reference_create ( - api_version ? strdup(api_version->valuestring) : NULL, - field_path ? strdup(field_path->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, - name ? strdup(name->valuestring) : NULL, - _namespace ? strdup(_namespace->valuestring) : NULL, - resource_version ? strdup(resource_version->valuestring) : NULL, - uid ? strdup(uid->valuestring) : NULL + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + field_path && !cJSON_IsNull(field_path) ? strdup(field_path->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, + _namespace && !cJSON_IsNull(_namespace) ? strdup(_namespace->valuestring) : NULL, + resource_version && !cJSON_IsNull(resource_version) ? strdup(resource_version->valuestring) : NULL, + uid && !cJSON_IsNull(uid) ? strdup(uid->valuestring) : NULL ); return v1_object_reference_local_var; diff --git a/kubernetes/model/v1_persistent_volume.c b/kubernetes/model/v1_persistent_volume.c index 29206d76..b23eb890 100644 --- a/kubernetes/model/v1_persistent_volume.c +++ b/kubernetes/model/v1_persistent_volume.c @@ -135,7 +135,7 @@ v1_persistent_volume_t *v1_persistent_volume_parseFromJSON(cJSON *v1_persistent_ // v1_persistent_volume->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_persistent_volumeJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1_persistent_volume_t *v1_persistent_volume_parseFromJSON(cJSON *v1_persistent_ // v1_persistent_volume->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_persistent_volumeJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1_persistent_volume_t *v1_persistent_volume_parseFromJSON(cJSON *v1_persistent_ v1_persistent_volume_local_var = v1_persistent_volume_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_persistent_volume_claim.c b/kubernetes/model/v1_persistent_volume_claim.c index 42cde1ed..835d5ad3 100644 --- a/kubernetes/model/v1_persistent_volume_claim.c +++ b/kubernetes/model/v1_persistent_volume_claim.c @@ -135,7 +135,7 @@ v1_persistent_volume_claim_t *v1_persistent_volume_claim_parseFromJSON(cJSON *v1 // v1_persistent_volume_claim->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_claimJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1_persistent_volume_claim_t *v1_persistent_volume_claim_parseFromJSON(cJSON *v1 // v1_persistent_volume_claim->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_claimJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1_persistent_volume_claim_t *v1_persistent_volume_claim_parseFromJSON(cJSON *v1 v1_persistent_volume_claim_local_var = v1_persistent_volume_claim_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_persistent_volume_claim_condition.c b/kubernetes/model/v1_persistent_volume_claim_condition.c index 44adf46e..f5d59485 100644 --- a/kubernetes/model/v1_persistent_volume_claim_condition.c +++ b/kubernetes/model/v1_persistent_volume_claim_condition.c @@ -145,7 +145,7 @@ v1_persistent_volume_claim_condition_t *v1_persistent_volume_claim_condition_par // v1_persistent_volume_claim_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_claim_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -154,7 +154,7 @@ v1_persistent_volume_claim_condition_t *v1_persistent_volume_claim_condition_par // v1_persistent_volume_claim_condition->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_claim_conditionJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -188,8 +188,8 @@ v1_persistent_volume_claim_condition_t *v1_persistent_volume_claim_condition_par v1_persistent_volume_claim_condition_local_var = v1_persistent_volume_claim_condition_create ( last_probe_time && !cJSON_IsNull(last_probe_time) ? strdup(last_probe_time->valuestring) : NULL, last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), strdup(type->valuestring) ); diff --git a/kubernetes/model/v1_persistent_volume_claim_list.c b/kubernetes/model/v1_persistent_volume_claim_list.c index ed2ff355..a19ca5c4 100644 --- a/kubernetes/model/v1_persistent_volume_claim_list.c +++ b/kubernetes/model/v1_persistent_volume_claim_list.c @@ -124,7 +124,7 @@ v1_persistent_volume_claim_list_t *v1_persistent_volume_claim_list_parseFromJSON // v1_persistent_volume_claim_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_claim_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_persistent_volume_claim_list_t *v1_persistent_volume_claim_list_parseFromJSON // v1_persistent_volume_claim_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_claim_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_persistent_volume_claim_list_t *v1_persistent_volume_claim_list_parseFromJSON v1_persistent_volume_claim_list_local_var = v1_persistent_volume_claim_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_persistent_volume_claim_spec.c b/kubernetes/model/v1_persistent_volume_claim_spec.c index 52cc0e68..a462594d 100644 --- a/kubernetes/model/v1_persistent_volume_claim_spec.c +++ b/kubernetes/model/v1_persistent_volume_claim_spec.c @@ -243,7 +243,7 @@ v1_persistent_volume_claim_spec_t *v1_persistent_volume_claim_spec_parseFromJSON // v1_persistent_volume_claim_spec->storage_class_name cJSON *storage_class_name = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_claim_specJSON, "storageClassName"); if (storage_class_name) { - if(!cJSON_IsString(storage_class_name)) + if(!cJSON_IsString(storage_class_name) && !cJSON_IsNull(storage_class_name)) { goto end; //String } @@ -252,7 +252,7 @@ v1_persistent_volume_claim_spec_t *v1_persistent_volume_claim_spec_parseFromJSON // v1_persistent_volume_claim_spec->volume_mode cJSON *volume_mode = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_claim_specJSON, "volumeMode"); if (volume_mode) { - if(!cJSON_IsString(volume_mode)) + if(!cJSON_IsString(volume_mode) && !cJSON_IsNull(volume_mode)) { goto end; //String } @@ -261,7 +261,7 @@ v1_persistent_volume_claim_spec_t *v1_persistent_volume_claim_spec_parseFromJSON // v1_persistent_volume_claim_spec->volume_name cJSON *volume_name = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_claim_specJSON, "volumeName"); if (volume_name) { - if(!cJSON_IsString(volume_name)) + if(!cJSON_IsString(volume_name) && !cJSON_IsNull(volume_name)) { goto end; //String } @@ -274,9 +274,9 @@ v1_persistent_volume_claim_spec_t *v1_persistent_volume_claim_spec_parseFromJSON data_source_ref ? data_source_ref_local_nonprim : NULL, resources ? resources_local_nonprim : NULL, selector ? selector_local_nonprim : NULL, - storage_class_name ? strdup(storage_class_name->valuestring) : NULL, - volume_mode ? strdup(volume_mode->valuestring) : NULL, - volume_name ? strdup(volume_name->valuestring) : NULL + storage_class_name && !cJSON_IsNull(storage_class_name) ? strdup(storage_class_name->valuestring) : NULL, + volume_mode && !cJSON_IsNull(volume_mode) ? strdup(volume_mode->valuestring) : NULL, + volume_name && !cJSON_IsNull(volume_name) ? strdup(volume_name->valuestring) : NULL ); return v1_persistent_volume_claim_spec_local_var; diff --git a/kubernetes/model/v1_persistent_volume_claim_status.c b/kubernetes/model/v1_persistent_volume_claim_status.c index e29cfd39..b6b29168 100644 --- a/kubernetes/model/v1_persistent_volume_claim_status.c +++ b/kubernetes/model/v1_persistent_volume_claim_status.c @@ -290,7 +290,7 @@ v1_persistent_volume_claim_status_t *v1_persistent_volume_claim_status_parseFrom // v1_persistent_volume_claim_status->phase cJSON *phase = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_claim_statusJSON, "phase"); if (phase) { - if(!cJSON_IsString(phase)) + if(!cJSON_IsString(phase) && !cJSON_IsNull(phase)) { goto end; //String } @@ -299,7 +299,7 @@ v1_persistent_volume_claim_status_t *v1_persistent_volume_claim_status_parseFrom // v1_persistent_volume_claim_status->resize_status cJSON *resize_status = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_claim_statusJSON, "resizeStatus"); if (resize_status) { - if(!cJSON_IsString(resize_status)) + if(!cJSON_IsString(resize_status) && !cJSON_IsNull(resize_status)) { goto end; //String } @@ -311,8 +311,8 @@ v1_persistent_volume_claim_status_t *v1_persistent_volume_claim_status_parseFrom allocated_resources ? allocated_resourcesList : NULL, capacity ? capacityList : NULL, conditions ? conditionsList : NULL, - phase ? strdup(phase->valuestring) : NULL, - resize_status ? strdup(resize_status->valuestring) : NULL + phase && !cJSON_IsNull(phase) ? strdup(phase->valuestring) : NULL, + resize_status && !cJSON_IsNull(resize_status) ? strdup(resize_status->valuestring) : NULL ); return v1_persistent_volume_claim_status_local_var; diff --git a/kubernetes/model/v1_persistent_volume_list.c b/kubernetes/model/v1_persistent_volume_list.c index 7f004d10..e1cedeea 100644 --- a/kubernetes/model/v1_persistent_volume_list.c +++ b/kubernetes/model/v1_persistent_volume_list.c @@ -124,7 +124,7 @@ v1_persistent_volume_list_t *v1_persistent_volume_list_parseFromJSON(cJSON *v1_p // v1_persistent_volume_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_persistent_volume_list_t *v1_persistent_volume_list_parseFromJSON(cJSON *v1_p // v1_persistent_volume_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_persistent_volume_list_t *v1_persistent_volume_list_parseFromJSON(cJSON *v1_p v1_persistent_volume_list_local_var = v1_persistent_volume_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_persistent_volume_spec.c b/kubernetes/model/v1_persistent_volume_spec.c index 42a659a6..99e5589a 100644 --- a/kubernetes/model/v1_persistent_volume_spec.c +++ b/kubernetes/model/v1_persistent_volume_spec.c @@ -869,7 +869,7 @@ v1_persistent_volume_spec_t *v1_persistent_volume_spec_parseFromJSON(cJSON *v1_p // v1_persistent_volume_spec->persistent_volume_reclaim_policy cJSON *persistent_volume_reclaim_policy = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_specJSON, "persistentVolumeReclaimPolicy"); if (persistent_volume_reclaim_policy) { - if(!cJSON_IsString(persistent_volume_reclaim_policy)) + if(!cJSON_IsString(persistent_volume_reclaim_policy) && !cJSON_IsNull(persistent_volume_reclaim_policy)) { goto end; //String } @@ -908,7 +908,7 @@ v1_persistent_volume_spec_t *v1_persistent_volume_spec_parseFromJSON(cJSON *v1_p // v1_persistent_volume_spec->storage_class_name cJSON *storage_class_name = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_specJSON, "storageClassName"); if (storage_class_name) { - if(!cJSON_IsString(storage_class_name)) + if(!cJSON_IsString(storage_class_name) && !cJSON_IsNull(storage_class_name)) { goto end; //String } @@ -923,7 +923,7 @@ v1_persistent_volume_spec_t *v1_persistent_volume_spec_parseFromJSON(cJSON *v1_p // v1_persistent_volume_spec->volume_mode cJSON *volume_mode = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_specJSON, "volumeMode"); if (volume_mode) { - if(!cJSON_IsString(volume_mode)) + if(!cJSON_IsString(volume_mode) && !cJSON_IsNull(volume_mode)) { goto end; //String } @@ -957,15 +957,15 @@ v1_persistent_volume_spec_t *v1_persistent_volume_spec_parseFromJSON(cJSON *v1_p mount_options ? mount_optionsList : NULL, nfs ? nfs_local_nonprim : NULL, node_affinity ? node_affinity_local_nonprim : NULL, - persistent_volume_reclaim_policy ? strdup(persistent_volume_reclaim_policy->valuestring) : NULL, + persistent_volume_reclaim_policy && !cJSON_IsNull(persistent_volume_reclaim_policy) ? strdup(persistent_volume_reclaim_policy->valuestring) : NULL, photon_persistent_disk ? photon_persistent_disk_local_nonprim : NULL, portworx_volume ? portworx_volume_local_nonprim : NULL, quobyte ? quobyte_local_nonprim : NULL, rbd ? rbd_local_nonprim : NULL, scale_io ? scale_io_local_nonprim : NULL, - storage_class_name ? strdup(storage_class_name->valuestring) : NULL, + storage_class_name && !cJSON_IsNull(storage_class_name) ? strdup(storage_class_name->valuestring) : NULL, storageos ? storageos_local_nonprim : NULL, - volume_mode ? strdup(volume_mode->valuestring) : NULL, + volume_mode && !cJSON_IsNull(volume_mode) ? strdup(volume_mode->valuestring) : NULL, vsphere_volume ? vsphere_volume_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_persistent_volume_status.c b/kubernetes/model/v1_persistent_volume_status.c index 9c181c05..b25c553d 100644 --- a/kubernetes/model/v1_persistent_volume_status.c +++ b/kubernetes/model/v1_persistent_volume_status.c @@ -83,7 +83,7 @@ v1_persistent_volume_status_t *v1_persistent_volume_status_parseFromJSON(cJSON * // v1_persistent_volume_status->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_statusJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -92,7 +92,7 @@ v1_persistent_volume_status_t *v1_persistent_volume_status_parseFromJSON(cJSON * // v1_persistent_volume_status->phase cJSON *phase = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_statusJSON, "phase"); if (phase) { - if(!cJSON_IsString(phase)) + if(!cJSON_IsString(phase) && !cJSON_IsNull(phase)) { goto end; //String } @@ -101,7 +101,7 @@ v1_persistent_volume_status_t *v1_persistent_volume_status_parseFromJSON(cJSON * // v1_persistent_volume_status->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_statusJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -109,9 +109,9 @@ v1_persistent_volume_status_t *v1_persistent_volume_status_parseFromJSON(cJSON * v1_persistent_volume_status_local_var = v1_persistent_volume_status_create ( - message ? strdup(message->valuestring) : NULL, - phase ? strdup(phase->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + phase && !cJSON_IsNull(phase) ? strdup(phase->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL ); return v1_persistent_volume_status_local_var; diff --git a/kubernetes/model/v1_photon_persistent_disk_volume_source.c b/kubernetes/model/v1_photon_persistent_disk_volume_source.c index 9852b371..2aa1e787 100644 --- a/kubernetes/model/v1_photon_persistent_disk_volume_source.c +++ b/kubernetes/model/v1_photon_persistent_disk_volume_source.c @@ -70,7 +70,7 @@ v1_photon_persistent_disk_volume_source_t *v1_photon_persistent_disk_volume_sour // v1_photon_persistent_disk_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_photon_persistent_disk_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -90,7 +90,7 @@ v1_photon_persistent_disk_volume_source_t *v1_photon_persistent_disk_volume_sour v1_photon_persistent_disk_volume_source_local_var = v1_photon_persistent_disk_volume_source_create ( - fs_type ? strdup(fs_type->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, strdup(pd_id->valuestring) ); diff --git a/kubernetes/model/v1_pod.c b/kubernetes/model/v1_pod.c index 69f93be8..20781bb3 100644 --- a/kubernetes/model/v1_pod.c +++ b/kubernetes/model/v1_pod.c @@ -135,7 +135,7 @@ v1_pod_t *v1_pod_parseFromJSON(cJSON *v1_podJSON){ // v1_pod->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_podJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1_pod_t *v1_pod_parseFromJSON(cJSON *v1_podJSON){ // v1_pod->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_podJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1_pod_t *v1_pod_parseFromJSON(cJSON *v1_podJSON){ v1_pod_local_var = v1_pod_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_pod_condition.c b/kubernetes/model/v1_pod_condition.c index 4bbb9946..54a34b8f 100644 --- a/kubernetes/model/v1_pod_condition.c +++ b/kubernetes/model/v1_pod_condition.c @@ -145,7 +145,7 @@ v1_pod_condition_t *v1_pod_condition_parseFromJSON(cJSON *v1_pod_conditionJSON){ // v1_pod_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_pod_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -154,7 +154,7 @@ v1_pod_condition_t *v1_pod_condition_parseFromJSON(cJSON *v1_pod_conditionJSON){ // v1_pod_condition->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_pod_conditionJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -188,8 +188,8 @@ v1_pod_condition_t *v1_pod_condition_parseFromJSON(cJSON *v1_pod_conditionJSON){ v1_pod_condition_local_var = v1_pod_condition_create ( last_probe_time && !cJSON_IsNull(last_probe_time) ? strdup(last_probe_time->valuestring) : NULL, last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), strdup(type->valuestring) ); diff --git a/kubernetes/model/v1_pod_disruption_budget.c b/kubernetes/model/v1_pod_disruption_budget.c index f5646e7c..ea7c6567 100644 --- a/kubernetes/model/v1_pod_disruption_budget.c +++ b/kubernetes/model/v1_pod_disruption_budget.c @@ -135,7 +135,7 @@ v1_pod_disruption_budget_t *v1_pod_disruption_budget_parseFromJSON(cJSON *v1_pod // v1_pod_disruption_budget->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_pod_disruption_budgetJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1_pod_disruption_budget_t *v1_pod_disruption_budget_parseFromJSON(cJSON *v1_pod // v1_pod_disruption_budget->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_pod_disruption_budgetJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1_pod_disruption_budget_t *v1_pod_disruption_budget_parseFromJSON(cJSON *v1_pod v1_pod_disruption_budget_local_var = v1_pod_disruption_budget_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_pod_disruption_budget_list.c b/kubernetes/model/v1_pod_disruption_budget_list.c index 2f2ef852..40326de6 100644 --- a/kubernetes/model/v1_pod_disruption_budget_list.c +++ b/kubernetes/model/v1_pod_disruption_budget_list.c @@ -124,7 +124,7 @@ v1_pod_disruption_budget_list_t *v1_pod_disruption_budget_list_parseFromJSON(cJS // v1_pod_disruption_budget_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_pod_disruption_budget_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_pod_disruption_budget_list_t *v1_pod_disruption_budget_list_parseFromJSON(cJS // v1_pod_disruption_budget_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_pod_disruption_budget_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_pod_disruption_budget_list_t *v1_pod_disruption_budget_list_parseFromJSON(cJS v1_pod_disruption_budget_list_local_var = v1_pod_disruption_budget_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_pod_dns_config_option.c b/kubernetes/model/v1_pod_dns_config_option.c index 30c58e5c..ccfd0351 100644 --- a/kubernetes/model/v1_pod_dns_config_option.c +++ b/kubernetes/model/v1_pod_dns_config_option.c @@ -69,7 +69,7 @@ v1_pod_dns_config_option_t *v1_pod_dns_config_option_parseFromJSON(cJSON *v1_pod // v1_pod_dns_config_option->name cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_pod_dns_config_optionJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -78,7 +78,7 @@ v1_pod_dns_config_option_t *v1_pod_dns_config_option_parseFromJSON(cJSON *v1_pod // v1_pod_dns_config_option->value cJSON *value = cJSON_GetObjectItemCaseSensitive(v1_pod_dns_config_optionJSON, "value"); if (value) { - if(!cJSON_IsString(value)) + if(!cJSON_IsString(value) && !cJSON_IsNull(value)) { goto end; //String } @@ -86,8 +86,8 @@ v1_pod_dns_config_option_t *v1_pod_dns_config_option_parseFromJSON(cJSON *v1_pod v1_pod_dns_config_option_local_var = v1_pod_dns_config_option_create ( - name ? strdup(name->valuestring) : NULL, - value ? strdup(value->valuestring) : NULL + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, + value && !cJSON_IsNull(value) ? strdup(value->valuestring) : NULL ); return v1_pod_dns_config_option_local_var; diff --git a/kubernetes/model/v1_pod_failure_policy_on_exit_codes_requirement.c b/kubernetes/model/v1_pod_failure_policy_on_exit_codes_requirement.c index 7fbf0919..2c90884b 100644 --- a/kubernetes/model/v1_pod_failure_policy_on_exit_codes_requirement.c +++ b/kubernetes/model/v1_pod_failure_policy_on_exit_codes_requirement.c @@ -100,7 +100,7 @@ v1_pod_failure_policy_on_exit_codes_requirement_t *v1_pod_failure_policy_on_exit // v1_pod_failure_policy_on_exit_codes_requirement->container_name cJSON *container_name = cJSON_GetObjectItemCaseSensitive(v1_pod_failure_policy_on_exit_codes_requirementJSON, "containerName"); if (container_name) { - if(!cJSON_IsString(container_name)) + if(!cJSON_IsString(container_name) && !cJSON_IsNull(container_name)) { goto end; //String } @@ -148,7 +148,7 @@ v1_pod_failure_policy_on_exit_codes_requirement_t *v1_pod_failure_policy_on_exit v1_pod_failure_policy_on_exit_codes_requirement_local_var = v1_pod_failure_policy_on_exit_codes_requirement_create ( - container_name ? strdup(container_name->valuestring) : NULL, + container_name && !cJSON_IsNull(container_name) ? strdup(container_name->valuestring) : NULL, strdup(_operator->valuestring), valuesList ); diff --git a/kubernetes/model/v1_pod_ip.c b/kubernetes/model/v1_pod_ip.c index dd3385d9..6c4615bf 100644 --- a/kubernetes/model/v1_pod_ip.c +++ b/kubernetes/model/v1_pod_ip.c @@ -55,7 +55,7 @@ v1_pod_ip_t *v1_pod_ip_parseFromJSON(cJSON *v1_pod_ipJSON){ // v1_pod_ip->ip cJSON *ip = cJSON_GetObjectItemCaseSensitive(v1_pod_ipJSON, "ip"); if (ip) { - if(!cJSON_IsString(ip)) + if(!cJSON_IsString(ip) && !cJSON_IsNull(ip)) { goto end; //String } @@ -63,7 +63,7 @@ v1_pod_ip_t *v1_pod_ip_parseFromJSON(cJSON *v1_pod_ipJSON){ v1_pod_ip_local_var = v1_pod_ip_create ( - ip ? strdup(ip->valuestring) : NULL + ip && !cJSON_IsNull(ip) ? strdup(ip->valuestring) : NULL ); return v1_pod_ip_local_var; diff --git a/kubernetes/model/v1_pod_list.c b/kubernetes/model/v1_pod_list.c index b38dce58..c72e55b9 100644 --- a/kubernetes/model/v1_pod_list.c +++ b/kubernetes/model/v1_pod_list.c @@ -124,7 +124,7 @@ v1_pod_list_t *v1_pod_list_parseFromJSON(cJSON *v1_pod_listJSON){ // v1_pod_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_pod_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_pod_list_t *v1_pod_list_parseFromJSON(cJSON *v1_pod_listJSON){ // v1_pod_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_pod_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_pod_list_t *v1_pod_list_parseFromJSON(cJSON *v1_pod_listJSON){ v1_pod_list_local_var = v1_pod_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_pod_security_context.c b/kubernetes/model/v1_pod_security_context.c index 7a368838..a1c7ebee 100644 --- a/kubernetes/model/v1_pod_security_context.c +++ b/kubernetes/model/v1_pod_security_context.c @@ -231,7 +231,7 @@ v1_pod_security_context_t *v1_pod_security_context_parseFromJSON(cJSON *v1_pod_s // v1_pod_security_context->fs_group_change_policy cJSON *fs_group_change_policy = cJSON_GetObjectItemCaseSensitive(v1_pod_security_contextJSON, "fsGroupChangePolicy"); if (fs_group_change_policy) { - if(!cJSON_IsString(fs_group_change_policy)) + if(!cJSON_IsString(fs_group_change_policy) && !cJSON_IsNull(fs_group_change_policy)) { goto end; //String } @@ -331,7 +331,7 @@ v1_pod_security_context_t *v1_pod_security_context_parseFromJSON(cJSON *v1_pod_s v1_pod_security_context_local_var = v1_pod_security_context_create ( fs_group ? fs_group->valuedouble : 0, - fs_group_change_policy ? strdup(fs_group_change_policy->valuestring) : NULL, + fs_group_change_policy && !cJSON_IsNull(fs_group_change_policy) ? strdup(fs_group_change_policy->valuestring) : NULL, run_as_group ? run_as_group->valuedouble : 0, run_as_non_root ? run_as_non_root->valueint : 0, run_as_user ? run_as_user->valuedouble : 0, diff --git a/kubernetes/model/v1_pod_spec.c b/kubernetes/model/v1_pod_spec.c index 562f508d..8d6f3b7e 100644 --- a/kubernetes/model/v1_pod_spec.c +++ b/kubernetes/model/v1_pod_spec.c @@ -806,7 +806,7 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ // v1_pod_spec->dns_policy cJSON *dns_policy = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "dnsPolicy"); if (dns_policy) { - if(!cJSON_IsString(dns_policy)) + if(!cJSON_IsString(dns_policy) && !cJSON_IsNull(dns_policy)) { goto end; //String } @@ -902,7 +902,7 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ // v1_pod_spec->hostname cJSON *hostname = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "hostname"); if (hostname) { - if(!cJSON_IsString(hostname)) + if(!cJSON_IsString(hostname) && !cJSON_IsNull(hostname)) { goto end; //String } @@ -953,7 +953,7 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ // v1_pod_spec->node_name cJSON *node_name = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "nodeName"); if (node_name) { - if(!cJSON_IsString(node_name)) + if(!cJSON_IsString(node_name) && !cJSON_IsNull(node_name)) { goto end; //String } @@ -1018,7 +1018,7 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ // v1_pod_spec->preemption_policy cJSON *preemption_policy = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "preemptionPolicy"); if (preemption_policy) { - if(!cJSON_IsString(preemption_policy)) + if(!cJSON_IsString(preemption_policy) && !cJSON_IsNull(preemption_policy)) { goto end; //String } @@ -1036,7 +1036,7 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ // v1_pod_spec->priority_class_name cJSON *priority_class_name = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "priorityClassName"); if (priority_class_name) { - if(!cJSON_IsString(priority_class_name)) + if(!cJSON_IsString(priority_class_name) && !cJSON_IsNull(priority_class_name)) { goto end; //String } @@ -1066,7 +1066,7 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ // v1_pod_spec->restart_policy cJSON *restart_policy = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "restartPolicy"); if (restart_policy) { - if(!cJSON_IsString(restart_policy)) + if(!cJSON_IsString(restart_policy) && !cJSON_IsNull(restart_policy)) { goto end; //String } @@ -1075,7 +1075,7 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ // v1_pod_spec->runtime_class_name cJSON *runtime_class_name = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "runtimeClassName"); if (runtime_class_name) { - if(!cJSON_IsString(runtime_class_name)) + if(!cJSON_IsString(runtime_class_name) && !cJSON_IsNull(runtime_class_name)) { goto end; //String } @@ -1084,7 +1084,7 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ // v1_pod_spec->scheduler_name cJSON *scheduler_name = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "schedulerName"); if (scheduler_name) { - if(!cJSON_IsString(scheduler_name)) + if(!cJSON_IsString(scheduler_name) && !cJSON_IsNull(scheduler_name)) { goto end; //String } @@ -1099,7 +1099,7 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ // v1_pod_spec->service_account cJSON *service_account = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "serviceAccount"); if (service_account) { - if(!cJSON_IsString(service_account)) + if(!cJSON_IsString(service_account) && !cJSON_IsNull(service_account)) { goto end; //String } @@ -1108,7 +1108,7 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ // v1_pod_spec->service_account_name cJSON *service_account_name = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "serviceAccountName"); if (service_account_name) { - if(!cJSON_IsString(service_account_name)) + if(!cJSON_IsString(service_account_name) && !cJSON_IsNull(service_account_name)) { goto end; //String } @@ -1135,7 +1135,7 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ // v1_pod_spec->subdomain cJSON *subdomain = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "subdomain"); if (subdomain) { - if(!cJSON_IsString(subdomain)) + if(!cJSON_IsString(subdomain) && !cJSON_IsNull(subdomain)) { goto end; //String } @@ -1220,7 +1220,7 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ automount_service_account_token ? automount_service_account_token->valueint : 0, containersList, dns_config ? dns_config_local_nonprim : NULL, - dns_policy ? strdup(dns_policy->valuestring) : NULL, + dns_policy && !cJSON_IsNull(dns_policy) ? strdup(dns_policy->valuestring) : NULL, enable_service_links ? enable_service_links->valueint : 0, ephemeral_containers ? ephemeral_containersList : NULL, host_aliases ? host_aliasesList : NULL, @@ -1228,26 +1228,26 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ host_network ? host_network->valueint : 0, host_pid ? host_pid->valueint : 0, host_users ? host_users->valueint : 0, - hostname ? strdup(hostname->valuestring) : NULL, + hostname && !cJSON_IsNull(hostname) ? strdup(hostname->valuestring) : NULL, image_pull_secrets ? image_pull_secretsList : NULL, init_containers ? init_containersList : NULL, - node_name ? strdup(node_name->valuestring) : NULL, + node_name && !cJSON_IsNull(node_name) ? strdup(node_name->valuestring) : NULL, node_selector ? node_selectorList : NULL, os ? os_local_nonprim : NULL, overhead ? overheadList : NULL, - preemption_policy ? strdup(preemption_policy->valuestring) : NULL, + preemption_policy && !cJSON_IsNull(preemption_policy) ? strdup(preemption_policy->valuestring) : NULL, priority ? priority->valuedouble : 0, - priority_class_name ? strdup(priority_class_name->valuestring) : NULL, + priority_class_name && !cJSON_IsNull(priority_class_name) ? strdup(priority_class_name->valuestring) : NULL, readiness_gates ? readiness_gatesList : NULL, - restart_policy ? strdup(restart_policy->valuestring) : NULL, - runtime_class_name ? strdup(runtime_class_name->valuestring) : NULL, - scheduler_name ? strdup(scheduler_name->valuestring) : NULL, + restart_policy && !cJSON_IsNull(restart_policy) ? strdup(restart_policy->valuestring) : NULL, + runtime_class_name && !cJSON_IsNull(runtime_class_name) ? strdup(runtime_class_name->valuestring) : NULL, + scheduler_name && !cJSON_IsNull(scheduler_name) ? strdup(scheduler_name->valuestring) : NULL, security_context ? security_context_local_nonprim : NULL, - service_account ? strdup(service_account->valuestring) : NULL, - service_account_name ? strdup(service_account_name->valuestring) : NULL, + service_account && !cJSON_IsNull(service_account) ? strdup(service_account->valuestring) : NULL, + service_account_name && !cJSON_IsNull(service_account_name) ? strdup(service_account_name->valuestring) : NULL, set_hostname_as_fqdn ? set_hostname_as_fqdn->valueint : 0, share_process_namespace ? share_process_namespace->valueint : 0, - subdomain ? strdup(subdomain->valuestring) : NULL, + subdomain && !cJSON_IsNull(subdomain) ? strdup(subdomain->valuestring) : NULL, termination_grace_period_seconds ? termination_grace_period_seconds->valuedouble : 0, tolerations ? tolerationsList : NULL, topology_spread_constraints ? topology_spread_constraintsList : NULL, diff --git a/kubernetes/model/v1_pod_status.c b/kubernetes/model/v1_pod_status.c index d1af5a0a..275be2e2 100644 --- a/kubernetes/model/v1_pod_status.c +++ b/kubernetes/model/v1_pod_status.c @@ -376,7 +376,7 @@ v1_pod_status_t *v1_pod_status_parseFromJSON(cJSON *v1_pod_statusJSON){ // v1_pod_status->host_ip cJSON *host_ip = cJSON_GetObjectItemCaseSensitive(v1_pod_statusJSON, "hostIP"); if (host_ip) { - if(!cJSON_IsString(host_ip)) + if(!cJSON_IsString(host_ip) && !cJSON_IsNull(host_ip)) { goto end; //String } @@ -406,7 +406,7 @@ v1_pod_status_t *v1_pod_status_parseFromJSON(cJSON *v1_pod_statusJSON){ // v1_pod_status->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_pod_statusJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -415,7 +415,7 @@ v1_pod_status_t *v1_pod_status_parseFromJSON(cJSON *v1_pod_statusJSON){ // v1_pod_status->nominated_node_name cJSON *nominated_node_name = cJSON_GetObjectItemCaseSensitive(v1_pod_statusJSON, "nominatedNodeName"); if (nominated_node_name) { - if(!cJSON_IsString(nominated_node_name)) + if(!cJSON_IsString(nominated_node_name) && !cJSON_IsNull(nominated_node_name)) { goto end; //String } @@ -424,7 +424,7 @@ v1_pod_status_t *v1_pod_status_parseFromJSON(cJSON *v1_pod_statusJSON){ // v1_pod_status->phase cJSON *phase = cJSON_GetObjectItemCaseSensitive(v1_pod_statusJSON, "phase"); if (phase) { - if(!cJSON_IsString(phase)) + if(!cJSON_IsString(phase) && !cJSON_IsNull(phase)) { goto end; //String } @@ -433,7 +433,7 @@ v1_pod_status_t *v1_pod_status_parseFromJSON(cJSON *v1_pod_statusJSON){ // v1_pod_status->pod_ip cJSON *pod_ip = cJSON_GetObjectItemCaseSensitive(v1_pod_statusJSON, "podIP"); if (pod_ip) { - if(!cJSON_IsString(pod_ip)) + if(!cJSON_IsString(pod_ip) && !cJSON_IsNull(pod_ip)) { goto end; //String } @@ -463,7 +463,7 @@ v1_pod_status_t *v1_pod_status_parseFromJSON(cJSON *v1_pod_statusJSON){ // v1_pod_status->qos_class cJSON *qos_class = cJSON_GetObjectItemCaseSensitive(v1_pod_statusJSON, "qosClass"); if (qos_class) { - if(!cJSON_IsString(qos_class)) + if(!cJSON_IsString(qos_class) && !cJSON_IsNull(qos_class)) { goto end; //String } @@ -472,7 +472,7 @@ v1_pod_status_t *v1_pod_status_parseFromJSON(cJSON *v1_pod_statusJSON){ // v1_pod_status->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_pod_statusJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -492,15 +492,15 @@ v1_pod_status_t *v1_pod_status_parseFromJSON(cJSON *v1_pod_statusJSON){ conditions ? conditionsList : NULL, container_statuses ? container_statusesList : NULL, ephemeral_container_statuses ? ephemeral_container_statusesList : NULL, - host_ip ? strdup(host_ip->valuestring) : NULL, + host_ip && !cJSON_IsNull(host_ip) ? strdup(host_ip->valuestring) : NULL, init_container_statuses ? init_container_statusesList : NULL, - message ? strdup(message->valuestring) : NULL, - nominated_node_name ? strdup(nominated_node_name->valuestring) : NULL, - phase ? strdup(phase->valuestring) : NULL, - pod_ip ? strdup(pod_ip->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + nominated_node_name && !cJSON_IsNull(nominated_node_name) ? strdup(nominated_node_name->valuestring) : NULL, + phase && !cJSON_IsNull(phase) ? strdup(phase->valuestring) : NULL, + pod_ip && !cJSON_IsNull(pod_ip) ? strdup(pod_ip->valuestring) : NULL, pod_ips ? pod_ipsList : NULL, - qos_class ? strdup(qos_class->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, + qos_class && !cJSON_IsNull(qos_class) ? strdup(qos_class->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, start_time && !cJSON_IsNull(start_time) ? strdup(start_time->valuestring) : NULL ); diff --git a/kubernetes/model/v1_pod_template.c b/kubernetes/model/v1_pod_template.c index b152565f..fe2d89b2 100644 --- a/kubernetes/model/v1_pod_template.c +++ b/kubernetes/model/v1_pod_template.c @@ -113,7 +113,7 @@ v1_pod_template_t *v1_pod_template_parseFromJSON(cJSON *v1_pod_templateJSON){ // v1_pod_template->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_pod_templateJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -122,7 +122,7 @@ v1_pod_template_t *v1_pod_template_parseFromJSON(cJSON *v1_pod_templateJSON){ // v1_pod_template->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_pod_templateJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -142,8 +142,8 @@ v1_pod_template_t *v1_pod_template_parseFromJSON(cJSON *v1_pod_templateJSON){ v1_pod_template_local_var = v1_pod_template_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, _template ? _template_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_pod_template_list.c b/kubernetes/model/v1_pod_template_list.c index 9093e2d5..8e24e8f5 100644 --- a/kubernetes/model/v1_pod_template_list.c +++ b/kubernetes/model/v1_pod_template_list.c @@ -124,7 +124,7 @@ v1_pod_template_list_t *v1_pod_template_list_parseFromJSON(cJSON *v1_pod_templat // v1_pod_template_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_pod_template_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_pod_template_list_t *v1_pod_template_list_parseFromJSON(cJSON *v1_pod_templat // v1_pod_template_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_pod_template_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_pod_template_list_t *v1_pod_template_list_parseFromJSON(cJSON *v1_pod_templat v1_pod_template_list_local_var = v1_pod_template_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_port_status.c b/kubernetes/model/v1_port_status.c index ae7c85dc..6aa5abae 100644 --- a/kubernetes/model/v1_port_status.c +++ b/kubernetes/model/v1_port_status.c @@ -81,7 +81,7 @@ v1_port_status_t *v1_port_status_parseFromJSON(cJSON *v1_port_statusJSON){ // v1_port_status->error cJSON *error = cJSON_GetObjectItemCaseSensitive(v1_port_statusJSON, "error"); if (error) { - if(!cJSON_IsString(error)) + if(!cJSON_IsString(error) && !cJSON_IsNull(error)) { goto end; //String } @@ -113,7 +113,7 @@ v1_port_status_t *v1_port_status_parseFromJSON(cJSON *v1_port_statusJSON){ v1_port_status_local_var = v1_port_status_create ( - error ? strdup(error->valuestring) : NULL, + error && !cJSON_IsNull(error) ? strdup(error->valuestring) : NULL, port->valuedouble, strdup(protocol->valuestring) ); diff --git a/kubernetes/model/v1_portworx_volume_source.c b/kubernetes/model/v1_portworx_volume_source.c index 2d2be016..973f2cbf 100644 --- a/kubernetes/model/v1_portworx_volume_source.c +++ b/kubernetes/model/v1_portworx_volume_source.c @@ -80,7 +80,7 @@ v1_portworx_volume_source_t *v1_portworx_volume_source_parseFromJSON(cJSON *v1_p // v1_portworx_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_portworx_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -109,7 +109,7 @@ v1_portworx_volume_source_t *v1_portworx_volume_source_parseFromJSON(cJSON *v1_p v1_portworx_volume_source_local_var = v1_portworx_volume_source_create ( - fs_type ? strdup(fs_type->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, read_only ? read_only->valueint : 0, strdup(volume_id->valuestring) ); diff --git a/kubernetes/model/v1_preconditions.c b/kubernetes/model/v1_preconditions.c index 0c360be3..1102e90f 100644 --- a/kubernetes/model/v1_preconditions.c +++ b/kubernetes/model/v1_preconditions.c @@ -69,7 +69,7 @@ v1_preconditions_t *v1_preconditions_parseFromJSON(cJSON *v1_preconditionsJSON){ // v1_preconditions->resource_version cJSON *resource_version = cJSON_GetObjectItemCaseSensitive(v1_preconditionsJSON, "resourceVersion"); if (resource_version) { - if(!cJSON_IsString(resource_version)) + if(!cJSON_IsString(resource_version) && !cJSON_IsNull(resource_version)) { goto end; //String } @@ -78,7 +78,7 @@ v1_preconditions_t *v1_preconditions_parseFromJSON(cJSON *v1_preconditionsJSON){ // v1_preconditions->uid cJSON *uid = cJSON_GetObjectItemCaseSensitive(v1_preconditionsJSON, "uid"); if (uid) { - if(!cJSON_IsString(uid)) + if(!cJSON_IsString(uid) && !cJSON_IsNull(uid)) { goto end; //String } @@ -86,8 +86,8 @@ v1_preconditions_t *v1_preconditions_parseFromJSON(cJSON *v1_preconditionsJSON){ v1_preconditions_local_var = v1_preconditions_create ( - resource_version ? strdup(resource_version->valuestring) : NULL, - uid ? strdup(uid->valuestring) : NULL + resource_version && !cJSON_IsNull(resource_version) ? strdup(resource_version->valuestring) : NULL, + uid && !cJSON_IsNull(uid) ? strdup(uid->valuestring) : NULL ); return v1_preconditions_local_var; diff --git a/kubernetes/model/v1_priority_class.c b/kubernetes/model/v1_priority_class.c index 16946926..2a76a297 100644 --- a/kubernetes/model/v1_priority_class.c +++ b/kubernetes/model/v1_priority_class.c @@ -140,7 +140,7 @@ v1_priority_class_t *v1_priority_class_parseFromJSON(cJSON *v1_priority_classJSO // v1_priority_class->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_priority_classJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -149,7 +149,7 @@ v1_priority_class_t *v1_priority_class_parseFromJSON(cJSON *v1_priority_classJSO // v1_priority_class->description cJSON *description = cJSON_GetObjectItemCaseSensitive(v1_priority_classJSON, "description"); if (description) { - if(!cJSON_IsString(description)) + if(!cJSON_IsString(description) && !cJSON_IsNull(description)) { goto end; //String } @@ -167,7 +167,7 @@ v1_priority_class_t *v1_priority_class_parseFromJSON(cJSON *v1_priority_classJSO // v1_priority_class->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_priority_classJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -182,7 +182,7 @@ v1_priority_class_t *v1_priority_class_parseFromJSON(cJSON *v1_priority_classJSO // v1_priority_class->preemption_policy cJSON *preemption_policy = cJSON_GetObjectItemCaseSensitive(v1_priority_classJSON, "preemptionPolicy"); if (preemption_policy) { - if(!cJSON_IsString(preemption_policy)) + if(!cJSON_IsString(preemption_policy) && !cJSON_IsNull(preemption_policy)) { goto end; //String } @@ -202,12 +202,12 @@ v1_priority_class_t *v1_priority_class_parseFromJSON(cJSON *v1_priority_classJSO v1_priority_class_local_var = v1_priority_class_create ( - api_version ? strdup(api_version->valuestring) : NULL, - description ? strdup(description->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + description && !cJSON_IsNull(description) ? strdup(description->valuestring) : NULL, global_default ? global_default->valueint : 0, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, - preemption_policy ? strdup(preemption_policy->valuestring) : NULL, + preemption_policy && !cJSON_IsNull(preemption_policy) ? strdup(preemption_policy->valuestring) : NULL, value->valuedouble ); diff --git a/kubernetes/model/v1_priority_class_list.c b/kubernetes/model/v1_priority_class_list.c index 4e9596c4..a52b06dd 100644 --- a/kubernetes/model/v1_priority_class_list.c +++ b/kubernetes/model/v1_priority_class_list.c @@ -124,7 +124,7 @@ v1_priority_class_list_t *v1_priority_class_list_parseFromJSON(cJSON *v1_priorit // v1_priority_class_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_priority_class_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_priority_class_list_t *v1_priority_class_list_parseFromJSON(cJSON *v1_priorit // v1_priority_class_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_priority_class_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_priority_class_list_t *v1_priority_class_list_parseFromJSON(cJSON *v1_priorit v1_priority_class_list_local_var = v1_priority_class_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_quobyte_volume_source.c b/kubernetes/model/v1_quobyte_volume_source.c index 9b0fd9bf..6140266d 100644 --- a/kubernetes/model/v1_quobyte_volume_source.c +++ b/kubernetes/model/v1_quobyte_volume_source.c @@ -123,7 +123,7 @@ v1_quobyte_volume_source_t *v1_quobyte_volume_source_parseFromJSON(cJSON *v1_quo // v1_quobyte_volume_source->group cJSON *group = cJSON_GetObjectItemCaseSensitive(v1_quobyte_volume_sourceJSON, "group"); if (group) { - if(!cJSON_IsString(group)) + if(!cJSON_IsString(group) && !cJSON_IsNull(group)) { goto end; //String } @@ -153,7 +153,7 @@ v1_quobyte_volume_source_t *v1_quobyte_volume_source_parseFromJSON(cJSON *v1_quo // v1_quobyte_volume_source->tenant cJSON *tenant = cJSON_GetObjectItemCaseSensitive(v1_quobyte_volume_sourceJSON, "tenant"); if (tenant) { - if(!cJSON_IsString(tenant)) + if(!cJSON_IsString(tenant) && !cJSON_IsNull(tenant)) { goto end; //String } @@ -162,7 +162,7 @@ v1_quobyte_volume_source_t *v1_quobyte_volume_source_parseFromJSON(cJSON *v1_quo // v1_quobyte_volume_source->user cJSON *user = cJSON_GetObjectItemCaseSensitive(v1_quobyte_volume_sourceJSON, "user"); if (user) { - if(!cJSON_IsString(user)) + if(!cJSON_IsString(user) && !cJSON_IsNull(user)) { goto end; //String } @@ -182,11 +182,11 @@ v1_quobyte_volume_source_t *v1_quobyte_volume_source_parseFromJSON(cJSON *v1_quo v1_quobyte_volume_source_local_var = v1_quobyte_volume_source_create ( - group ? strdup(group->valuestring) : NULL, + group && !cJSON_IsNull(group) ? strdup(group->valuestring) : NULL, read_only ? read_only->valueint : 0, strdup(registry->valuestring), - tenant ? strdup(tenant->valuestring) : NULL, - user ? strdup(user->valuestring) : NULL, + tenant && !cJSON_IsNull(tenant) ? strdup(tenant->valuestring) : NULL, + user && !cJSON_IsNull(user) ? strdup(user->valuestring) : NULL, strdup(volume->valuestring) ); diff --git a/kubernetes/model/v1_rbd_persistent_volume_source.c b/kubernetes/model/v1_rbd_persistent_volume_source.c index 77c8bf93..28d7b492 100644 --- a/kubernetes/model/v1_rbd_persistent_volume_source.c +++ b/kubernetes/model/v1_rbd_persistent_volume_source.c @@ -174,7 +174,7 @@ v1_rbd_persistent_volume_source_t *v1_rbd_persistent_volume_source_parseFromJSON // v1_rbd_persistent_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_rbd_persistent_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -195,7 +195,7 @@ v1_rbd_persistent_volume_source_t *v1_rbd_persistent_volume_source_parseFromJSON // v1_rbd_persistent_volume_source->keyring cJSON *keyring = cJSON_GetObjectItemCaseSensitive(v1_rbd_persistent_volume_sourceJSON, "keyring"); if (keyring) { - if(!cJSON_IsString(keyring)) + if(!cJSON_IsString(keyring) && !cJSON_IsNull(keyring)) { goto end; //String } @@ -226,7 +226,7 @@ v1_rbd_persistent_volume_source_t *v1_rbd_persistent_volume_source_parseFromJSON // v1_rbd_persistent_volume_source->pool cJSON *pool = cJSON_GetObjectItemCaseSensitive(v1_rbd_persistent_volume_sourceJSON, "pool"); if (pool) { - if(!cJSON_IsString(pool)) + if(!cJSON_IsString(pool) && !cJSON_IsNull(pool)) { goto end; //String } @@ -250,7 +250,7 @@ v1_rbd_persistent_volume_source_t *v1_rbd_persistent_volume_source_parseFromJSON // v1_rbd_persistent_volume_source->user cJSON *user = cJSON_GetObjectItemCaseSensitive(v1_rbd_persistent_volume_sourceJSON, "user"); if (user) { - if(!cJSON_IsString(user)) + if(!cJSON_IsString(user) && !cJSON_IsNull(user)) { goto end; //String } @@ -258,14 +258,14 @@ v1_rbd_persistent_volume_source_t *v1_rbd_persistent_volume_source_parseFromJSON v1_rbd_persistent_volume_source_local_var = v1_rbd_persistent_volume_source_create ( - fs_type ? strdup(fs_type->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, strdup(image->valuestring), - keyring ? strdup(keyring->valuestring) : NULL, + keyring && !cJSON_IsNull(keyring) ? strdup(keyring->valuestring) : NULL, monitorsList, - pool ? strdup(pool->valuestring) : NULL, + pool && !cJSON_IsNull(pool) ? strdup(pool->valuestring) : NULL, read_only ? read_only->valueint : 0, secret_ref ? secret_ref_local_nonprim : NULL, - user ? strdup(user->valuestring) : NULL + user && !cJSON_IsNull(user) ? strdup(user->valuestring) : NULL ); return v1_rbd_persistent_volume_source_local_var; diff --git a/kubernetes/model/v1_rbd_volume_source.c b/kubernetes/model/v1_rbd_volume_source.c index e291e55f..5443f147 100644 --- a/kubernetes/model/v1_rbd_volume_source.c +++ b/kubernetes/model/v1_rbd_volume_source.c @@ -174,7 +174,7 @@ v1_rbd_volume_source_t *v1_rbd_volume_source_parseFromJSON(cJSON *v1_rbd_volume_ // v1_rbd_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_rbd_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -195,7 +195,7 @@ v1_rbd_volume_source_t *v1_rbd_volume_source_parseFromJSON(cJSON *v1_rbd_volume_ // v1_rbd_volume_source->keyring cJSON *keyring = cJSON_GetObjectItemCaseSensitive(v1_rbd_volume_sourceJSON, "keyring"); if (keyring) { - if(!cJSON_IsString(keyring)) + if(!cJSON_IsString(keyring) && !cJSON_IsNull(keyring)) { goto end; //String } @@ -226,7 +226,7 @@ v1_rbd_volume_source_t *v1_rbd_volume_source_parseFromJSON(cJSON *v1_rbd_volume_ // v1_rbd_volume_source->pool cJSON *pool = cJSON_GetObjectItemCaseSensitive(v1_rbd_volume_sourceJSON, "pool"); if (pool) { - if(!cJSON_IsString(pool)) + if(!cJSON_IsString(pool) && !cJSON_IsNull(pool)) { goto end; //String } @@ -250,7 +250,7 @@ v1_rbd_volume_source_t *v1_rbd_volume_source_parseFromJSON(cJSON *v1_rbd_volume_ // v1_rbd_volume_source->user cJSON *user = cJSON_GetObjectItemCaseSensitive(v1_rbd_volume_sourceJSON, "user"); if (user) { - if(!cJSON_IsString(user)) + if(!cJSON_IsString(user) && !cJSON_IsNull(user)) { goto end; //String } @@ -258,14 +258,14 @@ v1_rbd_volume_source_t *v1_rbd_volume_source_parseFromJSON(cJSON *v1_rbd_volume_ v1_rbd_volume_source_local_var = v1_rbd_volume_source_create ( - fs_type ? strdup(fs_type->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, strdup(image->valuestring), - keyring ? strdup(keyring->valuestring) : NULL, + keyring && !cJSON_IsNull(keyring) ? strdup(keyring->valuestring) : NULL, monitorsList, - pool ? strdup(pool->valuestring) : NULL, + pool && !cJSON_IsNull(pool) ? strdup(pool->valuestring) : NULL, read_only ? read_only->valueint : 0, secret_ref ? secret_ref_local_nonprim : NULL, - user ? strdup(user->valuestring) : NULL + user && !cJSON_IsNull(user) ? strdup(user->valuestring) : NULL ); return v1_rbd_volume_source_local_var; diff --git a/kubernetes/model/v1_replica_set.c b/kubernetes/model/v1_replica_set.c index a802f1e3..f01d4673 100644 --- a/kubernetes/model/v1_replica_set.c +++ b/kubernetes/model/v1_replica_set.c @@ -135,7 +135,7 @@ v1_replica_set_t *v1_replica_set_parseFromJSON(cJSON *v1_replica_setJSON){ // v1_replica_set->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_replica_setJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1_replica_set_t *v1_replica_set_parseFromJSON(cJSON *v1_replica_setJSON){ // v1_replica_set->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_replica_setJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1_replica_set_t *v1_replica_set_parseFromJSON(cJSON *v1_replica_setJSON){ v1_replica_set_local_var = v1_replica_set_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_replica_set_condition.c b/kubernetes/model/v1_replica_set_condition.c index 93659ef5..4e7957d4 100644 --- a/kubernetes/model/v1_replica_set_condition.c +++ b/kubernetes/model/v1_replica_set_condition.c @@ -122,7 +122,7 @@ v1_replica_set_condition_t *v1_replica_set_condition_parseFromJSON(cJSON *v1_rep // v1_replica_set_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_replica_set_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -131,7 +131,7 @@ v1_replica_set_condition_t *v1_replica_set_condition_parseFromJSON(cJSON *v1_rep // v1_replica_set_condition->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_replica_set_conditionJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -164,8 +164,8 @@ v1_replica_set_condition_t *v1_replica_set_condition_parseFromJSON(cJSON *v1_rep v1_replica_set_condition_local_var = v1_replica_set_condition_create ( last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), strdup(type->valuestring) ); diff --git a/kubernetes/model/v1_replica_set_list.c b/kubernetes/model/v1_replica_set_list.c index 45784795..80684690 100644 --- a/kubernetes/model/v1_replica_set_list.c +++ b/kubernetes/model/v1_replica_set_list.c @@ -124,7 +124,7 @@ v1_replica_set_list_t *v1_replica_set_list_parseFromJSON(cJSON *v1_replica_set_l // v1_replica_set_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_replica_set_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_replica_set_list_t *v1_replica_set_list_parseFromJSON(cJSON *v1_replica_set_l // v1_replica_set_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_replica_set_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_replica_set_list_t *v1_replica_set_list_parseFromJSON(cJSON *v1_replica_set_l v1_replica_set_list_local_var = v1_replica_set_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_replication_controller.c b/kubernetes/model/v1_replication_controller.c index e611f86e..0872b6b3 100644 --- a/kubernetes/model/v1_replication_controller.c +++ b/kubernetes/model/v1_replication_controller.c @@ -135,7 +135,7 @@ v1_replication_controller_t *v1_replication_controller_parseFromJSON(cJSON *v1_r // v1_replication_controller->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_replication_controllerJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1_replication_controller_t *v1_replication_controller_parseFromJSON(cJSON *v1_r // v1_replication_controller->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_replication_controllerJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1_replication_controller_t *v1_replication_controller_parseFromJSON(cJSON *v1_r v1_replication_controller_local_var = v1_replication_controller_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_replication_controller_condition.c b/kubernetes/model/v1_replication_controller_condition.c index d112a056..830854d5 100644 --- a/kubernetes/model/v1_replication_controller_condition.c +++ b/kubernetes/model/v1_replication_controller_condition.c @@ -122,7 +122,7 @@ v1_replication_controller_condition_t *v1_replication_controller_condition_parse // v1_replication_controller_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_replication_controller_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -131,7 +131,7 @@ v1_replication_controller_condition_t *v1_replication_controller_condition_parse // v1_replication_controller_condition->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_replication_controller_conditionJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -164,8 +164,8 @@ v1_replication_controller_condition_t *v1_replication_controller_condition_parse v1_replication_controller_condition_local_var = v1_replication_controller_condition_create ( last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), strdup(type->valuestring) ); diff --git a/kubernetes/model/v1_replication_controller_list.c b/kubernetes/model/v1_replication_controller_list.c index a033ed84..465027a5 100644 --- a/kubernetes/model/v1_replication_controller_list.c +++ b/kubernetes/model/v1_replication_controller_list.c @@ -124,7 +124,7 @@ v1_replication_controller_list_t *v1_replication_controller_list_parseFromJSON(c // v1_replication_controller_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_replication_controller_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_replication_controller_list_t *v1_replication_controller_list_parseFromJSON(c // v1_replication_controller_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_replication_controller_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_replication_controller_list_t *v1_replication_controller_list_parseFromJSON(c v1_replication_controller_list_local_var = v1_replication_controller_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_resource_attributes.c b/kubernetes/model/v1_resource_attributes.c index 4a578a26..ac3c1b95 100644 --- a/kubernetes/model/v1_resource_attributes.c +++ b/kubernetes/model/v1_resource_attributes.c @@ -139,7 +139,7 @@ v1_resource_attributes_t *v1_resource_attributes_parseFromJSON(cJSON *v1_resourc // v1_resource_attributes->group cJSON *group = cJSON_GetObjectItemCaseSensitive(v1_resource_attributesJSON, "group"); if (group) { - if(!cJSON_IsString(group)) + if(!cJSON_IsString(group) && !cJSON_IsNull(group)) { goto end; //String } @@ -148,7 +148,7 @@ v1_resource_attributes_t *v1_resource_attributes_parseFromJSON(cJSON *v1_resourc // v1_resource_attributes->name cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_resource_attributesJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -157,7 +157,7 @@ v1_resource_attributes_t *v1_resource_attributes_parseFromJSON(cJSON *v1_resourc // v1_resource_attributes->_namespace cJSON *_namespace = cJSON_GetObjectItemCaseSensitive(v1_resource_attributesJSON, "namespace"); if (_namespace) { - if(!cJSON_IsString(_namespace)) + if(!cJSON_IsString(_namespace) && !cJSON_IsNull(_namespace)) { goto end; //String } @@ -166,7 +166,7 @@ v1_resource_attributes_t *v1_resource_attributes_parseFromJSON(cJSON *v1_resourc // v1_resource_attributes->resource cJSON *resource = cJSON_GetObjectItemCaseSensitive(v1_resource_attributesJSON, "resource"); if (resource) { - if(!cJSON_IsString(resource)) + if(!cJSON_IsString(resource) && !cJSON_IsNull(resource)) { goto end; //String } @@ -175,7 +175,7 @@ v1_resource_attributes_t *v1_resource_attributes_parseFromJSON(cJSON *v1_resourc // v1_resource_attributes->subresource cJSON *subresource = cJSON_GetObjectItemCaseSensitive(v1_resource_attributesJSON, "subresource"); if (subresource) { - if(!cJSON_IsString(subresource)) + if(!cJSON_IsString(subresource) && !cJSON_IsNull(subresource)) { goto end; //String } @@ -184,7 +184,7 @@ v1_resource_attributes_t *v1_resource_attributes_parseFromJSON(cJSON *v1_resourc // v1_resource_attributes->verb cJSON *verb = cJSON_GetObjectItemCaseSensitive(v1_resource_attributesJSON, "verb"); if (verb) { - if(!cJSON_IsString(verb)) + if(!cJSON_IsString(verb) && !cJSON_IsNull(verb)) { goto end; //String } @@ -193,7 +193,7 @@ v1_resource_attributes_t *v1_resource_attributes_parseFromJSON(cJSON *v1_resourc // v1_resource_attributes->version cJSON *version = cJSON_GetObjectItemCaseSensitive(v1_resource_attributesJSON, "version"); if (version) { - if(!cJSON_IsString(version)) + if(!cJSON_IsString(version) && !cJSON_IsNull(version)) { goto end; //String } @@ -201,13 +201,13 @@ v1_resource_attributes_t *v1_resource_attributes_parseFromJSON(cJSON *v1_resourc v1_resource_attributes_local_var = v1_resource_attributes_create ( - group ? strdup(group->valuestring) : NULL, - name ? strdup(name->valuestring) : NULL, - _namespace ? strdup(_namespace->valuestring) : NULL, - resource ? strdup(resource->valuestring) : NULL, - subresource ? strdup(subresource->valuestring) : NULL, - verb ? strdup(verb->valuestring) : NULL, - version ? strdup(version->valuestring) : NULL + group && !cJSON_IsNull(group) ? strdup(group->valuestring) : NULL, + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, + _namespace && !cJSON_IsNull(_namespace) ? strdup(_namespace->valuestring) : NULL, + resource && !cJSON_IsNull(resource) ? strdup(resource->valuestring) : NULL, + subresource && !cJSON_IsNull(subresource) ? strdup(subresource->valuestring) : NULL, + verb && !cJSON_IsNull(verb) ? strdup(verb->valuestring) : NULL, + version && !cJSON_IsNull(version) ? strdup(version->valuestring) : NULL ); return v1_resource_attributes_local_var; diff --git a/kubernetes/model/v1_resource_field_selector.c b/kubernetes/model/v1_resource_field_selector.c index 15396d04..f6bcd600 100644 --- a/kubernetes/model/v1_resource_field_selector.c +++ b/kubernetes/model/v1_resource_field_selector.c @@ -84,7 +84,7 @@ v1_resource_field_selector_t *v1_resource_field_selector_parseFromJSON(cJSON *v1 // v1_resource_field_selector->container_name cJSON *container_name = cJSON_GetObjectItemCaseSensitive(v1_resource_field_selectorJSON, "containerName"); if (container_name) { - if(!cJSON_IsString(container_name)) + if(!cJSON_IsString(container_name) && !cJSON_IsNull(container_name)) { goto end; //String } @@ -93,7 +93,7 @@ v1_resource_field_selector_t *v1_resource_field_selector_parseFromJSON(cJSON *v1 // v1_resource_field_selector->divisor cJSON *divisor = cJSON_GetObjectItemCaseSensitive(v1_resource_field_selectorJSON, "divisor"); if (divisor) { - if(!cJSON_IsString(divisor)) + if(!cJSON_IsString(divisor) && !cJSON_IsNull(divisor)) { goto end; //String } @@ -113,8 +113,8 @@ v1_resource_field_selector_t *v1_resource_field_selector_parseFromJSON(cJSON *v1 v1_resource_field_selector_local_var = v1_resource_field_selector_create ( - container_name ? strdup(container_name->valuestring) : NULL, - divisor ? strdup(divisor->valuestring) : NULL, + container_name && !cJSON_IsNull(container_name) ? strdup(container_name->valuestring) : NULL, + divisor && !cJSON_IsNull(divisor) ? strdup(divisor->valuestring) : NULL, strdup(resource->valuestring) ); diff --git a/kubernetes/model/v1_resource_quota.c b/kubernetes/model/v1_resource_quota.c index e6ae4121..864bc8f3 100644 --- a/kubernetes/model/v1_resource_quota.c +++ b/kubernetes/model/v1_resource_quota.c @@ -135,7 +135,7 @@ v1_resource_quota_t *v1_resource_quota_parseFromJSON(cJSON *v1_resource_quotaJSO // v1_resource_quota->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_resource_quotaJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1_resource_quota_t *v1_resource_quota_parseFromJSON(cJSON *v1_resource_quotaJSO // v1_resource_quota->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_resource_quotaJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1_resource_quota_t *v1_resource_quota_parseFromJSON(cJSON *v1_resource_quotaJSO v1_resource_quota_local_var = v1_resource_quota_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_resource_quota_list.c b/kubernetes/model/v1_resource_quota_list.c index ea955b11..5b8dfdee 100644 --- a/kubernetes/model/v1_resource_quota_list.c +++ b/kubernetes/model/v1_resource_quota_list.c @@ -124,7 +124,7 @@ v1_resource_quota_list_t *v1_resource_quota_list_parseFromJSON(cJSON *v1_resourc // v1_resource_quota_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_resource_quota_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_resource_quota_list_t *v1_resource_quota_list_parseFromJSON(cJSON *v1_resourc // v1_resource_quota_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_resource_quota_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_resource_quota_list_t *v1_resource_quota_list_parseFromJSON(cJSON *v1_resourc v1_resource_quota_list_local_var = v1_resource_quota_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_role.c b/kubernetes/model/v1_role.c index bc7ff9b4..aeaa7de1 100644 --- a/kubernetes/model/v1_role.c +++ b/kubernetes/model/v1_role.c @@ -123,7 +123,7 @@ v1_role_t *v1_role_parseFromJSON(cJSON *v1_roleJSON){ // v1_role->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_roleJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -132,7 +132,7 @@ v1_role_t *v1_role_parseFromJSON(cJSON *v1_roleJSON){ // v1_role->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_roleJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -167,8 +167,8 @@ v1_role_t *v1_role_parseFromJSON(cJSON *v1_roleJSON){ v1_role_local_var = v1_role_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, rules ? rulesList : NULL ); diff --git a/kubernetes/model/v1_role_binding.c b/kubernetes/model/v1_role_binding.c index a8be342a..284c7f2f 100644 --- a/kubernetes/model/v1_role_binding.c +++ b/kubernetes/model/v1_role_binding.c @@ -146,7 +146,7 @@ v1_role_binding_t *v1_role_binding_parseFromJSON(cJSON *v1_role_bindingJSON){ // v1_role_binding->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_role_bindingJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -155,7 +155,7 @@ v1_role_binding_t *v1_role_binding_parseFromJSON(cJSON *v1_role_bindingJSON){ // v1_role_binding->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_role_bindingJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -199,8 +199,8 @@ v1_role_binding_t *v1_role_binding_parseFromJSON(cJSON *v1_role_bindingJSON){ v1_role_binding_local_var = v1_role_binding_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, role_ref_local_nonprim, subjects ? subjectsList : NULL diff --git a/kubernetes/model/v1_role_binding_list.c b/kubernetes/model/v1_role_binding_list.c index 27e7288c..e01aca09 100644 --- a/kubernetes/model/v1_role_binding_list.c +++ b/kubernetes/model/v1_role_binding_list.c @@ -124,7 +124,7 @@ v1_role_binding_list_t *v1_role_binding_list_parseFromJSON(cJSON *v1_role_bindin // v1_role_binding_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_role_binding_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_role_binding_list_t *v1_role_binding_list_parseFromJSON(cJSON *v1_role_bindin // v1_role_binding_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_role_binding_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_role_binding_list_t *v1_role_binding_list_parseFromJSON(cJSON *v1_role_bindin v1_role_binding_list_local_var = v1_role_binding_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_role_list.c b/kubernetes/model/v1_role_list.c index 357fa3d3..9b166052 100644 --- a/kubernetes/model/v1_role_list.c +++ b/kubernetes/model/v1_role_list.c @@ -124,7 +124,7 @@ v1_role_list_t *v1_role_list_parseFromJSON(cJSON *v1_role_listJSON){ // v1_role_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_role_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_role_list_t *v1_role_list_parseFromJSON(cJSON *v1_role_listJSON){ // v1_role_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_role_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_role_list_t *v1_role_list_parseFromJSON(cJSON *v1_role_listJSON){ v1_role_list_local_var = v1_role_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_rule_with_operations.c b/kubernetes/model/v1_rule_with_operations.c index 6fa575a5..8e2524c3 100644 --- a/kubernetes/model/v1_rule_with_operations.c +++ b/kubernetes/model/v1_rule_with_operations.c @@ -247,7 +247,7 @@ v1_rule_with_operations_t *v1_rule_with_operations_parseFromJSON(cJSON *v1_rule_ // v1_rule_with_operations->scope cJSON *scope = cJSON_GetObjectItemCaseSensitive(v1_rule_with_operationsJSON, "scope"); if (scope) { - if(!cJSON_IsString(scope)) + if(!cJSON_IsString(scope) && !cJSON_IsNull(scope)) { goto end; //String } @@ -259,7 +259,7 @@ v1_rule_with_operations_t *v1_rule_with_operations_parseFromJSON(cJSON *v1_rule_ api_versions ? api_versionsList : NULL, operations ? operationsList : NULL, resources ? resourcesList : NULL, - scope ? strdup(scope->valuestring) : NULL + scope && !cJSON_IsNull(scope) ? strdup(scope->valuestring) : NULL ); return v1_rule_with_operations_local_var; diff --git a/kubernetes/model/v1_runtime_class.c b/kubernetes/model/v1_runtime_class.c index 6519c76d..8ff44d65 100644 --- a/kubernetes/model/v1_runtime_class.c +++ b/kubernetes/model/v1_runtime_class.c @@ -150,7 +150,7 @@ v1_runtime_class_t *v1_runtime_class_parseFromJSON(cJSON *v1_runtime_classJSON){ // v1_runtime_class->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_runtime_classJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -171,7 +171,7 @@ v1_runtime_class_t *v1_runtime_class_parseFromJSON(cJSON *v1_runtime_classJSON){ // v1_runtime_class->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_runtime_classJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -197,9 +197,9 @@ v1_runtime_class_t *v1_runtime_class_parseFromJSON(cJSON *v1_runtime_classJSON){ v1_runtime_class_local_var = v1_runtime_class_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, strdup(handler->valuestring), - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, overhead ? overhead_local_nonprim : NULL, scheduling ? scheduling_local_nonprim : NULL diff --git a/kubernetes/model/v1_runtime_class_list.c b/kubernetes/model/v1_runtime_class_list.c index 7bd01495..d4480b07 100644 --- a/kubernetes/model/v1_runtime_class_list.c +++ b/kubernetes/model/v1_runtime_class_list.c @@ -124,7 +124,7 @@ v1_runtime_class_list_t *v1_runtime_class_list_parseFromJSON(cJSON *v1_runtime_c // v1_runtime_class_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_runtime_class_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_runtime_class_list_t *v1_runtime_class_list_parseFromJSON(cJSON *v1_runtime_c // v1_runtime_class_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_runtime_class_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_runtime_class_list_t *v1_runtime_class_list_parseFromJSON(cJSON *v1_runtime_c v1_runtime_class_list_local_var = v1_runtime_class_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_scale.c b/kubernetes/model/v1_scale.c index c16d5822..68c01d43 100644 --- a/kubernetes/model/v1_scale.c +++ b/kubernetes/model/v1_scale.c @@ -135,7 +135,7 @@ v1_scale_t *v1_scale_parseFromJSON(cJSON *v1_scaleJSON){ // v1_scale->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_scaleJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1_scale_t *v1_scale_parseFromJSON(cJSON *v1_scaleJSON){ // v1_scale->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_scaleJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1_scale_t *v1_scale_parseFromJSON(cJSON *v1_scaleJSON){ v1_scale_local_var = v1_scale_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_scale_io_persistent_volume_source.c b/kubernetes/model/v1_scale_io_persistent_volume_source.c index 00fdf5f1..70ab5691 100644 --- a/kubernetes/model/v1_scale_io_persistent_volume_source.c +++ b/kubernetes/model/v1_scale_io_persistent_volume_source.c @@ -184,7 +184,7 @@ v1_scale_io_persistent_volume_source_t *v1_scale_io_persistent_volume_source_par // v1_scale_io_persistent_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_scale_io_persistent_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -205,7 +205,7 @@ v1_scale_io_persistent_volume_source_t *v1_scale_io_persistent_volume_source_par // v1_scale_io_persistent_volume_source->protection_domain cJSON *protection_domain = cJSON_GetObjectItemCaseSensitive(v1_scale_io_persistent_volume_sourceJSON, "protectionDomain"); if (protection_domain) { - if(!cJSON_IsString(protection_domain)) + if(!cJSON_IsString(protection_domain) && !cJSON_IsNull(protection_domain)) { goto end; //String } @@ -241,7 +241,7 @@ v1_scale_io_persistent_volume_source_t *v1_scale_io_persistent_volume_source_par // v1_scale_io_persistent_volume_source->storage_mode cJSON *storage_mode = cJSON_GetObjectItemCaseSensitive(v1_scale_io_persistent_volume_sourceJSON, "storageMode"); if (storage_mode) { - if(!cJSON_IsString(storage_mode)) + if(!cJSON_IsString(storage_mode) && !cJSON_IsNull(storage_mode)) { goto end; //String } @@ -250,7 +250,7 @@ v1_scale_io_persistent_volume_source_t *v1_scale_io_persistent_volume_source_par // v1_scale_io_persistent_volume_source->storage_pool cJSON *storage_pool = cJSON_GetObjectItemCaseSensitive(v1_scale_io_persistent_volume_sourceJSON, "storagePool"); if (storage_pool) { - if(!cJSON_IsString(storage_pool)) + if(!cJSON_IsString(storage_pool) && !cJSON_IsNull(storage_pool)) { goto end; //String } @@ -271,7 +271,7 @@ v1_scale_io_persistent_volume_source_t *v1_scale_io_persistent_volume_source_par // v1_scale_io_persistent_volume_source->volume_name cJSON *volume_name = cJSON_GetObjectItemCaseSensitive(v1_scale_io_persistent_volume_sourceJSON, "volumeName"); if (volume_name) { - if(!cJSON_IsString(volume_name)) + if(!cJSON_IsString(volume_name) && !cJSON_IsNull(volume_name)) { goto end; //String } @@ -279,16 +279,16 @@ v1_scale_io_persistent_volume_source_t *v1_scale_io_persistent_volume_source_par v1_scale_io_persistent_volume_source_local_var = v1_scale_io_persistent_volume_source_create ( - fs_type ? strdup(fs_type->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, strdup(gateway->valuestring), - protection_domain ? strdup(protection_domain->valuestring) : NULL, + protection_domain && !cJSON_IsNull(protection_domain) ? strdup(protection_domain->valuestring) : NULL, read_only ? read_only->valueint : 0, secret_ref_local_nonprim, ssl_enabled ? ssl_enabled->valueint : 0, - storage_mode ? strdup(storage_mode->valuestring) : NULL, - storage_pool ? strdup(storage_pool->valuestring) : NULL, + storage_mode && !cJSON_IsNull(storage_mode) ? strdup(storage_mode->valuestring) : NULL, + storage_pool && !cJSON_IsNull(storage_pool) ? strdup(storage_pool->valuestring) : NULL, strdup(system->valuestring), - volume_name ? strdup(volume_name->valuestring) : NULL + volume_name && !cJSON_IsNull(volume_name) ? strdup(volume_name->valuestring) : NULL ); return v1_scale_io_persistent_volume_source_local_var; diff --git a/kubernetes/model/v1_scale_io_volume_source.c b/kubernetes/model/v1_scale_io_volume_source.c index d0ba15de..bd19c31e 100644 --- a/kubernetes/model/v1_scale_io_volume_source.c +++ b/kubernetes/model/v1_scale_io_volume_source.c @@ -184,7 +184,7 @@ v1_scale_io_volume_source_t *v1_scale_io_volume_source_parseFromJSON(cJSON *v1_s // v1_scale_io_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_scale_io_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -205,7 +205,7 @@ v1_scale_io_volume_source_t *v1_scale_io_volume_source_parseFromJSON(cJSON *v1_s // v1_scale_io_volume_source->protection_domain cJSON *protection_domain = cJSON_GetObjectItemCaseSensitive(v1_scale_io_volume_sourceJSON, "protectionDomain"); if (protection_domain) { - if(!cJSON_IsString(protection_domain)) + if(!cJSON_IsString(protection_domain) && !cJSON_IsNull(protection_domain)) { goto end; //String } @@ -241,7 +241,7 @@ v1_scale_io_volume_source_t *v1_scale_io_volume_source_parseFromJSON(cJSON *v1_s // v1_scale_io_volume_source->storage_mode cJSON *storage_mode = cJSON_GetObjectItemCaseSensitive(v1_scale_io_volume_sourceJSON, "storageMode"); if (storage_mode) { - if(!cJSON_IsString(storage_mode)) + if(!cJSON_IsString(storage_mode) && !cJSON_IsNull(storage_mode)) { goto end; //String } @@ -250,7 +250,7 @@ v1_scale_io_volume_source_t *v1_scale_io_volume_source_parseFromJSON(cJSON *v1_s // v1_scale_io_volume_source->storage_pool cJSON *storage_pool = cJSON_GetObjectItemCaseSensitive(v1_scale_io_volume_sourceJSON, "storagePool"); if (storage_pool) { - if(!cJSON_IsString(storage_pool)) + if(!cJSON_IsString(storage_pool) && !cJSON_IsNull(storage_pool)) { goto end; //String } @@ -271,7 +271,7 @@ v1_scale_io_volume_source_t *v1_scale_io_volume_source_parseFromJSON(cJSON *v1_s // v1_scale_io_volume_source->volume_name cJSON *volume_name = cJSON_GetObjectItemCaseSensitive(v1_scale_io_volume_sourceJSON, "volumeName"); if (volume_name) { - if(!cJSON_IsString(volume_name)) + if(!cJSON_IsString(volume_name) && !cJSON_IsNull(volume_name)) { goto end; //String } @@ -279,16 +279,16 @@ v1_scale_io_volume_source_t *v1_scale_io_volume_source_parseFromJSON(cJSON *v1_s v1_scale_io_volume_source_local_var = v1_scale_io_volume_source_create ( - fs_type ? strdup(fs_type->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, strdup(gateway->valuestring), - protection_domain ? strdup(protection_domain->valuestring) : NULL, + protection_domain && !cJSON_IsNull(protection_domain) ? strdup(protection_domain->valuestring) : NULL, read_only ? read_only->valueint : 0, secret_ref_local_nonprim, ssl_enabled ? ssl_enabled->valueint : 0, - storage_mode ? strdup(storage_mode->valuestring) : NULL, - storage_pool ? strdup(storage_pool->valuestring) : NULL, + storage_mode && !cJSON_IsNull(storage_mode) ? strdup(storage_mode->valuestring) : NULL, + storage_pool && !cJSON_IsNull(storage_pool) ? strdup(storage_pool->valuestring) : NULL, strdup(system->valuestring), - volume_name ? strdup(volume_name->valuestring) : NULL + volume_name && !cJSON_IsNull(volume_name) ? strdup(volume_name->valuestring) : NULL ); return v1_scale_io_volume_source_local_var; diff --git a/kubernetes/model/v1_scale_status.c b/kubernetes/model/v1_scale_status.c index f9d795c8..8b8f985e 100644 --- a/kubernetes/model/v1_scale_status.c +++ b/kubernetes/model/v1_scale_status.c @@ -78,7 +78,7 @@ v1_scale_status_t *v1_scale_status_parseFromJSON(cJSON *v1_scale_statusJSON){ // v1_scale_status->selector cJSON *selector = cJSON_GetObjectItemCaseSensitive(v1_scale_statusJSON, "selector"); if (selector) { - if(!cJSON_IsString(selector)) + if(!cJSON_IsString(selector) && !cJSON_IsNull(selector)) { goto end; //String } @@ -87,7 +87,7 @@ v1_scale_status_t *v1_scale_status_parseFromJSON(cJSON *v1_scale_statusJSON){ v1_scale_status_local_var = v1_scale_status_create ( replicas->valuedouble, - selector ? strdup(selector->valuestring) : NULL + selector && !cJSON_IsNull(selector) ? strdup(selector->valuestring) : NULL ); return v1_scale_status_local_var; diff --git a/kubernetes/model/v1_se_linux_options.c b/kubernetes/model/v1_se_linux_options.c index 060fd42d..487bfa99 100644 --- a/kubernetes/model/v1_se_linux_options.c +++ b/kubernetes/model/v1_se_linux_options.c @@ -97,7 +97,7 @@ v1_se_linux_options_t *v1_se_linux_options_parseFromJSON(cJSON *v1_se_linux_opti // v1_se_linux_options->level cJSON *level = cJSON_GetObjectItemCaseSensitive(v1_se_linux_optionsJSON, "level"); if (level) { - if(!cJSON_IsString(level)) + if(!cJSON_IsString(level) && !cJSON_IsNull(level)) { goto end; //String } @@ -106,7 +106,7 @@ v1_se_linux_options_t *v1_se_linux_options_parseFromJSON(cJSON *v1_se_linux_opti // v1_se_linux_options->role cJSON *role = cJSON_GetObjectItemCaseSensitive(v1_se_linux_optionsJSON, "role"); if (role) { - if(!cJSON_IsString(role)) + if(!cJSON_IsString(role) && !cJSON_IsNull(role)) { goto end; //String } @@ -115,7 +115,7 @@ v1_se_linux_options_t *v1_se_linux_options_parseFromJSON(cJSON *v1_se_linux_opti // v1_se_linux_options->type cJSON *type = cJSON_GetObjectItemCaseSensitive(v1_se_linux_optionsJSON, "type"); if (type) { - if(!cJSON_IsString(type)) + if(!cJSON_IsString(type) && !cJSON_IsNull(type)) { goto end; //String } @@ -124,7 +124,7 @@ v1_se_linux_options_t *v1_se_linux_options_parseFromJSON(cJSON *v1_se_linux_opti // v1_se_linux_options->user cJSON *user = cJSON_GetObjectItemCaseSensitive(v1_se_linux_optionsJSON, "user"); if (user) { - if(!cJSON_IsString(user)) + if(!cJSON_IsString(user) && !cJSON_IsNull(user)) { goto end; //String } @@ -132,10 +132,10 @@ v1_se_linux_options_t *v1_se_linux_options_parseFromJSON(cJSON *v1_se_linux_opti v1_se_linux_options_local_var = v1_se_linux_options_create ( - level ? strdup(level->valuestring) : NULL, - role ? strdup(role->valuestring) : NULL, - type ? strdup(type->valuestring) : NULL, - user ? strdup(user->valuestring) : NULL + level && !cJSON_IsNull(level) ? strdup(level->valuestring) : NULL, + role && !cJSON_IsNull(role) ? strdup(role->valuestring) : NULL, + type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL, + user && !cJSON_IsNull(user) ? strdup(user->valuestring) : NULL ); return v1_se_linux_options_local_var; diff --git a/kubernetes/model/v1_seccomp_profile.c b/kubernetes/model/v1_seccomp_profile.c index 61be13a0..aa328787 100644 --- a/kubernetes/model/v1_seccomp_profile.c +++ b/kubernetes/model/v1_seccomp_profile.c @@ -70,7 +70,7 @@ v1_seccomp_profile_t *v1_seccomp_profile_parseFromJSON(cJSON *v1_seccomp_profile // v1_seccomp_profile->localhost_profile cJSON *localhost_profile = cJSON_GetObjectItemCaseSensitive(v1_seccomp_profileJSON, "localhostProfile"); if (localhost_profile) { - if(!cJSON_IsString(localhost_profile)) + if(!cJSON_IsString(localhost_profile) && !cJSON_IsNull(localhost_profile)) { goto end; //String } @@ -90,7 +90,7 @@ v1_seccomp_profile_t *v1_seccomp_profile_parseFromJSON(cJSON *v1_seccomp_profile v1_seccomp_profile_local_var = v1_seccomp_profile_create ( - localhost_profile ? strdup(localhost_profile->valuestring) : NULL, + localhost_profile && !cJSON_IsNull(localhost_profile) ? strdup(localhost_profile->valuestring) : NULL, strdup(type->valuestring) ); diff --git a/kubernetes/model/v1_secret.c b/kubernetes/model/v1_secret.c index 9b06e118..3d0fc2b2 100644 --- a/kubernetes/model/v1_secret.c +++ b/kubernetes/model/v1_secret.c @@ -185,7 +185,7 @@ v1_secret_t *v1_secret_parseFromJSON(cJSON *v1_secretJSON){ // v1_secret->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_secretJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -228,7 +228,7 @@ v1_secret_t *v1_secret_parseFromJSON(cJSON *v1_secretJSON){ // v1_secret->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_secretJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -268,7 +268,7 @@ v1_secret_t *v1_secret_parseFromJSON(cJSON *v1_secretJSON){ // v1_secret->type cJSON *type = cJSON_GetObjectItemCaseSensitive(v1_secretJSON, "type"); if (type) { - if(!cJSON_IsString(type)) + if(!cJSON_IsString(type) && !cJSON_IsNull(type)) { goto end; //String } @@ -276,13 +276,13 @@ v1_secret_t *v1_secret_parseFromJSON(cJSON *v1_secretJSON){ v1_secret_local_var = v1_secret_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, data ? dataList : NULL, immutable ? immutable->valueint : 0, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, string_data ? string_dataList : NULL, - type ? strdup(type->valuestring) : NULL + type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL ); return v1_secret_local_var; diff --git a/kubernetes/model/v1_secret_env_source.c b/kubernetes/model/v1_secret_env_source.c index 86caa12f..c94135e3 100644 --- a/kubernetes/model/v1_secret_env_source.c +++ b/kubernetes/model/v1_secret_env_source.c @@ -65,7 +65,7 @@ v1_secret_env_source_t *v1_secret_env_source_parseFromJSON(cJSON *v1_secret_env_ // v1_secret_env_source->name cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_secret_env_sourceJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -82,7 +82,7 @@ v1_secret_env_source_t *v1_secret_env_source_parseFromJSON(cJSON *v1_secret_env_ v1_secret_env_source_local_var = v1_secret_env_source_create ( - name ? strdup(name->valuestring) : NULL, + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, optional ? optional->valueint : 0 ); diff --git a/kubernetes/model/v1_secret_key_selector.c b/kubernetes/model/v1_secret_key_selector.c index 2ef740fd..302333f9 100644 --- a/kubernetes/model/v1_secret_key_selector.c +++ b/kubernetes/model/v1_secret_key_selector.c @@ -92,7 +92,7 @@ v1_secret_key_selector_t *v1_secret_key_selector_parseFromJSON(cJSON *v1_secret_ // v1_secret_key_selector->name cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_secret_key_selectorJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -110,7 +110,7 @@ v1_secret_key_selector_t *v1_secret_key_selector_parseFromJSON(cJSON *v1_secret_ v1_secret_key_selector_local_var = v1_secret_key_selector_create ( strdup(key->valuestring), - name ? strdup(name->valuestring) : NULL, + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, optional ? optional->valueint : 0 ); diff --git a/kubernetes/model/v1_secret_list.c b/kubernetes/model/v1_secret_list.c index 405931d4..06f48ec8 100644 --- a/kubernetes/model/v1_secret_list.c +++ b/kubernetes/model/v1_secret_list.c @@ -124,7 +124,7 @@ v1_secret_list_t *v1_secret_list_parseFromJSON(cJSON *v1_secret_listJSON){ // v1_secret_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_secret_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_secret_list_t *v1_secret_list_parseFromJSON(cJSON *v1_secret_listJSON){ // v1_secret_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_secret_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_secret_list_t *v1_secret_list_parseFromJSON(cJSON *v1_secret_listJSON){ v1_secret_list_local_var = v1_secret_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_secret_projection.c b/kubernetes/model/v1_secret_projection.c index 470fb379..d1ed5ef0 100644 --- a/kubernetes/model/v1_secret_projection.c +++ b/kubernetes/model/v1_secret_projection.c @@ -118,7 +118,7 @@ v1_secret_projection_t *v1_secret_projection_parseFromJSON(cJSON *v1_secret_proj // v1_secret_projection->name cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_secret_projectionJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -136,7 +136,7 @@ v1_secret_projection_t *v1_secret_projection_parseFromJSON(cJSON *v1_secret_proj v1_secret_projection_local_var = v1_secret_projection_create ( items ? itemsList : NULL, - name ? strdup(name->valuestring) : NULL, + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, optional ? optional->valueint : 0 ); diff --git a/kubernetes/model/v1_secret_reference.c b/kubernetes/model/v1_secret_reference.c index 10d6a3f6..c1d2a1dc 100644 --- a/kubernetes/model/v1_secret_reference.c +++ b/kubernetes/model/v1_secret_reference.c @@ -69,7 +69,7 @@ v1_secret_reference_t *v1_secret_reference_parseFromJSON(cJSON *v1_secret_refere // v1_secret_reference->name cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_secret_referenceJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -78,7 +78,7 @@ v1_secret_reference_t *v1_secret_reference_parseFromJSON(cJSON *v1_secret_refere // v1_secret_reference->_namespace cJSON *_namespace = cJSON_GetObjectItemCaseSensitive(v1_secret_referenceJSON, "namespace"); if (_namespace) { - if(!cJSON_IsString(_namespace)) + if(!cJSON_IsString(_namespace) && !cJSON_IsNull(_namespace)) { goto end; //String } @@ -86,8 +86,8 @@ v1_secret_reference_t *v1_secret_reference_parseFromJSON(cJSON *v1_secret_refere v1_secret_reference_local_var = v1_secret_reference_create ( - name ? strdup(name->valuestring) : NULL, - _namespace ? strdup(_namespace->valuestring) : NULL + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, + _namespace && !cJSON_IsNull(_namespace) ? strdup(_namespace->valuestring) : NULL ); return v1_secret_reference_local_var; diff --git a/kubernetes/model/v1_secret_volume_source.c b/kubernetes/model/v1_secret_volume_source.c index fa0b3571..2612e5f5 100644 --- a/kubernetes/model/v1_secret_volume_source.c +++ b/kubernetes/model/v1_secret_volume_source.c @@ -146,7 +146,7 @@ v1_secret_volume_source_t *v1_secret_volume_source_parseFromJSON(cJSON *v1_secre // v1_secret_volume_source->secret_name cJSON *secret_name = cJSON_GetObjectItemCaseSensitive(v1_secret_volume_sourceJSON, "secretName"); if (secret_name) { - if(!cJSON_IsString(secret_name)) + if(!cJSON_IsString(secret_name) && !cJSON_IsNull(secret_name)) { goto end; //String } @@ -157,7 +157,7 @@ v1_secret_volume_source_t *v1_secret_volume_source_parseFromJSON(cJSON *v1_secre default_mode ? default_mode->valuedouble : 0, items ? itemsList : NULL, optional ? optional->valueint : 0, - secret_name ? strdup(secret_name->valuestring) : NULL + secret_name && !cJSON_IsNull(secret_name) ? strdup(secret_name->valuestring) : NULL ); return v1_secret_volume_source_local_var; diff --git a/kubernetes/model/v1_security_context.c b/kubernetes/model/v1_security_context.c index 9f3a387f..c29f40d0 100644 --- a/kubernetes/model/v1_security_context.c +++ b/kubernetes/model/v1_security_context.c @@ -227,7 +227,7 @@ v1_security_context_t *v1_security_context_parseFromJSON(cJSON *v1_security_cont // v1_security_context->proc_mount cJSON *proc_mount = cJSON_GetObjectItemCaseSensitive(v1_security_contextJSON, "procMount"); if (proc_mount) { - if(!cJSON_IsString(proc_mount)) + if(!cJSON_IsString(proc_mount) && !cJSON_IsNull(proc_mount)) { goto end; //String } @@ -292,7 +292,7 @@ v1_security_context_t *v1_security_context_parseFromJSON(cJSON *v1_security_cont allow_privilege_escalation ? allow_privilege_escalation->valueint : 0, capabilities ? capabilities_local_nonprim : NULL, privileged ? privileged->valueint : 0, - proc_mount ? strdup(proc_mount->valuestring) : NULL, + proc_mount && !cJSON_IsNull(proc_mount) ? strdup(proc_mount->valuestring) : NULL, read_only_root_filesystem ? read_only_root_filesystem->valueint : 0, run_as_group ? run_as_group->valuedouble : 0, run_as_non_root ? run_as_non_root->valueint : 0, diff --git a/kubernetes/model/v1_self_subject_access_review.c b/kubernetes/model/v1_self_subject_access_review.c index e52b1405..5280e61f 100644 --- a/kubernetes/model/v1_self_subject_access_review.c +++ b/kubernetes/model/v1_self_subject_access_review.c @@ -136,7 +136,7 @@ v1_self_subject_access_review_t *v1_self_subject_access_review_parseFromJSON(cJS // v1_self_subject_access_review->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_self_subject_access_reviewJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -145,7 +145,7 @@ v1_self_subject_access_review_t *v1_self_subject_access_review_parseFromJSON(cJS // v1_self_subject_access_review->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_self_subject_access_reviewJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -174,8 +174,8 @@ v1_self_subject_access_review_t *v1_self_subject_access_review_parseFromJSON(cJS v1_self_subject_access_review_local_var = v1_self_subject_access_review_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec_local_nonprim, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_self_subject_rules_review.c b/kubernetes/model/v1_self_subject_rules_review.c index 34bc05dd..d31307ba 100644 --- a/kubernetes/model/v1_self_subject_rules_review.c +++ b/kubernetes/model/v1_self_subject_rules_review.c @@ -136,7 +136,7 @@ v1_self_subject_rules_review_t *v1_self_subject_rules_review_parseFromJSON(cJSON // v1_self_subject_rules_review->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_self_subject_rules_reviewJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -145,7 +145,7 @@ v1_self_subject_rules_review_t *v1_self_subject_rules_review_parseFromJSON(cJSON // v1_self_subject_rules_review->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_self_subject_rules_reviewJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -174,8 +174,8 @@ v1_self_subject_rules_review_t *v1_self_subject_rules_review_parseFromJSON(cJSON v1_self_subject_rules_review_local_var = v1_self_subject_rules_review_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec_local_nonprim, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_self_subject_rules_review_spec.c b/kubernetes/model/v1_self_subject_rules_review_spec.c index 27a3b150..f707b7e7 100644 --- a/kubernetes/model/v1_self_subject_rules_review_spec.c +++ b/kubernetes/model/v1_self_subject_rules_review_spec.c @@ -55,7 +55,7 @@ v1_self_subject_rules_review_spec_t *v1_self_subject_rules_review_spec_parseFrom // v1_self_subject_rules_review_spec->_namespace cJSON *_namespace = cJSON_GetObjectItemCaseSensitive(v1_self_subject_rules_review_specJSON, "namespace"); if (_namespace) { - if(!cJSON_IsString(_namespace)) + if(!cJSON_IsString(_namespace) && !cJSON_IsNull(_namespace)) { goto end; //String } @@ -63,7 +63,7 @@ v1_self_subject_rules_review_spec_t *v1_self_subject_rules_review_spec_parseFrom v1_self_subject_rules_review_spec_local_var = v1_self_subject_rules_review_spec_create ( - _namespace ? strdup(_namespace->valuestring) : NULL + _namespace && !cJSON_IsNull(_namespace) ? strdup(_namespace->valuestring) : NULL ); return v1_self_subject_rules_review_spec_local_var; diff --git a/kubernetes/model/v1_service.c b/kubernetes/model/v1_service.c index 8a78f9c4..d65ea2ca 100644 --- a/kubernetes/model/v1_service.c +++ b/kubernetes/model/v1_service.c @@ -135,7 +135,7 @@ v1_service_t *v1_service_parseFromJSON(cJSON *v1_serviceJSON){ // v1_service->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_serviceJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1_service_t *v1_service_parseFromJSON(cJSON *v1_serviceJSON){ // v1_service->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_serviceJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1_service_t *v1_service_parseFromJSON(cJSON *v1_serviceJSON){ v1_service_local_var = v1_service_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_service_account.c b/kubernetes/model/v1_service_account.c index f9b92e50..9e1b72f0 100644 --- a/kubernetes/model/v1_service_account.c +++ b/kubernetes/model/v1_service_account.c @@ -165,7 +165,7 @@ v1_service_account_t *v1_service_account_parseFromJSON(cJSON *v1_service_account // v1_service_account->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_service_accountJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -204,7 +204,7 @@ v1_service_account_t *v1_service_account_parseFromJSON(cJSON *v1_service_account // v1_service_account->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_service_accountJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -239,10 +239,10 @@ v1_service_account_t *v1_service_account_parseFromJSON(cJSON *v1_service_account v1_service_account_local_var = v1_service_account_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, automount_service_account_token ? automount_service_account_token->valueint : 0, image_pull_secrets ? image_pull_secretsList : NULL, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, secrets ? secretsList : NULL ); diff --git a/kubernetes/model/v1_service_account_list.c b/kubernetes/model/v1_service_account_list.c index bf57f124..a445aca9 100644 --- a/kubernetes/model/v1_service_account_list.c +++ b/kubernetes/model/v1_service_account_list.c @@ -124,7 +124,7 @@ v1_service_account_list_t *v1_service_account_list_parseFromJSON(cJSON *v1_servi // v1_service_account_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_service_account_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_service_account_list_t *v1_service_account_list_parseFromJSON(cJSON *v1_servi // v1_service_account_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_service_account_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_service_account_list_t *v1_service_account_list_parseFromJSON(cJSON *v1_servi v1_service_account_list_local_var = v1_service_account_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_service_account_token_projection.c b/kubernetes/model/v1_service_account_token_projection.c index 0fab6e9b..9eedfe98 100644 --- a/kubernetes/model/v1_service_account_token_projection.c +++ b/kubernetes/model/v1_service_account_token_projection.c @@ -80,7 +80,7 @@ v1_service_account_token_projection_t *v1_service_account_token_projection_parse // v1_service_account_token_projection->audience cJSON *audience = cJSON_GetObjectItemCaseSensitive(v1_service_account_token_projectionJSON, "audience"); if (audience) { - if(!cJSON_IsString(audience)) + if(!cJSON_IsString(audience) && !cJSON_IsNull(audience)) { goto end; //String } @@ -109,7 +109,7 @@ v1_service_account_token_projection_t *v1_service_account_token_projection_parse v1_service_account_token_projection_local_var = v1_service_account_token_projection_create ( - audience ? strdup(audience->valuestring) : NULL, + audience && !cJSON_IsNull(audience) ? strdup(audience->valuestring) : NULL, expiration_seconds ? expiration_seconds->valuedouble : 0, strdup(path->valuestring) ); diff --git a/kubernetes/model/v1_service_backend_port.c b/kubernetes/model/v1_service_backend_port.c index 09921a5f..098c6459 100644 --- a/kubernetes/model/v1_service_backend_port.c +++ b/kubernetes/model/v1_service_backend_port.c @@ -65,7 +65,7 @@ v1_service_backend_port_t *v1_service_backend_port_parseFromJSON(cJSON *v1_servi // v1_service_backend_port->name cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_service_backend_portJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -82,7 +82,7 @@ v1_service_backend_port_t *v1_service_backend_port_parseFromJSON(cJSON *v1_servi v1_service_backend_port_local_var = v1_service_backend_port_create ( - name ? strdup(name->valuestring) : NULL, + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, number ? number->valuedouble : 0 ); diff --git a/kubernetes/model/v1_service_list.c b/kubernetes/model/v1_service_list.c index fcb76c1c..b6af5b5c 100644 --- a/kubernetes/model/v1_service_list.c +++ b/kubernetes/model/v1_service_list.c @@ -124,7 +124,7 @@ v1_service_list_t *v1_service_list_parseFromJSON(cJSON *v1_service_listJSON){ // v1_service_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_service_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_service_list_t *v1_service_list_parseFromJSON(cJSON *v1_service_listJSON){ // v1_service_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_service_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_service_list_t *v1_service_list_parseFromJSON(cJSON *v1_service_listJSON){ v1_service_list_local_var = v1_service_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_service_port.c b/kubernetes/model/v1_service_port.c index 86112277..5673f167 100644 --- a/kubernetes/model/v1_service_port.c +++ b/kubernetes/model/v1_service_port.c @@ -126,7 +126,7 @@ v1_service_port_t *v1_service_port_parseFromJSON(cJSON *v1_service_portJSON){ // v1_service_port->app_protocol cJSON *app_protocol = cJSON_GetObjectItemCaseSensitive(v1_service_portJSON, "appProtocol"); if (app_protocol) { - if(!cJSON_IsString(app_protocol)) + if(!cJSON_IsString(app_protocol) && !cJSON_IsNull(app_protocol)) { goto end; //String } @@ -135,7 +135,7 @@ v1_service_port_t *v1_service_port_parseFromJSON(cJSON *v1_service_portJSON){ // v1_service_port->name cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_service_portJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -165,7 +165,7 @@ v1_service_port_t *v1_service_port_parseFromJSON(cJSON *v1_service_portJSON){ // v1_service_port->protocol cJSON *protocol = cJSON_GetObjectItemCaseSensitive(v1_service_portJSON, "protocol"); if (protocol) { - if(!cJSON_IsString(protocol)) + if(!cJSON_IsString(protocol) && !cJSON_IsNull(protocol)) { goto end; //String } @@ -179,11 +179,11 @@ v1_service_port_t *v1_service_port_parseFromJSON(cJSON *v1_service_portJSON){ v1_service_port_local_var = v1_service_port_create ( - app_protocol ? strdup(app_protocol->valuestring) : NULL, - name ? strdup(name->valuestring) : NULL, + app_protocol && !cJSON_IsNull(app_protocol) ? strdup(app_protocol->valuestring) : NULL, + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, node_port ? node_port->valuedouble : 0, port->valuedouble, - protocol ? strdup(protocol->valuestring) : NULL, + protocol && !cJSON_IsNull(protocol) ? strdup(protocol->valuestring) : NULL, target_port ? target_port_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_service_spec.c b/kubernetes/model/v1_service_spec.c index e8e0199e..8d096a7f 100644 --- a/kubernetes/model/v1_service_spec.c +++ b/kubernetes/model/v1_service_spec.c @@ -411,7 +411,7 @@ v1_service_spec_t *v1_service_spec_parseFromJSON(cJSON *v1_service_specJSON){ // v1_service_spec->cluster_ip cJSON *cluster_ip = cJSON_GetObjectItemCaseSensitive(v1_service_specJSON, "clusterIP"); if (cluster_ip) { - if(!cJSON_IsString(cluster_ip)) + if(!cJSON_IsString(cluster_ip) && !cJSON_IsNull(cluster_ip)) { goto end; //String } @@ -458,7 +458,7 @@ v1_service_spec_t *v1_service_spec_parseFromJSON(cJSON *v1_service_specJSON){ // v1_service_spec->external_name cJSON *external_name = cJSON_GetObjectItemCaseSensitive(v1_service_specJSON, "externalName"); if (external_name) { - if(!cJSON_IsString(external_name)) + if(!cJSON_IsString(external_name) && !cJSON_IsNull(external_name)) { goto end; //String } @@ -467,7 +467,7 @@ v1_service_spec_t *v1_service_spec_parseFromJSON(cJSON *v1_service_specJSON){ // v1_service_spec->external_traffic_policy cJSON *external_traffic_policy = cJSON_GetObjectItemCaseSensitive(v1_service_specJSON, "externalTrafficPolicy"); if (external_traffic_policy) { - if(!cJSON_IsString(external_traffic_policy)) + if(!cJSON_IsString(external_traffic_policy) && !cJSON_IsNull(external_traffic_policy)) { goto end; //String } @@ -485,7 +485,7 @@ v1_service_spec_t *v1_service_spec_parseFromJSON(cJSON *v1_service_specJSON){ // v1_service_spec->internal_traffic_policy cJSON *internal_traffic_policy = cJSON_GetObjectItemCaseSensitive(v1_service_specJSON, "internalTrafficPolicy"); if (internal_traffic_policy) { - if(!cJSON_IsString(internal_traffic_policy)) + if(!cJSON_IsString(internal_traffic_policy) && !cJSON_IsNull(internal_traffic_policy)) { goto end; //String } @@ -513,7 +513,7 @@ v1_service_spec_t *v1_service_spec_parseFromJSON(cJSON *v1_service_specJSON){ // v1_service_spec->ip_family_policy cJSON *ip_family_policy = cJSON_GetObjectItemCaseSensitive(v1_service_specJSON, "ipFamilyPolicy"); if (ip_family_policy) { - if(!cJSON_IsString(ip_family_policy)) + if(!cJSON_IsString(ip_family_policy) && !cJSON_IsNull(ip_family_policy)) { goto end; //String } @@ -522,7 +522,7 @@ v1_service_spec_t *v1_service_spec_parseFromJSON(cJSON *v1_service_specJSON){ // v1_service_spec->load_balancer_class cJSON *load_balancer_class = cJSON_GetObjectItemCaseSensitive(v1_service_specJSON, "loadBalancerClass"); if (load_balancer_class) { - if(!cJSON_IsString(load_balancer_class)) + if(!cJSON_IsString(load_balancer_class) && !cJSON_IsNull(load_balancer_class)) { goto end; //String } @@ -531,7 +531,7 @@ v1_service_spec_t *v1_service_spec_parseFromJSON(cJSON *v1_service_specJSON){ // v1_service_spec->load_balancer_ip cJSON *load_balancer_ip = cJSON_GetObjectItemCaseSensitive(v1_service_specJSON, "loadBalancerIP"); if (load_balancer_ip) { - if(!cJSON_IsString(load_balancer_ip)) + if(!cJSON_IsString(load_balancer_ip) && !cJSON_IsNull(load_balancer_ip)) { goto end; //String } @@ -614,7 +614,7 @@ v1_service_spec_t *v1_service_spec_parseFromJSON(cJSON *v1_service_specJSON){ // v1_service_spec->session_affinity cJSON *session_affinity = cJSON_GetObjectItemCaseSensitive(v1_service_specJSON, "sessionAffinity"); if (session_affinity) { - if(!cJSON_IsString(session_affinity)) + if(!cJSON_IsString(session_affinity) && !cJSON_IsNull(session_affinity)) { goto end; //String } @@ -629,7 +629,7 @@ v1_service_spec_t *v1_service_spec_parseFromJSON(cJSON *v1_service_specJSON){ // v1_service_spec->type cJSON *type = cJSON_GetObjectItemCaseSensitive(v1_service_specJSON, "type"); if (type) { - if(!cJSON_IsString(type)) + if(!cJSON_IsString(type) && !cJSON_IsNull(type)) { goto end; //String } @@ -638,24 +638,24 @@ v1_service_spec_t *v1_service_spec_parseFromJSON(cJSON *v1_service_specJSON){ v1_service_spec_local_var = v1_service_spec_create ( allocate_load_balancer_node_ports ? allocate_load_balancer_node_ports->valueint : 0, - cluster_ip ? strdup(cluster_ip->valuestring) : NULL, + cluster_ip && !cJSON_IsNull(cluster_ip) ? strdup(cluster_ip->valuestring) : NULL, cluster_ips ? cluster_ipsList : NULL, external_ips ? external_ipsList : NULL, - external_name ? strdup(external_name->valuestring) : NULL, - external_traffic_policy ? strdup(external_traffic_policy->valuestring) : NULL, + external_name && !cJSON_IsNull(external_name) ? strdup(external_name->valuestring) : NULL, + external_traffic_policy && !cJSON_IsNull(external_traffic_policy) ? strdup(external_traffic_policy->valuestring) : NULL, health_check_node_port ? health_check_node_port->valuedouble : 0, - internal_traffic_policy ? strdup(internal_traffic_policy->valuestring) : NULL, + internal_traffic_policy && !cJSON_IsNull(internal_traffic_policy) ? strdup(internal_traffic_policy->valuestring) : NULL, ip_families ? ip_familiesList : NULL, - ip_family_policy ? strdup(ip_family_policy->valuestring) : NULL, - load_balancer_class ? strdup(load_balancer_class->valuestring) : NULL, - load_balancer_ip ? strdup(load_balancer_ip->valuestring) : NULL, + ip_family_policy && !cJSON_IsNull(ip_family_policy) ? strdup(ip_family_policy->valuestring) : NULL, + load_balancer_class && !cJSON_IsNull(load_balancer_class) ? strdup(load_balancer_class->valuestring) : NULL, + load_balancer_ip && !cJSON_IsNull(load_balancer_ip) ? strdup(load_balancer_ip->valuestring) : NULL, load_balancer_source_ranges ? load_balancer_source_rangesList : NULL, ports ? portsList : NULL, publish_not_ready_addresses ? publish_not_ready_addresses->valueint : 0, selector ? selectorList : NULL, - session_affinity ? strdup(session_affinity->valuestring) : NULL, + session_affinity && !cJSON_IsNull(session_affinity) ? strdup(session_affinity->valuestring) : NULL, session_affinity_config ? session_affinity_config_local_nonprim : NULL, - type ? strdup(type->valuestring) : NULL + type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL ); return v1_service_spec_local_var; diff --git a/kubernetes/model/v1_stateful_set.c b/kubernetes/model/v1_stateful_set.c index 532cc9f8..ffc85aad 100644 --- a/kubernetes/model/v1_stateful_set.c +++ b/kubernetes/model/v1_stateful_set.c @@ -135,7 +135,7 @@ v1_stateful_set_t *v1_stateful_set_parseFromJSON(cJSON *v1_stateful_setJSON){ // v1_stateful_set->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_stateful_setJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1_stateful_set_t *v1_stateful_set_parseFromJSON(cJSON *v1_stateful_setJSON){ // v1_stateful_set->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_stateful_setJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1_stateful_set_t *v1_stateful_set_parseFromJSON(cJSON *v1_stateful_setJSON){ v1_stateful_set_local_var = v1_stateful_set_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_stateful_set_condition.c b/kubernetes/model/v1_stateful_set_condition.c index 988f39a7..1b5432bd 100644 --- a/kubernetes/model/v1_stateful_set_condition.c +++ b/kubernetes/model/v1_stateful_set_condition.c @@ -122,7 +122,7 @@ v1_stateful_set_condition_t *v1_stateful_set_condition_parseFromJSON(cJSON *v1_s // v1_stateful_set_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_stateful_set_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -131,7 +131,7 @@ v1_stateful_set_condition_t *v1_stateful_set_condition_parseFromJSON(cJSON *v1_s // v1_stateful_set_condition->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_stateful_set_conditionJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -164,8 +164,8 @@ v1_stateful_set_condition_t *v1_stateful_set_condition_parseFromJSON(cJSON *v1_s v1_stateful_set_condition_local_var = v1_stateful_set_condition_create ( last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), strdup(type->valuestring) ); diff --git a/kubernetes/model/v1_stateful_set_list.c b/kubernetes/model/v1_stateful_set_list.c index 42fc295f..3cf4516c 100644 --- a/kubernetes/model/v1_stateful_set_list.c +++ b/kubernetes/model/v1_stateful_set_list.c @@ -124,7 +124,7 @@ v1_stateful_set_list_t *v1_stateful_set_list_parseFromJSON(cJSON *v1_stateful_se // v1_stateful_set_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_stateful_set_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_stateful_set_list_t *v1_stateful_set_list_parseFromJSON(cJSON *v1_stateful_se // v1_stateful_set_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_stateful_set_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_stateful_set_list_t *v1_stateful_set_list_parseFromJSON(cJSON *v1_stateful_se v1_stateful_set_list_local_var = v1_stateful_set_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_stateful_set_persistent_volume_claim_retention_policy.c b/kubernetes/model/v1_stateful_set_persistent_volume_claim_retention_policy.c index c4565c8c..be4cb152 100644 --- a/kubernetes/model/v1_stateful_set_persistent_volume_claim_retention_policy.c +++ b/kubernetes/model/v1_stateful_set_persistent_volume_claim_retention_policy.c @@ -69,7 +69,7 @@ v1_stateful_set_persistent_volume_claim_retention_policy_t *v1_stateful_set_pers // v1_stateful_set_persistent_volume_claim_retention_policy->when_deleted cJSON *when_deleted = cJSON_GetObjectItemCaseSensitive(v1_stateful_set_persistent_volume_claim_retention_policyJSON, "whenDeleted"); if (when_deleted) { - if(!cJSON_IsString(when_deleted)) + if(!cJSON_IsString(when_deleted) && !cJSON_IsNull(when_deleted)) { goto end; //String } @@ -78,7 +78,7 @@ v1_stateful_set_persistent_volume_claim_retention_policy_t *v1_stateful_set_pers // v1_stateful_set_persistent_volume_claim_retention_policy->when_scaled cJSON *when_scaled = cJSON_GetObjectItemCaseSensitive(v1_stateful_set_persistent_volume_claim_retention_policyJSON, "whenScaled"); if (when_scaled) { - if(!cJSON_IsString(when_scaled)) + if(!cJSON_IsString(when_scaled) && !cJSON_IsNull(when_scaled)) { goto end; //String } @@ -86,8 +86,8 @@ v1_stateful_set_persistent_volume_claim_retention_policy_t *v1_stateful_set_pers v1_stateful_set_persistent_volume_claim_retention_policy_local_var = v1_stateful_set_persistent_volume_claim_retention_policy_create ( - when_deleted ? strdup(when_deleted->valuestring) : NULL, - when_scaled ? strdup(when_scaled->valuestring) : NULL + when_deleted && !cJSON_IsNull(when_deleted) ? strdup(when_deleted->valuestring) : NULL, + when_scaled && !cJSON_IsNull(when_scaled) ? strdup(when_scaled->valuestring) : NULL ); return v1_stateful_set_persistent_volume_claim_retention_policy_local_var; diff --git a/kubernetes/model/v1_stateful_set_spec.c b/kubernetes/model/v1_stateful_set_spec.c index 403635ce..fbf916eb 100644 --- a/kubernetes/model/v1_stateful_set_spec.c +++ b/kubernetes/model/v1_stateful_set_spec.c @@ -237,7 +237,7 @@ v1_stateful_set_spec_t *v1_stateful_set_spec_parseFromJSON(cJSON *v1_stateful_se // v1_stateful_set_spec->pod_management_policy cJSON *pod_management_policy = cJSON_GetObjectItemCaseSensitive(v1_stateful_set_specJSON, "podManagementPolicy"); if (pod_management_policy) { - if(!cJSON_IsString(pod_management_policy)) + if(!cJSON_IsString(pod_management_policy) && !cJSON_IsNull(pod_management_policy)) { goto end; //String } @@ -322,7 +322,7 @@ v1_stateful_set_spec_t *v1_stateful_set_spec_parseFromJSON(cJSON *v1_stateful_se v1_stateful_set_spec_local_var = v1_stateful_set_spec_create ( min_ready_seconds ? min_ready_seconds->valuedouble : 0, persistent_volume_claim_retention_policy ? persistent_volume_claim_retention_policy_local_nonprim : NULL, - pod_management_policy ? strdup(pod_management_policy->valuestring) : NULL, + pod_management_policy && !cJSON_IsNull(pod_management_policy) ? strdup(pod_management_policy->valuestring) : NULL, replicas ? replicas->valuedouble : 0, revision_history_limit ? revision_history_limit->valuedouble : 0, selector_local_nonprim, diff --git a/kubernetes/model/v1_stateful_set_status.c b/kubernetes/model/v1_stateful_set_status.c index 934082ec..7189423b 100644 --- a/kubernetes/model/v1_stateful_set_status.c +++ b/kubernetes/model/v1_stateful_set_status.c @@ -220,7 +220,7 @@ v1_stateful_set_status_t *v1_stateful_set_status_parseFromJSON(cJSON *v1_statefu // v1_stateful_set_status->current_revision cJSON *current_revision = cJSON_GetObjectItemCaseSensitive(v1_stateful_set_statusJSON, "currentRevision"); if (current_revision) { - if(!cJSON_IsString(current_revision)) + if(!cJSON_IsString(current_revision) && !cJSON_IsNull(current_revision)) { goto end; //String } @@ -259,7 +259,7 @@ v1_stateful_set_status_t *v1_stateful_set_status_parseFromJSON(cJSON *v1_statefu // v1_stateful_set_status->update_revision cJSON *update_revision = cJSON_GetObjectItemCaseSensitive(v1_stateful_set_statusJSON, "updateRevision"); if (update_revision) { - if(!cJSON_IsString(update_revision)) + if(!cJSON_IsString(update_revision) && !cJSON_IsNull(update_revision)) { goto end; //String } @@ -280,11 +280,11 @@ v1_stateful_set_status_t *v1_stateful_set_status_parseFromJSON(cJSON *v1_statefu collision_count ? collision_count->valuedouble : 0, conditions ? conditionsList : NULL, current_replicas ? current_replicas->valuedouble : 0, - current_revision ? strdup(current_revision->valuestring) : NULL, + current_revision && !cJSON_IsNull(current_revision) ? strdup(current_revision->valuestring) : NULL, observed_generation ? observed_generation->valuedouble : 0, ready_replicas ? ready_replicas->valuedouble : 0, replicas->valuedouble, - update_revision ? strdup(update_revision->valuestring) : NULL, + update_revision && !cJSON_IsNull(update_revision) ? strdup(update_revision->valuestring) : NULL, updated_replicas ? updated_replicas->valuedouble : 0 ); diff --git a/kubernetes/model/v1_stateful_set_update_strategy.c b/kubernetes/model/v1_stateful_set_update_strategy.c index 46bd8465..f053576d 100644 --- a/kubernetes/model/v1_stateful_set_update_strategy.c +++ b/kubernetes/model/v1_stateful_set_update_strategy.c @@ -83,7 +83,7 @@ v1_stateful_set_update_strategy_t *v1_stateful_set_update_strategy_parseFromJSON // v1_stateful_set_update_strategy->type cJSON *type = cJSON_GetObjectItemCaseSensitive(v1_stateful_set_update_strategyJSON, "type"); if (type) { - if(!cJSON_IsString(type)) + if(!cJSON_IsString(type) && !cJSON_IsNull(type)) { goto end; //String } @@ -92,7 +92,7 @@ v1_stateful_set_update_strategy_t *v1_stateful_set_update_strategy_parseFromJSON v1_stateful_set_update_strategy_local_var = v1_stateful_set_update_strategy_create ( rolling_update ? rolling_update_local_nonprim : NULL, - type ? strdup(type->valuestring) : NULL + type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL ); return v1_stateful_set_update_strategy_local_var; diff --git a/kubernetes/model/v1_status.c b/kubernetes/model/v1_status.c index 59565db1..c8b47634 100644 --- a/kubernetes/model/v1_status.c +++ b/kubernetes/model/v1_status.c @@ -165,7 +165,7 @@ v1_status_t *v1_status_parseFromJSON(cJSON *v1_statusJSON){ // v1_status->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_statusJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -189,7 +189,7 @@ v1_status_t *v1_status_parseFromJSON(cJSON *v1_statusJSON){ // v1_status->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_statusJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -198,7 +198,7 @@ v1_status_t *v1_status_parseFromJSON(cJSON *v1_statusJSON){ // v1_status->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_statusJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -213,7 +213,7 @@ v1_status_t *v1_status_parseFromJSON(cJSON *v1_statusJSON){ // v1_status->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_statusJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -222,7 +222,7 @@ v1_status_t *v1_status_parseFromJSON(cJSON *v1_statusJSON){ // v1_status->status cJSON *status = cJSON_GetObjectItemCaseSensitive(v1_statusJSON, "status"); if (status) { - if(!cJSON_IsString(status)) + if(!cJSON_IsString(status) && !cJSON_IsNull(status)) { goto end; //String } @@ -230,14 +230,14 @@ v1_status_t *v1_status_parseFromJSON(cJSON *v1_statusJSON){ v1_status_local_var = v1_status_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, code ? code->valuedouble : 0, details ? details_local_nonprim : NULL, - kind ? strdup(kind->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, - reason ? strdup(reason->valuestring) : NULL, - status ? strdup(status->valuestring) : NULL + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, + status && !cJSON_IsNull(status) ? strdup(status->valuestring) : NULL ); return v1_status_local_var; diff --git a/kubernetes/model/v1_status_cause.c b/kubernetes/model/v1_status_cause.c index 2eca7c5a..69b1bb27 100644 --- a/kubernetes/model/v1_status_cause.c +++ b/kubernetes/model/v1_status_cause.c @@ -83,7 +83,7 @@ v1_status_cause_t *v1_status_cause_parseFromJSON(cJSON *v1_status_causeJSON){ // v1_status_cause->field cJSON *field = cJSON_GetObjectItemCaseSensitive(v1_status_causeJSON, "field"); if (field) { - if(!cJSON_IsString(field)) + if(!cJSON_IsString(field) && !cJSON_IsNull(field)) { goto end; //String } @@ -92,7 +92,7 @@ v1_status_cause_t *v1_status_cause_parseFromJSON(cJSON *v1_status_causeJSON){ // v1_status_cause->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_status_causeJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -101,7 +101,7 @@ v1_status_cause_t *v1_status_cause_parseFromJSON(cJSON *v1_status_causeJSON){ // v1_status_cause->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_status_causeJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -109,9 +109,9 @@ v1_status_cause_t *v1_status_cause_parseFromJSON(cJSON *v1_status_causeJSON){ v1_status_cause_local_var = v1_status_cause_create ( - field ? strdup(field->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL + field && !cJSON_IsNull(field) ? strdup(field->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL ); return v1_status_cause_local_var; diff --git a/kubernetes/model/v1_status_details.c b/kubernetes/model/v1_status_details.c index 1d5e5d23..f020b933 100644 --- a/kubernetes/model/v1_status_details.c +++ b/kubernetes/model/v1_status_details.c @@ -160,7 +160,7 @@ v1_status_details_t *v1_status_details_parseFromJSON(cJSON *v1_status_detailsJSO // v1_status_details->group cJSON *group = cJSON_GetObjectItemCaseSensitive(v1_status_detailsJSON, "group"); if (group) { - if(!cJSON_IsString(group)) + if(!cJSON_IsString(group) && !cJSON_IsNull(group)) { goto end; //String } @@ -169,7 +169,7 @@ v1_status_details_t *v1_status_details_parseFromJSON(cJSON *v1_status_detailsJSO // v1_status_details->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_status_detailsJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -178,7 +178,7 @@ v1_status_details_t *v1_status_details_parseFromJSON(cJSON *v1_status_detailsJSO // v1_status_details->name cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_status_detailsJSON, "name"); if (name) { - if(!cJSON_IsString(name)) + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) { goto end; //String } @@ -196,7 +196,7 @@ v1_status_details_t *v1_status_details_parseFromJSON(cJSON *v1_status_detailsJSO // v1_status_details->uid cJSON *uid = cJSON_GetObjectItemCaseSensitive(v1_status_detailsJSON, "uid"); if (uid) { - if(!cJSON_IsString(uid)) + if(!cJSON_IsString(uid) && !cJSON_IsNull(uid)) { goto end; //String } @@ -205,11 +205,11 @@ v1_status_details_t *v1_status_details_parseFromJSON(cJSON *v1_status_detailsJSO v1_status_details_local_var = v1_status_details_create ( causes ? causesList : NULL, - group ? strdup(group->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, - name ? strdup(name->valuestring) : NULL, + group && !cJSON_IsNull(group) ? strdup(group->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, retry_after_seconds ? retry_after_seconds->valuedouble : 0, - uid ? strdup(uid->valuestring) : NULL + uid && !cJSON_IsNull(uid) ? strdup(uid->valuestring) : NULL ); return v1_status_details_local_var; diff --git a/kubernetes/model/v1_storage_class.c b/kubernetes/model/v1_storage_class.c index 07395c7f..671fed13 100644 --- a/kubernetes/model/v1_storage_class.c +++ b/kubernetes/model/v1_storage_class.c @@ -270,7 +270,7 @@ v1_storage_class_t *v1_storage_class_parseFromJSON(cJSON *v1_storage_classJSON){ // v1_storage_class->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_storage_classJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -279,7 +279,7 @@ v1_storage_class_t *v1_storage_class_parseFromJSON(cJSON *v1_storage_classJSON){ // v1_storage_class->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_storage_classJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -350,7 +350,7 @@ v1_storage_class_t *v1_storage_class_parseFromJSON(cJSON *v1_storage_classJSON){ // v1_storage_class->reclaim_policy cJSON *reclaim_policy = cJSON_GetObjectItemCaseSensitive(v1_storage_classJSON, "reclaimPolicy"); if (reclaim_policy) { - if(!cJSON_IsString(reclaim_policy)) + if(!cJSON_IsString(reclaim_policy) && !cJSON_IsNull(reclaim_policy)) { goto end; //String } @@ -359,7 +359,7 @@ v1_storage_class_t *v1_storage_class_parseFromJSON(cJSON *v1_storage_classJSON){ // v1_storage_class->volume_binding_mode cJSON *volume_binding_mode = cJSON_GetObjectItemCaseSensitive(v1_storage_classJSON, "volumeBindingMode"); if (volume_binding_mode) { - if(!cJSON_IsString(volume_binding_mode)) + if(!cJSON_IsString(volume_binding_mode) && !cJSON_IsNull(volume_binding_mode)) { goto end; //String } @@ -369,14 +369,14 @@ v1_storage_class_t *v1_storage_class_parseFromJSON(cJSON *v1_storage_classJSON){ v1_storage_class_local_var = v1_storage_class_create ( allow_volume_expansion ? allow_volume_expansion->valueint : 0, allowed_topologies ? allowed_topologiesList : NULL, - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, mount_options ? mount_optionsList : NULL, parameters ? parametersList : NULL, strdup(provisioner->valuestring), - reclaim_policy ? strdup(reclaim_policy->valuestring) : NULL, - volume_binding_mode ? strdup(volume_binding_mode->valuestring) : NULL + reclaim_policy && !cJSON_IsNull(reclaim_policy) ? strdup(reclaim_policy->valuestring) : NULL, + volume_binding_mode && !cJSON_IsNull(volume_binding_mode) ? strdup(volume_binding_mode->valuestring) : NULL ); return v1_storage_class_local_var; diff --git a/kubernetes/model/v1_storage_class_list.c b/kubernetes/model/v1_storage_class_list.c index 7f0d63d9..6287d219 100644 --- a/kubernetes/model/v1_storage_class_list.c +++ b/kubernetes/model/v1_storage_class_list.c @@ -124,7 +124,7 @@ v1_storage_class_list_t *v1_storage_class_list_parseFromJSON(cJSON *v1_storage_c // v1_storage_class_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_storage_class_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_storage_class_list_t *v1_storage_class_list_parseFromJSON(cJSON *v1_storage_c // v1_storage_class_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_storage_class_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_storage_class_list_t *v1_storage_class_list_parseFromJSON(cJSON *v1_storage_c v1_storage_class_list_local_var = v1_storage_class_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_storage_os_persistent_volume_source.c b/kubernetes/model/v1_storage_os_persistent_volume_source.c index 6f7dbe4c..3383bd0f 100644 --- a/kubernetes/model/v1_storage_os_persistent_volume_source.c +++ b/kubernetes/model/v1_storage_os_persistent_volume_source.c @@ -115,7 +115,7 @@ v1_storage_os_persistent_volume_source_t *v1_storage_os_persistent_volume_source // v1_storage_os_persistent_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_storage_os_persistent_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -139,7 +139,7 @@ v1_storage_os_persistent_volume_source_t *v1_storage_os_persistent_volume_source // v1_storage_os_persistent_volume_source->volume_name cJSON *volume_name = cJSON_GetObjectItemCaseSensitive(v1_storage_os_persistent_volume_sourceJSON, "volumeName"); if (volume_name) { - if(!cJSON_IsString(volume_name)) + if(!cJSON_IsString(volume_name) && !cJSON_IsNull(volume_name)) { goto end; //String } @@ -148,7 +148,7 @@ v1_storage_os_persistent_volume_source_t *v1_storage_os_persistent_volume_source // v1_storage_os_persistent_volume_source->volume_namespace cJSON *volume_namespace = cJSON_GetObjectItemCaseSensitive(v1_storage_os_persistent_volume_sourceJSON, "volumeNamespace"); if (volume_namespace) { - if(!cJSON_IsString(volume_namespace)) + if(!cJSON_IsString(volume_namespace) && !cJSON_IsNull(volume_namespace)) { goto end; //String } @@ -156,11 +156,11 @@ v1_storage_os_persistent_volume_source_t *v1_storage_os_persistent_volume_source v1_storage_os_persistent_volume_source_local_var = v1_storage_os_persistent_volume_source_create ( - fs_type ? strdup(fs_type->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, read_only ? read_only->valueint : 0, secret_ref ? secret_ref_local_nonprim : NULL, - volume_name ? strdup(volume_name->valuestring) : NULL, - volume_namespace ? strdup(volume_namespace->valuestring) : NULL + volume_name && !cJSON_IsNull(volume_name) ? strdup(volume_name->valuestring) : NULL, + volume_namespace && !cJSON_IsNull(volume_namespace) ? strdup(volume_namespace->valuestring) : NULL ); return v1_storage_os_persistent_volume_source_local_var; diff --git a/kubernetes/model/v1_storage_os_volume_source.c b/kubernetes/model/v1_storage_os_volume_source.c index 55bff07a..fd1f97d5 100644 --- a/kubernetes/model/v1_storage_os_volume_source.c +++ b/kubernetes/model/v1_storage_os_volume_source.c @@ -115,7 +115,7 @@ v1_storage_os_volume_source_t *v1_storage_os_volume_source_parseFromJSON(cJSON * // v1_storage_os_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_storage_os_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -139,7 +139,7 @@ v1_storage_os_volume_source_t *v1_storage_os_volume_source_parseFromJSON(cJSON * // v1_storage_os_volume_source->volume_name cJSON *volume_name = cJSON_GetObjectItemCaseSensitive(v1_storage_os_volume_sourceJSON, "volumeName"); if (volume_name) { - if(!cJSON_IsString(volume_name)) + if(!cJSON_IsString(volume_name) && !cJSON_IsNull(volume_name)) { goto end; //String } @@ -148,7 +148,7 @@ v1_storage_os_volume_source_t *v1_storage_os_volume_source_parseFromJSON(cJSON * // v1_storage_os_volume_source->volume_namespace cJSON *volume_namespace = cJSON_GetObjectItemCaseSensitive(v1_storage_os_volume_sourceJSON, "volumeNamespace"); if (volume_namespace) { - if(!cJSON_IsString(volume_namespace)) + if(!cJSON_IsString(volume_namespace) && !cJSON_IsNull(volume_namespace)) { goto end; //String } @@ -156,11 +156,11 @@ v1_storage_os_volume_source_t *v1_storage_os_volume_source_parseFromJSON(cJSON * v1_storage_os_volume_source_local_var = v1_storage_os_volume_source_create ( - fs_type ? strdup(fs_type->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, read_only ? read_only->valueint : 0, secret_ref ? secret_ref_local_nonprim : NULL, - volume_name ? strdup(volume_name->valuestring) : NULL, - volume_namespace ? strdup(volume_namespace->valuestring) : NULL + volume_name && !cJSON_IsNull(volume_name) ? strdup(volume_name->valuestring) : NULL, + volume_namespace && !cJSON_IsNull(volume_namespace) ? strdup(volume_namespace->valuestring) : NULL ); return v1_storage_os_volume_source_local_var; diff --git a/kubernetes/model/v1_subject.c b/kubernetes/model/v1_subject.c index 1a110c59..fce89412 100644 --- a/kubernetes/model/v1_subject.c +++ b/kubernetes/model/v1_subject.c @@ -99,7 +99,7 @@ v1_subject_t *v1_subject_parseFromJSON(cJSON *v1_subjectJSON){ // v1_subject->api_group cJSON *api_group = cJSON_GetObjectItemCaseSensitive(v1_subjectJSON, "apiGroup"); if (api_group) { - if(!cJSON_IsString(api_group)) + if(!cJSON_IsString(api_group) && !cJSON_IsNull(api_group)) { goto end; //String } @@ -132,7 +132,7 @@ v1_subject_t *v1_subject_parseFromJSON(cJSON *v1_subjectJSON){ // v1_subject->_namespace cJSON *_namespace = cJSON_GetObjectItemCaseSensitive(v1_subjectJSON, "namespace"); if (_namespace) { - if(!cJSON_IsString(_namespace)) + if(!cJSON_IsString(_namespace) && !cJSON_IsNull(_namespace)) { goto end; //String } @@ -140,10 +140,10 @@ v1_subject_t *v1_subject_parseFromJSON(cJSON *v1_subjectJSON){ v1_subject_local_var = v1_subject_create ( - api_group ? strdup(api_group->valuestring) : NULL, + api_group && !cJSON_IsNull(api_group) ? strdup(api_group->valuestring) : NULL, strdup(kind->valuestring), strdup(name->valuestring), - _namespace ? strdup(_namespace->valuestring) : NULL + _namespace && !cJSON_IsNull(_namespace) ? strdup(_namespace->valuestring) : NULL ); return v1_subject_local_var; diff --git a/kubernetes/model/v1_subject_access_review.c b/kubernetes/model/v1_subject_access_review.c index 3cf10b19..b051d548 100644 --- a/kubernetes/model/v1_subject_access_review.c +++ b/kubernetes/model/v1_subject_access_review.c @@ -136,7 +136,7 @@ v1_subject_access_review_t *v1_subject_access_review_parseFromJSON(cJSON *v1_sub // v1_subject_access_review->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_subject_access_reviewJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -145,7 +145,7 @@ v1_subject_access_review_t *v1_subject_access_review_parseFromJSON(cJSON *v1_sub // v1_subject_access_review->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_subject_access_reviewJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -174,8 +174,8 @@ v1_subject_access_review_t *v1_subject_access_review_parseFromJSON(cJSON *v1_sub v1_subject_access_review_local_var = v1_subject_access_review_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec_local_nonprim, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_subject_access_review_spec.c b/kubernetes/model/v1_subject_access_review_spec.c index 975717c4..a413ab13 100644 --- a/kubernetes/model/v1_subject_access_review_spec.c +++ b/kubernetes/model/v1_subject_access_review_spec.c @@ -224,7 +224,7 @@ v1_subject_access_review_spec_t *v1_subject_access_review_spec_parseFromJSON(cJS // v1_subject_access_review_spec->uid cJSON *uid = cJSON_GetObjectItemCaseSensitive(v1_subject_access_review_specJSON, "uid"); if (uid) { - if(!cJSON_IsString(uid)) + if(!cJSON_IsString(uid) && !cJSON_IsNull(uid)) { goto end; //String } @@ -233,7 +233,7 @@ v1_subject_access_review_spec_t *v1_subject_access_review_spec_parseFromJSON(cJS // v1_subject_access_review_spec->user cJSON *user = cJSON_GetObjectItemCaseSensitive(v1_subject_access_review_specJSON, "user"); if (user) { - if(!cJSON_IsString(user)) + if(!cJSON_IsString(user) && !cJSON_IsNull(user)) { goto end; //String } @@ -245,8 +245,8 @@ v1_subject_access_review_spec_t *v1_subject_access_review_spec_parseFromJSON(cJS groups ? groupsList : NULL, non_resource_attributes ? non_resource_attributes_local_nonprim : NULL, resource_attributes ? resource_attributes_local_nonprim : NULL, - uid ? strdup(uid->valuestring) : NULL, - user ? strdup(user->valuestring) : NULL + uid && !cJSON_IsNull(uid) ? strdup(uid->valuestring) : NULL, + user && !cJSON_IsNull(user) ? strdup(user->valuestring) : NULL ); return v1_subject_access_review_spec_local_var; diff --git a/kubernetes/model/v1_subject_access_review_status.c b/kubernetes/model/v1_subject_access_review_status.c index 43be3d18..dcdc70ae 100644 --- a/kubernetes/model/v1_subject_access_review_status.c +++ b/kubernetes/model/v1_subject_access_review_status.c @@ -111,7 +111,7 @@ v1_subject_access_review_status_t *v1_subject_access_review_status_parseFromJSON // v1_subject_access_review_status->evaluation_error cJSON *evaluation_error = cJSON_GetObjectItemCaseSensitive(v1_subject_access_review_statusJSON, "evaluationError"); if (evaluation_error) { - if(!cJSON_IsString(evaluation_error)) + if(!cJSON_IsString(evaluation_error) && !cJSON_IsNull(evaluation_error)) { goto end; //String } @@ -120,7 +120,7 @@ v1_subject_access_review_status_t *v1_subject_access_review_status_parseFromJSON // v1_subject_access_review_status->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_subject_access_review_statusJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -130,8 +130,8 @@ v1_subject_access_review_status_t *v1_subject_access_review_status_parseFromJSON v1_subject_access_review_status_local_var = v1_subject_access_review_status_create ( allowed->valueint, denied ? denied->valueint : 0, - evaluation_error ? strdup(evaluation_error->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL + evaluation_error && !cJSON_IsNull(evaluation_error) ? strdup(evaluation_error->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL ); return v1_subject_access_review_status_local_var; diff --git a/kubernetes/model/v1_subject_rules_review_status.c b/kubernetes/model/v1_subject_rules_review_status.c index b484efb6..367b4a52 100644 --- a/kubernetes/model/v1_subject_rules_review_status.c +++ b/kubernetes/model/v1_subject_rules_review_status.c @@ -132,7 +132,7 @@ v1_subject_rules_review_status_t *v1_subject_rules_review_status_parseFromJSON(c // v1_subject_rules_review_status->evaluation_error cJSON *evaluation_error = cJSON_GetObjectItemCaseSensitive(v1_subject_rules_review_statusJSON, "evaluationError"); if (evaluation_error) { - if(!cJSON_IsString(evaluation_error)) + if(!cJSON_IsString(evaluation_error) && !cJSON_IsNull(evaluation_error)) { goto end; //String } @@ -200,7 +200,7 @@ v1_subject_rules_review_status_t *v1_subject_rules_review_status_parseFromJSON(c v1_subject_rules_review_status_local_var = v1_subject_rules_review_status_create ( - evaluation_error ? strdup(evaluation_error->valuestring) : NULL, + evaluation_error && !cJSON_IsNull(evaluation_error) ? strdup(evaluation_error->valuestring) : NULL, incomplete->valueint, non_resource_rulesList, resource_rulesList diff --git a/kubernetes/model/v1_taint.c b/kubernetes/model/v1_taint.c index 9841ddce..a16cb699 100644 --- a/kubernetes/model/v1_taint.c +++ b/kubernetes/model/v1_taint.c @@ -132,7 +132,7 @@ v1_taint_t *v1_taint_parseFromJSON(cJSON *v1_taintJSON){ // v1_taint->value cJSON *value = cJSON_GetObjectItemCaseSensitive(v1_taintJSON, "value"); if (value) { - if(!cJSON_IsString(value)) + if(!cJSON_IsString(value) && !cJSON_IsNull(value)) { goto end; //String } @@ -143,7 +143,7 @@ v1_taint_t *v1_taint_parseFromJSON(cJSON *v1_taintJSON){ strdup(effect->valuestring), strdup(key->valuestring), time_added && !cJSON_IsNull(time_added) ? strdup(time_added->valuestring) : NULL, - value ? strdup(value->valuestring) : NULL + value && !cJSON_IsNull(value) ? strdup(value->valuestring) : NULL ); return v1_taint_local_var; diff --git a/kubernetes/model/v1_tcp_socket_action.c b/kubernetes/model/v1_tcp_socket_action.c index 3f67cc57..ce2d63f0 100644 --- a/kubernetes/model/v1_tcp_socket_action.c +++ b/kubernetes/model/v1_tcp_socket_action.c @@ -78,7 +78,7 @@ v1_tcp_socket_action_t *v1_tcp_socket_action_parseFromJSON(cJSON *v1_tcp_socket_ // v1_tcp_socket_action->host cJSON *host = cJSON_GetObjectItemCaseSensitive(v1_tcp_socket_actionJSON, "host"); if (host) { - if(!cJSON_IsString(host)) + if(!cJSON_IsString(host) && !cJSON_IsNull(host)) { goto end; //String } @@ -95,7 +95,7 @@ v1_tcp_socket_action_t *v1_tcp_socket_action_parseFromJSON(cJSON *v1_tcp_socket_ v1_tcp_socket_action_local_var = v1_tcp_socket_action_create ( - host ? strdup(host->valuestring) : NULL, + host && !cJSON_IsNull(host) ? strdup(host->valuestring) : NULL, port_local_nonprim ); diff --git a/kubernetes/model/v1_token_review.c b/kubernetes/model/v1_token_review.c index 1f91e187..9b15c67c 100644 --- a/kubernetes/model/v1_token_review.c +++ b/kubernetes/model/v1_token_review.c @@ -136,7 +136,7 @@ v1_token_review_t *v1_token_review_parseFromJSON(cJSON *v1_token_reviewJSON){ // v1_token_review->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_token_reviewJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -145,7 +145,7 @@ v1_token_review_t *v1_token_review_parseFromJSON(cJSON *v1_token_reviewJSON){ // v1_token_review->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_token_reviewJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -174,8 +174,8 @@ v1_token_review_t *v1_token_review_parseFromJSON(cJSON *v1_token_reviewJSON){ v1_token_review_local_var = v1_token_review_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec_local_nonprim, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_token_review_spec.c b/kubernetes/model/v1_token_review_spec.c index 0575e534..f295bc1b 100644 --- a/kubernetes/model/v1_token_review_spec.c +++ b/kubernetes/model/v1_token_review_spec.c @@ -103,7 +103,7 @@ v1_token_review_spec_t *v1_token_review_spec_parseFromJSON(cJSON *v1_token_revie // v1_token_review_spec->token cJSON *token = cJSON_GetObjectItemCaseSensitive(v1_token_review_specJSON, "token"); if (token) { - if(!cJSON_IsString(token)) + if(!cJSON_IsString(token) && !cJSON_IsNull(token)) { goto end; //String } @@ -112,7 +112,7 @@ v1_token_review_spec_t *v1_token_review_spec_parseFromJSON(cJSON *v1_token_revie v1_token_review_spec_local_var = v1_token_review_spec_create ( audiences ? audiencesList : NULL, - token ? strdup(token->valuestring) : NULL + token && !cJSON_IsNull(token) ? strdup(token->valuestring) : NULL ); return v1_token_review_spec_local_var; diff --git a/kubernetes/model/v1_token_review_status.c b/kubernetes/model/v1_token_review_status.c index ca5b7115..b454171b 100644 --- a/kubernetes/model/v1_token_review_status.c +++ b/kubernetes/model/v1_token_review_status.c @@ -144,7 +144,7 @@ v1_token_review_status_t *v1_token_review_status_parseFromJSON(cJSON *v1_token_r // v1_token_review_status->error cJSON *error = cJSON_GetObjectItemCaseSensitive(v1_token_review_statusJSON, "error"); if (error) { - if(!cJSON_IsString(error)) + if(!cJSON_IsString(error) && !cJSON_IsNull(error)) { goto end; //String } @@ -160,7 +160,7 @@ v1_token_review_status_t *v1_token_review_status_parseFromJSON(cJSON *v1_token_r v1_token_review_status_local_var = v1_token_review_status_create ( audiences ? audiencesList : NULL, authenticated ? authenticated->valueint : 0, - error ? strdup(error->valuestring) : NULL, + error && !cJSON_IsNull(error) ? strdup(error->valuestring) : NULL, user ? user_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_toleration.c b/kubernetes/model/v1_toleration.c index 18186fa1..a5c89c3d 100644 --- a/kubernetes/model/v1_toleration.c +++ b/kubernetes/model/v1_toleration.c @@ -107,7 +107,7 @@ v1_toleration_t *v1_toleration_parseFromJSON(cJSON *v1_tolerationJSON){ // v1_toleration->effect cJSON *effect = cJSON_GetObjectItemCaseSensitive(v1_tolerationJSON, "effect"); if (effect) { - if(!cJSON_IsString(effect)) + if(!cJSON_IsString(effect) && !cJSON_IsNull(effect)) { goto end; //String } @@ -116,7 +116,7 @@ v1_toleration_t *v1_toleration_parseFromJSON(cJSON *v1_tolerationJSON){ // v1_toleration->key cJSON *key = cJSON_GetObjectItemCaseSensitive(v1_tolerationJSON, "key"); if (key) { - if(!cJSON_IsString(key)) + if(!cJSON_IsString(key) && !cJSON_IsNull(key)) { goto end; //String } @@ -125,7 +125,7 @@ v1_toleration_t *v1_toleration_parseFromJSON(cJSON *v1_tolerationJSON){ // v1_toleration->_operator cJSON *_operator = cJSON_GetObjectItemCaseSensitive(v1_tolerationJSON, "operator"); if (_operator) { - if(!cJSON_IsString(_operator)) + if(!cJSON_IsString(_operator) && !cJSON_IsNull(_operator)) { goto end; //String } @@ -143,7 +143,7 @@ v1_toleration_t *v1_toleration_parseFromJSON(cJSON *v1_tolerationJSON){ // v1_toleration->value cJSON *value = cJSON_GetObjectItemCaseSensitive(v1_tolerationJSON, "value"); if (value) { - if(!cJSON_IsString(value)) + if(!cJSON_IsString(value) && !cJSON_IsNull(value)) { goto end; //String } @@ -151,11 +151,11 @@ v1_toleration_t *v1_toleration_parseFromJSON(cJSON *v1_tolerationJSON){ v1_toleration_local_var = v1_toleration_create ( - effect ? strdup(effect->valuestring) : NULL, - key ? strdup(key->valuestring) : NULL, - _operator ? strdup(_operator->valuestring) : NULL, + effect && !cJSON_IsNull(effect) ? strdup(effect->valuestring) : NULL, + key && !cJSON_IsNull(key) ? strdup(key->valuestring) : NULL, + _operator && !cJSON_IsNull(_operator) ? strdup(_operator->valuestring) : NULL, toleration_seconds ? toleration_seconds->valuedouble : 0, - value ? strdup(value->valuestring) : NULL + value && !cJSON_IsNull(value) ? strdup(value->valuestring) : NULL ); return v1_toleration_local_var; diff --git a/kubernetes/model/v1_topology_spread_constraint.c b/kubernetes/model/v1_topology_spread_constraint.c index d2cbef5f..7721b335 100644 --- a/kubernetes/model/v1_topology_spread_constraint.c +++ b/kubernetes/model/v1_topology_spread_constraint.c @@ -217,7 +217,7 @@ v1_topology_spread_constraint_t *v1_topology_spread_constraint_parseFromJSON(cJS // v1_topology_spread_constraint->node_affinity_policy cJSON *node_affinity_policy = cJSON_GetObjectItemCaseSensitive(v1_topology_spread_constraintJSON, "nodeAffinityPolicy"); if (node_affinity_policy) { - if(!cJSON_IsString(node_affinity_policy)) + if(!cJSON_IsString(node_affinity_policy) && !cJSON_IsNull(node_affinity_policy)) { goto end; //String } @@ -226,7 +226,7 @@ v1_topology_spread_constraint_t *v1_topology_spread_constraint_parseFromJSON(cJS // v1_topology_spread_constraint->node_taints_policy cJSON *node_taints_policy = cJSON_GetObjectItemCaseSensitive(v1_topology_spread_constraintJSON, "nodeTaintsPolicy"); if (node_taints_policy) { - if(!cJSON_IsString(node_taints_policy)) + if(!cJSON_IsString(node_taints_policy) && !cJSON_IsNull(node_taints_policy)) { goto end; //String } @@ -262,8 +262,8 @@ v1_topology_spread_constraint_t *v1_topology_spread_constraint_parseFromJSON(cJS match_label_keys ? match_label_keysList : NULL, max_skew->valuedouble, min_domains ? min_domains->valuedouble : 0, - node_affinity_policy ? strdup(node_affinity_policy->valuestring) : NULL, - node_taints_policy ? strdup(node_taints_policy->valuestring) : NULL, + node_affinity_policy && !cJSON_IsNull(node_affinity_policy) ? strdup(node_affinity_policy->valuestring) : NULL, + node_taints_policy && !cJSON_IsNull(node_taints_policy) ? strdup(node_taints_policy->valuestring) : NULL, strdup(topology_key->valuestring), strdup(when_unsatisfiable->valuestring) ); diff --git a/kubernetes/model/v1_typed_local_object_reference.c b/kubernetes/model/v1_typed_local_object_reference.c index 35970b9a..02e899e6 100644 --- a/kubernetes/model/v1_typed_local_object_reference.c +++ b/kubernetes/model/v1_typed_local_object_reference.c @@ -85,7 +85,7 @@ v1_typed_local_object_reference_t *v1_typed_local_object_reference_parseFromJSON // v1_typed_local_object_reference->api_group cJSON *api_group = cJSON_GetObjectItemCaseSensitive(v1_typed_local_object_referenceJSON, "apiGroup"); if (api_group) { - if(!cJSON_IsString(api_group)) + if(!cJSON_IsString(api_group) && !cJSON_IsNull(api_group)) { goto end; //String } @@ -117,7 +117,7 @@ v1_typed_local_object_reference_t *v1_typed_local_object_reference_parseFromJSON v1_typed_local_object_reference_local_var = v1_typed_local_object_reference_create ( - api_group ? strdup(api_group->valuestring) : NULL, + api_group && !cJSON_IsNull(api_group) ? strdup(api_group->valuestring) : NULL, strdup(kind->valuestring), strdup(name->valuestring) ); diff --git a/kubernetes/model/v1_user_info.c b/kubernetes/model/v1_user_info.c index d7d47f1c..180adf10 100644 --- a/kubernetes/model/v1_user_info.c +++ b/kubernetes/model/v1_user_info.c @@ -168,7 +168,7 @@ v1_user_info_t *v1_user_info_parseFromJSON(cJSON *v1_user_infoJSON){ // v1_user_info->uid cJSON *uid = cJSON_GetObjectItemCaseSensitive(v1_user_infoJSON, "uid"); if (uid) { - if(!cJSON_IsString(uid)) + if(!cJSON_IsString(uid) && !cJSON_IsNull(uid)) { goto end; //String } @@ -177,7 +177,7 @@ v1_user_info_t *v1_user_info_parseFromJSON(cJSON *v1_user_infoJSON){ // v1_user_info->username cJSON *username = cJSON_GetObjectItemCaseSensitive(v1_user_infoJSON, "username"); if (username) { - if(!cJSON_IsString(username)) + if(!cJSON_IsString(username) && !cJSON_IsNull(username)) { goto end; //String } @@ -187,8 +187,8 @@ v1_user_info_t *v1_user_info_parseFromJSON(cJSON *v1_user_infoJSON){ v1_user_info_local_var = v1_user_info_create ( extra ? extraList : NULL, groups ? groupsList : NULL, - uid ? strdup(uid->valuestring) : NULL, - username ? strdup(username->valuestring) : NULL + uid && !cJSON_IsNull(uid) ? strdup(uid->valuestring) : NULL, + username && !cJSON_IsNull(username) ? strdup(username->valuestring) : NULL ); return v1_user_info_local_var; diff --git a/kubernetes/model/v1_validating_webhook.c b/kubernetes/model/v1_validating_webhook.c index bec5f756..85cdb72c 100644 --- a/kubernetes/model/v1_validating_webhook.c +++ b/kubernetes/model/v1_validating_webhook.c @@ -269,7 +269,7 @@ v1_validating_webhook_t *v1_validating_webhook_parseFromJSON(cJSON *v1_validatin // v1_validating_webhook->failure_policy cJSON *failure_policy = cJSON_GetObjectItemCaseSensitive(v1_validating_webhookJSON, "failurePolicy"); if (failure_policy) { - if(!cJSON_IsString(failure_policy)) + if(!cJSON_IsString(failure_policy) && !cJSON_IsNull(failure_policy)) { goto end; //String } @@ -278,7 +278,7 @@ v1_validating_webhook_t *v1_validating_webhook_parseFromJSON(cJSON *v1_validatin // v1_validating_webhook->match_policy cJSON *match_policy = cJSON_GetObjectItemCaseSensitive(v1_validating_webhookJSON, "matchPolicy"); if (match_policy) { - if(!cJSON_IsString(match_policy)) + if(!cJSON_IsString(match_policy) && !cJSON_IsNull(match_policy)) { goto end; //String } @@ -354,8 +354,8 @@ v1_validating_webhook_t *v1_validating_webhook_parseFromJSON(cJSON *v1_validatin v1_validating_webhook_local_var = v1_validating_webhook_create ( admission_review_versionsList, client_config_local_nonprim, - failure_policy ? strdup(failure_policy->valuestring) : NULL, - match_policy ? strdup(match_policy->valuestring) : NULL, + failure_policy && !cJSON_IsNull(failure_policy) ? strdup(failure_policy->valuestring) : NULL, + match_policy && !cJSON_IsNull(match_policy) ? strdup(match_policy->valuestring) : NULL, strdup(name->valuestring), namespace_selector ? namespace_selector_local_nonprim : NULL, object_selector ? object_selector_local_nonprim : NULL, diff --git a/kubernetes/model/v1_validating_webhook_configuration.c b/kubernetes/model/v1_validating_webhook_configuration.c index 0839b0ee..be644943 100644 --- a/kubernetes/model/v1_validating_webhook_configuration.c +++ b/kubernetes/model/v1_validating_webhook_configuration.c @@ -123,7 +123,7 @@ v1_validating_webhook_configuration_t *v1_validating_webhook_configuration_parse // v1_validating_webhook_configuration->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_validating_webhook_configurationJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -132,7 +132,7 @@ v1_validating_webhook_configuration_t *v1_validating_webhook_configuration_parse // v1_validating_webhook_configuration->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_validating_webhook_configurationJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -167,8 +167,8 @@ v1_validating_webhook_configuration_t *v1_validating_webhook_configuration_parse v1_validating_webhook_configuration_local_var = v1_validating_webhook_configuration_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, webhooks ? webhooksList : NULL ); diff --git a/kubernetes/model/v1_validating_webhook_configuration_list.c b/kubernetes/model/v1_validating_webhook_configuration_list.c index 4a6729dc..699cdbb3 100644 --- a/kubernetes/model/v1_validating_webhook_configuration_list.c +++ b/kubernetes/model/v1_validating_webhook_configuration_list.c @@ -124,7 +124,7 @@ v1_validating_webhook_configuration_list_t *v1_validating_webhook_configuration_ // v1_validating_webhook_configuration_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_validating_webhook_configuration_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_validating_webhook_configuration_list_t *v1_validating_webhook_configuration_ // v1_validating_webhook_configuration_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_validating_webhook_configuration_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_validating_webhook_configuration_list_t *v1_validating_webhook_configuration_ v1_validating_webhook_configuration_list_local_var = v1_validating_webhook_configuration_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_validation_rule.c b/kubernetes/model/v1_validation_rule.c index 4aa353f9..da571ac4 100644 --- a/kubernetes/model/v1_validation_rule.c +++ b/kubernetes/model/v1_validation_rule.c @@ -70,7 +70,7 @@ v1_validation_rule_t *v1_validation_rule_parseFromJSON(cJSON *v1_validation_rule // v1_validation_rule->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_validation_ruleJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -90,7 +90,7 @@ v1_validation_rule_t *v1_validation_rule_parseFromJSON(cJSON *v1_validation_rule v1_validation_rule_local_var = v1_validation_rule_create ( - message ? strdup(message->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, strdup(rule->valuestring) ); diff --git a/kubernetes/model/v1_volume_attachment.c b/kubernetes/model/v1_volume_attachment.c index 03052ee2..2e59449b 100644 --- a/kubernetes/model/v1_volume_attachment.c +++ b/kubernetes/model/v1_volume_attachment.c @@ -136,7 +136,7 @@ v1_volume_attachment_t *v1_volume_attachment_parseFromJSON(cJSON *v1_volume_atta // v1_volume_attachment->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_volume_attachmentJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -145,7 +145,7 @@ v1_volume_attachment_t *v1_volume_attachment_parseFromJSON(cJSON *v1_volume_atta // v1_volume_attachment->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_volume_attachmentJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -174,8 +174,8 @@ v1_volume_attachment_t *v1_volume_attachment_parseFromJSON(cJSON *v1_volume_atta v1_volume_attachment_local_var = v1_volume_attachment_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec_local_nonprim, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1_volume_attachment_list.c b/kubernetes/model/v1_volume_attachment_list.c index 6a97f99a..cd66980a 100644 --- a/kubernetes/model/v1_volume_attachment_list.c +++ b/kubernetes/model/v1_volume_attachment_list.c @@ -124,7 +124,7 @@ v1_volume_attachment_list_t *v1_volume_attachment_list_parseFromJSON(cJSON *v1_v // v1_volume_attachment_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_volume_attachment_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1_volume_attachment_list_t *v1_volume_attachment_list_parseFromJSON(cJSON *v1_v // v1_volume_attachment_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_volume_attachment_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1_volume_attachment_list_t *v1_volume_attachment_list_parseFromJSON(cJSON *v1_v v1_volume_attachment_list_local_var = v1_volume_attachment_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1_volume_attachment_source.c b/kubernetes/model/v1_volume_attachment_source.c index d08a6bba..1c40642f 100644 --- a/kubernetes/model/v1_volume_attachment_source.c +++ b/kubernetes/model/v1_volume_attachment_source.c @@ -83,7 +83,7 @@ v1_volume_attachment_source_t *v1_volume_attachment_source_parseFromJSON(cJSON * // v1_volume_attachment_source->persistent_volume_name cJSON *persistent_volume_name = cJSON_GetObjectItemCaseSensitive(v1_volume_attachment_sourceJSON, "persistentVolumeName"); if (persistent_volume_name) { - if(!cJSON_IsString(persistent_volume_name)) + if(!cJSON_IsString(persistent_volume_name) && !cJSON_IsNull(persistent_volume_name)) { goto end; //String } @@ -92,7 +92,7 @@ v1_volume_attachment_source_t *v1_volume_attachment_source_parseFromJSON(cJSON * v1_volume_attachment_source_local_var = v1_volume_attachment_source_create ( inline_volume_spec ? inline_volume_spec_local_nonprim : NULL, - persistent_volume_name ? strdup(persistent_volume_name->valuestring) : NULL + persistent_volume_name && !cJSON_IsNull(persistent_volume_name) ? strdup(persistent_volume_name->valuestring) : NULL ); return v1_volume_attachment_source_local_var; diff --git a/kubernetes/model/v1_volume_error.c b/kubernetes/model/v1_volume_error.c index dd1652cf..c1ac80a4 100644 --- a/kubernetes/model/v1_volume_error.c +++ b/kubernetes/model/v1_volume_error.c @@ -69,7 +69,7 @@ v1_volume_error_t *v1_volume_error_parseFromJSON(cJSON *v1_volume_errorJSON){ // v1_volume_error->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_volume_errorJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -86,7 +86,7 @@ v1_volume_error_t *v1_volume_error_parseFromJSON(cJSON *v1_volume_errorJSON){ v1_volume_error_local_var = v1_volume_error_create ( - message ? strdup(message->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, time && !cJSON_IsNull(time) ? strdup(time->valuestring) : NULL ); diff --git a/kubernetes/model/v1_volume_mount.c b/kubernetes/model/v1_volume_mount.c index 0c28d432..acbf460b 100644 --- a/kubernetes/model/v1_volume_mount.c +++ b/kubernetes/model/v1_volume_mount.c @@ -135,7 +135,7 @@ v1_volume_mount_t *v1_volume_mount_parseFromJSON(cJSON *v1_volume_mountJSON){ // v1_volume_mount->mount_propagation cJSON *mount_propagation = cJSON_GetObjectItemCaseSensitive(v1_volume_mountJSON, "mountPropagation"); if (mount_propagation) { - if(!cJSON_IsString(mount_propagation)) + if(!cJSON_IsString(mount_propagation) && !cJSON_IsNull(mount_propagation)) { goto end; //String } @@ -165,7 +165,7 @@ v1_volume_mount_t *v1_volume_mount_parseFromJSON(cJSON *v1_volume_mountJSON){ // v1_volume_mount->sub_path cJSON *sub_path = cJSON_GetObjectItemCaseSensitive(v1_volume_mountJSON, "subPath"); if (sub_path) { - if(!cJSON_IsString(sub_path)) + if(!cJSON_IsString(sub_path) && !cJSON_IsNull(sub_path)) { goto end; //String } @@ -174,7 +174,7 @@ v1_volume_mount_t *v1_volume_mount_parseFromJSON(cJSON *v1_volume_mountJSON){ // v1_volume_mount->sub_path_expr cJSON *sub_path_expr = cJSON_GetObjectItemCaseSensitive(v1_volume_mountJSON, "subPathExpr"); if (sub_path_expr) { - if(!cJSON_IsString(sub_path_expr)) + if(!cJSON_IsString(sub_path_expr) && !cJSON_IsNull(sub_path_expr)) { goto end; //String } @@ -183,11 +183,11 @@ v1_volume_mount_t *v1_volume_mount_parseFromJSON(cJSON *v1_volume_mountJSON){ v1_volume_mount_local_var = v1_volume_mount_create ( strdup(mount_path->valuestring), - mount_propagation ? strdup(mount_propagation->valuestring) : NULL, + mount_propagation && !cJSON_IsNull(mount_propagation) ? strdup(mount_propagation->valuestring) : NULL, strdup(name->valuestring), read_only ? read_only->valueint : 0, - sub_path ? strdup(sub_path->valuestring) : NULL, - sub_path_expr ? strdup(sub_path_expr->valuestring) : NULL + sub_path && !cJSON_IsNull(sub_path) ? strdup(sub_path->valuestring) : NULL, + sub_path_expr && !cJSON_IsNull(sub_path_expr) ? strdup(sub_path_expr->valuestring) : NULL ); return v1_volume_mount_local_var; diff --git a/kubernetes/model/v1_vsphere_virtual_disk_volume_source.c b/kubernetes/model/v1_vsphere_virtual_disk_volume_source.c index 695177f0..d8141f35 100644 --- a/kubernetes/model/v1_vsphere_virtual_disk_volume_source.c +++ b/kubernetes/model/v1_vsphere_virtual_disk_volume_source.c @@ -98,7 +98,7 @@ v1_vsphere_virtual_disk_volume_source_t *v1_vsphere_virtual_disk_volume_source_p // v1_vsphere_virtual_disk_volume_source->fs_type cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_vsphere_virtual_disk_volume_sourceJSON, "fsType"); if (fs_type) { - if(!cJSON_IsString(fs_type)) + if(!cJSON_IsString(fs_type) && !cJSON_IsNull(fs_type)) { goto end; //String } @@ -107,7 +107,7 @@ v1_vsphere_virtual_disk_volume_source_t *v1_vsphere_virtual_disk_volume_source_p // v1_vsphere_virtual_disk_volume_source->storage_policy_id cJSON *storage_policy_id = cJSON_GetObjectItemCaseSensitive(v1_vsphere_virtual_disk_volume_sourceJSON, "storagePolicyID"); if (storage_policy_id) { - if(!cJSON_IsString(storage_policy_id)) + if(!cJSON_IsString(storage_policy_id) && !cJSON_IsNull(storage_policy_id)) { goto end; //String } @@ -116,7 +116,7 @@ v1_vsphere_virtual_disk_volume_source_t *v1_vsphere_virtual_disk_volume_source_p // v1_vsphere_virtual_disk_volume_source->storage_policy_name cJSON *storage_policy_name = cJSON_GetObjectItemCaseSensitive(v1_vsphere_virtual_disk_volume_sourceJSON, "storagePolicyName"); if (storage_policy_name) { - if(!cJSON_IsString(storage_policy_name)) + if(!cJSON_IsString(storage_policy_name) && !cJSON_IsNull(storage_policy_name)) { goto end; //String } @@ -136,9 +136,9 @@ v1_vsphere_virtual_disk_volume_source_t *v1_vsphere_virtual_disk_volume_source_p v1_vsphere_virtual_disk_volume_source_local_var = v1_vsphere_virtual_disk_volume_source_create ( - fs_type ? strdup(fs_type->valuestring) : NULL, - storage_policy_id ? strdup(storage_policy_id->valuestring) : NULL, - storage_policy_name ? strdup(storage_policy_name->valuestring) : NULL, + fs_type && !cJSON_IsNull(fs_type) ? strdup(fs_type->valuestring) : NULL, + storage_policy_id && !cJSON_IsNull(storage_policy_id) ? strdup(storage_policy_id->valuestring) : NULL, + storage_policy_name && !cJSON_IsNull(storage_policy_name) ? strdup(storage_policy_name->valuestring) : NULL, strdup(volume_path->valuestring) ); diff --git a/kubernetes/model/v1_windows_security_context_options.c b/kubernetes/model/v1_windows_security_context_options.c index bf3308f4..285183dc 100644 --- a/kubernetes/model/v1_windows_security_context_options.c +++ b/kubernetes/model/v1_windows_security_context_options.c @@ -93,7 +93,7 @@ v1_windows_security_context_options_t *v1_windows_security_context_options_parse // v1_windows_security_context_options->gmsa_credential_spec cJSON *gmsa_credential_spec = cJSON_GetObjectItemCaseSensitive(v1_windows_security_context_optionsJSON, "gmsaCredentialSpec"); if (gmsa_credential_spec) { - if(!cJSON_IsString(gmsa_credential_spec)) + if(!cJSON_IsString(gmsa_credential_spec) && !cJSON_IsNull(gmsa_credential_spec)) { goto end; //String } @@ -102,7 +102,7 @@ v1_windows_security_context_options_t *v1_windows_security_context_options_parse // v1_windows_security_context_options->gmsa_credential_spec_name cJSON *gmsa_credential_spec_name = cJSON_GetObjectItemCaseSensitive(v1_windows_security_context_optionsJSON, "gmsaCredentialSpecName"); if (gmsa_credential_spec_name) { - if(!cJSON_IsString(gmsa_credential_spec_name)) + if(!cJSON_IsString(gmsa_credential_spec_name) && !cJSON_IsNull(gmsa_credential_spec_name)) { goto end; //String } @@ -120,7 +120,7 @@ v1_windows_security_context_options_t *v1_windows_security_context_options_parse // v1_windows_security_context_options->run_as_user_name cJSON *run_as_user_name = cJSON_GetObjectItemCaseSensitive(v1_windows_security_context_optionsJSON, "runAsUserName"); if (run_as_user_name) { - if(!cJSON_IsString(run_as_user_name)) + if(!cJSON_IsString(run_as_user_name) && !cJSON_IsNull(run_as_user_name)) { goto end; //String } @@ -128,10 +128,10 @@ v1_windows_security_context_options_t *v1_windows_security_context_options_parse v1_windows_security_context_options_local_var = v1_windows_security_context_options_create ( - gmsa_credential_spec ? strdup(gmsa_credential_spec->valuestring) : NULL, - gmsa_credential_spec_name ? strdup(gmsa_credential_spec_name->valuestring) : NULL, + gmsa_credential_spec && !cJSON_IsNull(gmsa_credential_spec) ? strdup(gmsa_credential_spec->valuestring) : NULL, + gmsa_credential_spec_name && !cJSON_IsNull(gmsa_credential_spec_name) ? strdup(gmsa_credential_spec_name->valuestring) : NULL, host_process ? host_process->valueint : 0, - run_as_user_name ? strdup(run_as_user_name->valuestring) : NULL + run_as_user_name && !cJSON_IsNull(run_as_user_name) ? strdup(run_as_user_name->valuestring) : NULL ); return v1_windows_security_context_options_local_var; diff --git a/kubernetes/model/v1alpha1_cluster_cidr.c b/kubernetes/model/v1alpha1_cluster_cidr.c index cff3a02b..820aea32 100644 --- a/kubernetes/model/v1alpha1_cluster_cidr.c +++ b/kubernetes/model/v1alpha1_cluster_cidr.c @@ -113,7 +113,7 @@ v1alpha1_cluster_cidr_t *v1alpha1_cluster_cidr_parseFromJSON(cJSON *v1alpha1_clu // v1alpha1_cluster_cidr->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_cluster_cidrJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -122,7 +122,7 @@ v1alpha1_cluster_cidr_t *v1alpha1_cluster_cidr_parseFromJSON(cJSON *v1alpha1_clu // v1alpha1_cluster_cidr->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_cluster_cidrJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -142,8 +142,8 @@ v1alpha1_cluster_cidr_t *v1alpha1_cluster_cidr_parseFromJSON(cJSON *v1alpha1_clu v1alpha1_cluster_cidr_local_var = v1alpha1_cluster_cidr_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL ); diff --git a/kubernetes/model/v1alpha1_cluster_cidr_list.c b/kubernetes/model/v1alpha1_cluster_cidr_list.c index 69ed721b..ebfd52fa 100644 --- a/kubernetes/model/v1alpha1_cluster_cidr_list.c +++ b/kubernetes/model/v1alpha1_cluster_cidr_list.c @@ -124,7 +124,7 @@ v1alpha1_cluster_cidr_list_t *v1alpha1_cluster_cidr_list_parseFromJSON(cJSON *v1 // v1alpha1_cluster_cidr_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_cluster_cidr_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1alpha1_cluster_cidr_list_t *v1alpha1_cluster_cidr_list_parseFromJSON(cJSON *v1 // v1alpha1_cluster_cidr_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_cluster_cidr_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1alpha1_cluster_cidr_list_t *v1alpha1_cluster_cidr_list_parseFromJSON(cJSON *v1 v1alpha1_cluster_cidr_list_local_var = v1alpha1_cluster_cidr_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1alpha1_cluster_cidr_spec.c b/kubernetes/model/v1alpha1_cluster_cidr_spec.c index 56c1e784..d13c050c 100644 --- a/kubernetes/model/v1alpha1_cluster_cidr_spec.c +++ b/kubernetes/model/v1alpha1_cluster_cidr_spec.c @@ -102,7 +102,7 @@ v1alpha1_cluster_cidr_spec_t *v1alpha1_cluster_cidr_spec_parseFromJSON(cJSON *v1 // v1alpha1_cluster_cidr_spec->ipv4 cJSON *ipv4 = cJSON_GetObjectItemCaseSensitive(v1alpha1_cluster_cidr_specJSON, "ipv4"); if (ipv4) { - if(!cJSON_IsString(ipv4)) + if(!cJSON_IsString(ipv4) && !cJSON_IsNull(ipv4)) { goto end; //String } @@ -111,7 +111,7 @@ v1alpha1_cluster_cidr_spec_t *v1alpha1_cluster_cidr_spec_parseFromJSON(cJSON *v1 // v1alpha1_cluster_cidr_spec->ipv6 cJSON *ipv6 = cJSON_GetObjectItemCaseSensitive(v1alpha1_cluster_cidr_specJSON, "ipv6"); if (ipv6) { - if(!cJSON_IsString(ipv6)) + if(!cJSON_IsString(ipv6) && !cJSON_IsNull(ipv6)) { goto end; //String } @@ -137,8 +137,8 @@ v1alpha1_cluster_cidr_spec_t *v1alpha1_cluster_cidr_spec_parseFromJSON(cJSON *v1 v1alpha1_cluster_cidr_spec_local_var = v1alpha1_cluster_cidr_spec_create ( - ipv4 ? strdup(ipv4->valuestring) : NULL, - ipv6 ? strdup(ipv6->valuestring) : NULL, + ipv4 && !cJSON_IsNull(ipv4) ? strdup(ipv4->valuestring) : NULL, + ipv6 && !cJSON_IsNull(ipv6) ? strdup(ipv6->valuestring) : NULL, node_selector ? node_selector_local_nonprim : NULL, per_node_host_bits->valuedouble ); diff --git a/kubernetes/model/v1alpha1_server_storage_version.c b/kubernetes/model/v1alpha1_server_storage_version.c index 4f35133e..cac4c5f0 100644 --- a/kubernetes/model/v1alpha1_server_storage_version.c +++ b/kubernetes/model/v1alpha1_server_storage_version.c @@ -98,7 +98,7 @@ v1alpha1_server_storage_version_t *v1alpha1_server_storage_version_parseFromJSON // v1alpha1_server_storage_version->api_server_id cJSON *api_server_id = cJSON_GetObjectItemCaseSensitive(v1alpha1_server_storage_versionJSON, "apiServerID"); if (api_server_id) { - if(!cJSON_IsString(api_server_id)) + if(!cJSON_IsString(api_server_id) && !cJSON_IsNull(api_server_id)) { goto end; //String } @@ -126,7 +126,7 @@ v1alpha1_server_storage_version_t *v1alpha1_server_storage_version_parseFromJSON // v1alpha1_server_storage_version->encoding_version cJSON *encoding_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_server_storage_versionJSON, "encodingVersion"); if (encoding_version) { - if(!cJSON_IsString(encoding_version)) + if(!cJSON_IsString(encoding_version) && !cJSON_IsNull(encoding_version)) { goto end; //String } @@ -134,9 +134,9 @@ v1alpha1_server_storage_version_t *v1alpha1_server_storage_version_parseFromJSON v1alpha1_server_storage_version_local_var = v1alpha1_server_storage_version_create ( - api_server_id ? strdup(api_server_id->valuestring) : NULL, + api_server_id && !cJSON_IsNull(api_server_id) ? strdup(api_server_id->valuestring) : NULL, decodable_versions ? decodable_versionsList : NULL, - encoding_version ? strdup(encoding_version->valuestring) : NULL + encoding_version && !cJSON_IsNull(encoding_version) ? strdup(encoding_version->valuestring) : NULL ); return v1alpha1_server_storage_version_local_var; diff --git a/kubernetes/model/v1alpha1_storage_version.c b/kubernetes/model/v1alpha1_storage_version.c index 882fc00b..e6f35e5d 100644 --- a/kubernetes/model/v1alpha1_storage_version.c +++ b/kubernetes/model/v1alpha1_storage_version.c @@ -134,7 +134,7 @@ v1alpha1_storage_version_t *v1alpha1_storage_version_parseFromJSON(cJSON *v1alph // v1alpha1_storage_version->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_storage_versionJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -143,7 +143,7 @@ v1alpha1_storage_version_t *v1alpha1_storage_version_parseFromJSON(cJSON *v1alph // v1alpha1_storage_version->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_storage_versionJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -176,8 +176,8 @@ v1alpha1_storage_version_t *v1alpha1_storage_version_parseFromJSON(cJSON *v1alph v1alpha1_storage_version_local_var = v1alpha1_storage_version_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec_local_object, status_local_nonprim diff --git a/kubernetes/model/v1alpha1_storage_version_condition.c b/kubernetes/model/v1alpha1_storage_version_condition.c index cdeaee52..4193ec37 100644 --- a/kubernetes/model/v1alpha1_storage_version_condition.c +++ b/kubernetes/model/v1alpha1_storage_version_condition.c @@ -133,7 +133,7 @@ v1alpha1_storage_version_condition_t *v1alpha1_storage_version_condition_parseFr // v1alpha1_storage_version_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1alpha1_storage_version_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -187,7 +187,7 @@ v1alpha1_storage_version_condition_t *v1alpha1_storage_version_condition_parseFr v1alpha1_storage_version_condition_local_var = v1alpha1_storage_version_condition_create ( last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, observed_generation ? observed_generation->valuedouble : 0, strdup(reason->valuestring), strdup(status->valuestring), diff --git a/kubernetes/model/v1alpha1_storage_version_list.c b/kubernetes/model/v1alpha1_storage_version_list.c index aaf5f785..1303db0b 100644 --- a/kubernetes/model/v1alpha1_storage_version_list.c +++ b/kubernetes/model/v1alpha1_storage_version_list.c @@ -124,7 +124,7 @@ v1alpha1_storage_version_list_t *v1alpha1_storage_version_list_parseFromJSON(cJS // v1alpha1_storage_version_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_storage_version_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1alpha1_storage_version_list_t *v1alpha1_storage_version_list_parseFromJSON(cJS // v1alpha1_storage_version_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_storage_version_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1alpha1_storage_version_list_t *v1alpha1_storage_version_list_parseFromJSON(cJS v1alpha1_storage_version_list_local_var = v1alpha1_storage_version_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1alpha1_storage_version_status.c b/kubernetes/model/v1alpha1_storage_version_status.c index 473dbd09..acb68803 100644 --- a/kubernetes/model/v1alpha1_storage_version_status.c +++ b/kubernetes/model/v1alpha1_storage_version_status.c @@ -119,7 +119,7 @@ v1alpha1_storage_version_status_t *v1alpha1_storage_version_status_parseFromJSON // v1alpha1_storage_version_status->common_encoding_version cJSON *common_encoding_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_storage_version_statusJSON, "commonEncodingVersion"); if (common_encoding_version) { - if(!cJSON_IsString(common_encoding_version)) + if(!cJSON_IsString(common_encoding_version) && !cJSON_IsNull(common_encoding_version)) { goto end; //String } @@ -169,7 +169,7 @@ v1alpha1_storage_version_status_t *v1alpha1_storage_version_status_parseFromJSON v1alpha1_storage_version_status_local_var = v1alpha1_storage_version_status_create ( - common_encoding_version ? strdup(common_encoding_version->valuestring) : NULL, + common_encoding_version && !cJSON_IsNull(common_encoding_version) ? strdup(common_encoding_version->valuestring) : NULL, conditions ? conditionsList : NULL, storage_versions ? storage_versionsList : NULL ); diff --git a/kubernetes/model/v1beta1_csi_storage_capacity.c b/kubernetes/model/v1beta1_csi_storage_capacity.c index bee4eb74..d97b5fa2 100644 --- a/kubernetes/model/v1beta1_csi_storage_capacity.c +++ b/kubernetes/model/v1beta1_csi_storage_capacity.c @@ -156,7 +156,7 @@ v1beta1_csi_storage_capacity_t *v1beta1_csi_storage_capacity_parseFromJSON(cJSON // v1beta1_csi_storage_capacity->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_csi_storage_capacityJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -165,7 +165,7 @@ v1beta1_csi_storage_capacity_t *v1beta1_csi_storage_capacity_parseFromJSON(cJSON // v1beta1_csi_storage_capacity->capacity cJSON *capacity = cJSON_GetObjectItemCaseSensitive(v1beta1_csi_storage_capacityJSON, "capacity"); if (capacity) { - if(!cJSON_IsString(capacity)) + if(!cJSON_IsString(capacity) && !cJSON_IsNull(capacity)) { goto end; //String } @@ -174,7 +174,7 @@ v1beta1_csi_storage_capacity_t *v1beta1_csi_storage_capacity_parseFromJSON(cJSON // v1beta1_csi_storage_capacity->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_csi_storage_capacityJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -183,7 +183,7 @@ v1beta1_csi_storage_capacity_t *v1beta1_csi_storage_capacity_parseFromJSON(cJSON // v1beta1_csi_storage_capacity->maximum_volume_size cJSON *maximum_volume_size = cJSON_GetObjectItemCaseSensitive(v1beta1_csi_storage_capacityJSON, "maximumVolumeSize"); if (maximum_volume_size) { - if(!cJSON_IsString(maximum_volume_size)) + if(!cJSON_IsString(maximum_volume_size) && !cJSON_IsNull(maximum_volume_size)) { goto end; //String } @@ -215,10 +215,10 @@ v1beta1_csi_storage_capacity_t *v1beta1_csi_storage_capacity_parseFromJSON(cJSON v1beta1_csi_storage_capacity_local_var = v1beta1_csi_storage_capacity_create ( - api_version ? strdup(api_version->valuestring) : NULL, - capacity ? strdup(capacity->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, - maximum_volume_size ? strdup(maximum_volume_size->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + capacity && !cJSON_IsNull(capacity) ? strdup(capacity->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + maximum_volume_size && !cJSON_IsNull(maximum_volume_size) ? strdup(maximum_volume_size->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, node_topology ? node_topology_local_nonprim : NULL, strdup(storage_class_name->valuestring) diff --git a/kubernetes/model/v1beta1_csi_storage_capacity_list.c b/kubernetes/model/v1beta1_csi_storage_capacity_list.c index cebe1aab..a8d5841b 100644 --- a/kubernetes/model/v1beta1_csi_storage_capacity_list.c +++ b/kubernetes/model/v1beta1_csi_storage_capacity_list.c @@ -124,7 +124,7 @@ v1beta1_csi_storage_capacity_list_t *v1beta1_csi_storage_capacity_list_parseFrom // v1beta1_csi_storage_capacity_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_csi_storage_capacity_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1beta1_csi_storage_capacity_list_t *v1beta1_csi_storage_capacity_list_parseFrom // v1beta1_csi_storage_capacity_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_csi_storage_capacity_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1beta1_csi_storage_capacity_list_t *v1beta1_csi_storage_capacity_list_parseFrom v1beta1_csi_storage_capacity_list_local_var = v1beta1_csi_storage_capacity_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1beta1_flow_schema.c b/kubernetes/model/v1beta1_flow_schema.c index 7f9b171a..de8c0d78 100644 --- a/kubernetes/model/v1beta1_flow_schema.c +++ b/kubernetes/model/v1beta1_flow_schema.c @@ -135,7 +135,7 @@ v1beta1_flow_schema_t *v1beta1_flow_schema_parseFromJSON(cJSON *v1beta1_flow_sch // v1beta1_flow_schema->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schemaJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1beta1_flow_schema_t *v1beta1_flow_schema_parseFromJSON(cJSON *v1beta1_flow_sch // v1beta1_flow_schema->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schemaJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1beta1_flow_schema_t *v1beta1_flow_schema_parseFromJSON(cJSON *v1beta1_flow_sch v1beta1_flow_schema_local_var = v1beta1_flow_schema_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1beta1_flow_schema_condition.c b/kubernetes/model/v1beta1_flow_schema_condition.c index 2578b3ab..ebe189b5 100644 --- a/kubernetes/model/v1beta1_flow_schema_condition.c +++ b/kubernetes/model/v1beta1_flow_schema_condition.c @@ -120,7 +120,7 @@ v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition_parseFromJSON(cJS // v1beta1_flow_schema_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -129,7 +129,7 @@ v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition_parseFromJSON(cJS // v1beta1_flow_schema_condition->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_conditionJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -138,7 +138,7 @@ v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition_parseFromJSON(cJS // v1beta1_flow_schema_condition->status cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_conditionJSON, "status"); if (status) { - if(!cJSON_IsString(status)) + if(!cJSON_IsString(status) && !cJSON_IsNull(status)) { goto end; //String } @@ -147,7 +147,7 @@ v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition_parseFromJSON(cJS // v1beta1_flow_schema_condition->type cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_conditionJSON, "type"); if (type) { - if(!cJSON_IsString(type)) + if(!cJSON_IsString(type) && !cJSON_IsNull(type)) { goto end; //String } @@ -156,10 +156,10 @@ v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition_parseFromJSON(cJS v1beta1_flow_schema_condition_local_var = v1beta1_flow_schema_condition_create ( last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, - status ? strdup(status->valuestring) : NULL, - type ? strdup(type->valuestring) : NULL + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, + status && !cJSON_IsNull(status) ? strdup(status->valuestring) : NULL, + type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL ); return v1beta1_flow_schema_condition_local_var; diff --git a/kubernetes/model/v1beta1_flow_schema_list.c b/kubernetes/model/v1beta1_flow_schema_list.c index 94153149..3ef6da2c 100644 --- a/kubernetes/model/v1beta1_flow_schema_list.c +++ b/kubernetes/model/v1beta1_flow_schema_list.c @@ -124,7 +124,7 @@ v1beta1_flow_schema_list_t *v1beta1_flow_schema_list_parseFromJSON(cJSON *v1beta // v1beta1_flow_schema_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1beta1_flow_schema_list_t *v1beta1_flow_schema_list_parseFromJSON(cJSON *v1beta // v1beta1_flow_schema_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1beta1_flow_schema_list_t *v1beta1_flow_schema_list_parseFromJSON(cJSON *v1beta v1beta1_flow_schema_list_local_var = v1beta1_flow_schema_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1beta1_priority_level_configuration.c b/kubernetes/model/v1beta1_priority_level_configuration.c index 7794ecd7..2521e246 100644 --- a/kubernetes/model/v1beta1_priority_level_configuration.c +++ b/kubernetes/model/v1beta1_priority_level_configuration.c @@ -135,7 +135,7 @@ v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration_par // v1beta1_priority_level_configuration->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configurationJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration_par // v1beta1_priority_level_configuration->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configurationJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration_par v1beta1_priority_level_configuration_local_var = v1beta1_priority_level_configuration_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1beta1_priority_level_configuration_condition.c b/kubernetes/model/v1beta1_priority_level_configuration_condition.c index 67ce2def..150db5d4 100644 --- a/kubernetes/model/v1beta1_priority_level_configuration_condition.c +++ b/kubernetes/model/v1beta1_priority_level_configuration_condition.c @@ -120,7 +120,7 @@ v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configu // v1beta1_priority_level_configuration_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -129,7 +129,7 @@ v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configu // v1beta1_priority_level_configuration_condition->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_conditionJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -138,7 +138,7 @@ v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configu // v1beta1_priority_level_configuration_condition->status cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_conditionJSON, "status"); if (status) { - if(!cJSON_IsString(status)) + if(!cJSON_IsString(status) && !cJSON_IsNull(status)) { goto end; //String } @@ -147,7 +147,7 @@ v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configu // v1beta1_priority_level_configuration_condition->type cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_conditionJSON, "type"); if (type) { - if(!cJSON_IsString(type)) + if(!cJSON_IsString(type) && !cJSON_IsNull(type)) { goto end; //String } @@ -156,10 +156,10 @@ v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configu v1beta1_priority_level_configuration_condition_local_var = v1beta1_priority_level_configuration_condition_create ( last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, - status ? strdup(status->valuestring) : NULL, - type ? strdup(type->valuestring) : NULL + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, + status && !cJSON_IsNull(status) ? strdup(status->valuestring) : NULL, + type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL ); return v1beta1_priority_level_configuration_condition_local_var; diff --git a/kubernetes/model/v1beta1_priority_level_configuration_list.c b/kubernetes/model/v1beta1_priority_level_configuration_list.c index e496bec8..1e36f959 100644 --- a/kubernetes/model/v1beta1_priority_level_configuration_list.c +++ b/kubernetes/model/v1beta1_priority_level_configuration_list.c @@ -124,7 +124,7 @@ v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuratio // v1beta1_priority_level_configuration_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuratio // v1beta1_priority_level_configuration_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuratio v1beta1_priority_level_configuration_list_local_var = v1beta1_priority_level_configuration_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1beta2_flow_schema.c b/kubernetes/model/v1beta2_flow_schema.c index 8a203b0e..27c93b8d 100644 --- a/kubernetes/model/v1beta2_flow_schema.c +++ b/kubernetes/model/v1beta2_flow_schema.c @@ -135,7 +135,7 @@ v1beta2_flow_schema_t *v1beta2_flow_schema_parseFromJSON(cJSON *v1beta2_flow_sch // v1beta2_flow_schema->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta2_flow_schemaJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1beta2_flow_schema_t *v1beta2_flow_schema_parseFromJSON(cJSON *v1beta2_flow_sch // v1beta2_flow_schema->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta2_flow_schemaJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1beta2_flow_schema_t *v1beta2_flow_schema_parseFromJSON(cJSON *v1beta2_flow_sch v1beta2_flow_schema_local_var = v1beta2_flow_schema_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1beta2_flow_schema_condition.c b/kubernetes/model/v1beta2_flow_schema_condition.c index b54920bd..741c08ea 100644 --- a/kubernetes/model/v1beta2_flow_schema_condition.c +++ b/kubernetes/model/v1beta2_flow_schema_condition.c @@ -120,7 +120,7 @@ v1beta2_flow_schema_condition_t *v1beta2_flow_schema_condition_parseFromJSON(cJS // v1beta2_flow_schema_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1beta2_flow_schema_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -129,7 +129,7 @@ v1beta2_flow_schema_condition_t *v1beta2_flow_schema_condition_parseFromJSON(cJS // v1beta2_flow_schema_condition->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1beta2_flow_schema_conditionJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -138,7 +138,7 @@ v1beta2_flow_schema_condition_t *v1beta2_flow_schema_condition_parseFromJSON(cJS // v1beta2_flow_schema_condition->status cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta2_flow_schema_conditionJSON, "status"); if (status) { - if(!cJSON_IsString(status)) + if(!cJSON_IsString(status) && !cJSON_IsNull(status)) { goto end; //String } @@ -147,7 +147,7 @@ v1beta2_flow_schema_condition_t *v1beta2_flow_schema_condition_parseFromJSON(cJS // v1beta2_flow_schema_condition->type cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta2_flow_schema_conditionJSON, "type"); if (type) { - if(!cJSON_IsString(type)) + if(!cJSON_IsString(type) && !cJSON_IsNull(type)) { goto end; //String } @@ -156,10 +156,10 @@ v1beta2_flow_schema_condition_t *v1beta2_flow_schema_condition_parseFromJSON(cJS v1beta2_flow_schema_condition_local_var = v1beta2_flow_schema_condition_create ( last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, - status ? strdup(status->valuestring) : NULL, - type ? strdup(type->valuestring) : NULL + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, + status && !cJSON_IsNull(status) ? strdup(status->valuestring) : NULL, + type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL ); return v1beta2_flow_schema_condition_local_var; diff --git a/kubernetes/model/v1beta2_flow_schema_list.c b/kubernetes/model/v1beta2_flow_schema_list.c index 4ca50751..1f016a53 100644 --- a/kubernetes/model/v1beta2_flow_schema_list.c +++ b/kubernetes/model/v1beta2_flow_schema_list.c @@ -124,7 +124,7 @@ v1beta2_flow_schema_list_t *v1beta2_flow_schema_list_parseFromJSON(cJSON *v1beta // v1beta2_flow_schema_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta2_flow_schema_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1beta2_flow_schema_list_t *v1beta2_flow_schema_list_parseFromJSON(cJSON *v1beta // v1beta2_flow_schema_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta2_flow_schema_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1beta2_flow_schema_list_t *v1beta2_flow_schema_list_parseFromJSON(cJSON *v1beta v1beta2_flow_schema_list_local_var = v1beta2_flow_schema_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v1beta2_priority_level_configuration.c b/kubernetes/model/v1beta2_priority_level_configuration.c index 4396bd57..dbbfdf4f 100644 --- a/kubernetes/model/v1beta2_priority_level_configuration.c +++ b/kubernetes/model/v1beta2_priority_level_configuration.c @@ -135,7 +135,7 @@ v1beta2_priority_level_configuration_t *v1beta2_priority_level_configuration_par // v1beta2_priority_level_configuration->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta2_priority_level_configurationJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v1beta2_priority_level_configuration_t *v1beta2_priority_level_configuration_par // v1beta2_priority_level_configuration->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta2_priority_level_configurationJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v1beta2_priority_level_configuration_t *v1beta2_priority_level_configuration_par v1beta2_priority_level_configuration_local_var = v1beta2_priority_level_configuration_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v1beta2_priority_level_configuration_condition.c b/kubernetes/model/v1beta2_priority_level_configuration_condition.c index 79be3074..b5f4410b 100644 --- a/kubernetes/model/v1beta2_priority_level_configuration_condition.c +++ b/kubernetes/model/v1beta2_priority_level_configuration_condition.c @@ -120,7 +120,7 @@ v1beta2_priority_level_configuration_condition_t *v1beta2_priority_level_configu // v1beta2_priority_level_configuration_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v1beta2_priority_level_configuration_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -129,7 +129,7 @@ v1beta2_priority_level_configuration_condition_t *v1beta2_priority_level_configu // v1beta2_priority_level_configuration_condition->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1beta2_priority_level_configuration_conditionJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -138,7 +138,7 @@ v1beta2_priority_level_configuration_condition_t *v1beta2_priority_level_configu // v1beta2_priority_level_configuration_condition->status cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta2_priority_level_configuration_conditionJSON, "status"); if (status) { - if(!cJSON_IsString(status)) + if(!cJSON_IsString(status) && !cJSON_IsNull(status)) { goto end; //String } @@ -147,7 +147,7 @@ v1beta2_priority_level_configuration_condition_t *v1beta2_priority_level_configu // v1beta2_priority_level_configuration_condition->type cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta2_priority_level_configuration_conditionJSON, "type"); if (type) { - if(!cJSON_IsString(type)) + if(!cJSON_IsString(type) && !cJSON_IsNull(type)) { goto end; //String } @@ -156,10 +156,10 @@ v1beta2_priority_level_configuration_condition_t *v1beta2_priority_level_configu v1beta2_priority_level_configuration_condition_local_var = v1beta2_priority_level_configuration_condition_create ( last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, - status ? strdup(status->valuestring) : NULL, - type ? strdup(type->valuestring) : NULL + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, + status && !cJSON_IsNull(status) ? strdup(status->valuestring) : NULL, + type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL ); return v1beta2_priority_level_configuration_condition_local_var; diff --git a/kubernetes/model/v1beta2_priority_level_configuration_list.c b/kubernetes/model/v1beta2_priority_level_configuration_list.c index b8115a1d..f9ef066e 100644 --- a/kubernetes/model/v1beta2_priority_level_configuration_list.c +++ b/kubernetes/model/v1beta2_priority_level_configuration_list.c @@ -124,7 +124,7 @@ v1beta2_priority_level_configuration_list_t *v1beta2_priority_level_configuratio // v1beta2_priority_level_configuration_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta2_priority_level_configuration_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v1beta2_priority_level_configuration_list_t *v1beta2_priority_level_configuratio // v1beta2_priority_level_configuration_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta2_priority_level_configuration_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v1beta2_priority_level_configuration_list_t *v1beta2_priority_level_configuratio v1beta2_priority_level_configuration_list_local_var = v1beta2_priority_level_configuration_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v2_cross_version_object_reference.c b/kubernetes/model/v2_cross_version_object_reference.c index 7c601154..4ac2a0f5 100644 --- a/kubernetes/model/v2_cross_version_object_reference.c +++ b/kubernetes/model/v2_cross_version_object_reference.c @@ -85,7 +85,7 @@ v2_cross_version_object_reference_t *v2_cross_version_object_reference_parseFrom // v2_cross_version_object_reference->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v2_cross_version_object_referenceJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -117,7 +117,7 @@ v2_cross_version_object_reference_t *v2_cross_version_object_reference_parseFrom v2_cross_version_object_reference_local_var = v2_cross_version_object_reference_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, strdup(kind->valuestring), strdup(name->valuestring) ); diff --git a/kubernetes/model/v2_horizontal_pod_autoscaler.c b/kubernetes/model/v2_horizontal_pod_autoscaler.c index bec7d646..08ba07bd 100644 --- a/kubernetes/model/v2_horizontal_pod_autoscaler.c +++ b/kubernetes/model/v2_horizontal_pod_autoscaler.c @@ -135,7 +135,7 @@ v2_horizontal_pod_autoscaler_t *v2_horizontal_pod_autoscaler_parseFromJSON(cJSON // v2_horizontal_pod_autoscaler->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v2_horizontal_pod_autoscalerJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v2_horizontal_pod_autoscaler_t *v2_horizontal_pod_autoscaler_parseFromJSON(cJSON // v2_horizontal_pod_autoscaler->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v2_horizontal_pod_autoscalerJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v2_horizontal_pod_autoscaler_t *v2_horizontal_pod_autoscaler_parseFromJSON(cJSON v2_horizontal_pod_autoscaler_local_var = v2_horizontal_pod_autoscaler_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v2_horizontal_pod_autoscaler_condition.c b/kubernetes/model/v2_horizontal_pod_autoscaler_condition.c index 39993743..68abe489 100644 --- a/kubernetes/model/v2_horizontal_pod_autoscaler_condition.c +++ b/kubernetes/model/v2_horizontal_pod_autoscaler_condition.c @@ -122,7 +122,7 @@ v2_horizontal_pod_autoscaler_condition_t *v2_horizontal_pod_autoscaler_condition // v2_horizontal_pod_autoscaler_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v2_horizontal_pod_autoscaler_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -131,7 +131,7 @@ v2_horizontal_pod_autoscaler_condition_t *v2_horizontal_pod_autoscaler_condition // v2_horizontal_pod_autoscaler_condition->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v2_horizontal_pod_autoscaler_conditionJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -164,8 +164,8 @@ v2_horizontal_pod_autoscaler_condition_t *v2_horizontal_pod_autoscaler_condition v2_horizontal_pod_autoscaler_condition_local_var = v2_horizontal_pod_autoscaler_condition_create ( last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), strdup(type->valuestring) ); diff --git a/kubernetes/model/v2_horizontal_pod_autoscaler_list.c b/kubernetes/model/v2_horizontal_pod_autoscaler_list.c index 18fdf8a2..f693f0a7 100644 --- a/kubernetes/model/v2_horizontal_pod_autoscaler_list.c +++ b/kubernetes/model/v2_horizontal_pod_autoscaler_list.c @@ -124,7 +124,7 @@ v2_horizontal_pod_autoscaler_list_t *v2_horizontal_pod_autoscaler_list_parseFrom // v2_horizontal_pod_autoscaler_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v2_horizontal_pod_autoscaler_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v2_horizontal_pod_autoscaler_list_t *v2_horizontal_pod_autoscaler_list_parseFrom // v2_horizontal_pod_autoscaler_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v2_horizontal_pod_autoscaler_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v2_horizontal_pod_autoscaler_list_t *v2_horizontal_pod_autoscaler_list_parseFrom v2_horizontal_pod_autoscaler_list_local_var = v2_horizontal_pod_autoscaler_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v2_hpa_scaling_rules.c b/kubernetes/model/v2_hpa_scaling_rules.c index 9703a194..d5c62a8e 100644 --- a/kubernetes/model/v2_hpa_scaling_rules.c +++ b/kubernetes/model/v2_hpa_scaling_rules.c @@ -118,7 +118,7 @@ v2_hpa_scaling_rules_t *v2_hpa_scaling_rules_parseFromJSON(cJSON *v2_hpa_scaling // v2_hpa_scaling_rules->select_policy cJSON *select_policy = cJSON_GetObjectItemCaseSensitive(v2_hpa_scaling_rulesJSON, "selectPolicy"); if (select_policy) { - if(!cJSON_IsString(select_policy)) + if(!cJSON_IsString(select_policy) && !cJSON_IsNull(select_policy)) { goto end; //String } @@ -136,7 +136,7 @@ v2_hpa_scaling_rules_t *v2_hpa_scaling_rules_parseFromJSON(cJSON *v2_hpa_scaling v2_hpa_scaling_rules_local_var = v2_hpa_scaling_rules_create ( policies ? policiesList : NULL, - select_policy ? strdup(select_policy->valuestring) : NULL, + select_policy && !cJSON_IsNull(select_policy) ? strdup(select_policy->valuestring) : NULL, stabilization_window_seconds ? stabilization_window_seconds->valuedouble : 0 ); diff --git a/kubernetes/model/v2_metric_target.c b/kubernetes/model/v2_metric_target.c index 9c3233a4..cf1af034 100644 --- a/kubernetes/model/v2_metric_target.c +++ b/kubernetes/model/v2_metric_target.c @@ -103,7 +103,7 @@ v2_metric_target_t *v2_metric_target_parseFromJSON(cJSON *v2_metric_targetJSON){ // v2_metric_target->average_value cJSON *average_value = cJSON_GetObjectItemCaseSensitive(v2_metric_targetJSON, "averageValue"); if (average_value) { - if(!cJSON_IsString(average_value)) + if(!cJSON_IsString(average_value) && !cJSON_IsNull(average_value)) { goto end; //String } @@ -124,7 +124,7 @@ v2_metric_target_t *v2_metric_target_parseFromJSON(cJSON *v2_metric_targetJSON){ // v2_metric_target->value cJSON *value = cJSON_GetObjectItemCaseSensitive(v2_metric_targetJSON, "value"); if (value) { - if(!cJSON_IsString(value)) + if(!cJSON_IsString(value) && !cJSON_IsNull(value)) { goto end; //String } @@ -133,9 +133,9 @@ v2_metric_target_t *v2_metric_target_parseFromJSON(cJSON *v2_metric_targetJSON){ v2_metric_target_local_var = v2_metric_target_create ( average_utilization ? average_utilization->valuedouble : 0, - average_value ? strdup(average_value->valuestring) : NULL, + average_value && !cJSON_IsNull(average_value) ? strdup(average_value->valuestring) : NULL, strdup(type->valuestring), - value ? strdup(value->valuestring) : NULL + value && !cJSON_IsNull(value) ? strdup(value->valuestring) : NULL ); return v2_metric_target_local_var; diff --git a/kubernetes/model/v2_metric_value_status.c b/kubernetes/model/v2_metric_value_status.c index f49c1978..5582afeb 100644 --- a/kubernetes/model/v2_metric_value_status.c +++ b/kubernetes/model/v2_metric_value_status.c @@ -88,7 +88,7 @@ v2_metric_value_status_t *v2_metric_value_status_parseFromJSON(cJSON *v2_metric_ // v2_metric_value_status->average_value cJSON *average_value = cJSON_GetObjectItemCaseSensitive(v2_metric_value_statusJSON, "averageValue"); if (average_value) { - if(!cJSON_IsString(average_value)) + if(!cJSON_IsString(average_value) && !cJSON_IsNull(average_value)) { goto end; //String } @@ -97,7 +97,7 @@ v2_metric_value_status_t *v2_metric_value_status_parseFromJSON(cJSON *v2_metric_ // v2_metric_value_status->value cJSON *value = cJSON_GetObjectItemCaseSensitive(v2_metric_value_statusJSON, "value"); if (value) { - if(!cJSON_IsString(value)) + if(!cJSON_IsString(value) && !cJSON_IsNull(value)) { goto end; //String } @@ -106,8 +106,8 @@ v2_metric_value_status_t *v2_metric_value_status_parseFromJSON(cJSON *v2_metric_ v2_metric_value_status_local_var = v2_metric_value_status_create ( average_utilization ? average_utilization->valuedouble : 0, - average_value ? strdup(average_value->valuestring) : NULL, - value ? strdup(value->valuestring) : NULL + average_value && !cJSON_IsNull(average_value) ? strdup(average_value->valuestring) : NULL, + value && !cJSON_IsNull(value) ? strdup(value->valuestring) : NULL ); return v2_metric_value_status_local_var; diff --git a/kubernetes/model/v2beta2_cross_version_object_reference.c b/kubernetes/model/v2beta2_cross_version_object_reference.c index 118ff05a..eb71e28c 100644 --- a/kubernetes/model/v2beta2_cross_version_object_reference.c +++ b/kubernetes/model/v2beta2_cross_version_object_reference.c @@ -85,7 +85,7 @@ v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference // v2beta2_cross_version_object_reference->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v2beta2_cross_version_object_referenceJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -117,7 +117,7 @@ v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference v2beta2_cross_version_object_reference_local_var = v2beta2_cross_version_object_reference_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, strdup(kind->valuestring), strdup(name->valuestring) ); diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler.c b/kubernetes/model/v2beta2_horizontal_pod_autoscaler.c index 9d09c75f..56157de3 100644 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler.c +++ b/kubernetes/model/v2beta2_horizontal_pod_autoscaler.c @@ -135,7 +135,7 @@ v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler_parseFrom // v2beta2_horizontal_pod_autoscaler->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscalerJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -144,7 +144,7 @@ v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler_parseFrom // v2beta2_horizontal_pod_autoscaler->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscalerJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -170,8 +170,8 @@ v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler_parseFrom v2beta2_horizontal_pod_autoscaler_local_var = v2beta2_horizontal_pod_autoscaler_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL, spec ? spec_local_nonprim : NULL, status ? status_local_nonprim : NULL diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.c b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.c index a8bedf5f..54d8e54d 100644 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.c +++ b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.c @@ -122,7 +122,7 @@ v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler // v2beta2_horizontal_pod_autoscaler_condition->message cJSON *message = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_conditionJSON, "message"); if (message) { - if(!cJSON_IsString(message)) + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) { goto end; //String } @@ -131,7 +131,7 @@ v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler // v2beta2_horizontal_pod_autoscaler_condition->reason cJSON *reason = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_conditionJSON, "reason"); if (reason) { - if(!cJSON_IsString(reason)) + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) { goto end; //String } @@ -164,8 +164,8 @@ v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler v2beta2_horizontal_pod_autoscaler_condition_local_var = v2beta2_horizontal_pod_autoscaler_condition_create ( last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, strdup(status->valuestring), strdup(type->valuestring) ); diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_list.c b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_list.c index 53850d63..a8467fbf 100644 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_list.c +++ b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_list.c @@ -124,7 +124,7 @@ v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list // v2beta2_horizontal_pod_autoscaler_list->api_version cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_listJSON, "apiVersion"); if (api_version) { - if(!cJSON_IsString(api_version)) + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) { goto end; //String } @@ -157,7 +157,7 @@ v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list // v2beta2_horizontal_pod_autoscaler_list->kind cJSON *kind = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_listJSON, "kind"); if (kind) { - if(!cJSON_IsString(kind)) + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) { goto end; //String } @@ -171,9 +171,9 @@ v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list v2beta2_horizontal_pod_autoscaler_list_local_var = v2beta2_horizontal_pod_autoscaler_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, itemsList, - kind ? strdup(kind->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, metadata ? metadata_local_nonprim : NULL ); diff --git a/kubernetes/model/v2beta2_hpa_scaling_rules.c b/kubernetes/model/v2beta2_hpa_scaling_rules.c index 4df12b0d..24f238cf 100644 --- a/kubernetes/model/v2beta2_hpa_scaling_rules.c +++ b/kubernetes/model/v2beta2_hpa_scaling_rules.c @@ -118,7 +118,7 @@ v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules_parseFromJSON(cJSON *v2be // v2beta2_hpa_scaling_rules->select_policy cJSON *select_policy = cJSON_GetObjectItemCaseSensitive(v2beta2_hpa_scaling_rulesJSON, "selectPolicy"); if (select_policy) { - if(!cJSON_IsString(select_policy)) + if(!cJSON_IsString(select_policy) && !cJSON_IsNull(select_policy)) { goto end; //String } @@ -136,7 +136,7 @@ v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules_parseFromJSON(cJSON *v2be v2beta2_hpa_scaling_rules_local_var = v2beta2_hpa_scaling_rules_create ( policies ? policiesList : NULL, - select_policy ? strdup(select_policy->valuestring) : NULL, + select_policy && !cJSON_IsNull(select_policy) ? strdup(select_policy->valuestring) : NULL, stabilization_window_seconds ? stabilization_window_seconds->valuedouble : 0 ); diff --git a/kubernetes/model/v2beta2_metric_target.c b/kubernetes/model/v2beta2_metric_target.c index 83ed1ed9..84f0af5d 100644 --- a/kubernetes/model/v2beta2_metric_target.c +++ b/kubernetes/model/v2beta2_metric_target.c @@ -103,7 +103,7 @@ v2beta2_metric_target_t *v2beta2_metric_target_parseFromJSON(cJSON *v2beta2_metr // v2beta2_metric_target->average_value cJSON *average_value = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_targetJSON, "averageValue"); if (average_value) { - if(!cJSON_IsString(average_value)) + if(!cJSON_IsString(average_value) && !cJSON_IsNull(average_value)) { goto end; //String } @@ -124,7 +124,7 @@ v2beta2_metric_target_t *v2beta2_metric_target_parseFromJSON(cJSON *v2beta2_metr // v2beta2_metric_target->value cJSON *value = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_targetJSON, "value"); if (value) { - if(!cJSON_IsString(value)) + if(!cJSON_IsString(value) && !cJSON_IsNull(value)) { goto end; //String } @@ -133,9 +133,9 @@ v2beta2_metric_target_t *v2beta2_metric_target_parseFromJSON(cJSON *v2beta2_metr v2beta2_metric_target_local_var = v2beta2_metric_target_create ( average_utilization ? average_utilization->valuedouble : 0, - average_value ? strdup(average_value->valuestring) : NULL, + average_value && !cJSON_IsNull(average_value) ? strdup(average_value->valuestring) : NULL, strdup(type->valuestring), - value ? strdup(value->valuestring) : NULL + value && !cJSON_IsNull(value) ? strdup(value->valuestring) : NULL ); return v2beta2_metric_target_local_var; diff --git a/kubernetes/model/v2beta2_metric_value_status.c b/kubernetes/model/v2beta2_metric_value_status.c index cd8f5868..d79d1a05 100644 --- a/kubernetes/model/v2beta2_metric_value_status.c +++ b/kubernetes/model/v2beta2_metric_value_status.c @@ -88,7 +88,7 @@ v2beta2_metric_value_status_t *v2beta2_metric_value_status_parseFromJSON(cJSON * // v2beta2_metric_value_status->average_value cJSON *average_value = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_value_statusJSON, "averageValue"); if (average_value) { - if(!cJSON_IsString(average_value)) + if(!cJSON_IsString(average_value) && !cJSON_IsNull(average_value)) { goto end; //String } @@ -97,7 +97,7 @@ v2beta2_metric_value_status_t *v2beta2_metric_value_status_parseFromJSON(cJSON * // v2beta2_metric_value_status->value cJSON *value = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_value_statusJSON, "value"); if (value) { - if(!cJSON_IsString(value)) + if(!cJSON_IsString(value) && !cJSON_IsNull(value)) { goto end; //String } @@ -106,8 +106,8 @@ v2beta2_metric_value_status_t *v2beta2_metric_value_status_parseFromJSON(cJSON * v2beta2_metric_value_status_local_var = v2beta2_metric_value_status_create ( average_utilization ? average_utilization->valuedouble : 0, - average_value ? strdup(average_value->valuestring) : NULL, - value ? strdup(value->valuestring) : NULL + average_value && !cJSON_IsNull(average_value) ? strdup(average_value->valuestring) : NULL, + value && !cJSON_IsNull(value) ? strdup(value->valuestring) : NULL ); return v2beta2_metric_value_status_local_var; From 703fdc63efbeef9309cf5020a5f85c6b3d56c56b Mon Sep 17 00:00:00 2001 From: Iacopo Rozzo Date: Thu, 29 Dec 2022 17:47:02 +0100 Subject: [PATCH 06/19] Add check for the presence of secure_getenv This change introduces support for glibc versions older than 2.17 where secure_getenv was introduced. --- kubernetes/ConfigureChecks.cmake | 3 ++- kubernetes/config.h.in | 3 ++- kubernetes/config/incluster_config.c | 4 ++-- kubernetes/config/kube_config.c | 4 ++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/kubernetes/ConfigureChecks.cmake b/kubernetes/ConfigureChecks.cmake index bf2332a0..5cfba581 100644 --- a/kubernetes/ConfigureChecks.cmake +++ b/kubernetes/ConfigureChecks.cmake @@ -1,3 +1,4 @@ include(CheckFunctionExists) -check_function_exists(strndup HAVE_STRNDUP) \ No newline at end of file +check_function_exists(strndup HAVE_STRNDUP) +check_function_exists(secure_getenv HAVE_SECURE_GETENV) diff --git a/kubernetes/config.h.in b/kubernetes/config.h.in index a174e2f7..57c94446 100644 --- a/kubernetes/config.h.in +++ b/kubernetes/config.h.in @@ -1,2 +1,3 @@ /* Define to 1 if you have the `strndup' function. */ -#cmakedefine HAVE_STRNDUP 1 \ No newline at end of file +#cmakedefine HAVE_STRNDUP 1 +#cmakedefine HAVE_SECURE_GETENV 1 diff --git a/kubernetes/config/incluster_config.c b/kubernetes/config/incluster_config.c index 333b0c2f..94181b5c 100644 --- a/kubernetes/config/incluster_config.c +++ b/kubernetes/config/incluster_config.c @@ -45,7 +45,7 @@ static int setBasePathInCluster(char **pBasePath) { static char fname[] = "setBasePathInCluster()"; -#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined(__APPLE__) +#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined(__APPLE__) || !defined(HAVE_SECURE_GETENV) const char *service_host_env = getenv(SERVICE_HOST_ENV_NAME); #elif __linux || defined(__EMSCRIPTEN__) const char *service_host_env = secure_getenv(SERVICE_HOST_ENV_NAME); @@ -54,7 +54,7 @@ static int setBasePathInCluster(char **pBasePath) fprintf(stderr, "%s: Cannot retrieve the kubernetes service host inside a pod by the env %s.\n", fname, SERVICE_HOST_ENV_NAME); return -1; } -#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined(__APPLE__) +#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined(__APPLE__) || !defined(HAVE_SECURE_GETENV) const char *service_port_env = getenv(SERVICE_PORT_ENV_NAME); #elif __linux || defined(__EMSCRIPTEN__) const char *service_port_env = secure_getenv(SERVICE_PORT_ENV_NAME); diff --git a/kubernetes/config/kube_config.c b/kubernetes/config/kube_config.c index 3fbababf..f5dcb0d8 100644 --- a/kubernetes/config/kube_config.c +++ b/kubernetes/config/kube_config.c @@ -111,7 +111,7 @@ static char *getWorkingConfigFile(const char *configFileNamePassedIn) configFileName = strdup(configFileNamePassedIn); } else { -#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined(__APPLE__) +#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined(__APPLE__) || !defined(HAVE_SECURE_GETENV) kubeconfig_env = getenv(ENV_KUBECONFIG); #elif __linux || defined(__EMSCRIPTEN__) kubeconfig_env = secure_getenv(ENV_KUBECONFIG); @@ -119,7 +119,7 @@ static char *getWorkingConfigFile(const char *configFileNamePassedIn) if (kubeconfig_env) { configFileName = strdup(kubeconfig_env); } else { -#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined(__APPLE__) +#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined(__APPLE__) || !defined(HAVE_SECURE_GETENV) homedir_env = getenv(ENV_HOME); #elif __linux || defined(__EMSCRIPTEN__) homedir_env = secure_getenv(ENV_HOME); From 42a7642d4ecfc2987a12fc019f435a46f56956be Mon Sep 17 00:00:00 2001 From: Iacopo Rozzo Date: Fri, 30 Dec 2022 15:13:40 +0100 Subject: [PATCH 07/19] Add support for IPv6 addresses in the in-cluster resolution This change adds support for kubernetes services with cluster IPs v6 for the in cluster resolution. Previously, the IP v6 addresses were not wrapped in square brackets when forming the Apiserver URL. --- kubernetes/config/incluster_config.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/kubernetes/config/incluster_config.c b/kubernetes/config/incluster_config.c index 94181b5c..609e492d 100644 --- a/kubernetes/config/incluster_config.c +++ b/kubernetes/config/incluster_config.c @@ -65,13 +65,24 @@ static int setBasePathInCluster(char **pBasePath) } int basePathSize = strlen(SERVICE_HTTPS_PREFIX) + strlen(service_host_env) + strlen(service_port_env) + 2 /* 1 for ':', 1 for '\0' */ ; + bool isIPv6 = false; + if (strchr(service_host_env, ':') == NULL) + { + isIPv6 = true; + // Takes into account the square brackets to escape the IP v6 address. + basePathSize += 2; + } char *basePath = calloc(basePathSize, sizeof(char)); if (!basePath) { fprintf(stderr, "%s: Cannot allocate the memory for base path for kubernetes service.\n", fname); return -1; } - snprintf(basePath, basePathSize, "%s%s:%s", SERVICE_HTTPS_PREFIX, service_host_env, service_port_env); + if (isIPv6) { + snprintf(basePath, basePathSize, "%s[%s]:%s", SERVICE_HTTPS_PREFIX, service_host_env, service_port_env); + } else { + snprintf(basePath, basePathSize, "%s%s:%s", SERVICE_HTTPS_PREFIX, service_host_env, service_port_env); + } *pBasePath = basePath; return 0; } From fc4f5d1f275cc5f1a3c758f393efa3f86674310b Mon Sep 17 00:00:00 2001 From: Iacopo Rozzo Date: Fri, 30 Dec 2022 16:36:12 +0100 Subject: [PATCH 08/19] Address review comments --- kubernetes/config/incluster_config.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kubernetes/config/incluster_config.c b/kubernetes/config/incluster_config.c index 609e492d..3e1708e1 100644 --- a/kubernetes/config/incluster_config.c +++ b/kubernetes/config/incluster_config.c @@ -66,8 +66,7 @@ static int setBasePathInCluster(char **pBasePath) int basePathSize = strlen(SERVICE_HTTPS_PREFIX) + strlen(service_host_env) + strlen(service_port_env) + 2 /* 1 for ':', 1 for '\0' */ ; bool isIPv6 = false; - if (strchr(service_host_env, ':') == NULL) - { + if (strchr(service_host_env, ':') != NULL) { isIPv6 = true; // Takes into account the square brackets to escape the IP v6 address. basePathSize += 2; From 8b70a4f482a3f3daef6db2058acd34629ac7b6f8 Mon Sep 17 00:00:00 2001 From: Hui Yu Date: Tue, 3 Jan 2023 14:53:28 +0800 Subject: [PATCH 09/19] Update config.h.in to be more clear --- kubernetes/config.h.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kubernetes/config.h.in b/kubernetes/config.h.in index 57c94446..4ccae387 100644 --- a/kubernetes/config.h.in +++ b/kubernetes/config.h.in @@ -1,3 +1,2 @@ -/* Define to 1 if you have the `strndup' function. */ -#cmakedefine HAVE_STRNDUP 1 -#cmakedefine HAVE_SECURE_GETENV 1 +#cmakedefine HAVE_STRNDUP +#cmakedefine HAVE_SECURE_GETENV From 1e06eb2dfd94f50fefa5288f37ed85e2cb4601b8 Mon Sep 17 00:00:00 2001 From: hirishh Date: Fri, 13 Jan 2023 17:09:51 +0100 Subject: [PATCH 10/19] Load user certificates by file path --- kubernetes/config/kube_config_yaml.c | 34 +++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/kubernetes/config/kube_config_yaml.c b/kubernetes/config/kube_config_yaml.c index 5c385f90..c370815c 100644 --- a/kubernetes/config/kube_config_yaml.c +++ b/kubernetes/config/kube_config_yaml.c @@ -46,6 +46,8 @@ mapping :: = MAPPING - START(node node) * MAPPING - END #define KEY_CERTIFICATE_AUTHORITY_DATA "certificate-authority-data" #define KEY_INSECURE_SKIP_TLS_VERIFY "insecure-skip-tls-verify" #define KEY_SERVER "server" +#define KEY_CLIENT_CERTIFICATE "client-certificate" +#define KEY_CLIENT_KEY "client-key" #define KEY_CLIENT_CERTIFICATE_DATA "client-certificate-data" #define KEY_CLIENT_KEY_DATA "client-key-data" #define KEY_STAUTS "status" @@ -55,6 +57,31 @@ mapping :: = MAPPING - START(node node) * MAPPING - END #define VALUE_TRUE_LOWERCASE_STRING "true" +static char *load_file_content(const char *path) { + + static char fname[] = "load_file_content()"; + + char *buffer; + FILE *fh = fopen(path, "rb"); + + if (fh == NULL) { + fprintf(stderr, "%s: Cannot parse file path: %s\n", fname, path); + return NULL; + } + + fseek(fh, 0L, SEEK_END); + long s = ftell(fh); + rewind(fh); + buffer = malloc(s); + if ( buffer != NULL ) + { + fread(buffer, s, 1, fh); + } + fclose(fh); + fh = NULL; + return buffer; +} + static int parse_kubeconfig_yaml_string_sequence(char ***p_strings, int *p_strings_count, yaml_document_t * document, yaml_node_t * node) { static char fname[] = "parse_kubeconfig_yaml_string_sequence()"; @@ -193,7 +220,11 @@ static int parse_kubeconfig_yaml_property_mapping(kubeconfig_property_t * proper property->insecure_skip_tls_verify = (0 == strcmp(value->data.scalar.value, VALUE_TRUE_LOWERCASE_STRING)); //libyaml fails to parse true, but it can parse "true"! } } else if (KUBECONFIG_PROPERTY_TYPE_USER == property->type) { - if (0 == strcmp(key->data.scalar.value, KEY_CLIENT_CERTIFICATE_DATA)) { + if (0 == strcmp(key->data.scalar.value, KEY_CLIENT_CERTIFICATE)) { + property->client_certificate_data = load_file_content(value->data.scalar.value); + } else if (0 == strcmp(key->data.scalar.value, KEY_CLIENT_KEY)) { + property->client_key_data = load_file_content(value->data.scalar.value); + } else if (0 == strcmp(key->data.scalar.value, KEY_CLIENT_CERTIFICATE_DATA)) { property->client_certificate_data = strdup(value->data.scalar.value); } else if (0 == strcmp(key->data.scalar.value, KEY_CLIENT_KEY_DATA)) { property->client_key_data = strdup(value->data.scalar.value); @@ -1090,3 +1121,4 @@ int kubeyaml_save_kubeconfig(const kubeconfig_t * kubeconfig) return -1; } + From 2887dd5feef3eceb3f8aa740447bb78709c38c8f Mon Sep 17 00:00:00 2001 From: Hui Yu Date: Mon, 16 Jan 2023 15:41:01 +0800 Subject: [PATCH 11/19] * Fix memory leak when kubeconfig is invalid * Add a test for this case --- examples/Makefile | 2 + .../.gitignore | 1 + .../list_pod_with_invalid_kubeconfig/Makefile | 17 +++++ .../list_pod_with_invalid_kubeconfig/main.c | 67 +++++++++++++++++++ kubernetes/config/kube_config_yaml.c | 14 ++-- 5 files changed, 93 insertions(+), 8 deletions(-) create mode 100644 examples/list_pod_with_invalid_kubeconfig/.gitignore create mode 100644 examples/list_pod_with_invalid_kubeconfig/Makefile create mode 100644 examples/list_pod_with_invalid_kubeconfig/main.c diff --git a/examples/Makefile b/examples/Makefile index 68ab5922..61856c2d 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -31,6 +31,7 @@ clean: test: cd create_pod; make test; kubectl wait --for=condition=ready --all pod -n default --timeout=60s + cd list_pod_with_invalid_kubeconfig; make test cd list_pod; make test cd delete_pod; make test kubectl wait --for=delete pod/test-pod-6 -n default --timeout=120s @@ -46,6 +47,7 @@ test: memcheck: cd create_pod; make memcheck; kubectl wait --for=condition=ready --all pod -n default --timeout=60s + cd list_pod_with_invalid_kubeconfig; make memcheck cd list_pod; make memcheck cd delete_pod; make memcheck kubectl wait --for=delete pod/test-pod-6 -n default --timeout=120s diff --git a/examples/list_pod_with_invalid_kubeconfig/.gitignore b/examples/list_pod_with_invalid_kubeconfig/.gitignore new file mode 100644 index 00000000..d3b8eaaa --- /dev/null +++ b/examples/list_pod_with_invalid_kubeconfig/.gitignore @@ -0,0 +1 @@ +list_pod_with_invalid_kubeconfig diff --git a/examples/list_pod_with_invalid_kubeconfig/Makefile b/examples/list_pod_with_invalid_kubeconfig/Makefile new file mode 100644 index 00000000..a0ec2206 --- /dev/null +++ b/examples/list_pod_with_invalid_kubeconfig/Makefile @@ -0,0 +1,17 @@ +INCLUDE:=-I../../kubernetes/ +LIBS:=-L../../kubernetes/build -lyaml -lwebsockets -lkubernetes -L/usr/local/lib +CFLAGS:=-g +BIN:=list_pod_with_invalid_kubeconfig + +.PHONY : all clean test memcheck +all: + gcc main.c $(CFLAGS) $(INCLUDE) $(LIBS) -o $(BIN) + +test: + ./$(BIN) + +memcheck: + valgrind --tool=memcheck --leak-check=full ./$(BIN) + +clean: + rm ./$(BIN) diff --git a/examples/list_pod_with_invalid_kubeconfig/main.c b/examples/list_pod_with_invalid_kubeconfig/main.c new file mode 100644 index 00000000..485c4b58 --- /dev/null +++ b/examples/list_pod_with_invalid_kubeconfig/main.c @@ -0,0 +1,67 @@ +#include +#include +#include + +void list_pod(apiClient_t * apiClient) +{ + v1_pod_list_t *pod_list = NULL; + pod_list = CoreV1API_listNamespacedPod(apiClient, "default", /*namespace */ + NULL, /* pretty */ + 0, /* allowWatchBookmarks */ + NULL, /* continue */ + NULL, /* fieldSelector */ + NULL, /* labelSelector */ + 0, /* limit */ + NULL, /* resourceVersion */ + NULL, /* resourceVersionMatch */ + 0, /* timeoutSeconds */ + 0 /* watch */ + ); + printf("The return code of HTTP request=%ld\n", apiClient->response_code); + if (pod_list) { + printf("Get pod list:\n"); + listEntry_t *listEntry = NULL; + v1_pod_t *pod = NULL; + list_ForEach(listEntry, pod_list->items) { + pod = listEntry->data; + printf("\tThe pod name: %s\n", pod->metadata->name); + } + v1_pod_list_free(pod_list); + pod_list = NULL; + } else { + printf("Cannot get any pod.\n"); + } +} + +int main() +{ + char *basePath = NULL; + sslConfig_t *sslConfig = NULL; + list_t *apiKeys = NULL; + int rc = load_kube_config(&basePath, &sslConfig, &apiKeys, "non-existent-file"); + if (rc != 0) { + printf("Cannot load kubernetes configuration.\n"); + /* Return 0 to avoid Github/Action check failures. + You should return a non-zero value in a production environment. */ + return 0; + } + apiClient_t *apiClient = apiClient_create_with_base_path(basePath, sslConfig, apiKeys); + if (!apiClient) { + printf("Cannot create a kubernetes client.\n"); + /* Return 0 to avoid Github/Action check failures. + You should return a non-zero value in a production environment. */ + return 0; + } + + list_pod(apiClient); + + apiClient_free(apiClient); + apiClient = NULL; + free_client_config(basePath, sslConfig, apiKeys); + basePath = NULL; + sslConfig = NULL; + apiKeys = NULL; + apiClient_unsetupGlobalEnv(); + + return 0; +} diff --git a/kubernetes/config/kube_config_yaml.c b/kubernetes/config/kube_config_yaml.c index c370815c..882c276d 100644 --- a/kubernetes/config/kube_config_yaml.c +++ b/kubernetes/config/kube_config_yaml.c @@ -425,14 +425,6 @@ int kubeyaml_load_kubeconfig(kubeconfig_t * kubeconfig) { static char fname[] = "kubeyaml_load_kubeconfig()"; - yaml_parser_t parser; - yaml_document_t document; - - int done = 0; - - /* Create the Parser object. */ - yaml_parser_initialize(&parser); - /* Set a file input. */ FILE *input = NULL; if (kubeconfig->fileName) { @@ -446,8 +438,14 @@ int kubeyaml_load_kubeconfig(kubeconfig_t * kubeconfig) return -1; } + yaml_parser_t parser; + yaml_document_t document; + + /* Create the Parser object. */ + yaml_parser_initialize(&parser); yaml_parser_set_input_file(&parser, input); + int done = 0; while (!done) { if (!yaml_parser_load(&parser, &document)) { From 1ab7d304d3b3ee742a5c0eef93343f0a0b14daeb Mon Sep 17 00:00:00 2001 From: Hui Yu Date: Mon, 16 Jan 2023 15:42:58 +0800 Subject: [PATCH 12/19] code style check and fix --- kubernetes/config/kube_config_yaml.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kubernetes/config/kube_config_yaml.c b/kubernetes/config/kube_config_yaml.c index 882c276d..ccf48ec1 100644 --- a/kubernetes/config/kube_config_yaml.c +++ b/kubernetes/config/kube_config_yaml.c @@ -57,7 +57,8 @@ mapping :: = MAPPING - START(node node) * MAPPING - END #define VALUE_TRUE_LOWERCASE_STRING "true" -static char *load_file_content(const char *path) { +static char *load_file_content(const char *path) +{ static char fname[] = "load_file_content()"; @@ -73,8 +74,7 @@ static char *load_file_content(const char *path) { long s = ftell(fh); rewind(fh); buffer = malloc(s); - if ( buffer != NULL ) - { + if (buffer != NULL) { fread(buffer, s, 1, fh); } fclose(fh); @@ -217,7 +217,7 @@ static int parse_kubeconfig_yaml_property_mapping(kubeconfig_property_t * proper } else if (0 == strcmp(key->data.scalar.value, KEY_SERVER)) { property->server = strdup(value->data.scalar.value); } else if (0 == strcmp(key->data.scalar.value, KEY_INSECURE_SKIP_TLS_VERIFY)) { - property->insecure_skip_tls_verify = (0 == strcmp(value->data.scalar.value, VALUE_TRUE_LOWERCASE_STRING)); //libyaml fails to parse true, but it can parse "true"! + property->insecure_skip_tls_verify = (0 == strcmp(value->data.scalar.value, VALUE_TRUE_LOWERCASE_STRING)); //libyaml fails to parse true, but it can parse "true"! } } else if (KUBECONFIG_PROPERTY_TYPE_USER == property->type) { if (0 == strcmp(key->data.scalar.value, KEY_CLIENT_CERTIFICATE)) { @@ -1119,4 +1119,3 @@ int kubeyaml_save_kubeconfig(const kubeconfig_t * kubeconfig) return -1; } - From cf0e04da8d013b823e73e5e8747ea05a08c99df5 Mon Sep 17 00:00:00 2001 From: Hui Yu Date: Mon, 16 Jan 2023 16:08:38 +0800 Subject: [PATCH 13/19] Build and clean list_pod_with_invalid_kubeconfig for testing --- examples/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/Makefile b/examples/Makefile index 61856c2d..65fcf94f 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,5 +1,6 @@ all: cd create_pod; make + cd list_pod_with_invalid_kubeconfig; make cd list_pod; make cd list_pod_incluster; make cd delete_pod; make @@ -15,6 +16,7 @@ all: clean: cd create_pod; make clean + cd list_pod_with_invalid_kubeconfig; make clean cd list_pod; make clean cd list_pod_incluster; make clean cd delete_pod; make clean From c8c27b1da68089c08f2b462915b9f1ecc556fdd4 Mon Sep 17 00:00:00 2001 From: Ahmed Yarub Hani Al Nuaimi Date: Wed, 8 Feb 2023 19:22:15 -0300 Subject: [PATCH 14/19] Correct check for getenv()/secure_getenv() --- kubernetes/ConfigureChecks.cmake | 1 + kubernetes/config/kube_config.c | 13 ++++++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/kubernetes/ConfigureChecks.cmake b/kubernetes/ConfigureChecks.cmake index 5cfba581..1ae6936e 100644 --- a/kubernetes/ConfigureChecks.cmake +++ b/kubernetes/ConfigureChecks.cmake @@ -2,3 +2,4 @@ include(CheckFunctionExists) check_function_exists(strndup HAVE_STRNDUP) check_function_exists(secure_getenv HAVE_SECURE_GETENV) +check_function_exists(getenv HAVE_GETENV) diff --git a/kubernetes/config/kube_config.c b/kubernetes/config/kube_config.c index f5dcb0d8..eaa28aad 100644 --- a/kubernetes/config/kube_config.c +++ b/kubernetes/config/kube_config.c @@ -111,19 +111,18 @@ static char *getWorkingConfigFile(const char *configFileNamePassedIn) configFileName = strdup(configFileNamePassedIn); } else { -#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined(__APPLE__) || !defined(HAVE_SECURE_GETENV) - kubeconfig_env = getenv(ENV_KUBECONFIG); -#elif __linux || defined(__EMSCRIPTEN__) +#if defined(HAVE_SECURE_GETENV) kubeconfig_env = secure_getenv(ENV_KUBECONFIG); +#elif defined(HAVE_GETENV) + kubeconfig_env = getenv(ENV_KUBECONFIG); #endif if (kubeconfig_env) { configFileName = strdup(kubeconfig_env); } else { -#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined(__APPLE__) || !defined(HAVE_SECURE_GETENV) - homedir_env = getenv(ENV_HOME); -#elif __linux || defined(__EMSCRIPTEN__) +#if defined(HAVE_SECURE_GETENV) homedir_env = secure_getenv(ENV_HOME); -#else +#elif defined(HAVE_GETENV) + homedir_env = getenv(ENV_HOME); #endif if (homedir_env) { int configFileNameSize = strlen(homedir_env) + strlen(KUBE_CONFIG_DEFAULT_LOCATION) + 1; From de6542609e407b670228a2d95d111de56f9ce6ad Mon Sep 17 00:00:00 2001 From: Ahmed Yarub Hani Al Nuaimi Date: Wed, 8 Feb 2023 20:38:10 -0300 Subject: [PATCH 15/19] Fix configuration file --- kubernetes/config.h.in | 1 + 1 file changed, 1 insertion(+) diff --git a/kubernetes/config.h.in b/kubernetes/config.h.in index 4ccae387..35cba3c9 100644 --- a/kubernetes/config.h.in +++ b/kubernetes/config.h.in @@ -1,2 +1,3 @@ #cmakedefine HAVE_STRNDUP #cmakedefine HAVE_SECURE_GETENV +#cmakedefine HAVE_GETENV \ No newline at end of file From ccef130aeba981d90d6707d79c2f04c31a334c5f Mon Sep 17 00:00:00 2001 From: Ahmed Yarub Hani Al Nuaimi Date: Thu, 9 Feb 2023 21:40:22 -0300 Subject: [PATCH 16/19] Temporarily revert changes --- kubernetes/config/kube_config.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/kubernetes/config/kube_config.c b/kubernetes/config/kube_config.c index eaa28aad..f5dcb0d8 100644 --- a/kubernetes/config/kube_config.c +++ b/kubernetes/config/kube_config.c @@ -111,18 +111,19 @@ static char *getWorkingConfigFile(const char *configFileNamePassedIn) configFileName = strdup(configFileNamePassedIn); } else { -#if defined(HAVE_SECURE_GETENV) - kubeconfig_env = secure_getenv(ENV_KUBECONFIG); -#elif defined(HAVE_GETENV) +#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined(__APPLE__) || !defined(HAVE_SECURE_GETENV) kubeconfig_env = getenv(ENV_KUBECONFIG); +#elif __linux || defined(__EMSCRIPTEN__) + kubeconfig_env = secure_getenv(ENV_KUBECONFIG); #endif if (kubeconfig_env) { configFileName = strdup(kubeconfig_env); } else { -#if defined(HAVE_SECURE_GETENV) - homedir_env = secure_getenv(ENV_HOME); -#elif defined(HAVE_GETENV) +#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined(__APPLE__) || !defined(HAVE_SECURE_GETENV) homedir_env = getenv(ENV_HOME); +#elif __linux || defined(__EMSCRIPTEN__) + homedir_env = secure_getenv(ENV_HOME); +#else #endif if (homedir_env) { int configFileNameSize = strlen(homedir_env) + strlen(KUBE_CONFIG_DEFAULT_LOCATION) + 1; From 2e2b5c91daaad71d0b3978070346b241f2ba67aa Mon Sep 17 00:00:00 2001 From: Ahmed Yarub Hani Al Nuaimi Date: Thu, 9 Feb 2023 22:36:24 -0300 Subject: [PATCH 17/19] Fix symbol tests --- kubernetes/ConfigureChecks.cmake | 8 ++++---- kubernetes/PostTarget.cmake | 1 + kubernetes/config/incluster_config.c | 16 ++++++++++------ kubernetes/config/kube_config.c | 16 ++++++++-------- 4 files changed, 23 insertions(+), 18 deletions(-) diff --git a/kubernetes/ConfigureChecks.cmake b/kubernetes/ConfigureChecks.cmake index 1ae6936e..c9cda1ad 100644 --- a/kubernetes/ConfigureChecks.cmake +++ b/kubernetes/ConfigureChecks.cmake @@ -1,5 +1,5 @@ -include(CheckFunctionExists) +include(CheckCXXSymbolExists) -check_function_exists(strndup HAVE_STRNDUP) -check_function_exists(secure_getenv HAVE_SECURE_GETENV) -check_function_exists(getenv HAVE_GETENV) +check_cxx_symbol_exists(strndup "string.h" HAVE_STRNDUP) +check_cxx_symbol_exists(secure_getenv "stdlib.h" HAVE_SECURE_GETENV) +check_cxx_symbol_exists(getenv "stdlib.h" HAVE_GETENV) diff --git a/kubernetes/PostTarget.cmake b/kubernetes/PostTarget.cmake index 1ef9cc35..73df36aa 100644 --- a/kubernetes/PostTarget.cmake +++ b/kubernetes/PostTarget.cmake @@ -4,5 +4,6 @@ else() set(WEBSOCKETS websockets) endif() +target_include_directories(${pkgName} PRIVATE "${CMAKE_CURRENT_BINARY_DIR}") target_link_libraries(${pkgName} PRIVATE yaml ${WEBSOCKETS}) set_target_properties(${pkgName} PROPERTIES LINKER_LANGUAGE C) \ No newline at end of file diff --git a/kubernetes/config/incluster_config.c b/kubernetes/config/incluster_config.c index 3e1708e1..9f521b56 100644 --- a/kubernetes/config/incluster_config.c +++ b/kubernetes/config/incluster_config.c @@ -45,19 +45,23 @@ static int setBasePathInCluster(char **pBasePath) { static char fname[] = "setBasePathInCluster()"; -#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined(__APPLE__) || !defined(HAVE_SECURE_GETENV) - const char *service_host_env = getenv(SERVICE_HOST_ENV_NAME); -#elif __linux || defined(__EMSCRIPTEN__) +#if defined(HAVE_SECURE_GETENV) const char *service_host_env = secure_getenv(SERVICE_HOST_ENV_NAME); +#elif defined(HAVE_GETENV) + const char *service_host_env = getenv(SERVICE_HOST_ENV_NAME); +#else + const char *service_host_env = NULL; #endif if (!service_host_env) { fprintf(stderr, "%s: Cannot retrieve the kubernetes service host inside a pod by the env %s.\n", fname, SERVICE_HOST_ENV_NAME); return -1; } -#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined(__APPLE__) || !defined(HAVE_SECURE_GETENV) - const char *service_port_env = getenv(SERVICE_PORT_ENV_NAME); -#elif __linux || defined(__EMSCRIPTEN__) +#if defined(HAVE_SECURE_GETENV) const char *service_port_env = secure_getenv(SERVICE_PORT_ENV_NAME); +#elif defined(HAVE_GETENV) + const char *service_port_env = getenv(SERVICE_PORT_ENV_NAME); +#else + const char *service_port_env = NULL; #endif if (!service_port_env) { fprintf(stderr, "%s: Cannot retrieve the kubernetes service port inside a pod by the env %s.\n", fname, SERVICE_PORT_ENV_NAME); diff --git a/kubernetes/config/kube_config.c b/kubernetes/config/kube_config.c index f5dcb0d8..0f51cfbd 100644 --- a/kubernetes/config/kube_config.c +++ b/kubernetes/config/kube_config.c @@ -1,3 +1,5 @@ +#include + #define _GNU_SOURCE #include #include @@ -110,20 +112,18 @@ static char *getWorkingConfigFile(const char *configFileNamePassedIn) if (configFileNamePassedIn) { configFileName = strdup(configFileNamePassedIn); } else { - -#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined(__APPLE__) || !defined(HAVE_SECURE_GETENV) - kubeconfig_env = getenv(ENV_KUBECONFIG); -#elif __linux || defined(__EMSCRIPTEN__) +#if defined(HAVE_SECURE_GETENV) kubeconfig_env = secure_getenv(ENV_KUBECONFIG); +#elif defined(HAVE_GETENV) + kubeconfig_env = getenv(ENV_KUBECONFIG); #endif if (kubeconfig_env) { configFileName = strdup(kubeconfig_env); } else { -#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined(__APPLE__) || !defined(HAVE_SECURE_GETENV) - homedir_env = getenv(ENV_HOME); -#elif __linux || defined(__EMSCRIPTEN__) +#if defined(HAVE_SECURE_GETENV) homedir_env = secure_getenv(ENV_HOME); -#else +#elif defined(HAVE_GETENV) + homedir_env = getenv(ENV_HOME); #endif if (homedir_env) { int configFileNameSize = strlen(homedir_env) + strlen(KUBE_CONFIG_DEFAULT_LOCATION) + 1; From 060e5f800afe276a4e81f071c9ed60d3b104116c Mon Sep 17 00:00:00 2001 From: Kubernetes Prow Robot Date: Thu, 23 Feb 2023 01:48:36 +0000 Subject: [PATCH 18/19] Automated openapi generation from release-1.26 Signed-off-by: Kubernetes Prow Robot --- kubernetes/.openapi-generator/COMMIT | 2 +- kubernetes/.openapi-generator/FILES | 453 +- kubernetes/.openapi-generator/VERSION | 2 +- .../swagger.json-default.sha256 | 2 +- kubernetes/CMakeLists.txt | 237 +- kubernetes/PreTarget.cmake | 2 +- kubernetes/README.md | 221 +- ...I.c => AdmissionregistrationV1alpha1API.c} | 1450 +- .../api/AdmissionregistrationV1alpha1API.h | 107 + kubernetes/api/AuthenticationV1alpha1API.c | 266 + kubernetes/api/AuthenticationV1alpha1API.h | 23 + kubernetes/api/AutoscalingV2beta2API.h | 87 - kubernetes/api/CustomObjectsAPI.c | 87 + kubernetes/api/CustomObjectsAPI.h | 7 + ...API.c => FlowcontrolApiserverV1beta3API.c} | 298 +- ...API.h => FlowcontrolApiserverV1beta3API.h} | 82 +- kubernetes/api/ResourceAPI.c | 81 + kubernetes/api/ResourceAPI.h | 16 + kubernetes/api/ResourceV1alpha1API.c | 8763 +++++ kubernetes/api/ResourceV1alpha1API.h | 249 + .../docs/AdmissionregistrationV1alpha1API.md | 543 + kubernetes/docs/AuthenticationV1alpha1API.md | 71 + kubernetes/docs/CustomObjectsAPI.md | 31 + .../docs/FlowcontrolApiserverV1beta3API.md | 747 + kubernetes/docs/ResourceAPI.md | 37 + kubernetes/docs/ResourceV1alpha1API.md | 1397 + kubernetes/docs/v1_claim_source.md | 11 + .../docs/v1_cross_version_object_reference.md | 2 +- .../v1_custom_resource_definition_spec.md | 2 +- kubernetes/docs/v1_endpoint_conditions.md | 4 +- .../docs/v1_ingress_load_balancer_ingress.md | 12 + .../docs/v1_ingress_load_balancer_status.md | 10 + kubernetes/docs/v1_ingress_port_status.md | 12 + kubernetes/docs/v1_ingress_status.md | 2 +- kubernetes/docs/v1_ip_block.md | 4 +- kubernetes/docs/v1_node_status.md | 2 +- .../docs/v1_persistent_volume_claim_spec.md | 2 +- .../docs/v1_pod_disruption_budget_spec.md | 1 + kubernetes/docs/v1_pod_resource_claim.md | 11 + kubernetes/docs/v1_pod_scheduling_gate.md | 10 + kubernetes/docs/v1_pod_security_context.md | 2 +- kubernetes/docs/v1_pod_spec.md | 2 + kubernetes/docs/v1_replica_set_status.md | 2 +- .../docs/v1_replication_controller_status.md | 2 +- kubernetes/docs/v1_resource_claim.md | 10 + kubernetes/docs/v1_resource_requirements.md | 1 + kubernetes/docs/v1_stateful_set_ordinals.md | 10 + kubernetes/docs/v1_stateful_set_spec.md | 1 + .../docs/v1_topology_spread_constraint.md | 4 +- kubernetes/docs/v1_typed_object_reference.md | 13 + kubernetes/docs/v1alpha1_allocation_result.md | 12 + kubernetes/docs/v1alpha1_cluster_cidr_spec.md | 2 +- kubernetes/docs/v1alpha1_match_resources.md | 14 + .../v1alpha1_named_rule_with_operations.md | 15 + kubernetes/docs/v1alpha1_param_kind.md | 11 + kubernetes/docs/v1alpha1_param_ref.md | 11 + kubernetes/docs/v1alpha1_pod_scheduling.md | 14 + .../docs/v1alpha1_pod_scheduling_list.md | 13 + .../docs/v1alpha1_pod_scheduling_spec.md | 11 + .../docs/v1alpha1_pod_scheduling_status.md | 10 + kubernetes/docs/v1alpha1_resource_claim.md | 14 + ...lpha1_resource_claim_consumer_reference.md | 13 + .../docs/v1alpha1_resource_claim_list.md | 13 + ...ha1_resource_claim_parameters_reference.md | 12 + ...alpha1_resource_claim_scheduling_status.md | 11 + .../docs/v1alpha1_resource_claim_spec.md | 12 + .../docs/v1alpha1_resource_claim_status.md | 13 + .../docs/v1alpha1_resource_claim_template.md | 13 + .../v1alpha1_resource_claim_template_list.md | 13 + .../v1alpha1_resource_claim_template_spec.md | 11 + kubernetes/docs/v1alpha1_resource_class.md | 15 + .../docs/v1alpha1_resource_class_list.md | 13 + ...ha1_resource_class_parameters_reference.md | 13 + .../docs/v1alpha1_self_subject_review.md | 13 + .../v1alpha1_self_subject_review_status.md | 10 + .../v1alpha1_validating_admission_policy.md | 13 + ...ha1_validating_admission_policy_binding.md | 13 + ...alidating_admission_policy_binding_list.md | 13 + ...alidating_admission_policy_binding_spec.md | 12 + ...alpha1_validating_admission_policy_list.md | 13 + ...alpha1_validating_admission_policy_spec.md | 13 + kubernetes/docs/v1alpha1_validation.md | 12 + ...a2_limited_priority_level_configuration.md | 2 + .../docs/v1beta3_flow_distinguisher_method.md | 10 + kubernetes/docs/v1beta3_flow_schema.md | 14 + .../docs/v1beta3_flow_schema_condition.md | 14 + kubernetes/docs/v1beta3_flow_schema_list.md | 13 + kubernetes/docs/v1beta3_flow_schema_spec.md | 13 + kubernetes/docs/v1beta3_flow_schema_status.md | 10 + kubernetes/docs/v1beta3_group_subject.md | 10 + kubernetes/docs/v1beta3_limit_response.md | 11 + ...a3_limited_priority_level_configuration.md | 13 + .../docs/v1beta3_non_resource_policy_rule.md | 11 + .../v1beta3_policy_rules_with_subjects.md | 12 + .../v1beta3_priority_level_configuration.md | 14 + ..._priority_level_configuration_condition.md | 14 + ...beta3_priority_level_configuration_list.md | 13 + ..._priority_level_configuration_reference.md | 10 + ...beta3_priority_level_configuration_spec.md | 11 + ...ta3_priority_level_configuration_status.md | 10 + .../docs/v1beta3_queuing_configuration.md | 12 + .../docs/v1beta3_resource_policy_rule.md | 14 + .../docs/v1beta3_service_account_subject.md | 11 + kubernetes/docs/v1beta3_subject.md | 13 + kubernetes/docs/v1beta3_user_subject.md | 10 + .../docs/v2_cross_version_object_reference.md | 2 +- kubernetes/model/v1_claim_source.c | 97 + kubernetes/model/v1_claim_source.h | 39 + .../model/v1_ingress_load_balancer_ingress.c | 160 + .../model/v1_ingress_load_balancer_ingress.h | 42 + .../model/v1_ingress_load_balancer_status.c | 112 + .../model/v1_ingress_load_balancer_status.h | 38 + kubernetes/model/v1_ingress_port_status.c | 125 + kubernetes/model/v1_ingress_port_status.h | 41 + kubernetes/model/v1_ingress_status.c | 12 +- kubernetes/model/v1_ingress_status.h | 6 +- kubernetes/model/v1_ip_block.h | 2 +- .../model/v1_persistent_volume_claim_spec.c | 12 +- .../model/v1_persistent_volume_claim_spec.h | 5 +- .../model/v1_pod_disruption_budget_spec.c | 28 +- .../model/v1_pod_disruption_budget_spec.h | 4 +- kubernetes/model/v1_pod_resource_claim.c | 110 + kubernetes/model/v1_pod_resource_claim.h | 40 + kubernetes/model/v1_pod_scheduling_gate.c | 77 + kubernetes/model/v1_pod_scheduling_gate.h | 37 + kubernetes/model/v1_pod_spec.c | 126 + kubernetes/model/v1_pod_spec.h | 6 + kubernetes/model/v1_resource_claim.c | 77 + kubernetes/model/v1_resource_claim.h | 37 + kubernetes/model/v1_resource_requirements.c | 63 + kubernetes/model/v1_resource_requirements.h | 3 + kubernetes/model/v1_stateful_set_ordinals.c | 69 + kubernetes/model/v1_stateful_set_ordinals.h | 37 + kubernetes/model/v1_stateful_set_spec.c | 33 + kubernetes/model/v1_stateful_set_spec.h | 3 + kubernetes/model/v1_typed_object_reference.c | 153 + kubernetes/model/v1_typed_object_reference.h | 43 + kubernetes/model/v1alpha1_allocation_result.c | 126 + kubernetes/model/v1alpha1_allocation_result.h | 42 + kubernetes/model/v1alpha1_match_resources.c | 265 + kubernetes/model/v1alpha1_match_resources.h | 47 + .../v1alpha1_named_rule_with_operations.c | 363 + .../v1alpha1_named_rule_with_operations.h | 47 + kubernetes/model/v1alpha1_param_kind.c | 97 + kubernetes/model/v1alpha1_param_kind.h | 39 + kubernetes/model/v1alpha1_param_ref.c | 97 + kubernetes/model/v1alpha1_param_ref.h | 39 + kubernetes/model/v1alpha1_pod_scheduling.c | 200 + kubernetes/model/v1alpha1_pod_scheduling.h | 48 + .../model/v1alpha1_pod_scheduling_list.c | 197 + .../model/v1alpha1_pod_scheduling_list.h | 45 + .../model/v1alpha1_pod_scheduling_spec.c | 131 + .../model/v1alpha1_pod_scheduling_spec.h | 39 + .../model/v1alpha1_pod_scheduling_status.c | 112 + .../model/v1alpha1_pod_scheduling_status.h | 38 + kubernetes/model/v1alpha1_resource_claim.c | 200 + kubernetes/model/v1alpha1_resource_claim.h | 48 + ...alpha1_resource_claim_consumer_reference.c | 157 + ...alpha1_resource_claim_consumer_reference.h | 43 + .../model/v1alpha1_resource_claim_list.c | 197 + .../model/v1alpha1_resource_claim_list.h | 45 + ...pha1_resource_claim_parameters_reference.c | 129 + ...pha1_resource_claim_parameters_reference.h | 41 + ...1alpha1_resource_claim_scheduling_status.c | 131 + ...1alpha1_resource_claim_scheduling_status.h | 39 + .../model/v1alpha1_resource_claim_spec.c | 134 + .../model/v1alpha1_resource_claim_spec.h | 42 + .../model/v1alpha1_resource_claim_status.c | 189 + .../model/v1alpha1_resource_claim_status.h | 45 + .../model/v1alpha1_resource_claim_template.c | 167 + .../model/v1alpha1_resource_claim_template.h | 45 + .../v1alpha1_resource_claim_template_list.c | 197 + .../v1alpha1_resource_claim_template_list.h | 45 + .../v1alpha1_resource_claim_template_spec.c | 119 + .../v1alpha1_resource_claim_template_spec.h | 41 + kubernetes/model/v1alpha1_resource_class.c | 224 + kubernetes/model/v1alpha1_resource_class.h | 50 + .../model/v1alpha1_resource_class_list.c | 197 + .../model/v1alpha1_resource_class_list.h | 45 + ...pha1_resource_class_parameters_reference.c | 153 + ...pha1_resource_class_parameters_reference.h | 43 + .../model/v1alpha1_self_subject_review.c | 163 + .../model/v1alpha1_self_subject_review.h | 45 + .../v1alpha1_self_subject_review_status.c | 82 + .../v1alpha1_self_subject_review_status.h | 38 + .../v1alpha1_validating_admission_policy.c | 163 + .../v1alpha1_validating_admission_policy.h | 45 + ...pha1_validating_admission_policy_binding.c | 163 + ...pha1_validating_admission_policy_binding.h | 45 + ...validating_admission_policy_binding_list.c | 193 + ...validating_admission_policy_binding_list.h | 45 + ...validating_admission_policy_binding_spec.c | 139 + ...validating_admission_policy_binding_spec.h | 43 + ...1alpha1_validating_admission_policy_list.c | 193 + ...1alpha1_validating_admission_policy_list.h | 45 + ...1alpha1_validating_admission_policy_spec.c | 206 + ...1alpha1_validating_admission_policy_spec.h | 46 + kubernetes/model/v1alpha1_validation.c | 125 + kubernetes/model/v1alpha1_validation.h | 41 + .../model/v1beta1_flow_distinguisher_method.c | 77 - .../model/v1beta1_flow_distinguisher_method.h | 37 - kubernetes/model/v1beta1_flow_schema.c | 196 - kubernetes/model/v1beta1_flow_schema.h | 48 - .../model/v1beta1_flow_schema_condition.c | 169 - .../model/v1beta1_flow_schema_condition.h | 45 - kubernetes/model/v1beta1_flow_schema_list.c | 197 - kubernetes/model/v1beta1_flow_schema_list.h | 45 - kubernetes/model/v1beta1_flow_schema_spec.c | 202 - kubernetes/model/v1beta1_flow_schema_spec.h | 46 - kubernetes/model/v1beta1_flow_schema_status.c | 112 - kubernetes/model/v1beta1_flow_schema_status.h | 38 - kubernetes/model/v1beta1_group_subject.c | 77 - kubernetes/model/v1beta1_group_subject.h | 37 - kubernetes/model/v1beta1_limit_response.c | 110 - kubernetes/model/v1beta1_limit_response.h | 40 - ...ta1_limited_priority_level_configuration.c | 102 - ...ta1_limited_priority_level_configuration.h | 40 - .../model/v1beta1_non_resource_policy_rule.h | 39 - .../v1beta1_policy_rules_with_subjects.h | 44 - .../v1beta1_priority_level_configuration.c | 196 - .../v1beta1_priority_level_configuration.h | 48 - ...1_priority_level_configuration_condition.c | 169 - ...1_priority_level_configuration_condition.h | 45 - ...1beta1_priority_level_configuration_list.c | 197 - ...1beta1_priority_level_configuration_list.h | 45 - ...1_priority_level_configuration_reference.c | 77 - ...1_priority_level_configuration_reference.h | 37 - ...1beta1_priority_level_configuration_spec.c | 110 - ...1beta1_priority_level_configuration_spec.h | 40 - ...eta1_priority_level_configuration_status.c | 112 - ...eta1_priority_level_configuration_status.h | 38 - .../model/v1beta1_queuing_configuration.c | 109 - .../model/v1beta1_queuing_configuration.h | 41 - .../model/v1beta1_service_account_subject.c | 105 - .../model/v1beta1_service_account_subject.h | 39 - kubernetes/model/v1beta1_subject.c | 176 - kubernetes/model/v1beta1_subject.h | 46 - kubernetes/model/v1beta1_user_subject.c | 77 - kubernetes/model/v1beta1_user_subject.h | 37 - ...ta2_limited_priority_level_configuration.c | 40 + ...ta2_limited_priority_level_configuration.h | 4 + .../model/v1beta3_flow_distinguisher_method.c | 77 + .../model/v1beta3_flow_distinguisher_method.h | 37 + kubernetes/model/v1beta3_flow_schema.c | 196 + kubernetes/model/v1beta3_flow_schema.h | 48 + .../model/v1beta3_flow_schema_condition.c | 169 + .../model/v1beta3_flow_schema_condition.h | 45 + kubernetes/model/v1beta3_flow_schema_list.c | 197 + kubernetes/model/v1beta3_flow_schema_list.h | 45 + kubernetes/model/v1beta3_flow_schema_spec.c | 202 + kubernetes/model/v1beta3_flow_schema_spec.h | 46 + kubernetes/model/v1beta3_flow_schema_status.c | 112 + kubernetes/model/v1beta3_flow_schema_status.h | 38 + kubernetes/model/v1beta3_group_subject.c | 77 + kubernetes/model/v1beta3_group_subject.h | 37 + kubernetes/model/v1beta3_limit_response.c | 110 + kubernetes/model/v1beta3_limit_response.h | 40 + ...ta3_limited_priority_level_configuration.c | 142 + ...ta3_limited_priority_level_configuration.h | 44 + ...e.c => v1beta3_non_resource_policy_rule.c} | 70 +- .../model/v1beta3_non_resource_policy_rule.h | 39 + ...c => v1beta3_policy_rules_with_subjects.c} | 122 +- .../v1beta3_policy_rules_with_subjects.h | 44 + .../v1beta3_priority_level_configuration.c | 196 + .../v1beta3_priority_level_configuration.h | 48 + ...3_priority_level_configuration_condition.c | 169 + ...3_priority_level_configuration_condition.h | 45 + ...1beta3_priority_level_configuration_list.c | 197 + ...1beta3_priority_level_configuration_list.h | 45 + ...3_priority_level_configuration_reference.c | 77 + ...3_priority_level_configuration_reference.h | 37 + ...1beta3_priority_level_configuration_spec.c | 110 + ...1beta3_priority_level_configuration_spec.h | 40 + ...eta3_priority_level_configuration_status.c | 112 + ...eta3_priority_level_configuration_status.h | 38 + .../model/v1beta3_queuing_configuration.c | 109 + .../model/v1beta3_queuing_configuration.h | 41 + ..._rule.c => v1beta3_resource_policy_rule.c} | 126 +- ..._rule.h => v1beta3_resource_policy_rule.h} | 22 +- .../model/v1beta3_service_account_subject.c | 105 + .../model/v1beta3_service_account_subject.h | 39 + kubernetes/model/v1beta3_subject.c | 176 + kubernetes/model/v1beta3_subject.h | 46 + kubernetes/model/v1beta3_user_subject.c | 77 + kubernetes/model/v1beta3_user_subject.h | 37 + ...v2beta2_container_resource_metric_source.c | 142 - ...v2beta2_container_resource_metric_source.h | 42 - ...v2beta2_container_resource_metric_status.c | 142 - ...v2beta2_container_resource_metric_status.h | 42 - .../v2beta2_cross_version_object_reference.c | 129 - .../v2beta2_cross_version_object_reference.h | 41 - .../model/v2beta2_external_metric_source.c | 123 - .../model/v2beta2_external_metric_source.h | 41 - .../model/v2beta2_external_metric_status.c | 123 - .../model/v2beta2_external_metric_status.h | 41 - .../model/v2beta2_horizontal_pod_autoscaler.c | 196 - .../model/v2beta2_horizontal_pod_autoscaler.h | 48 - ...beta2_horizontal_pod_autoscaler_behavior.c | 115 - ...beta2_horizontal_pod_autoscaler_behavior.h | 40 - ...eta2_horizontal_pod_autoscaler_condition.c | 177 - ...eta2_horizontal_pod_autoscaler_condition.h | 45 - .../v2beta2_horizontal_pod_autoscaler_list.c | 197 - .../v2beta2_horizontal_pod_autoscaler_list.h | 45 - .../v2beta2_horizontal_pod_autoscaler_spec.c | 226 - .../v2beta2_horizontal_pod_autoscaler_spec.h | 48 - ...v2beta2_horizontal_pod_autoscaler_status.c | 267 - ...v2beta2_horizontal_pod_autoscaler_status.h | 49 - kubernetes/model/v2beta2_hpa_scaling_policy.c | 125 - kubernetes/model/v2beta2_hpa_scaling_policy.h | 41 - kubernetes/model/v2beta2_hpa_scaling_rules.c | 156 - kubernetes/model/v2beta2_hpa_scaling_rules.h | 42 - kubernetes/model/v2beta2_metric_identifier.c | 110 - kubernetes/model/v2beta2_metric_identifier.h | 40 - kubernetes/model/v2beta2_metric_spec.c | 242 - kubernetes/model/v2beta2_metric_spec.h | 52 - kubernetes/model/v2beta2_metric_status.c | 242 - kubernetes/model/v2beta2_metric_status.h | 52 - kubernetes/model/v2beta2_metric_target.c | 145 - kubernetes/model/v2beta2_metric_target.h | 43 - .../model/v2beta2_metric_value_status.c | 117 - .../model/v2beta2_metric_value_status.h | 41 - .../model/v2beta2_object_metric_source.c | 160 - .../model/v2beta2_object_metric_source.h | 44 - .../model/v2beta2_object_metric_status.c | 160 - .../model/v2beta2_object_metric_status.h | 44 - kubernetes/model/v2beta2_pods_metric_source.c | 123 - kubernetes/model/v2beta2_pods_metric_source.h | 41 - kubernetes/model/v2beta2_pods_metric_status.c | 123 - kubernetes/model/v2beta2_pods_metric_status.h | 41 - .../model/v2beta2_resource_metric_source.c | 114 - .../model/v2beta2_resource_metric_source.h | 40 - .../model/v2beta2_resource_metric_status.c | 114 - .../model/v2beta2_resource_metric_status.h | 40 - kubernetes/swagger.json | 31277 +++++++++------- kubernetes/swagger.json.unprocessed | 22586 ++++++----- kubernetes/unit-test/test_v1_claim_source.c | 60 + .../test_v1_ingress_load_balancer_ingress.c | 62 + .../test_v1_ingress_load_balancer_status.c | 58 + .../unit-test/test_v1_ingress_port_status.c | 62 + kubernetes/unit-test/test_v1_ingress_status.c | 4 +- .../test_v1_persistent_volume_claim_spec.c | 4 +- .../test_v1_pod_disruption_budget_spec.c | 6 +- .../unit-test/test_v1_pod_resource_claim.c | 62 + .../unit-test/test_v1_pod_scheduling_gate.c | 58 + kubernetes/unit-test/test_v1_pod_spec.c | 4 + kubernetes/unit-test/test_v1_resource_claim.c | 58 + .../unit-test/test_v1_resource_requirements.c | 2 + .../unit-test/test_v1_stateful_set_ordinals.c | 58 + .../unit-test/test_v1_stateful_set_spec.c | 4 + .../test_v1_typed_object_reference.c | 64 + .../test_v1alpha1_allocation_result.c | 64 + .../unit-test/test_v1alpha1_match_resources.c | 70 + ...test_v1alpha1_named_rule_with_operations.c | 68 + .../unit-test/test_v1alpha1_param_kind.c | 60 + .../unit-test/test_v1alpha1_param_ref.c | 60 + .../unit-test/test_v1alpha1_pod_scheduling.c | 72 + .../test_v1alpha1_pod_scheduling_list.c | 66 + .../test_v1alpha1_pod_scheduling_spec.c | 60 + .../test_v1alpha1_pod_scheduling_status.c | 58 + .../unit-test/test_v1alpha1_resource_claim.c | 72 + ...alpha1_resource_claim_consumer_reference.c | 64 + .../test_v1alpha1_resource_claim_list.c | 66 + ...pha1_resource_claim_parameters_reference.c | 62 + ...1alpha1_resource_claim_scheduling_status.c | 60 + .../test_v1alpha1_resource_claim_spec.c | 64 + .../test_v1alpha1_resource_claim_status.c | 66 + .../test_v1alpha1_resource_claim_template.c | 68 + ...st_v1alpha1_resource_claim_template_list.c | 66 + ...st_v1alpha1_resource_claim_template_spec.c | 64 + .../unit-test/test_v1alpha1_resource_class.c | 74 + .../test_v1alpha1_resource_class_list.c | 66 + ...pha1_resource_class_parameters_reference.c | 64 + .../test_v1alpha1_self_subject_review.c | 68 + ...test_v1alpha1_self_subject_review_status.c | 60 + ...est_v1alpha1_validating_admission_policy.c | 68 + ...pha1_validating_admission_policy_binding.c | 68 + ...validating_admission_policy_binding_list.c | 66 + ...validating_admission_policy_binding_spec.c | 66 + ...1alpha1_validating_admission_policy_list.c | 66 + ...1alpha1_validating_admission_policy_spec.c | 68 + .../unit-test/test_v1alpha1_validation.c | 62 + .../test_v1beta1_flow_distinguisher_method.c | 58 - .../unit-test/test_v1beta1_flow_schema.c | 72 - .../test_v1beta1_flow_schema_condition.c | 66 - .../unit-test/test_v1beta1_flow_schema_list.c | 66 - .../unit-test/test_v1beta1_flow_schema_spec.c | 68 - .../test_v1beta1_flow_schema_status.c | 58 - .../unit-test/test_v1beta1_group_subject.c | 58 - .../unit-test/test_v1beta1_limit_response.c | 62 - ...ta1_limited_priority_level_configuration.c | 62 - .../test_v1beta1_non_resource_policy_rule.c | 60 - .../test_v1beta1_policy_rules_with_subjects.c | 62 - ...est_v1beta1_priority_level_configuration.c | 72 - ...1_priority_level_configuration_condition.c | 66 - ...1beta1_priority_level_configuration_list.c | 66 - ...1_priority_level_configuration_reference.c | 58 - ...1beta1_priority_level_configuration_spec.c | 62 - ...eta1_priority_level_configuration_status.c | 58 - .../test_v1beta1_queuing_configuration.c | 62 - .../test_v1beta1_resource_policy_rule.c | 66 - .../test_v1beta1_service_account_subject.c | 60 - kubernetes/unit-test/test_v1beta1_subject.c | 70 - .../unit-test/test_v1beta1_user_subject.c | 58 - ...ta2_limited_priority_level_configuration.c | 4 + .../test_v1beta3_flow_distinguisher_method.c | 58 + .../unit-test/test_v1beta3_flow_schema.c | 72 + .../test_v1beta3_flow_schema_condition.c | 66 + .../unit-test/test_v1beta3_flow_schema_list.c | 66 + .../unit-test/test_v1beta3_flow_schema_spec.c | 68 + .../test_v1beta3_flow_schema_status.c | 58 + .../unit-test/test_v1beta3_group_subject.c | 58 + .../unit-test/test_v1beta3_limit_response.c | 62 + ...ta3_limited_priority_level_configuration.c | 66 + .../test_v1beta3_non_resource_policy_rule.c | 60 + .../test_v1beta3_policy_rules_with_subjects.c | 62 + ...est_v1beta3_priority_level_configuration.c | 72 + ...3_priority_level_configuration_condition.c | 66 + ...1beta3_priority_level_configuration_list.c | 66 + ...3_priority_level_configuration_reference.c | 58 + ...1beta3_priority_level_configuration_spec.c | 62 + ...eta3_priority_level_configuration_status.c | 58 + .../test_v1beta3_queuing_configuration.c | 62 + .../test_v1beta3_resource_policy_rule.c | 66 + .../test_v1beta3_service_account_subject.c | 60 + kubernetes/unit-test/test_v1beta3_subject.c | 70 + .../unit-test/test_v1beta3_user_subject.c | 58 + ...v2beta2_container_resource_metric_source.c | 64 - ...v2beta2_container_resource_metric_status.c | 64 - ...t_v2beta2_cross_version_object_reference.c | 62 - .../test_v2beta2_external_metric_source.c | 64 - .../test_v2beta2_external_metric_status.c | 64 - .../test_v2beta2_horizontal_pod_autoscaler.c | 72 - ...beta2_horizontal_pod_autoscaler_behavior.c | 64 - ...eta2_horizontal_pod_autoscaler_condition.c | 66 - ...t_v2beta2_horizontal_pod_autoscaler_list.c | 66 - ...t_v2beta2_horizontal_pod_autoscaler_spec.c | 70 - ...v2beta2_horizontal_pod_autoscaler_status.c | 68 - .../test_v2beta2_hpa_scaling_policy.c | 62 - .../test_v2beta2_hpa_scaling_rules.c | 62 - .../test_v2beta2_metric_identifier.c | 62 - .../unit-test/test_v2beta2_metric_spec.c | 78 - .../unit-test/test_v2beta2_metric_status.c | 78 - .../unit-test/test_v2beta2_metric_target.c | 64 - .../test_v2beta2_metric_value_status.c | 62 - .../test_v2beta2_object_metric_source.c | 68 - .../test_v2beta2_object_metric_status.c | 68 - .../test_v2beta2_pods_metric_source.c | 64 - .../test_v2beta2_pods_metric_status.c | 64 - .../test_v2beta2_resource_metric_source.c | 62 - .../test_v2beta2_resource_metric_status.c | 62 - settings | 4 +- 451 files changed, 63183 insertions(+), 34019 deletions(-) rename kubernetes/api/{AutoscalingV2beta2API.c => AdmissionregistrationV1alpha1API.c} (67%) create mode 100644 kubernetes/api/AdmissionregistrationV1alpha1API.h create mode 100644 kubernetes/api/AuthenticationV1alpha1API.c create mode 100644 kubernetes/api/AuthenticationV1alpha1API.h delete mode 100644 kubernetes/api/AutoscalingV2beta2API.h rename kubernetes/api/{FlowcontrolApiserverV1beta1API.c => FlowcontrolApiserverV1beta3API.c} (93%) rename kubernetes/api/{FlowcontrolApiserverV1beta1API.h => FlowcontrolApiserverV1beta3API.h} (62%) create mode 100644 kubernetes/api/ResourceAPI.c create mode 100644 kubernetes/api/ResourceAPI.h create mode 100644 kubernetes/api/ResourceV1alpha1API.c create mode 100644 kubernetes/api/ResourceV1alpha1API.h create mode 100644 kubernetes/docs/AdmissionregistrationV1alpha1API.md create mode 100644 kubernetes/docs/AuthenticationV1alpha1API.md create mode 100644 kubernetes/docs/FlowcontrolApiserverV1beta3API.md create mode 100644 kubernetes/docs/ResourceAPI.md create mode 100644 kubernetes/docs/ResourceV1alpha1API.md create mode 100644 kubernetes/docs/v1_claim_source.md create mode 100644 kubernetes/docs/v1_ingress_load_balancer_ingress.md create mode 100644 kubernetes/docs/v1_ingress_load_balancer_status.md create mode 100644 kubernetes/docs/v1_ingress_port_status.md create mode 100644 kubernetes/docs/v1_pod_resource_claim.md create mode 100644 kubernetes/docs/v1_pod_scheduling_gate.md create mode 100644 kubernetes/docs/v1_resource_claim.md create mode 100644 kubernetes/docs/v1_stateful_set_ordinals.md create mode 100644 kubernetes/docs/v1_typed_object_reference.md create mode 100644 kubernetes/docs/v1alpha1_allocation_result.md create mode 100644 kubernetes/docs/v1alpha1_match_resources.md create mode 100644 kubernetes/docs/v1alpha1_named_rule_with_operations.md create mode 100644 kubernetes/docs/v1alpha1_param_kind.md create mode 100644 kubernetes/docs/v1alpha1_param_ref.md create mode 100644 kubernetes/docs/v1alpha1_pod_scheduling.md create mode 100644 kubernetes/docs/v1alpha1_pod_scheduling_list.md create mode 100644 kubernetes/docs/v1alpha1_pod_scheduling_spec.md create mode 100644 kubernetes/docs/v1alpha1_pod_scheduling_status.md create mode 100644 kubernetes/docs/v1alpha1_resource_claim.md create mode 100644 kubernetes/docs/v1alpha1_resource_claim_consumer_reference.md create mode 100644 kubernetes/docs/v1alpha1_resource_claim_list.md create mode 100644 kubernetes/docs/v1alpha1_resource_claim_parameters_reference.md create mode 100644 kubernetes/docs/v1alpha1_resource_claim_scheduling_status.md create mode 100644 kubernetes/docs/v1alpha1_resource_claim_spec.md create mode 100644 kubernetes/docs/v1alpha1_resource_claim_status.md create mode 100644 kubernetes/docs/v1alpha1_resource_claim_template.md create mode 100644 kubernetes/docs/v1alpha1_resource_claim_template_list.md create mode 100644 kubernetes/docs/v1alpha1_resource_claim_template_spec.md create mode 100644 kubernetes/docs/v1alpha1_resource_class.md create mode 100644 kubernetes/docs/v1alpha1_resource_class_list.md create mode 100644 kubernetes/docs/v1alpha1_resource_class_parameters_reference.md create mode 100644 kubernetes/docs/v1alpha1_self_subject_review.md create mode 100644 kubernetes/docs/v1alpha1_self_subject_review_status.md create mode 100644 kubernetes/docs/v1alpha1_validating_admission_policy.md create mode 100644 kubernetes/docs/v1alpha1_validating_admission_policy_binding.md create mode 100644 kubernetes/docs/v1alpha1_validating_admission_policy_binding_list.md create mode 100644 kubernetes/docs/v1alpha1_validating_admission_policy_binding_spec.md create mode 100644 kubernetes/docs/v1alpha1_validating_admission_policy_list.md create mode 100644 kubernetes/docs/v1alpha1_validating_admission_policy_spec.md create mode 100644 kubernetes/docs/v1alpha1_validation.md create mode 100644 kubernetes/docs/v1beta3_flow_distinguisher_method.md create mode 100644 kubernetes/docs/v1beta3_flow_schema.md create mode 100644 kubernetes/docs/v1beta3_flow_schema_condition.md create mode 100644 kubernetes/docs/v1beta3_flow_schema_list.md create mode 100644 kubernetes/docs/v1beta3_flow_schema_spec.md create mode 100644 kubernetes/docs/v1beta3_flow_schema_status.md create mode 100644 kubernetes/docs/v1beta3_group_subject.md create mode 100644 kubernetes/docs/v1beta3_limit_response.md create mode 100644 kubernetes/docs/v1beta3_limited_priority_level_configuration.md create mode 100644 kubernetes/docs/v1beta3_non_resource_policy_rule.md create mode 100644 kubernetes/docs/v1beta3_policy_rules_with_subjects.md create mode 100644 kubernetes/docs/v1beta3_priority_level_configuration.md create mode 100644 kubernetes/docs/v1beta3_priority_level_configuration_condition.md create mode 100644 kubernetes/docs/v1beta3_priority_level_configuration_list.md create mode 100644 kubernetes/docs/v1beta3_priority_level_configuration_reference.md create mode 100644 kubernetes/docs/v1beta3_priority_level_configuration_spec.md create mode 100644 kubernetes/docs/v1beta3_priority_level_configuration_status.md create mode 100644 kubernetes/docs/v1beta3_queuing_configuration.md create mode 100644 kubernetes/docs/v1beta3_resource_policy_rule.md create mode 100644 kubernetes/docs/v1beta3_service_account_subject.md create mode 100644 kubernetes/docs/v1beta3_subject.md create mode 100644 kubernetes/docs/v1beta3_user_subject.md create mode 100644 kubernetes/model/v1_claim_source.c create mode 100644 kubernetes/model/v1_claim_source.h create mode 100644 kubernetes/model/v1_ingress_load_balancer_ingress.c create mode 100644 kubernetes/model/v1_ingress_load_balancer_ingress.h create mode 100644 kubernetes/model/v1_ingress_load_balancer_status.c create mode 100644 kubernetes/model/v1_ingress_load_balancer_status.h create mode 100644 kubernetes/model/v1_ingress_port_status.c create mode 100644 kubernetes/model/v1_ingress_port_status.h create mode 100644 kubernetes/model/v1_pod_resource_claim.c create mode 100644 kubernetes/model/v1_pod_resource_claim.h create mode 100644 kubernetes/model/v1_pod_scheduling_gate.c create mode 100644 kubernetes/model/v1_pod_scheduling_gate.h create mode 100644 kubernetes/model/v1_resource_claim.c create mode 100644 kubernetes/model/v1_resource_claim.h create mode 100644 kubernetes/model/v1_stateful_set_ordinals.c create mode 100644 kubernetes/model/v1_stateful_set_ordinals.h create mode 100644 kubernetes/model/v1_typed_object_reference.c create mode 100644 kubernetes/model/v1_typed_object_reference.h create mode 100644 kubernetes/model/v1alpha1_allocation_result.c create mode 100644 kubernetes/model/v1alpha1_allocation_result.h create mode 100644 kubernetes/model/v1alpha1_match_resources.c create mode 100644 kubernetes/model/v1alpha1_match_resources.h create mode 100644 kubernetes/model/v1alpha1_named_rule_with_operations.c create mode 100644 kubernetes/model/v1alpha1_named_rule_with_operations.h create mode 100644 kubernetes/model/v1alpha1_param_kind.c create mode 100644 kubernetes/model/v1alpha1_param_kind.h create mode 100644 kubernetes/model/v1alpha1_param_ref.c create mode 100644 kubernetes/model/v1alpha1_param_ref.h create mode 100644 kubernetes/model/v1alpha1_pod_scheduling.c create mode 100644 kubernetes/model/v1alpha1_pod_scheduling.h create mode 100644 kubernetes/model/v1alpha1_pod_scheduling_list.c create mode 100644 kubernetes/model/v1alpha1_pod_scheduling_list.h create mode 100644 kubernetes/model/v1alpha1_pod_scheduling_spec.c create mode 100644 kubernetes/model/v1alpha1_pod_scheduling_spec.h create mode 100644 kubernetes/model/v1alpha1_pod_scheduling_status.c create mode 100644 kubernetes/model/v1alpha1_pod_scheduling_status.h create mode 100644 kubernetes/model/v1alpha1_resource_claim.c create mode 100644 kubernetes/model/v1alpha1_resource_claim.h create mode 100644 kubernetes/model/v1alpha1_resource_claim_consumer_reference.c create mode 100644 kubernetes/model/v1alpha1_resource_claim_consumer_reference.h create mode 100644 kubernetes/model/v1alpha1_resource_claim_list.c create mode 100644 kubernetes/model/v1alpha1_resource_claim_list.h create mode 100644 kubernetes/model/v1alpha1_resource_claim_parameters_reference.c create mode 100644 kubernetes/model/v1alpha1_resource_claim_parameters_reference.h create mode 100644 kubernetes/model/v1alpha1_resource_claim_scheduling_status.c create mode 100644 kubernetes/model/v1alpha1_resource_claim_scheduling_status.h create mode 100644 kubernetes/model/v1alpha1_resource_claim_spec.c create mode 100644 kubernetes/model/v1alpha1_resource_claim_spec.h create mode 100644 kubernetes/model/v1alpha1_resource_claim_status.c create mode 100644 kubernetes/model/v1alpha1_resource_claim_status.h create mode 100644 kubernetes/model/v1alpha1_resource_claim_template.c create mode 100644 kubernetes/model/v1alpha1_resource_claim_template.h create mode 100644 kubernetes/model/v1alpha1_resource_claim_template_list.c create mode 100644 kubernetes/model/v1alpha1_resource_claim_template_list.h create mode 100644 kubernetes/model/v1alpha1_resource_claim_template_spec.c create mode 100644 kubernetes/model/v1alpha1_resource_claim_template_spec.h create mode 100644 kubernetes/model/v1alpha1_resource_class.c create mode 100644 kubernetes/model/v1alpha1_resource_class.h create mode 100644 kubernetes/model/v1alpha1_resource_class_list.c create mode 100644 kubernetes/model/v1alpha1_resource_class_list.h create mode 100644 kubernetes/model/v1alpha1_resource_class_parameters_reference.c create mode 100644 kubernetes/model/v1alpha1_resource_class_parameters_reference.h create mode 100644 kubernetes/model/v1alpha1_self_subject_review.c create mode 100644 kubernetes/model/v1alpha1_self_subject_review.h create mode 100644 kubernetes/model/v1alpha1_self_subject_review_status.c create mode 100644 kubernetes/model/v1alpha1_self_subject_review_status.h create mode 100644 kubernetes/model/v1alpha1_validating_admission_policy.c create mode 100644 kubernetes/model/v1alpha1_validating_admission_policy.h create mode 100644 kubernetes/model/v1alpha1_validating_admission_policy_binding.c create mode 100644 kubernetes/model/v1alpha1_validating_admission_policy_binding.h create mode 100644 kubernetes/model/v1alpha1_validating_admission_policy_binding_list.c create mode 100644 kubernetes/model/v1alpha1_validating_admission_policy_binding_list.h create mode 100644 kubernetes/model/v1alpha1_validating_admission_policy_binding_spec.c create mode 100644 kubernetes/model/v1alpha1_validating_admission_policy_binding_spec.h create mode 100644 kubernetes/model/v1alpha1_validating_admission_policy_list.c create mode 100644 kubernetes/model/v1alpha1_validating_admission_policy_list.h create mode 100644 kubernetes/model/v1alpha1_validating_admission_policy_spec.c create mode 100644 kubernetes/model/v1alpha1_validating_admission_policy_spec.h create mode 100644 kubernetes/model/v1alpha1_validation.c create mode 100644 kubernetes/model/v1alpha1_validation.h delete mode 100644 kubernetes/model/v1beta1_flow_distinguisher_method.c delete mode 100644 kubernetes/model/v1beta1_flow_distinguisher_method.h delete mode 100644 kubernetes/model/v1beta1_flow_schema.c delete mode 100644 kubernetes/model/v1beta1_flow_schema.h delete mode 100644 kubernetes/model/v1beta1_flow_schema_condition.c delete mode 100644 kubernetes/model/v1beta1_flow_schema_condition.h delete mode 100644 kubernetes/model/v1beta1_flow_schema_list.c delete mode 100644 kubernetes/model/v1beta1_flow_schema_list.h delete mode 100644 kubernetes/model/v1beta1_flow_schema_spec.c delete mode 100644 kubernetes/model/v1beta1_flow_schema_spec.h delete mode 100644 kubernetes/model/v1beta1_flow_schema_status.c delete mode 100644 kubernetes/model/v1beta1_flow_schema_status.h delete mode 100644 kubernetes/model/v1beta1_group_subject.c delete mode 100644 kubernetes/model/v1beta1_group_subject.h delete mode 100644 kubernetes/model/v1beta1_limit_response.c delete mode 100644 kubernetes/model/v1beta1_limit_response.h delete mode 100644 kubernetes/model/v1beta1_limited_priority_level_configuration.c delete mode 100644 kubernetes/model/v1beta1_limited_priority_level_configuration.h delete mode 100644 kubernetes/model/v1beta1_non_resource_policy_rule.h delete mode 100644 kubernetes/model/v1beta1_policy_rules_with_subjects.h delete mode 100644 kubernetes/model/v1beta1_priority_level_configuration.c delete mode 100644 kubernetes/model/v1beta1_priority_level_configuration.h delete mode 100644 kubernetes/model/v1beta1_priority_level_configuration_condition.c delete mode 100644 kubernetes/model/v1beta1_priority_level_configuration_condition.h delete mode 100644 kubernetes/model/v1beta1_priority_level_configuration_list.c delete mode 100644 kubernetes/model/v1beta1_priority_level_configuration_list.h delete mode 100644 kubernetes/model/v1beta1_priority_level_configuration_reference.c delete mode 100644 kubernetes/model/v1beta1_priority_level_configuration_reference.h delete mode 100644 kubernetes/model/v1beta1_priority_level_configuration_spec.c delete mode 100644 kubernetes/model/v1beta1_priority_level_configuration_spec.h delete mode 100644 kubernetes/model/v1beta1_priority_level_configuration_status.c delete mode 100644 kubernetes/model/v1beta1_priority_level_configuration_status.h delete mode 100644 kubernetes/model/v1beta1_queuing_configuration.c delete mode 100644 kubernetes/model/v1beta1_queuing_configuration.h delete mode 100644 kubernetes/model/v1beta1_service_account_subject.c delete mode 100644 kubernetes/model/v1beta1_service_account_subject.h delete mode 100644 kubernetes/model/v1beta1_subject.c delete mode 100644 kubernetes/model/v1beta1_subject.h delete mode 100644 kubernetes/model/v1beta1_user_subject.c delete mode 100644 kubernetes/model/v1beta1_user_subject.h create mode 100644 kubernetes/model/v1beta3_flow_distinguisher_method.c create mode 100644 kubernetes/model/v1beta3_flow_distinguisher_method.h create mode 100644 kubernetes/model/v1beta3_flow_schema.c create mode 100644 kubernetes/model/v1beta3_flow_schema.h create mode 100644 kubernetes/model/v1beta3_flow_schema_condition.c create mode 100644 kubernetes/model/v1beta3_flow_schema_condition.h create mode 100644 kubernetes/model/v1beta3_flow_schema_list.c create mode 100644 kubernetes/model/v1beta3_flow_schema_list.h create mode 100644 kubernetes/model/v1beta3_flow_schema_spec.c create mode 100644 kubernetes/model/v1beta3_flow_schema_spec.h create mode 100644 kubernetes/model/v1beta3_flow_schema_status.c create mode 100644 kubernetes/model/v1beta3_flow_schema_status.h create mode 100644 kubernetes/model/v1beta3_group_subject.c create mode 100644 kubernetes/model/v1beta3_group_subject.h create mode 100644 kubernetes/model/v1beta3_limit_response.c create mode 100644 kubernetes/model/v1beta3_limit_response.h create mode 100644 kubernetes/model/v1beta3_limited_priority_level_configuration.c create mode 100644 kubernetes/model/v1beta3_limited_priority_level_configuration.h rename kubernetes/model/{v1beta1_non_resource_policy_rule.c => v1beta3_non_resource_policy_rule.c} (57%) create mode 100644 kubernetes/model/v1beta3_non_resource_policy_rule.h rename kubernetes/model/{v1beta1_policy_rules_with_subjects.c => v1beta3_policy_rules_with_subjects.c} (52%) create mode 100644 kubernetes/model/v1beta3_policy_rules_with_subjects.h create mode 100644 kubernetes/model/v1beta3_priority_level_configuration.c create mode 100644 kubernetes/model/v1beta3_priority_level_configuration.h create mode 100644 kubernetes/model/v1beta3_priority_level_configuration_condition.c create mode 100644 kubernetes/model/v1beta3_priority_level_configuration_condition.h create mode 100644 kubernetes/model/v1beta3_priority_level_configuration_list.c create mode 100644 kubernetes/model/v1beta3_priority_level_configuration_list.h create mode 100644 kubernetes/model/v1beta3_priority_level_configuration_reference.c create mode 100644 kubernetes/model/v1beta3_priority_level_configuration_reference.h create mode 100644 kubernetes/model/v1beta3_priority_level_configuration_spec.c create mode 100644 kubernetes/model/v1beta3_priority_level_configuration_spec.h create mode 100644 kubernetes/model/v1beta3_priority_level_configuration_status.c create mode 100644 kubernetes/model/v1beta3_priority_level_configuration_status.h create mode 100644 kubernetes/model/v1beta3_queuing_configuration.c create mode 100644 kubernetes/model/v1beta3_queuing_configuration.h rename kubernetes/model/{v1beta1_resource_policy_rule.c => v1beta3_resource_policy_rule.c} (59%) rename kubernetes/model/{v1beta1_resource_policy_rule.h => v1beta3_resource_policy_rule.h} (61%) create mode 100644 kubernetes/model/v1beta3_service_account_subject.c create mode 100644 kubernetes/model/v1beta3_service_account_subject.h create mode 100644 kubernetes/model/v1beta3_subject.c create mode 100644 kubernetes/model/v1beta3_subject.h create mode 100644 kubernetes/model/v1beta3_user_subject.c create mode 100644 kubernetes/model/v1beta3_user_subject.h delete mode 100644 kubernetes/model/v2beta2_container_resource_metric_source.c delete mode 100644 kubernetes/model/v2beta2_container_resource_metric_source.h delete mode 100644 kubernetes/model/v2beta2_container_resource_metric_status.c delete mode 100644 kubernetes/model/v2beta2_container_resource_metric_status.h delete mode 100644 kubernetes/model/v2beta2_cross_version_object_reference.c delete mode 100644 kubernetes/model/v2beta2_cross_version_object_reference.h delete mode 100644 kubernetes/model/v2beta2_external_metric_source.c delete mode 100644 kubernetes/model/v2beta2_external_metric_source.h delete mode 100644 kubernetes/model/v2beta2_external_metric_status.c delete mode 100644 kubernetes/model/v2beta2_external_metric_status.h delete mode 100644 kubernetes/model/v2beta2_horizontal_pod_autoscaler.c delete mode 100644 kubernetes/model/v2beta2_horizontal_pod_autoscaler.h delete mode 100644 kubernetes/model/v2beta2_horizontal_pod_autoscaler_behavior.c delete mode 100644 kubernetes/model/v2beta2_horizontal_pod_autoscaler_behavior.h delete mode 100644 kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.c delete mode 100644 kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.h delete mode 100644 kubernetes/model/v2beta2_horizontal_pod_autoscaler_list.c delete mode 100644 kubernetes/model/v2beta2_horizontal_pod_autoscaler_list.h delete mode 100644 kubernetes/model/v2beta2_horizontal_pod_autoscaler_spec.c delete mode 100644 kubernetes/model/v2beta2_horizontal_pod_autoscaler_spec.h delete mode 100644 kubernetes/model/v2beta2_horizontal_pod_autoscaler_status.c delete mode 100644 kubernetes/model/v2beta2_horizontal_pod_autoscaler_status.h delete mode 100644 kubernetes/model/v2beta2_hpa_scaling_policy.c delete mode 100644 kubernetes/model/v2beta2_hpa_scaling_policy.h delete mode 100644 kubernetes/model/v2beta2_hpa_scaling_rules.c delete mode 100644 kubernetes/model/v2beta2_hpa_scaling_rules.h delete mode 100644 kubernetes/model/v2beta2_metric_identifier.c delete mode 100644 kubernetes/model/v2beta2_metric_identifier.h delete mode 100644 kubernetes/model/v2beta2_metric_spec.c delete mode 100644 kubernetes/model/v2beta2_metric_spec.h delete mode 100644 kubernetes/model/v2beta2_metric_status.c delete mode 100644 kubernetes/model/v2beta2_metric_status.h delete mode 100644 kubernetes/model/v2beta2_metric_target.c delete mode 100644 kubernetes/model/v2beta2_metric_target.h delete mode 100644 kubernetes/model/v2beta2_metric_value_status.c delete mode 100644 kubernetes/model/v2beta2_metric_value_status.h delete mode 100644 kubernetes/model/v2beta2_object_metric_source.c delete mode 100644 kubernetes/model/v2beta2_object_metric_source.h delete mode 100644 kubernetes/model/v2beta2_object_metric_status.c delete mode 100644 kubernetes/model/v2beta2_object_metric_status.h delete mode 100644 kubernetes/model/v2beta2_pods_metric_source.c delete mode 100644 kubernetes/model/v2beta2_pods_metric_source.h delete mode 100644 kubernetes/model/v2beta2_pods_metric_status.c delete mode 100644 kubernetes/model/v2beta2_pods_metric_status.h delete mode 100644 kubernetes/model/v2beta2_resource_metric_source.c delete mode 100644 kubernetes/model/v2beta2_resource_metric_source.h delete mode 100644 kubernetes/model/v2beta2_resource_metric_status.c delete mode 100644 kubernetes/model/v2beta2_resource_metric_status.h create mode 100644 kubernetes/unit-test/test_v1_claim_source.c create mode 100644 kubernetes/unit-test/test_v1_ingress_load_balancer_ingress.c create mode 100644 kubernetes/unit-test/test_v1_ingress_load_balancer_status.c create mode 100644 kubernetes/unit-test/test_v1_ingress_port_status.c create mode 100644 kubernetes/unit-test/test_v1_pod_resource_claim.c create mode 100644 kubernetes/unit-test/test_v1_pod_scheduling_gate.c create mode 100644 kubernetes/unit-test/test_v1_resource_claim.c create mode 100644 kubernetes/unit-test/test_v1_stateful_set_ordinals.c create mode 100644 kubernetes/unit-test/test_v1_typed_object_reference.c create mode 100644 kubernetes/unit-test/test_v1alpha1_allocation_result.c create mode 100644 kubernetes/unit-test/test_v1alpha1_match_resources.c create mode 100644 kubernetes/unit-test/test_v1alpha1_named_rule_with_operations.c create mode 100644 kubernetes/unit-test/test_v1alpha1_param_kind.c create mode 100644 kubernetes/unit-test/test_v1alpha1_param_ref.c create mode 100644 kubernetes/unit-test/test_v1alpha1_pod_scheduling.c create mode 100644 kubernetes/unit-test/test_v1alpha1_pod_scheduling_list.c create mode 100644 kubernetes/unit-test/test_v1alpha1_pod_scheduling_spec.c create mode 100644 kubernetes/unit-test/test_v1alpha1_pod_scheduling_status.c create mode 100644 kubernetes/unit-test/test_v1alpha1_resource_claim.c create mode 100644 kubernetes/unit-test/test_v1alpha1_resource_claim_consumer_reference.c create mode 100644 kubernetes/unit-test/test_v1alpha1_resource_claim_list.c create mode 100644 kubernetes/unit-test/test_v1alpha1_resource_claim_parameters_reference.c create mode 100644 kubernetes/unit-test/test_v1alpha1_resource_claim_scheduling_status.c create mode 100644 kubernetes/unit-test/test_v1alpha1_resource_claim_spec.c create mode 100644 kubernetes/unit-test/test_v1alpha1_resource_claim_status.c create mode 100644 kubernetes/unit-test/test_v1alpha1_resource_claim_template.c create mode 100644 kubernetes/unit-test/test_v1alpha1_resource_claim_template_list.c create mode 100644 kubernetes/unit-test/test_v1alpha1_resource_claim_template_spec.c create mode 100644 kubernetes/unit-test/test_v1alpha1_resource_class.c create mode 100644 kubernetes/unit-test/test_v1alpha1_resource_class_list.c create mode 100644 kubernetes/unit-test/test_v1alpha1_resource_class_parameters_reference.c create mode 100644 kubernetes/unit-test/test_v1alpha1_self_subject_review.c create mode 100644 kubernetes/unit-test/test_v1alpha1_self_subject_review_status.c create mode 100644 kubernetes/unit-test/test_v1alpha1_validating_admission_policy.c create mode 100644 kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding.c create mode 100644 kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding_list.c create mode 100644 kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding_spec.c create mode 100644 kubernetes/unit-test/test_v1alpha1_validating_admission_policy_list.c create mode 100644 kubernetes/unit-test/test_v1alpha1_validating_admission_policy_spec.c create mode 100644 kubernetes/unit-test/test_v1alpha1_validation.c delete mode 100644 kubernetes/unit-test/test_v1beta1_flow_distinguisher_method.c delete mode 100644 kubernetes/unit-test/test_v1beta1_flow_schema.c delete mode 100644 kubernetes/unit-test/test_v1beta1_flow_schema_condition.c delete mode 100644 kubernetes/unit-test/test_v1beta1_flow_schema_list.c delete mode 100644 kubernetes/unit-test/test_v1beta1_flow_schema_spec.c delete mode 100644 kubernetes/unit-test/test_v1beta1_flow_schema_status.c delete mode 100644 kubernetes/unit-test/test_v1beta1_group_subject.c delete mode 100644 kubernetes/unit-test/test_v1beta1_limit_response.c delete mode 100644 kubernetes/unit-test/test_v1beta1_limited_priority_level_configuration.c delete mode 100644 kubernetes/unit-test/test_v1beta1_non_resource_policy_rule.c delete mode 100644 kubernetes/unit-test/test_v1beta1_policy_rules_with_subjects.c delete mode 100644 kubernetes/unit-test/test_v1beta1_priority_level_configuration.c delete mode 100644 kubernetes/unit-test/test_v1beta1_priority_level_configuration_condition.c delete mode 100644 kubernetes/unit-test/test_v1beta1_priority_level_configuration_list.c delete mode 100644 kubernetes/unit-test/test_v1beta1_priority_level_configuration_reference.c delete mode 100644 kubernetes/unit-test/test_v1beta1_priority_level_configuration_spec.c delete mode 100644 kubernetes/unit-test/test_v1beta1_priority_level_configuration_status.c delete mode 100644 kubernetes/unit-test/test_v1beta1_queuing_configuration.c delete mode 100644 kubernetes/unit-test/test_v1beta1_resource_policy_rule.c delete mode 100644 kubernetes/unit-test/test_v1beta1_service_account_subject.c delete mode 100644 kubernetes/unit-test/test_v1beta1_subject.c delete mode 100644 kubernetes/unit-test/test_v1beta1_user_subject.c create mode 100644 kubernetes/unit-test/test_v1beta3_flow_distinguisher_method.c create mode 100644 kubernetes/unit-test/test_v1beta3_flow_schema.c create mode 100644 kubernetes/unit-test/test_v1beta3_flow_schema_condition.c create mode 100644 kubernetes/unit-test/test_v1beta3_flow_schema_list.c create mode 100644 kubernetes/unit-test/test_v1beta3_flow_schema_spec.c create mode 100644 kubernetes/unit-test/test_v1beta3_flow_schema_status.c create mode 100644 kubernetes/unit-test/test_v1beta3_group_subject.c create mode 100644 kubernetes/unit-test/test_v1beta3_limit_response.c create mode 100644 kubernetes/unit-test/test_v1beta3_limited_priority_level_configuration.c create mode 100644 kubernetes/unit-test/test_v1beta3_non_resource_policy_rule.c create mode 100644 kubernetes/unit-test/test_v1beta3_policy_rules_with_subjects.c create mode 100644 kubernetes/unit-test/test_v1beta3_priority_level_configuration.c create mode 100644 kubernetes/unit-test/test_v1beta3_priority_level_configuration_condition.c create mode 100644 kubernetes/unit-test/test_v1beta3_priority_level_configuration_list.c create mode 100644 kubernetes/unit-test/test_v1beta3_priority_level_configuration_reference.c create mode 100644 kubernetes/unit-test/test_v1beta3_priority_level_configuration_spec.c create mode 100644 kubernetes/unit-test/test_v1beta3_priority_level_configuration_status.c create mode 100644 kubernetes/unit-test/test_v1beta3_queuing_configuration.c create mode 100644 kubernetes/unit-test/test_v1beta3_resource_policy_rule.c create mode 100644 kubernetes/unit-test/test_v1beta3_service_account_subject.c create mode 100644 kubernetes/unit-test/test_v1beta3_subject.c create mode 100644 kubernetes/unit-test/test_v1beta3_user_subject.c delete mode 100644 kubernetes/unit-test/test_v2beta2_container_resource_metric_source.c delete mode 100644 kubernetes/unit-test/test_v2beta2_container_resource_metric_status.c delete mode 100644 kubernetes/unit-test/test_v2beta2_cross_version_object_reference.c delete mode 100644 kubernetes/unit-test/test_v2beta2_external_metric_source.c delete mode 100644 kubernetes/unit-test/test_v2beta2_external_metric_status.c delete mode 100644 kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler.c delete mode 100644 kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_behavior.c delete mode 100644 kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_condition.c delete mode 100644 kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_list.c delete mode 100644 kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_spec.c delete mode 100644 kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_status.c delete mode 100644 kubernetes/unit-test/test_v2beta2_hpa_scaling_policy.c delete mode 100644 kubernetes/unit-test/test_v2beta2_hpa_scaling_rules.c delete mode 100644 kubernetes/unit-test/test_v2beta2_metric_identifier.c delete mode 100644 kubernetes/unit-test/test_v2beta2_metric_spec.c delete mode 100644 kubernetes/unit-test/test_v2beta2_metric_status.c delete mode 100644 kubernetes/unit-test/test_v2beta2_metric_target.c delete mode 100644 kubernetes/unit-test/test_v2beta2_metric_value_status.c delete mode 100644 kubernetes/unit-test/test_v2beta2_object_metric_source.c delete mode 100644 kubernetes/unit-test/test_v2beta2_object_metric_status.c delete mode 100644 kubernetes/unit-test/test_v2beta2_pods_metric_source.c delete mode 100644 kubernetes/unit-test/test_v2beta2_pods_metric_status.c delete mode 100644 kubernetes/unit-test/test_v2beta2_resource_metric_source.c delete mode 100644 kubernetes/unit-test/test_v2beta2_resource_metric_status.c diff --git a/kubernetes/.openapi-generator/COMMIT b/kubernetes/.openapi-generator/COMMIT index 28af9c8f..c43c567c 100644 --- a/kubernetes/.openapi-generator/COMMIT +++ b/kubernetes/.openapi-generator/COMMIT @@ -1,2 +1,2 @@ Requested Commit: master -Actual Commit: ac7ebf67dd67e4a347fa142aa6a95ab12f0198de +Actual Commit: b527f3b8163fce828b7ce4aadbf9bf672cdf90f9 diff --git a/kubernetes/.openapi-generator/FILES b/kubernetes/.openapi-generator/FILES index 6735e1dd..526f5724 100644 --- a/kubernetes/.openapi-generator/FILES +++ b/kubernetes/.openapi-generator/FILES @@ -5,6 +5,8 @@ api/AdmissionregistrationAPI.c api/AdmissionregistrationAPI.h api/AdmissionregistrationV1API.c api/AdmissionregistrationV1API.h +api/AdmissionregistrationV1alpha1API.c +api/AdmissionregistrationV1alpha1API.h api/ApiextensionsAPI.c api/ApiextensionsAPI.h api/ApiextensionsV1API.c @@ -23,6 +25,8 @@ api/AuthenticationAPI.c api/AuthenticationAPI.h api/AuthenticationV1API.c api/AuthenticationV1API.h +api/AuthenticationV1alpha1API.c +api/AuthenticationV1alpha1API.h api/AuthorizationAPI.c api/AuthorizationAPI.h api/AuthorizationV1API.c @@ -33,8 +37,6 @@ api/AutoscalingV1API.c api/AutoscalingV1API.h api/AutoscalingV2API.c api/AutoscalingV2API.h -api/AutoscalingV2beta2API.c -api/AutoscalingV2beta2API.h api/BatchAPI.c api/BatchAPI.h api/BatchV1API.c @@ -63,10 +65,10 @@ api/EventsV1API.c api/EventsV1API.h api/FlowcontrolApiserverAPI.c api/FlowcontrolApiserverAPI.h -api/FlowcontrolApiserverV1beta1API.c -api/FlowcontrolApiserverV1beta1API.h api/FlowcontrolApiserverV1beta2API.c api/FlowcontrolApiserverV1beta2API.h +api/FlowcontrolApiserverV1beta3API.c +api/FlowcontrolApiserverV1beta3API.h api/InternalApiserverAPI.c api/InternalApiserverAPI.h api/InternalApiserverV1alpha1API.c @@ -93,6 +95,10 @@ api/RbacAuthorizationAPI.c api/RbacAuthorizationAPI.h api/RbacAuthorizationV1API.c api/RbacAuthorizationV1API.h +api/ResourceAPI.c +api/ResourceAPI.h +api/ResourceV1alpha1API.c +api/ResourceV1alpha1API.h api/SchedulingAPI.c api/SchedulingAPI.h api/SchedulingV1API.c @@ -109,6 +115,7 @@ api/WellKnownAPI.c api/WellKnownAPI.h docs/AdmissionregistrationAPI.md docs/AdmissionregistrationV1API.md +docs/AdmissionregistrationV1alpha1API.md docs/ApiextensionsAPI.md docs/ApiextensionsV1API.md docs/ApiregistrationAPI.md @@ -118,12 +125,12 @@ docs/AppsAPI.md docs/AppsV1API.md docs/AuthenticationAPI.md docs/AuthenticationV1API.md +docs/AuthenticationV1alpha1API.md docs/AuthorizationAPI.md docs/AuthorizationV1API.md docs/AutoscalingAPI.md docs/AutoscalingV1API.md docs/AutoscalingV2API.md -docs/AutoscalingV2beta2API.md docs/BatchAPI.md docs/BatchV1API.md docs/CertificatesAPI.md @@ -138,8 +145,8 @@ docs/DiscoveryV1API.md docs/EventsAPI.md docs/EventsV1API.md docs/FlowcontrolApiserverAPI.md -docs/FlowcontrolApiserverV1beta1API.md docs/FlowcontrolApiserverV1beta2API.md +docs/FlowcontrolApiserverV1beta3API.md docs/InternalApiserverAPI.md docs/InternalApiserverV1alpha1API.md docs/LogsAPI.md @@ -153,6 +160,8 @@ docs/PolicyAPI.md docs/PolicyV1API.md docs/RbacAuthorizationAPI.md docs/RbacAuthorizationV1API.md +docs/ResourceAPI.md +docs/ResourceV1alpha1API.md docs/SchedulingAPI.md docs/SchedulingV1API.md docs/StorageAPI.md @@ -204,6 +213,7 @@ docs/v1_certificate_signing_request_spec.md docs/v1_certificate_signing_request_status.md docs/v1_cinder_persistent_volume_source.md docs/v1_cinder_volume_source.md +docs/v1_claim_source.md docs/v1_client_ip_config.md docs/v1_cluster_role.md docs/v1_cluster_role_binding.md @@ -322,6 +332,9 @@ docs/v1_ingress_class_list.md docs/v1_ingress_class_parameters_reference.md docs/v1_ingress_class_spec.md docs/v1_ingress_list.md +docs/v1_ingress_load_balancer_ingress.md +docs/v1_ingress_load_balancer_status.md +docs/v1_ingress_port_status.md docs/v1_ingress_rule.md docs/v1_ingress_service_backend.md docs/v1_ingress_spec.md @@ -425,6 +438,8 @@ docs/v1_pod_ip.md docs/v1_pod_list.md docs/v1_pod_os.md docs/v1_pod_readiness_gate.md +docs/v1_pod_resource_claim.md +docs/v1_pod_scheduling_gate.md docs/v1_pod_security_context.md docs/v1_pod_spec.md docs/v1_pod_status.md @@ -454,6 +469,7 @@ docs/v1_replication_controller_list.md docs/v1_replication_controller_spec.md docs/v1_replication_controller_status.md docs/v1_resource_attributes.md +docs/v1_resource_claim.md docs/v1_resource_field_selector.md docs/v1_resource_quota.md docs/v1_resource_quota_list.md @@ -508,6 +524,7 @@ docs/v1_session_affinity_config.md docs/v1_stateful_set.md docs/v1_stateful_set_condition.md docs/v1_stateful_set_list.md +docs/v1_stateful_set_ordinals.md docs/v1_stateful_set_persistent_volume_claim_retention_policy.md docs/v1_stateful_set_spec.md docs/v1_stateful_set_status.md @@ -537,6 +554,7 @@ docs/v1_topology_selector_label_requirement.md docs/v1_topology_selector_term.md docs/v1_topology_spread_constraint.md docs/v1_typed_local_object_reference.md +docs/v1_typed_object_reference.md docs/v1_uncounted_terminated_pods.md docs/v1_user_info.md docs/v1_validating_webhook.md @@ -560,38 +578,47 @@ docs/v1_watch_event.md docs/v1_webhook_conversion.md docs/v1_weighted_pod_affinity_term.md docs/v1_windows_security_context_options.md +docs/v1alpha1_allocation_result.md docs/v1alpha1_cluster_cidr.md docs/v1alpha1_cluster_cidr_list.md docs/v1alpha1_cluster_cidr_spec.md +docs/v1alpha1_match_resources.md +docs/v1alpha1_named_rule_with_operations.md +docs/v1alpha1_param_kind.md +docs/v1alpha1_param_ref.md +docs/v1alpha1_pod_scheduling.md +docs/v1alpha1_pod_scheduling_list.md +docs/v1alpha1_pod_scheduling_spec.md +docs/v1alpha1_pod_scheduling_status.md +docs/v1alpha1_resource_claim.md +docs/v1alpha1_resource_claim_consumer_reference.md +docs/v1alpha1_resource_claim_list.md +docs/v1alpha1_resource_claim_parameters_reference.md +docs/v1alpha1_resource_claim_scheduling_status.md +docs/v1alpha1_resource_claim_spec.md +docs/v1alpha1_resource_claim_status.md +docs/v1alpha1_resource_claim_template.md +docs/v1alpha1_resource_claim_template_list.md +docs/v1alpha1_resource_claim_template_spec.md +docs/v1alpha1_resource_class.md +docs/v1alpha1_resource_class_list.md +docs/v1alpha1_resource_class_parameters_reference.md +docs/v1alpha1_self_subject_review.md +docs/v1alpha1_self_subject_review_status.md docs/v1alpha1_server_storage_version.md docs/v1alpha1_storage_version.md docs/v1alpha1_storage_version_condition.md docs/v1alpha1_storage_version_list.md docs/v1alpha1_storage_version_status.md +docs/v1alpha1_validating_admission_policy.md +docs/v1alpha1_validating_admission_policy_binding.md +docs/v1alpha1_validating_admission_policy_binding_list.md +docs/v1alpha1_validating_admission_policy_binding_spec.md +docs/v1alpha1_validating_admission_policy_list.md +docs/v1alpha1_validating_admission_policy_spec.md +docs/v1alpha1_validation.md docs/v1beta1_csi_storage_capacity.md docs/v1beta1_csi_storage_capacity_list.md -docs/v1beta1_flow_distinguisher_method.md -docs/v1beta1_flow_schema.md -docs/v1beta1_flow_schema_condition.md -docs/v1beta1_flow_schema_list.md -docs/v1beta1_flow_schema_spec.md -docs/v1beta1_flow_schema_status.md -docs/v1beta1_group_subject.md -docs/v1beta1_limit_response.md -docs/v1beta1_limited_priority_level_configuration.md -docs/v1beta1_non_resource_policy_rule.md -docs/v1beta1_policy_rules_with_subjects.md -docs/v1beta1_priority_level_configuration.md -docs/v1beta1_priority_level_configuration_condition.md -docs/v1beta1_priority_level_configuration_list.md -docs/v1beta1_priority_level_configuration_reference.md -docs/v1beta1_priority_level_configuration_spec.md -docs/v1beta1_priority_level_configuration_status.md -docs/v1beta1_queuing_configuration.md -docs/v1beta1_resource_policy_rule.md -docs/v1beta1_service_account_subject.md -docs/v1beta1_subject.md -docs/v1beta1_user_subject.md docs/v1beta2_flow_distinguisher_method.md docs/v1beta2_flow_schema.md docs/v1beta2_flow_schema_condition.md @@ -614,6 +641,28 @@ docs/v1beta2_resource_policy_rule.md docs/v1beta2_service_account_subject.md docs/v1beta2_subject.md docs/v1beta2_user_subject.md +docs/v1beta3_flow_distinguisher_method.md +docs/v1beta3_flow_schema.md +docs/v1beta3_flow_schema_condition.md +docs/v1beta3_flow_schema_list.md +docs/v1beta3_flow_schema_spec.md +docs/v1beta3_flow_schema_status.md +docs/v1beta3_group_subject.md +docs/v1beta3_limit_response.md +docs/v1beta3_limited_priority_level_configuration.md +docs/v1beta3_non_resource_policy_rule.md +docs/v1beta3_policy_rules_with_subjects.md +docs/v1beta3_priority_level_configuration.md +docs/v1beta3_priority_level_configuration_condition.md +docs/v1beta3_priority_level_configuration_list.md +docs/v1beta3_priority_level_configuration_reference.md +docs/v1beta3_priority_level_configuration_spec.md +docs/v1beta3_priority_level_configuration_status.md +docs/v1beta3_queuing_configuration.md +docs/v1beta3_resource_policy_rule.md +docs/v1beta3_service_account_subject.md +docs/v1beta3_subject.md +docs/v1beta3_user_subject.md docs/v2_container_resource_metric_source.md docs/v2_container_resource_metric_status.md docs/v2_cross_version_object_reference.md @@ -638,30 +687,6 @@ docs/v2_pods_metric_source.md docs/v2_pods_metric_status.md docs/v2_resource_metric_source.md docs/v2_resource_metric_status.md -docs/v2beta2_container_resource_metric_source.md -docs/v2beta2_container_resource_metric_status.md -docs/v2beta2_cross_version_object_reference.md -docs/v2beta2_external_metric_source.md -docs/v2beta2_external_metric_status.md -docs/v2beta2_horizontal_pod_autoscaler.md -docs/v2beta2_horizontal_pod_autoscaler_behavior.md -docs/v2beta2_horizontal_pod_autoscaler_condition.md -docs/v2beta2_horizontal_pod_autoscaler_list.md -docs/v2beta2_horizontal_pod_autoscaler_spec.md -docs/v2beta2_horizontal_pod_autoscaler_status.md -docs/v2beta2_hpa_scaling_policy.md -docs/v2beta2_hpa_scaling_rules.md -docs/v2beta2_metric_identifier.md -docs/v2beta2_metric_spec.md -docs/v2beta2_metric_status.md -docs/v2beta2_metric_target.md -docs/v2beta2_metric_value_status.md -docs/v2beta2_object_metric_source.md -docs/v2beta2_object_metric_status.md -docs/v2beta2_pods_metric_source.md -docs/v2beta2_pods_metric_status.md -docs/v2beta2_resource_metric_source.md -docs/v2beta2_resource_metric_status.md docs/version_info.md external/cJSON.c external/cJSON.h @@ -761,6 +786,8 @@ model/v1_cinder_persistent_volume_source.c model/v1_cinder_persistent_volume_source.h model/v1_cinder_volume_source.c model/v1_cinder_volume_source.h +model/v1_claim_source.c +model/v1_claim_source.h model/v1_client_ip_config.c model/v1_client_ip_config.h model/v1_cluster_role.c @@ -997,6 +1024,12 @@ model/v1_ingress_class_spec.c model/v1_ingress_class_spec.h model/v1_ingress_list.c model/v1_ingress_list.h +model/v1_ingress_load_balancer_ingress.c +model/v1_ingress_load_balancer_ingress.h +model/v1_ingress_load_balancer_status.c +model/v1_ingress_load_balancer_status.h +model/v1_ingress_port_status.c +model/v1_ingress_port_status.h model/v1_ingress_rule.c model/v1_ingress_rule.h model/v1_ingress_service_backend.c @@ -1203,6 +1236,10 @@ model/v1_pod_os.c model/v1_pod_os.h model/v1_pod_readiness_gate.c model/v1_pod_readiness_gate.h +model/v1_pod_resource_claim.c +model/v1_pod_resource_claim.h +model/v1_pod_scheduling_gate.c +model/v1_pod_scheduling_gate.h model/v1_pod_security_context.c model/v1_pod_security_context.h model/v1_pod_spec.c @@ -1261,6 +1298,8 @@ model/v1_replication_controller_status.c model/v1_replication_controller_status.h model/v1_resource_attributes.c model/v1_resource_attributes.h +model/v1_resource_claim.c +model/v1_resource_claim.h model/v1_resource_field_selector.c model/v1_resource_field_selector.h model/v1_resource_quota.c @@ -1369,6 +1408,8 @@ model/v1_stateful_set_condition.c model/v1_stateful_set_condition.h model/v1_stateful_set_list.c model/v1_stateful_set_list.h +model/v1_stateful_set_ordinals.c +model/v1_stateful_set_ordinals.h model/v1_stateful_set_persistent_volume_claim_retention_policy.c model/v1_stateful_set_persistent_volume_claim_retention_policy.h model/v1_stateful_set_spec.c @@ -1427,6 +1468,8 @@ model/v1_topology_spread_constraint.c model/v1_topology_spread_constraint.h model/v1_typed_local_object_reference.c model/v1_typed_local_object_reference.h +model/v1_typed_object_reference.c +model/v1_typed_object_reference.h model/v1_uncounted_terminated_pods.c model/v1_uncounted_terminated_pods.h model/v1_user_info.c @@ -1473,12 +1516,60 @@ model/v1_weighted_pod_affinity_term.c model/v1_weighted_pod_affinity_term.h model/v1_windows_security_context_options.c model/v1_windows_security_context_options.h +model/v1alpha1_allocation_result.c +model/v1alpha1_allocation_result.h model/v1alpha1_cluster_cidr.c model/v1alpha1_cluster_cidr.h model/v1alpha1_cluster_cidr_list.c model/v1alpha1_cluster_cidr_list.h model/v1alpha1_cluster_cidr_spec.c model/v1alpha1_cluster_cidr_spec.h +model/v1alpha1_match_resources.c +model/v1alpha1_match_resources.h +model/v1alpha1_named_rule_with_operations.c +model/v1alpha1_named_rule_with_operations.h +model/v1alpha1_param_kind.c +model/v1alpha1_param_kind.h +model/v1alpha1_param_ref.c +model/v1alpha1_param_ref.h +model/v1alpha1_pod_scheduling.c +model/v1alpha1_pod_scheduling.h +model/v1alpha1_pod_scheduling_list.c +model/v1alpha1_pod_scheduling_list.h +model/v1alpha1_pod_scheduling_spec.c +model/v1alpha1_pod_scheduling_spec.h +model/v1alpha1_pod_scheduling_status.c +model/v1alpha1_pod_scheduling_status.h +model/v1alpha1_resource_claim.c +model/v1alpha1_resource_claim.h +model/v1alpha1_resource_claim_consumer_reference.c +model/v1alpha1_resource_claim_consumer_reference.h +model/v1alpha1_resource_claim_list.c +model/v1alpha1_resource_claim_list.h +model/v1alpha1_resource_claim_parameters_reference.c +model/v1alpha1_resource_claim_parameters_reference.h +model/v1alpha1_resource_claim_scheduling_status.c +model/v1alpha1_resource_claim_scheduling_status.h +model/v1alpha1_resource_claim_spec.c +model/v1alpha1_resource_claim_spec.h +model/v1alpha1_resource_claim_status.c +model/v1alpha1_resource_claim_status.h +model/v1alpha1_resource_claim_template.c +model/v1alpha1_resource_claim_template.h +model/v1alpha1_resource_claim_template_list.c +model/v1alpha1_resource_claim_template_list.h +model/v1alpha1_resource_claim_template_spec.c +model/v1alpha1_resource_claim_template_spec.h +model/v1alpha1_resource_class.c +model/v1alpha1_resource_class.h +model/v1alpha1_resource_class_list.c +model/v1alpha1_resource_class_list.h +model/v1alpha1_resource_class_parameters_reference.c +model/v1alpha1_resource_class_parameters_reference.h +model/v1alpha1_self_subject_review.c +model/v1alpha1_self_subject_review.h +model/v1alpha1_self_subject_review_status.c +model/v1alpha1_self_subject_review_status.h model/v1alpha1_server_storage_version.c model/v1alpha1_server_storage_version.h model/v1alpha1_storage_version.c @@ -1489,54 +1580,24 @@ model/v1alpha1_storage_version_list.c model/v1alpha1_storage_version_list.h model/v1alpha1_storage_version_status.c model/v1alpha1_storage_version_status.h +model/v1alpha1_validating_admission_policy.c +model/v1alpha1_validating_admission_policy.h +model/v1alpha1_validating_admission_policy_binding.c +model/v1alpha1_validating_admission_policy_binding.h +model/v1alpha1_validating_admission_policy_binding_list.c +model/v1alpha1_validating_admission_policy_binding_list.h +model/v1alpha1_validating_admission_policy_binding_spec.c +model/v1alpha1_validating_admission_policy_binding_spec.h +model/v1alpha1_validating_admission_policy_list.c +model/v1alpha1_validating_admission_policy_list.h +model/v1alpha1_validating_admission_policy_spec.c +model/v1alpha1_validating_admission_policy_spec.h +model/v1alpha1_validation.c +model/v1alpha1_validation.h model/v1beta1_csi_storage_capacity.c model/v1beta1_csi_storage_capacity.h model/v1beta1_csi_storage_capacity_list.c model/v1beta1_csi_storage_capacity_list.h -model/v1beta1_flow_distinguisher_method.c -model/v1beta1_flow_distinguisher_method.h -model/v1beta1_flow_schema.c -model/v1beta1_flow_schema.h -model/v1beta1_flow_schema_condition.c -model/v1beta1_flow_schema_condition.h -model/v1beta1_flow_schema_list.c -model/v1beta1_flow_schema_list.h -model/v1beta1_flow_schema_spec.c -model/v1beta1_flow_schema_spec.h -model/v1beta1_flow_schema_status.c -model/v1beta1_flow_schema_status.h -model/v1beta1_group_subject.c -model/v1beta1_group_subject.h -model/v1beta1_limit_response.c -model/v1beta1_limit_response.h -model/v1beta1_limited_priority_level_configuration.c -model/v1beta1_limited_priority_level_configuration.h -model/v1beta1_non_resource_policy_rule.c -model/v1beta1_non_resource_policy_rule.h -model/v1beta1_policy_rules_with_subjects.c -model/v1beta1_policy_rules_with_subjects.h -model/v1beta1_priority_level_configuration.c -model/v1beta1_priority_level_configuration.h -model/v1beta1_priority_level_configuration_condition.c -model/v1beta1_priority_level_configuration_condition.h -model/v1beta1_priority_level_configuration_list.c -model/v1beta1_priority_level_configuration_list.h -model/v1beta1_priority_level_configuration_reference.c -model/v1beta1_priority_level_configuration_reference.h -model/v1beta1_priority_level_configuration_spec.c -model/v1beta1_priority_level_configuration_spec.h -model/v1beta1_priority_level_configuration_status.c -model/v1beta1_priority_level_configuration_status.h -model/v1beta1_queuing_configuration.c -model/v1beta1_queuing_configuration.h -model/v1beta1_resource_policy_rule.c -model/v1beta1_resource_policy_rule.h -model/v1beta1_service_account_subject.c -model/v1beta1_service_account_subject.h -model/v1beta1_subject.c -model/v1beta1_subject.h -model/v1beta1_user_subject.c -model/v1beta1_user_subject.h model/v1beta2_flow_distinguisher_method.c model/v1beta2_flow_distinguisher_method.h model/v1beta2_flow_schema.c @@ -1581,6 +1642,50 @@ model/v1beta2_subject.c model/v1beta2_subject.h model/v1beta2_user_subject.c model/v1beta2_user_subject.h +model/v1beta3_flow_distinguisher_method.c +model/v1beta3_flow_distinguisher_method.h +model/v1beta3_flow_schema.c +model/v1beta3_flow_schema.h +model/v1beta3_flow_schema_condition.c +model/v1beta3_flow_schema_condition.h +model/v1beta3_flow_schema_list.c +model/v1beta3_flow_schema_list.h +model/v1beta3_flow_schema_spec.c +model/v1beta3_flow_schema_spec.h +model/v1beta3_flow_schema_status.c +model/v1beta3_flow_schema_status.h +model/v1beta3_group_subject.c +model/v1beta3_group_subject.h +model/v1beta3_limit_response.c +model/v1beta3_limit_response.h +model/v1beta3_limited_priority_level_configuration.c +model/v1beta3_limited_priority_level_configuration.h +model/v1beta3_non_resource_policy_rule.c +model/v1beta3_non_resource_policy_rule.h +model/v1beta3_policy_rules_with_subjects.c +model/v1beta3_policy_rules_with_subjects.h +model/v1beta3_priority_level_configuration.c +model/v1beta3_priority_level_configuration.h +model/v1beta3_priority_level_configuration_condition.c +model/v1beta3_priority_level_configuration_condition.h +model/v1beta3_priority_level_configuration_list.c +model/v1beta3_priority_level_configuration_list.h +model/v1beta3_priority_level_configuration_reference.c +model/v1beta3_priority_level_configuration_reference.h +model/v1beta3_priority_level_configuration_spec.c +model/v1beta3_priority_level_configuration_spec.h +model/v1beta3_priority_level_configuration_status.c +model/v1beta3_priority_level_configuration_status.h +model/v1beta3_queuing_configuration.c +model/v1beta3_queuing_configuration.h +model/v1beta3_resource_policy_rule.c +model/v1beta3_resource_policy_rule.h +model/v1beta3_service_account_subject.c +model/v1beta3_service_account_subject.h +model/v1beta3_subject.c +model/v1beta3_subject.h +model/v1beta3_user_subject.c +model/v1beta3_user_subject.h model/v2_container_resource_metric_source.c model/v2_container_resource_metric_source.h model/v2_container_resource_metric_status.c @@ -1629,54 +1734,6 @@ model/v2_resource_metric_source.c model/v2_resource_metric_source.h model/v2_resource_metric_status.c model/v2_resource_metric_status.h -model/v2beta2_container_resource_metric_source.c -model/v2beta2_container_resource_metric_source.h -model/v2beta2_container_resource_metric_status.c -model/v2beta2_container_resource_metric_status.h -model/v2beta2_cross_version_object_reference.c -model/v2beta2_cross_version_object_reference.h -model/v2beta2_external_metric_source.c -model/v2beta2_external_metric_source.h -model/v2beta2_external_metric_status.c -model/v2beta2_external_metric_status.h -model/v2beta2_horizontal_pod_autoscaler.c -model/v2beta2_horizontal_pod_autoscaler.h -model/v2beta2_horizontal_pod_autoscaler_behavior.c -model/v2beta2_horizontal_pod_autoscaler_behavior.h -model/v2beta2_horizontal_pod_autoscaler_condition.c -model/v2beta2_horizontal_pod_autoscaler_condition.h -model/v2beta2_horizontal_pod_autoscaler_list.c -model/v2beta2_horizontal_pod_autoscaler_list.h -model/v2beta2_horizontal_pod_autoscaler_spec.c -model/v2beta2_horizontal_pod_autoscaler_spec.h -model/v2beta2_horizontal_pod_autoscaler_status.c -model/v2beta2_horizontal_pod_autoscaler_status.h -model/v2beta2_hpa_scaling_policy.c -model/v2beta2_hpa_scaling_policy.h -model/v2beta2_hpa_scaling_rules.c -model/v2beta2_hpa_scaling_rules.h -model/v2beta2_metric_identifier.c -model/v2beta2_metric_identifier.h -model/v2beta2_metric_spec.c -model/v2beta2_metric_spec.h -model/v2beta2_metric_status.c -model/v2beta2_metric_status.h -model/v2beta2_metric_target.c -model/v2beta2_metric_target.h -model/v2beta2_metric_value_status.c -model/v2beta2_metric_value_status.h -model/v2beta2_object_metric_source.c -model/v2beta2_object_metric_source.h -model/v2beta2_object_metric_status.c -model/v2beta2_object_metric_status.h -model/v2beta2_pods_metric_source.c -model/v2beta2_pods_metric_source.h -model/v2beta2_pods_metric_status.c -model/v2beta2_pods_metric_status.h -model/v2beta2_resource_metric_source.c -model/v2beta2_resource_metric_source.h -model/v2beta2_resource_metric_status.c -model/v2beta2_resource_metric_status.h model/version_info.c model/version_info.h src/apiClient.c @@ -1728,6 +1785,7 @@ unit-test/test_v1_certificate_signing_request_spec.c unit-test/test_v1_certificate_signing_request_status.c unit-test/test_v1_cinder_persistent_volume_source.c unit-test/test_v1_cinder_volume_source.c +unit-test/test_v1_claim_source.c unit-test/test_v1_client_ip_config.c unit-test/test_v1_cluster_role.c unit-test/test_v1_cluster_role_binding.c @@ -1846,6 +1904,9 @@ unit-test/test_v1_ingress_class_list.c unit-test/test_v1_ingress_class_parameters_reference.c unit-test/test_v1_ingress_class_spec.c unit-test/test_v1_ingress_list.c +unit-test/test_v1_ingress_load_balancer_ingress.c +unit-test/test_v1_ingress_load_balancer_status.c +unit-test/test_v1_ingress_port_status.c unit-test/test_v1_ingress_rule.c unit-test/test_v1_ingress_service_backend.c unit-test/test_v1_ingress_spec.c @@ -1949,6 +2010,8 @@ unit-test/test_v1_pod_ip.c unit-test/test_v1_pod_list.c unit-test/test_v1_pod_os.c unit-test/test_v1_pod_readiness_gate.c +unit-test/test_v1_pod_resource_claim.c +unit-test/test_v1_pod_scheduling_gate.c unit-test/test_v1_pod_security_context.c unit-test/test_v1_pod_spec.c unit-test/test_v1_pod_status.c @@ -1978,6 +2041,7 @@ unit-test/test_v1_replication_controller_list.c unit-test/test_v1_replication_controller_spec.c unit-test/test_v1_replication_controller_status.c unit-test/test_v1_resource_attributes.c +unit-test/test_v1_resource_claim.c unit-test/test_v1_resource_field_selector.c unit-test/test_v1_resource_quota.c unit-test/test_v1_resource_quota_list.c @@ -2032,6 +2096,7 @@ unit-test/test_v1_session_affinity_config.c unit-test/test_v1_stateful_set.c unit-test/test_v1_stateful_set_condition.c unit-test/test_v1_stateful_set_list.c +unit-test/test_v1_stateful_set_ordinals.c unit-test/test_v1_stateful_set_persistent_volume_claim_retention_policy.c unit-test/test_v1_stateful_set_spec.c unit-test/test_v1_stateful_set_status.c @@ -2061,6 +2126,7 @@ unit-test/test_v1_topology_selector_label_requirement.c unit-test/test_v1_topology_selector_term.c unit-test/test_v1_topology_spread_constraint.c unit-test/test_v1_typed_local_object_reference.c +unit-test/test_v1_typed_object_reference.c unit-test/test_v1_uncounted_terminated_pods.c unit-test/test_v1_user_info.c unit-test/test_v1_validating_webhook.c @@ -2084,38 +2150,47 @@ unit-test/test_v1_watch_event.c unit-test/test_v1_webhook_conversion.c unit-test/test_v1_weighted_pod_affinity_term.c unit-test/test_v1_windows_security_context_options.c +unit-test/test_v1alpha1_allocation_result.c unit-test/test_v1alpha1_cluster_cidr.c unit-test/test_v1alpha1_cluster_cidr_list.c unit-test/test_v1alpha1_cluster_cidr_spec.c +unit-test/test_v1alpha1_match_resources.c +unit-test/test_v1alpha1_named_rule_with_operations.c +unit-test/test_v1alpha1_param_kind.c +unit-test/test_v1alpha1_param_ref.c +unit-test/test_v1alpha1_pod_scheduling.c +unit-test/test_v1alpha1_pod_scheduling_list.c +unit-test/test_v1alpha1_pod_scheduling_spec.c +unit-test/test_v1alpha1_pod_scheduling_status.c +unit-test/test_v1alpha1_resource_claim.c +unit-test/test_v1alpha1_resource_claim_consumer_reference.c +unit-test/test_v1alpha1_resource_claim_list.c +unit-test/test_v1alpha1_resource_claim_parameters_reference.c +unit-test/test_v1alpha1_resource_claim_scheduling_status.c +unit-test/test_v1alpha1_resource_claim_spec.c +unit-test/test_v1alpha1_resource_claim_status.c +unit-test/test_v1alpha1_resource_claim_template.c +unit-test/test_v1alpha1_resource_claim_template_list.c +unit-test/test_v1alpha1_resource_claim_template_spec.c +unit-test/test_v1alpha1_resource_class.c +unit-test/test_v1alpha1_resource_class_list.c +unit-test/test_v1alpha1_resource_class_parameters_reference.c +unit-test/test_v1alpha1_self_subject_review.c +unit-test/test_v1alpha1_self_subject_review_status.c unit-test/test_v1alpha1_server_storage_version.c unit-test/test_v1alpha1_storage_version.c unit-test/test_v1alpha1_storage_version_condition.c unit-test/test_v1alpha1_storage_version_list.c unit-test/test_v1alpha1_storage_version_status.c +unit-test/test_v1alpha1_validating_admission_policy.c +unit-test/test_v1alpha1_validating_admission_policy_binding.c +unit-test/test_v1alpha1_validating_admission_policy_binding_list.c +unit-test/test_v1alpha1_validating_admission_policy_binding_spec.c +unit-test/test_v1alpha1_validating_admission_policy_list.c +unit-test/test_v1alpha1_validating_admission_policy_spec.c +unit-test/test_v1alpha1_validation.c unit-test/test_v1beta1_csi_storage_capacity.c unit-test/test_v1beta1_csi_storage_capacity_list.c -unit-test/test_v1beta1_flow_distinguisher_method.c -unit-test/test_v1beta1_flow_schema.c -unit-test/test_v1beta1_flow_schema_condition.c -unit-test/test_v1beta1_flow_schema_list.c -unit-test/test_v1beta1_flow_schema_spec.c -unit-test/test_v1beta1_flow_schema_status.c -unit-test/test_v1beta1_group_subject.c -unit-test/test_v1beta1_limit_response.c -unit-test/test_v1beta1_limited_priority_level_configuration.c -unit-test/test_v1beta1_non_resource_policy_rule.c -unit-test/test_v1beta1_policy_rules_with_subjects.c -unit-test/test_v1beta1_priority_level_configuration.c -unit-test/test_v1beta1_priority_level_configuration_condition.c -unit-test/test_v1beta1_priority_level_configuration_list.c -unit-test/test_v1beta1_priority_level_configuration_reference.c -unit-test/test_v1beta1_priority_level_configuration_spec.c -unit-test/test_v1beta1_priority_level_configuration_status.c -unit-test/test_v1beta1_queuing_configuration.c -unit-test/test_v1beta1_resource_policy_rule.c -unit-test/test_v1beta1_service_account_subject.c -unit-test/test_v1beta1_subject.c -unit-test/test_v1beta1_user_subject.c unit-test/test_v1beta2_flow_distinguisher_method.c unit-test/test_v1beta2_flow_schema.c unit-test/test_v1beta2_flow_schema_condition.c @@ -2138,6 +2213,28 @@ unit-test/test_v1beta2_resource_policy_rule.c unit-test/test_v1beta2_service_account_subject.c unit-test/test_v1beta2_subject.c unit-test/test_v1beta2_user_subject.c +unit-test/test_v1beta3_flow_distinguisher_method.c +unit-test/test_v1beta3_flow_schema.c +unit-test/test_v1beta3_flow_schema_condition.c +unit-test/test_v1beta3_flow_schema_list.c +unit-test/test_v1beta3_flow_schema_spec.c +unit-test/test_v1beta3_flow_schema_status.c +unit-test/test_v1beta3_group_subject.c +unit-test/test_v1beta3_limit_response.c +unit-test/test_v1beta3_limited_priority_level_configuration.c +unit-test/test_v1beta3_non_resource_policy_rule.c +unit-test/test_v1beta3_policy_rules_with_subjects.c +unit-test/test_v1beta3_priority_level_configuration.c +unit-test/test_v1beta3_priority_level_configuration_condition.c +unit-test/test_v1beta3_priority_level_configuration_list.c +unit-test/test_v1beta3_priority_level_configuration_reference.c +unit-test/test_v1beta3_priority_level_configuration_spec.c +unit-test/test_v1beta3_priority_level_configuration_status.c +unit-test/test_v1beta3_queuing_configuration.c +unit-test/test_v1beta3_resource_policy_rule.c +unit-test/test_v1beta3_service_account_subject.c +unit-test/test_v1beta3_subject.c +unit-test/test_v1beta3_user_subject.c unit-test/test_v2_container_resource_metric_source.c unit-test/test_v2_container_resource_metric_status.c unit-test/test_v2_cross_version_object_reference.c @@ -2162,28 +2259,4 @@ unit-test/test_v2_pods_metric_source.c unit-test/test_v2_pods_metric_status.c unit-test/test_v2_resource_metric_source.c unit-test/test_v2_resource_metric_status.c -unit-test/test_v2beta2_container_resource_metric_source.c -unit-test/test_v2beta2_container_resource_metric_status.c -unit-test/test_v2beta2_cross_version_object_reference.c -unit-test/test_v2beta2_external_metric_source.c -unit-test/test_v2beta2_external_metric_status.c -unit-test/test_v2beta2_horizontal_pod_autoscaler.c -unit-test/test_v2beta2_horizontal_pod_autoscaler_behavior.c -unit-test/test_v2beta2_horizontal_pod_autoscaler_condition.c -unit-test/test_v2beta2_horizontal_pod_autoscaler_list.c -unit-test/test_v2beta2_horizontal_pod_autoscaler_spec.c -unit-test/test_v2beta2_horizontal_pod_autoscaler_status.c -unit-test/test_v2beta2_hpa_scaling_policy.c -unit-test/test_v2beta2_hpa_scaling_rules.c -unit-test/test_v2beta2_metric_identifier.c -unit-test/test_v2beta2_metric_spec.c -unit-test/test_v2beta2_metric_status.c -unit-test/test_v2beta2_metric_target.c -unit-test/test_v2beta2_metric_value_status.c -unit-test/test_v2beta2_object_metric_source.c -unit-test/test_v2beta2_object_metric_status.c -unit-test/test_v2beta2_pods_metric_source.c -unit-test/test_v2beta2_pods_metric_status.c -unit-test/test_v2beta2_resource_metric_source.c -unit-test/test_v2beta2_resource_metric_status.c unit-test/test_version_info.c diff --git a/kubernetes/.openapi-generator/VERSION b/kubernetes/.openapi-generator/VERSION index ed829dbc..7f4d792e 100644 --- a/kubernetes/.openapi-generator/VERSION +++ b/kubernetes/.openapi-generator/VERSION @@ -1 +1 @@ -6.2.1-SNAPSHOT \ No newline at end of file +6.5.0-SNAPSHOT \ No newline at end of file diff --git a/kubernetes/.openapi-generator/swagger.json-default.sha256 b/kubernetes/.openapi-generator/swagger.json-default.sha256 index f09b14a1..a3be6546 100644 --- a/kubernetes/.openapi-generator/swagger.json-default.sha256 +++ b/kubernetes/.openapi-generator/swagger.json-default.sha256 @@ -1 +1 @@ -0404d4c8137d5e4978c0fa45c88b0433e62ce7a449af4c76f2fcbc8b64aabd3f \ No newline at end of file +bfed191ace6a6ad0a8cf42c91e4dfe5ecac1ab54329f9d482e661b6340d426a4 \ No newline at end of file diff --git a/kubernetes/CMakeLists.txt b/kubernetes/CMakeLists.txt index 12ff5725..6fd16627 100644 --- a/kubernetes/CMakeLists.txt +++ b/kubernetes/CMakeLists.txt @@ -98,6 +98,7 @@ set(SRCS model/v1_certificate_signing_request_status.c model/v1_cinder_persistent_volume_source.c model/v1_cinder_volume_source.c + model/v1_claim_source.c model/v1_client_ip_config.c model/v1_cluster_role.c model/v1_cluster_role_binding.c @@ -216,6 +217,9 @@ set(SRCS model/v1_ingress_class_parameters_reference.c model/v1_ingress_class_spec.c model/v1_ingress_list.c + model/v1_ingress_load_balancer_ingress.c + model/v1_ingress_load_balancer_status.c + model/v1_ingress_port_status.c model/v1_ingress_rule.c model/v1_ingress_service_backend.c model/v1_ingress_spec.c @@ -319,6 +323,8 @@ set(SRCS model/v1_pod_list.c model/v1_pod_os.c model/v1_pod_readiness_gate.c + model/v1_pod_resource_claim.c + model/v1_pod_scheduling_gate.c model/v1_pod_security_context.c model/v1_pod_spec.c model/v1_pod_status.c @@ -348,6 +354,7 @@ set(SRCS model/v1_replication_controller_spec.c model/v1_replication_controller_status.c model/v1_resource_attributes.c + model/v1_resource_claim.c model/v1_resource_field_selector.c model/v1_resource_quota.c model/v1_resource_quota_list.c @@ -402,6 +409,7 @@ set(SRCS model/v1_stateful_set.c model/v1_stateful_set_condition.c model/v1_stateful_set_list.c + model/v1_stateful_set_ordinals.c model/v1_stateful_set_persistent_volume_claim_retention_policy.c model/v1_stateful_set_spec.c model/v1_stateful_set_status.c @@ -431,6 +439,7 @@ set(SRCS model/v1_topology_selector_term.c model/v1_topology_spread_constraint.c model/v1_typed_local_object_reference.c + model/v1_typed_object_reference.c model/v1_uncounted_terminated_pods.c model/v1_user_info.c model/v1_validating_webhook.c @@ -454,38 +463,47 @@ set(SRCS model/v1_webhook_conversion.c model/v1_weighted_pod_affinity_term.c model/v1_windows_security_context_options.c + model/v1alpha1_allocation_result.c model/v1alpha1_cluster_cidr.c model/v1alpha1_cluster_cidr_list.c model/v1alpha1_cluster_cidr_spec.c + model/v1alpha1_match_resources.c + model/v1alpha1_named_rule_with_operations.c + model/v1alpha1_param_kind.c + model/v1alpha1_param_ref.c + model/v1alpha1_pod_scheduling.c + model/v1alpha1_pod_scheduling_list.c + model/v1alpha1_pod_scheduling_spec.c + model/v1alpha1_pod_scheduling_status.c + model/v1alpha1_resource_claim.c + model/v1alpha1_resource_claim_consumer_reference.c + model/v1alpha1_resource_claim_list.c + model/v1alpha1_resource_claim_parameters_reference.c + model/v1alpha1_resource_claim_scheduling_status.c + model/v1alpha1_resource_claim_spec.c + model/v1alpha1_resource_claim_status.c + model/v1alpha1_resource_claim_template.c + model/v1alpha1_resource_claim_template_list.c + model/v1alpha1_resource_claim_template_spec.c + model/v1alpha1_resource_class.c + model/v1alpha1_resource_class_list.c + model/v1alpha1_resource_class_parameters_reference.c + model/v1alpha1_self_subject_review.c + model/v1alpha1_self_subject_review_status.c model/v1alpha1_server_storage_version.c model/v1alpha1_storage_version.c model/v1alpha1_storage_version_condition.c model/v1alpha1_storage_version_list.c model/v1alpha1_storage_version_status.c + model/v1alpha1_validating_admission_policy.c + model/v1alpha1_validating_admission_policy_binding.c + model/v1alpha1_validating_admission_policy_binding_list.c + model/v1alpha1_validating_admission_policy_binding_spec.c + model/v1alpha1_validating_admission_policy_list.c + model/v1alpha1_validating_admission_policy_spec.c + model/v1alpha1_validation.c model/v1beta1_csi_storage_capacity.c model/v1beta1_csi_storage_capacity_list.c - model/v1beta1_flow_distinguisher_method.c - model/v1beta1_flow_schema.c - model/v1beta1_flow_schema_condition.c - model/v1beta1_flow_schema_list.c - model/v1beta1_flow_schema_spec.c - model/v1beta1_flow_schema_status.c - model/v1beta1_group_subject.c - model/v1beta1_limit_response.c - model/v1beta1_limited_priority_level_configuration.c - model/v1beta1_non_resource_policy_rule.c - model/v1beta1_policy_rules_with_subjects.c - model/v1beta1_priority_level_configuration.c - model/v1beta1_priority_level_configuration_condition.c - model/v1beta1_priority_level_configuration_list.c - model/v1beta1_priority_level_configuration_reference.c - model/v1beta1_priority_level_configuration_spec.c - model/v1beta1_priority_level_configuration_status.c - model/v1beta1_queuing_configuration.c - model/v1beta1_resource_policy_rule.c - model/v1beta1_service_account_subject.c - model/v1beta1_subject.c - model/v1beta1_user_subject.c model/v1beta2_flow_distinguisher_method.c model/v1beta2_flow_schema.c model/v1beta2_flow_schema_condition.c @@ -508,6 +526,28 @@ set(SRCS model/v1beta2_service_account_subject.c model/v1beta2_subject.c model/v1beta2_user_subject.c + model/v1beta3_flow_distinguisher_method.c + model/v1beta3_flow_schema.c + model/v1beta3_flow_schema_condition.c + model/v1beta3_flow_schema_list.c + model/v1beta3_flow_schema_spec.c + model/v1beta3_flow_schema_status.c + model/v1beta3_group_subject.c + model/v1beta3_limit_response.c + model/v1beta3_limited_priority_level_configuration.c + model/v1beta3_non_resource_policy_rule.c + model/v1beta3_policy_rules_with_subjects.c + model/v1beta3_priority_level_configuration.c + model/v1beta3_priority_level_configuration_condition.c + model/v1beta3_priority_level_configuration_list.c + model/v1beta3_priority_level_configuration_reference.c + model/v1beta3_priority_level_configuration_spec.c + model/v1beta3_priority_level_configuration_status.c + model/v1beta3_queuing_configuration.c + model/v1beta3_resource_policy_rule.c + model/v1beta3_service_account_subject.c + model/v1beta3_subject.c + model/v1beta3_user_subject.c model/v2_container_resource_metric_source.c model/v2_container_resource_metric_status.c model/v2_cross_version_object_reference.c @@ -532,33 +572,10 @@ set(SRCS model/v2_pods_metric_status.c model/v2_resource_metric_source.c model/v2_resource_metric_status.c - model/v2beta2_container_resource_metric_source.c - model/v2beta2_container_resource_metric_status.c - model/v2beta2_cross_version_object_reference.c - model/v2beta2_external_metric_source.c - model/v2beta2_external_metric_status.c - model/v2beta2_horizontal_pod_autoscaler.c - model/v2beta2_horizontal_pod_autoscaler_behavior.c - model/v2beta2_horizontal_pod_autoscaler_condition.c - model/v2beta2_horizontal_pod_autoscaler_list.c - model/v2beta2_horizontal_pod_autoscaler_spec.c - model/v2beta2_horizontal_pod_autoscaler_status.c - model/v2beta2_hpa_scaling_policy.c - model/v2beta2_hpa_scaling_rules.c - model/v2beta2_metric_identifier.c - model/v2beta2_metric_spec.c - model/v2beta2_metric_status.c - model/v2beta2_metric_target.c - model/v2beta2_metric_value_status.c - model/v2beta2_object_metric_source.c - model/v2beta2_object_metric_status.c - model/v2beta2_pods_metric_source.c - model/v2beta2_pods_metric_status.c - model/v2beta2_resource_metric_source.c - model/v2beta2_resource_metric_status.c model/version_info.c api/AdmissionregistrationAPI.c api/AdmissionregistrationV1API.c + api/AdmissionregistrationV1alpha1API.c api/ApiextensionsAPI.c api/ApiextensionsV1API.c api/ApiregistrationAPI.c @@ -568,12 +585,12 @@ set(SRCS api/AppsV1API.c api/AuthenticationAPI.c api/AuthenticationV1API.c + api/AuthenticationV1alpha1API.c api/AuthorizationAPI.c api/AuthorizationV1API.c api/AutoscalingAPI.c api/AutoscalingV1API.c api/AutoscalingV2API.c - api/AutoscalingV2beta2API.c api/BatchAPI.c api/BatchV1API.c api/CertificatesAPI.c @@ -588,8 +605,8 @@ set(SRCS api/EventsAPI.c api/EventsV1API.c api/FlowcontrolApiserverAPI.c - api/FlowcontrolApiserverV1beta1API.c api/FlowcontrolApiserverV1beta2API.c + api/FlowcontrolApiserverV1beta3API.c api/InternalApiserverAPI.c api/InternalApiserverV1alpha1API.c api/LogsAPI.c @@ -603,6 +620,8 @@ set(SRCS api/PolicyV1API.c api/RbacAuthorizationAPI.c api/RbacAuthorizationV1API.c + api/ResourceAPI.c + api/ResourceV1alpha1API.c api/SchedulingAPI.c api/SchedulingV1API.c api/StorageAPI.c @@ -664,6 +683,7 @@ set(HDRS model/v1_certificate_signing_request_status.h model/v1_cinder_persistent_volume_source.h model/v1_cinder_volume_source.h + model/v1_claim_source.h model/v1_client_ip_config.h model/v1_cluster_role.h model/v1_cluster_role_binding.h @@ -782,6 +802,9 @@ set(HDRS model/v1_ingress_class_parameters_reference.h model/v1_ingress_class_spec.h model/v1_ingress_list.h + model/v1_ingress_load_balancer_ingress.h + model/v1_ingress_load_balancer_status.h + model/v1_ingress_port_status.h model/v1_ingress_rule.h model/v1_ingress_service_backend.h model/v1_ingress_spec.h @@ -885,6 +908,8 @@ set(HDRS model/v1_pod_list.h model/v1_pod_os.h model/v1_pod_readiness_gate.h + model/v1_pod_resource_claim.h + model/v1_pod_scheduling_gate.h model/v1_pod_security_context.h model/v1_pod_spec.h model/v1_pod_status.h @@ -914,6 +939,7 @@ set(HDRS model/v1_replication_controller_spec.h model/v1_replication_controller_status.h model/v1_resource_attributes.h + model/v1_resource_claim.h model/v1_resource_field_selector.h model/v1_resource_quota.h model/v1_resource_quota_list.h @@ -968,6 +994,7 @@ set(HDRS model/v1_stateful_set.h model/v1_stateful_set_condition.h model/v1_stateful_set_list.h + model/v1_stateful_set_ordinals.h model/v1_stateful_set_persistent_volume_claim_retention_policy.h model/v1_stateful_set_spec.h model/v1_stateful_set_status.h @@ -997,6 +1024,7 @@ set(HDRS model/v1_topology_selector_term.h model/v1_topology_spread_constraint.h model/v1_typed_local_object_reference.h + model/v1_typed_object_reference.h model/v1_uncounted_terminated_pods.h model/v1_user_info.h model/v1_validating_webhook.h @@ -1020,38 +1048,47 @@ set(HDRS model/v1_webhook_conversion.h model/v1_weighted_pod_affinity_term.h model/v1_windows_security_context_options.h + model/v1alpha1_allocation_result.h model/v1alpha1_cluster_cidr.h model/v1alpha1_cluster_cidr_list.h model/v1alpha1_cluster_cidr_spec.h + model/v1alpha1_match_resources.h + model/v1alpha1_named_rule_with_operations.h + model/v1alpha1_param_kind.h + model/v1alpha1_param_ref.h + model/v1alpha1_pod_scheduling.h + model/v1alpha1_pod_scheduling_list.h + model/v1alpha1_pod_scheduling_spec.h + model/v1alpha1_pod_scheduling_status.h + model/v1alpha1_resource_claim.h + model/v1alpha1_resource_claim_consumer_reference.h + model/v1alpha1_resource_claim_list.h + model/v1alpha1_resource_claim_parameters_reference.h + model/v1alpha1_resource_claim_scheduling_status.h + model/v1alpha1_resource_claim_spec.h + model/v1alpha1_resource_claim_status.h + model/v1alpha1_resource_claim_template.h + model/v1alpha1_resource_claim_template_list.h + model/v1alpha1_resource_claim_template_spec.h + model/v1alpha1_resource_class.h + model/v1alpha1_resource_class_list.h + model/v1alpha1_resource_class_parameters_reference.h + model/v1alpha1_self_subject_review.h + model/v1alpha1_self_subject_review_status.h model/v1alpha1_server_storage_version.h model/v1alpha1_storage_version.h model/v1alpha1_storage_version_condition.h model/v1alpha1_storage_version_list.h model/v1alpha1_storage_version_status.h + model/v1alpha1_validating_admission_policy.h + model/v1alpha1_validating_admission_policy_binding.h + model/v1alpha1_validating_admission_policy_binding_list.h + model/v1alpha1_validating_admission_policy_binding_spec.h + model/v1alpha1_validating_admission_policy_list.h + model/v1alpha1_validating_admission_policy_spec.h + model/v1alpha1_validation.h model/v1beta1_csi_storage_capacity.h model/v1beta1_csi_storage_capacity_list.h - model/v1beta1_flow_distinguisher_method.h - model/v1beta1_flow_schema.h - model/v1beta1_flow_schema_condition.h - model/v1beta1_flow_schema_list.h - model/v1beta1_flow_schema_spec.h - model/v1beta1_flow_schema_status.h - model/v1beta1_group_subject.h - model/v1beta1_limit_response.h - model/v1beta1_limited_priority_level_configuration.h - model/v1beta1_non_resource_policy_rule.h - model/v1beta1_policy_rules_with_subjects.h - model/v1beta1_priority_level_configuration.h - model/v1beta1_priority_level_configuration_condition.h - model/v1beta1_priority_level_configuration_list.h - model/v1beta1_priority_level_configuration_reference.h - model/v1beta1_priority_level_configuration_spec.h - model/v1beta1_priority_level_configuration_status.h - model/v1beta1_queuing_configuration.h - model/v1beta1_resource_policy_rule.h - model/v1beta1_service_account_subject.h - model/v1beta1_subject.h - model/v1beta1_user_subject.h model/v1beta2_flow_distinguisher_method.h model/v1beta2_flow_schema.h model/v1beta2_flow_schema_condition.h @@ -1074,6 +1111,28 @@ set(HDRS model/v1beta2_service_account_subject.h model/v1beta2_subject.h model/v1beta2_user_subject.h + model/v1beta3_flow_distinguisher_method.h + model/v1beta3_flow_schema.h + model/v1beta3_flow_schema_condition.h + model/v1beta3_flow_schema_list.h + model/v1beta3_flow_schema_spec.h + model/v1beta3_flow_schema_status.h + model/v1beta3_group_subject.h + model/v1beta3_limit_response.h + model/v1beta3_limited_priority_level_configuration.h + model/v1beta3_non_resource_policy_rule.h + model/v1beta3_policy_rules_with_subjects.h + model/v1beta3_priority_level_configuration.h + model/v1beta3_priority_level_configuration_condition.h + model/v1beta3_priority_level_configuration_list.h + model/v1beta3_priority_level_configuration_reference.h + model/v1beta3_priority_level_configuration_spec.h + model/v1beta3_priority_level_configuration_status.h + model/v1beta3_queuing_configuration.h + model/v1beta3_resource_policy_rule.h + model/v1beta3_service_account_subject.h + model/v1beta3_subject.h + model/v1beta3_user_subject.h model/v2_container_resource_metric_source.h model/v2_container_resource_metric_status.h model/v2_cross_version_object_reference.h @@ -1098,33 +1157,10 @@ set(HDRS model/v2_pods_metric_status.h model/v2_resource_metric_source.h model/v2_resource_metric_status.h - model/v2beta2_container_resource_metric_source.h - model/v2beta2_container_resource_metric_status.h - model/v2beta2_cross_version_object_reference.h - model/v2beta2_external_metric_source.h - model/v2beta2_external_metric_status.h - model/v2beta2_horizontal_pod_autoscaler.h - model/v2beta2_horizontal_pod_autoscaler_behavior.h - model/v2beta2_horizontal_pod_autoscaler_condition.h - model/v2beta2_horizontal_pod_autoscaler_list.h - model/v2beta2_horizontal_pod_autoscaler_spec.h - model/v2beta2_horizontal_pod_autoscaler_status.h - model/v2beta2_hpa_scaling_policy.h - model/v2beta2_hpa_scaling_rules.h - model/v2beta2_metric_identifier.h - model/v2beta2_metric_spec.h - model/v2beta2_metric_status.h - model/v2beta2_metric_target.h - model/v2beta2_metric_value_status.h - model/v2beta2_object_metric_source.h - model/v2beta2_object_metric_status.h - model/v2beta2_pods_metric_source.h - model/v2beta2_pods_metric_status.h - model/v2beta2_resource_metric_source.h - model/v2beta2_resource_metric_status.h model/version_info.h api/AdmissionregistrationAPI.h api/AdmissionregistrationV1API.h + api/AdmissionregistrationV1alpha1API.h api/ApiextensionsAPI.h api/ApiextensionsV1API.h api/ApiregistrationAPI.h @@ -1134,12 +1170,12 @@ set(HDRS api/AppsV1API.h api/AuthenticationAPI.h api/AuthenticationV1API.h + api/AuthenticationV1alpha1API.h api/AuthorizationAPI.h api/AuthorizationV1API.h api/AutoscalingAPI.h api/AutoscalingV1API.h api/AutoscalingV2API.h - api/AutoscalingV2beta2API.h api/BatchAPI.h api/BatchV1API.h api/CertificatesAPI.h @@ -1154,8 +1190,8 @@ set(HDRS api/EventsAPI.h api/EventsV1API.h api/FlowcontrolApiserverAPI.h - api/FlowcontrolApiserverV1beta1API.h api/FlowcontrolApiserverV1beta2API.h + api/FlowcontrolApiserverV1beta3API.h api/InternalApiserverAPI.h api/InternalApiserverV1alpha1API.h api/LogsAPI.h @@ -1169,6 +1205,8 @@ set(HDRS api/PolicyV1API.h api/RbacAuthorizationAPI.h api/RbacAuthorizationV1API.h + api/ResourceAPI.h + api/ResourceV1alpha1API.h api/SchedulingAPI.h api/SchedulingV1API.h api/StorageAPI.h @@ -1259,6 +1297,7 @@ set(HDRS "") #set(SRCS # unit-tests/manual-AdmissionregistrationAPI.c # unit-tests/manual-AdmissionregistrationV1API.c +# unit-tests/manual-AdmissionregistrationV1alpha1API.c # unit-tests/manual-ApiextensionsAPI.c # unit-tests/manual-ApiextensionsV1API.c # unit-tests/manual-ApiregistrationAPI.c @@ -1268,12 +1307,12 @@ set(HDRS "") # unit-tests/manual-AppsV1API.c # unit-tests/manual-AuthenticationAPI.c # unit-tests/manual-AuthenticationV1API.c +# unit-tests/manual-AuthenticationV1alpha1API.c # unit-tests/manual-AuthorizationAPI.c # unit-tests/manual-AuthorizationV1API.c # unit-tests/manual-AutoscalingAPI.c # unit-tests/manual-AutoscalingV1API.c # unit-tests/manual-AutoscalingV2API.c -# unit-tests/manual-AutoscalingV2beta2API.c # unit-tests/manual-BatchAPI.c # unit-tests/manual-BatchV1API.c # unit-tests/manual-CertificatesAPI.c @@ -1288,8 +1327,8 @@ set(HDRS "") # unit-tests/manual-EventsAPI.c # unit-tests/manual-EventsV1API.c # unit-tests/manual-FlowcontrolApiserverAPI.c -# unit-tests/manual-FlowcontrolApiserverV1beta1API.c # unit-tests/manual-FlowcontrolApiserverV1beta2API.c +# unit-tests/manual-FlowcontrolApiserverV1beta3API.c # unit-tests/manual-InternalApiserverAPI.c # unit-tests/manual-InternalApiserverV1alpha1API.c # unit-tests/manual-LogsAPI.c @@ -1303,6 +1342,8 @@ set(HDRS "") # unit-tests/manual-PolicyV1API.c # unit-tests/manual-RbacAuthorizationAPI.c # unit-tests/manual-RbacAuthorizationV1API.c +# unit-tests/manual-ResourceAPI.c +# unit-tests/manual-ResourceV1alpha1API.c # unit-tests/manual-SchedulingAPI.c # unit-tests/manual-SchedulingV1API.c # unit-tests/manual-StorageAPI.c diff --git a/kubernetes/PreTarget.cmake b/kubernetes/PreTarget.cmake index 4bd4d6cf..320d8429 100644 --- a/kubernetes/PreTarget.cmake +++ b/kubernetes/PreTarget.cmake @@ -1,5 +1,5 @@ set(PROJECT_VERSION_MAJOR 0) -set(PROJECT_VERSION_MINOR 5) +set(PROJECT_VERSION_MINOR 6) set(PROJECT_VERSION_PATCH 0) set(PROJECT_PACKAGE_DESCRIPTION_SUMMARY "The Kubernetes client library for the C programming language.") diff --git a/kubernetes/README.md b/kubernetes/README.md index 631493c3..661141a9 100644 --- a/kubernetes/README.md +++ b/kubernetes/README.md @@ -3,7 +3,7 @@ ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI spec](https://openapis.org) from a remote server, you can easily generate an API client. -- API version: release-1.25 +- API version: release-1.26 - Package version: - Build package: org.openapitools.codegen.languages.CLibcurlClientCodegen @@ -80,6 +80,21 @@ Category | Method | HTTP request | Description *AdmissionregistrationV1API* | [**AdmissionregistrationV1API_readValidatingWebhookConfiguration**](docs/AdmissionregistrationV1API.md#AdmissionregistrationV1API_readValidatingWebhookConfiguration) | **GET** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name} | *AdmissionregistrationV1API* | [**AdmissionregistrationV1API_replaceMutatingWebhookConfiguration**](docs/AdmissionregistrationV1API.md#AdmissionregistrationV1API_replaceMutatingWebhookConfiguration) | **PUT** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name} | *AdmissionregistrationV1API* | [**AdmissionregistrationV1API_replaceValidatingWebhookConfiguration**](docs/AdmissionregistrationV1API.md#AdmissionregistrationV1API_replaceValidatingWebhookConfiguration) | **PUT** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name} | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicy**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicy**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicy**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_getAPIResources**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_getAPIResources) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/ | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicy**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicy**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicy**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicy**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | *ApiextensionsAPI* | [**ApiextensionsAPI_getAPIGroup**](docs/ApiextensionsAPI.md#ApiextensionsAPI_getAPIGroup) | **GET** /apis/apiextensions.k8s.io/ | *ApiextensionsV1API* | [**ApiextensionsV1API_createCustomResourceDefinition**](docs/ApiextensionsV1API.md#ApiextensionsV1API_createCustomResourceDefinition) | **POST** /apis/apiextensions.k8s.io/v1/customresourcedefinitions | *ApiextensionsV1API* | [**ApiextensionsV1API_deleteCollectionCustomResourceDefinition**](docs/ApiextensionsV1API.md#ApiextensionsV1API_deleteCollectionCustomResourceDefinition) | **DELETE** /apis/apiextensions.k8s.io/v1/customresourcedefinitions | @@ -171,6 +186,8 @@ Category | Method | HTTP request | Description *AuthenticationAPI* | [**AuthenticationAPI_getAPIGroup**](docs/AuthenticationAPI.md#AuthenticationAPI_getAPIGroup) | **GET** /apis/authentication.k8s.io/ | *AuthenticationV1API* | [**AuthenticationV1API_createTokenReview**](docs/AuthenticationV1API.md#AuthenticationV1API_createTokenReview) | **POST** /apis/authentication.k8s.io/v1/tokenreviews | *AuthenticationV1API* | [**AuthenticationV1API_getAPIResources**](docs/AuthenticationV1API.md#AuthenticationV1API_getAPIResources) | **GET** /apis/authentication.k8s.io/v1/ | +*AuthenticationV1alpha1API* | [**AuthenticationV1alpha1API_createSelfSubjectReview**](docs/AuthenticationV1alpha1API.md#AuthenticationV1alpha1API_createSelfSubjectReview) | **POST** /apis/authentication.k8s.io/v1alpha1/selfsubjectreviews | +*AuthenticationV1alpha1API* | [**AuthenticationV1alpha1API_getAPIResources**](docs/AuthenticationV1alpha1API.md#AuthenticationV1alpha1API_getAPIResources) | **GET** /apis/authentication.k8s.io/v1alpha1/ | *AuthorizationAPI* | [**AuthorizationAPI_getAPIGroup**](docs/AuthorizationAPI.md#AuthorizationAPI_getAPIGroup) | **GET** /apis/authorization.k8s.io/ | *AuthorizationV1API* | [**AuthorizationV1API_createNamespacedLocalSubjectAccessReview**](docs/AuthorizationV1API.md#AuthorizationV1API_createNamespacedLocalSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews | *AuthorizationV1API* | [**AuthorizationV1API_createSelfSubjectAccessReview**](docs/AuthorizationV1API.md#AuthorizationV1API_createSelfSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1/selfsubjectaccessreviews | @@ -202,18 +219,6 @@ Category | Method | HTTP request | Description *AutoscalingV2API* | [**AutoscalingV2API_readNamespacedHorizontalPodAutoscalerStatus**](docs/AutoscalingV2API.md#AutoscalingV2API_readNamespacedHorizontalPodAutoscalerStatus) | **GET** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | *AutoscalingV2API* | [**AutoscalingV2API_replaceNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2API.md#AutoscalingV2API_replaceNamespacedHorizontalPodAutoscaler) | **PUT** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name} | *AutoscalingV2API* | [**AutoscalingV2API_replaceNamespacedHorizontalPodAutoscalerStatus**](docs/AutoscalingV2API.md#AutoscalingV2API_replaceNamespacedHorizontalPodAutoscalerStatus) | **PUT** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_createNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_createNamespacedHorizontalPodAutoscaler) | **POST** /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_deleteNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_deleteNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_getAPIResources**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_getAPIResources) | **GET** /apis/autoscaling/v2beta2/ | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_listHorizontalPodAutoscalerForAllNamespaces**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_listHorizontalPodAutoscalerForAllNamespaces) | **GET** /apis/autoscaling/v2beta2/horizontalpodautoscalers | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_listNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_listNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscaler) | **PATCH** /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscalerStatus**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscalerStatus) | **PATCH** /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscalerStatus**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscalerStatus) | **GET** /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscaler) | **PUT** /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscalerStatus**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscalerStatus) | **PUT** /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | *BatchAPI* | [**BatchAPI_getAPIGroup**](docs/BatchAPI.md#BatchAPI_getAPIGroup) | **GET** /apis/batch/ | *BatchV1API* | [**BatchV1API_createNamespacedCronJob**](docs/BatchV1API.md#BatchV1API_createNamespacedCronJob) | **POST** /apis/batch/v1/namespaces/{namespace}/cronjobs | *BatchV1API* | [**BatchV1API_createNamespacedJob**](docs/BatchV1API.md#BatchV1API_createNamespacedJob) | **POST** /apis/batch/v1/namespaces/{namespace}/jobs | @@ -473,6 +478,7 @@ Category | Method | HTTP request | Description *CustomObjectsAPI* | [**CustomObjectsAPI_deleteCollectionClusterCustomObject**](docs/CustomObjectsAPI.md#CustomObjectsAPI_deleteCollectionClusterCustomObject) | **DELETE** /apis/{group}/{version}/{plural} | *CustomObjectsAPI* | [**CustomObjectsAPI_deleteCollectionNamespacedCustomObject**](docs/CustomObjectsAPI.md#CustomObjectsAPI_deleteCollectionNamespacedCustomObject) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural} | *CustomObjectsAPI* | [**CustomObjectsAPI_deleteNamespacedCustomObject**](docs/CustomObjectsAPI.md#CustomObjectsAPI_deleteNamespacedCustomObject) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | +*CustomObjectsAPI* | [**CustomObjectsAPI_getAPIResources**](docs/CustomObjectsAPI.md#CustomObjectsAPI_getAPIResources) | **GET** /apis/{group}/{version} | *CustomObjectsAPI* | [**CustomObjectsAPI_getClusterCustomObject**](docs/CustomObjectsAPI.md#CustomObjectsAPI_getClusterCustomObject) | **GET** /apis/{group}/{version}/{plural}/{name} | *CustomObjectsAPI* | [**CustomObjectsAPI_getClusterCustomObjectScale**](docs/CustomObjectsAPI.md#CustomObjectsAPI_getClusterCustomObjectScale) | **GET** /apis/{group}/{version}/{plural}/{name}/scale | *CustomObjectsAPI* | [**CustomObjectsAPI_getClusterCustomObjectStatus**](docs/CustomObjectsAPI.md#CustomObjectsAPI_getClusterCustomObjectStatus) | **GET** /apis/{group}/{version}/{plural}/{name}/status | @@ -514,27 +520,6 @@ Category | Method | HTTP request | Description *EventsV1API* | [**EventsV1API_readNamespacedEvent**](docs/EventsV1API.md#EventsV1API_readNamespacedEvent) | **GET** /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name} | *EventsV1API* | [**EventsV1API_replaceNamespacedEvent**](docs/EventsV1API.md#EventsV1API_replaceNamespacedEvent) | **PUT** /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name} | *FlowcontrolApiserverAPI* | [**FlowcontrolApiserverAPI_getAPIGroup**](docs/FlowcontrolApiserverAPI.md#FlowcontrolApiserverAPI_getAPIGroup) | **GET** /apis/flowcontrol.apiserver.k8s.io/ | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_createFlowSchema**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_createFlowSchema) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_createPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_createPriorityLevelConfiguration) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_deleteCollectionFlowSchema**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_deleteCollectionFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_deleteCollectionPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_deleteCollectionPriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_deleteFlowSchema**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_deleteFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name} | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_deletePriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_deletePriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name} | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_getAPIResources**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_getAPIResources) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta1/ | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_listFlowSchema**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_listFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_listPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_listPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_patchFlowSchema**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_patchFlowSchema) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name} | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_patchFlowSchemaStatus**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_patchFlowSchemaStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_patchPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_patchPriorityLevelConfiguration) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name} | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_patchPriorityLevelConfigurationStatus**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_patchPriorityLevelConfigurationStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_readFlowSchema**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_readFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name} | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_readFlowSchemaStatus**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_readFlowSchemaStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_readPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_readPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name} | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_readPriorityLevelConfigurationStatus**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_readPriorityLevelConfigurationStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_replaceFlowSchema**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_replaceFlowSchema) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name} | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_replaceFlowSchemaStatus**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_replaceFlowSchemaStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_replacePriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_replacePriorityLevelConfiguration) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name} | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_replacePriorityLevelConfigurationStatus**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_replacePriorityLevelConfigurationStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status | *FlowcontrolApiserverV1beta2API* | [**FlowcontrolApiserverV1beta2API_createFlowSchema**](docs/FlowcontrolApiserverV1beta2API.md#FlowcontrolApiserverV1beta2API_createFlowSchema) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas | *FlowcontrolApiserverV1beta2API* | [**FlowcontrolApiserverV1beta2API_createPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta2API.md#FlowcontrolApiserverV1beta2API_createPriorityLevelConfiguration) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations | *FlowcontrolApiserverV1beta2API* | [**FlowcontrolApiserverV1beta2API_deleteCollectionFlowSchema**](docs/FlowcontrolApiserverV1beta2API.md#FlowcontrolApiserverV1beta2API_deleteCollectionFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas | @@ -556,6 +541,27 @@ Category | Method | HTTP request | Description *FlowcontrolApiserverV1beta2API* | [**FlowcontrolApiserverV1beta2API_replaceFlowSchemaStatus**](docs/FlowcontrolApiserverV1beta2API.md#FlowcontrolApiserverV1beta2API_replaceFlowSchemaStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status | *FlowcontrolApiserverV1beta2API* | [**FlowcontrolApiserverV1beta2API_replacePriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta2API.md#FlowcontrolApiserverV1beta2API_replacePriorityLevelConfiguration) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name} | *FlowcontrolApiserverV1beta2API* | [**FlowcontrolApiserverV1beta2API_replacePriorityLevelConfigurationStatus**](docs/FlowcontrolApiserverV1beta2API.md#FlowcontrolApiserverV1beta2API_replacePriorityLevelConfigurationStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_createFlowSchema**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_createFlowSchema) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_createPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_createPriorityLevelConfiguration) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_deleteCollectionFlowSchema**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_deleteCollectionFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_deleteCollectionPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_deleteCollectionPriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_deleteFlowSchema**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_deleteFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_deletePriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_deletePriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_getAPIResources**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_getAPIResources) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/ | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_listFlowSchema**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_listFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_listPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_listPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_patchFlowSchema**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_patchFlowSchema) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_patchFlowSchemaStatus**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_patchFlowSchemaStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_patchPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_patchPriorityLevelConfiguration) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_patchPriorityLevelConfigurationStatus**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_patchPriorityLevelConfigurationStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_readFlowSchema**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_readFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_readFlowSchemaStatus**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_readFlowSchemaStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_readPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_readPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_readPriorityLevelConfigurationStatus**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_readPriorityLevelConfigurationStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_replaceFlowSchema**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_replaceFlowSchema) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_replaceFlowSchemaStatus**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_replaceFlowSchemaStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_replacePriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_replacePriorityLevelConfiguration) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_replacePriorityLevelConfigurationStatus**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_replacePriorityLevelConfigurationStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | *InternalApiserverAPI* | [**InternalApiserverAPI_getAPIGroup**](docs/InternalApiserverAPI.md#InternalApiserverAPI_getAPIGroup) | **GET** /apis/internal.apiserver.k8s.io/ | *InternalApiserverV1alpha1API* | [**InternalApiserverV1alpha1API_createStorageVersion**](docs/InternalApiserverV1alpha1API.md#InternalApiserverV1alpha1API_createStorageVersion) | **POST** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions | *InternalApiserverV1alpha1API* | [**InternalApiserverV1alpha1API_deleteCollectionStorageVersion**](docs/InternalApiserverV1alpha1API.md#InternalApiserverV1alpha1API_deleteCollectionStorageVersion) | **DELETE** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions | @@ -664,6 +670,45 @@ Category | Method | HTTP request | Description *RbacAuthorizationV1API* | [**RbacAuthorizationV1API_replaceClusterRoleBinding**](docs/RbacAuthorizationV1API.md#RbacAuthorizationV1API_replaceClusterRoleBinding) | **PUT** /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name} | *RbacAuthorizationV1API* | [**RbacAuthorizationV1API_replaceNamespacedRole**](docs/RbacAuthorizationV1API.md#RbacAuthorizationV1API_replaceNamespacedRole) | **PUT** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name} | *RbacAuthorizationV1API* | [**RbacAuthorizationV1API_replaceNamespacedRoleBinding**](docs/RbacAuthorizationV1API.md#RbacAuthorizationV1API_replaceNamespacedRoleBinding) | **PUT** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name} | +*ResourceAPI* | [**ResourceAPI_getAPIGroup**](docs/ResourceAPI.md#ResourceAPI_getAPIGroup) | **GET** /apis/resource.k8s.io/ | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_createNamespacedPodScheduling**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_createNamespacedPodScheduling) | **POST** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_createNamespacedResourceClaim**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_createNamespacedResourceClaimTemplate**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_createResourceClass**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_createResourceClass) | **POST** /apis/resource.k8s.io/v1alpha1/resourceclasses | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_deleteCollectionNamespacedPodScheduling**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_deleteCollectionNamespacedPodScheduling) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_deleteCollectionNamespacedResourceClaim**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_deleteCollectionNamespacedResourceClaimTemplate**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_deleteCollectionResourceClass**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_deleteCollectionResourceClass) | **DELETE** /apis/resource.k8s.io/v1alpha1/resourceclasses | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_deleteNamespacedPodScheduling**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_deleteNamespacedPodScheduling) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_deleteNamespacedResourceClaim**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_deleteNamespacedResourceClaimTemplate**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_deleteResourceClass**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_deleteResourceClass) | **DELETE** /apis/resource.k8s.io/v1alpha1/resourceclasses/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_getAPIResources**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_getAPIResources) | **GET** /apis/resource.k8s.io/v1alpha1/ | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_listNamespacedPodScheduling**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_listNamespacedPodScheduling) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_listNamespacedResourceClaim**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_listNamespacedResourceClaimTemplate**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_listPodSchedulingForAllNamespaces**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_listPodSchedulingForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha1/podschedulings | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_listResourceClaimForAllNamespaces**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha1/resourceclaims | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_listResourceClaimTemplateForAllNamespaces**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha1/resourceclaimtemplates | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_listResourceClass**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_listResourceClass) | **GET** /apis/resource.k8s.io/v1alpha1/resourceclasses | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_patchNamespacedPodScheduling**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_patchNamespacedPodScheduling) | **PATCH** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_patchNamespacedPodSchedulingStatus**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_patchNamespacedPodSchedulingStatus) | **PATCH** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_patchNamespacedResourceClaim**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_patchNamespacedResourceClaimStatus**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_patchNamespacedResourceClaimTemplate**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_patchResourceClass**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_patchResourceClass) | **PATCH** /apis/resource.k8s.io/v1alpha1/resourceclasses/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_readNamespacedPodScheduling**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_readNamespacedPodScheduling) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_readNamespacedPodSchedulingStatus**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_readNamespacedPodSchedulingStatus) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_readNamespacedResourceClaim**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_readNamespacedResourceClaimStatus**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_readNamespacedResourceClaimTemplate**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_readResourceClass**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_readResourceClass) | **GET** /apis/resource.k8s.io/v1alpha1/resourceclasses/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_replaceNamespacedPodScheduling**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_replaceNamespacedPodScheduling) | **PUT** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_replaceNamespacedPodSchedulingStatus**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_replaceNamespacedPodSchedulingStatus) | **PUT** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_replaceNamespacedResourceClaim**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_replaceNamespacedResourceClaimStatus**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_replaceNamespacedResourceClaimTemplate**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_replaceResourceClass**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_replaceResourceClass) | **PUT** /apis/resource.k8s.io/v1alpha1/resourceclasses/{name} | *SchedulingAPI* | [**SchedulingAPI_getAPIGroup**](docs/SchedulingAPI.md#SchedulingAPI_getAPIGroup) | **GET** /apis/scheduling.k8s.io/ | *SchedulingV1API* | [**SchedulingV1API_createPriorityClass**](docs/SchedulingV1API.md#SchedulingV1API_createPriorityClass) | **POST** /apis/scheduling.k8s.io/v1/priorityclasses | *SchedulingV1API* | [**SchedulingV1API_deleteCollectionPriorityClass**](docs/SchedulingV1API.md#SchedulingV1API_deleteCollectionPriorityClass) | **DELETE** /apis/scheduling.k8s.io/v1/priorityclasses | @@ -773,6 +818,7 @@ Category | Method | HTTP request | Description - [v1_certificate_signing_request_status_t](docs/v1_certificate_signing_request_status.md) - [v1_cinder_persistent_volume_source_t](docs/v1_cinder_persistent_volume_source.md) - [v1_cinder_volume_source_t](docs/v1_cinder_volume_source.md) + - [v1_claim_source_t](docs/v1_claim_source.md) - [v1_client_ip_config_t](docs/v1_client_ip_config.md) - [v1_cluster_role_t](docs/v1_cluster_role.md) - [v1_cluster_role_binding_t](docs/v1_cluster_role_binding.md) @@ -891,6 +937,9 @@ Category | Method | HTTP request | Description - [v1_ingress_class_parameters_reference_t](docs/v1_ingress_class_parameters_reference.md) - [v1_ingress_class_spec_t](docs/v1_ingress_class_spec.md) - [v1_ingress_list_t](docs/v1_ingress_list.md) + - [v1_ingress_load_balancer_ingress_t](docs/v1_ingress_load_balancer_ingress.md) + - [v1_ingress_load_balancer_status_t](docs/v1_ingress_load_balancer_status.md) + - [v1_ingress_port_status_t](docs/v1_ingress_port_status.md) - [v1_ingress_rule_t](docs/v1_ingress_rule.md) - [v1_ingress_service_backend_t](docs/v1_ingress_service_backend.md) - [v1_ingress_spec_t](docs/v1_ingress_spec.md) @@ -994,6 +1043,8 @@ Category | Method | HTTP request | Description - [v1_pod_list_t](docs/v1_pod_list.md) - [v1_pod_os_t](docs/v1_pod_os.md) - [v1_pod_readiness_gate_t](docs/v1_pod_readiness_gate.md) + - [v1_pod_resource_claim_t](docs/v1_pod_resource_claim.md) + - [v1_pod_scheduling_gate_t](docs/v1_pod_scheduling_gate.md) - [v1_pod_security_context_t](docs/v1_pod_security_context.md) - [v1_pod_spec_t](docs/v1_pod_spec.md) - [v1_pod_status_t](docs/v1_pod_status.md) @@ -1023,6 +1074,7 @@ Category | Method | HTTP request | Description - [v1_replication_controller_spec_t](docs/v1_replication_controller_spec.md) - [v1_replication_controller_status_t](docs/v1_replication_controller_status.md) - [v1_resource_attributes_t](docs/v1_resource_attributes.md) + - [v1_resource_claim_t](docs/v1_resource_claim.md) - [v1_resource_field_selector_t](docs/v1_resource_field_selector.md) - [v1_resource_quota_t](docs/v1_resource_quota.md) - [v1_resource_quota_list_t](docs/v1_resource_quota_list.md) @@ -1077,6 +1129,7 @@ Category | Method | HTTP request | Description - [v1_stateful_set_t](docs/v1_stateful_set.md) - [v1_stateful_set_condition_t](docs/v1_stateful_set_condition.md) - [v1_stateful_set_list_t](docs/v1_stateful_set_list.md) + - [v1_stateful_set_ordinals_t](docs/v1_stateful_set_ordinals.md) - [v1_stateful_set_persistent_volume_claim_retention_policy_t](docs/v1_stateful_set_persistent_volume_claim_retention_policy.md) - [v1_stateful_set_spec_t](docs/v1_stateful_set_spec.md) - [v1_stateful_set_status_t](docs/v1_stateful_set_status.md) @@ -1106,6 +1159,7 @@ Category | Method | HTTP request | Description - [v1_topology_selector_term_t](docs/v1_topology_selector_term.md) - [v1_topology_spread_constraint_t](docs/v1_topology_spread_constraint.md) - [v1_typed_local_object_reference_t](docs/v1_typed_local_object_reference.md) + - [v1_typed_object_reference_t](docs/v1_typed_object_reference.md) - [v1_uncounted_terminated_pods_t](docs/v1_uncounted_terminated_pods.md) - [v1_user_info_t](docs/v1_user_info.md) - [v1_validating_webhook_t](docs/v1_validating_webhook.md) @@ -1129,38 +1183,47 @@ Category | Method | HTTP request | Description - [v1_webhook_conversion_t](docs/v1_webhook_conversion.md) - [v1_weighted_pod_affinity_term_t](docs/v1_weighted_pod_affinity_term.md) - [v1_windows_security_context_options_t](docs/v1_windows_security_context_options.md) + - [v1alpha1_allocation_result_t](docs/v1alpha1_allocation_result.md) - [v1alpha1_cluster_cidr_t](docs/v1alpha1_cluster_cidr.md) - [v1alpha1_cluster_cidr_list_t](docs/v1alpha1_cluster_cidr_list.md) - [v1alpha1_cluster_cidr_spec_t](docs/v1alpha1_cluster_cidr_spec.md) + - [v1alpha1_match_resources_t](docs/v1alpha1_match_resources.md) + - [v1alpha1_named_rule_with_operations_t](docs/v1alpha1_named_rule_with_operations.md) + - [v1alpha1_param_kind_t](docs/v1alpha1_param_kind.md) + - [v1alpha1_param_ref_t](docs/v1alpha1_param_ref.md) + - [v1alpha1_pod_scheduling_t](docs/v1alpha1_pod_scheduling.md) + - [v1alpha1_pod_scheduling_list_t](docs/v1alpha1_pod_scheduling_list.md) + - [v1alpha1_pod_scheduling_spec_t](docs/v1alpha1_pod_scheduling_spec.md) + - [v1alpha1_pod_scheduling_status_t](docs/v1alpha1_pod_scheduling_status.md) + - [v1alpha1_resource_claim_t](docs/v1alpha1_resource_claim.md) + - [v1alpha1_resource_claim_consumer_reference_t](docs/v1alpha1_resource_claim_consumer_reference.md) + - [v1alpha1_resource_claim_list_t](docs/v1alpha1_resource_claim_list.md) + - [v1alpha1_resource_claim_parameters_reference_t](docs/v1alpha1_resource_claim_parameters_reference.md) + - [v1alpha1_resource_claim_scheduling_status_t](docs/v1alpha1_resource_claim_scheduling_status.md) + - [v1alpha1_resource_claim_spec_t](docs/v1alpha1_resource_claim_spec.md) + - [v1alpha1_resource_claim_status_t](docs/v1alpha1_resource_claim_status.md) + - [v1alpha1_resource_claim_template_t](docs/v1alpha1_resource_claim_template.md) + - [v1alpha1_resource_claim_template_list_t](docs/v1alpha1_resource_claim_template_list.md) + - [v1alpha1_resource_claim_template_spec_t](docs/v1alpha1_resource_claim_template_spec.md) + - [v1alpha1_resource_class_t](docs/v1alpha1_resource_class.md) + - [v1alpha1_resource_class_list_t](docs/v1alpha1_resource_class_list.md) + - [v1alpha1_resource_class_parameters_reference_t](docs/v1alpha1_resource_class_parameters_reference.md) + - [v1alpha1_self_subject_review_t](docs/v1alpha1_self_subject_review.md) + - [v1alpha1_self_subject_review_status_t](docs/v1alpha1_self_subject_review_status.md) - [v1alpha1_server_storage_version_t](docs/v1alpha1_server_storage_version.md) - [v1alpha1_storage_version_t](docs/v1alpha1_storage_version.md) - [v1alpha1_storage_version_condition_t](docs/v1alpha1_storage_version_condition.md) - [v1alpha1_storage_version_list_t](docs/v1alpha1_storage_version_list.md) - [v1alpha1_storage_version_status_t](docs/v1alpha1_storage_version_status.md) + - [v1alpha1_validating_admission_policy_t](docs/v1alpha1_validating_admission_policy.md) + - [v1alpha1_validating_admission_policy_binding_t](docs/v1alpha1_validating_admission_policy_binding.md) + - [v1alpha1_validating_admission_policy_binding_list_t](docs/v1alpha1_validating_admission_policy_binding_list.md) + - [v1alpha1_validating_admission_policy_binding_spec_t](docs/v1alpha1_validating_admission_policy_binding_spec.md) + - [v1alpha1_validating_admission_policy_list_t](docs/v1alpha1_validating_admission_policy_list.md) + - [v1alpha1_validating_admission_policy_spec_t](docs/v1alpha1_validating_admission_policy_spec.md) + - [v1alpha1_validation_t](docs/v1alpha1_validation.md) - [v1beta1_csi_storage_capacity_t](docs/v1beta1_csi_storage_capacity.md) - [v1beta1_csi_storage_capacity_list_t](docs/v1beta1_csi_storage_capacity_list.md) - - [v1beta1_flow_distinguisher_method_t](docs/v1beta1_flow_distinguisher_method.md) - - [v1beta1_flow_schema_t](docs/v1beta1_flow_schema.md) - - [v1beta1_flow_schema_condition_t](docs/v1beta1_flow_schema_condition.md) - - [v1beta1_flow_schema_list_t](docs/v1beta1_flow_schema_list.md) - - [v1beta1_flow_schema_spec_t](docs/v1beta1_flow_schema_spec.md) - - [v1beta1_flow_schema_status_t](docs/v1beta1_flow_schema_status.md) - - [v1beta1_group_subject_t](docs/v1beta1_group_subject.md) - - [v1beta1_limit_response_t](docs/v1beta1_limit_response.md) - - [v1beta1_limited_priority_level_configuration_t](docs/v1beta1_limited_priority_level_configuration.md) - - [v1beta1_non_resource_policy_rule_t](docs/v1beta1_non_resource_policy_rule.md) - - [v1beta1_policy_rules_with_subjects_t](docs/v1beta1_policy_rules_with_subjects.md) - - [v1beta1_priority_level_configuration_t](docs/v1beta1_priority_level_configuration.md) - - [v1beta1_priority_level_configuration_condition_t](docs/v1beta1_priority_level_configuration_condition.md) - - [v1beta1_priority_level_configuration_list_t](docs/v1beta1_priority_level_configuration_list.md) - - [v1beta1_priority_level_configuration_reference_t](docs/v1beta1_priority_level_configuration_reference.md) - - [v1beta1_priority_level_configuration_spec_t](docs/v1beta1_priority_level_configuration_spec.md) - - [v1beta1_priority_level_configuration_status_t](docs/v1beta1_priority_level_configuration_status.md) - - [v1beta1_queuing_configuration_t](docs/v1beta1_queuing_configuration.md) - - [v1beta1_resource_policy_rule_t](docs/v1beta1_resource_policy_rule.md) - - [v1beta1_service_account_subject_t](docs/v1beta1_service_account_subject.md) - - [v1beta1_subject_t](docs/v1beta1_subject.md) - - [v1beta1_user_subject_t](docs/v1beta1_user_subject.md) - [v1beta2_flow_distinguisher_method_t](docs/v1beta2_flow_distinguisher_method.md) - [v1beta2_flow_schema_t](docs/v1beta2_flow_schema.md) - [v1beta2_flow_schema_condition_t](docs/v1beta2_flow_schema_condition.md) @@ -1183,6 +1246,28 @@ Category | Method | HTTP request | Description - [v1beta2_service_account_subject_t](docs/v1beta2_service_account_subject.md) - [v1beta2_subject_t](docs/v1beta2_subject.md) - [v1beta2_user_subject_t](docs/v1beta2_user_subject.md) + - [v1beta3_flow_distinguisher_method_t](docs/v1beta3_flow_distinguisher_method.md) + - [v1beta3_flow_schema_t](docs/v1beta3_flow_schema.md) + - [v1beta3_flow_schema_condition_t](docs/v1beta3_flow_schema_condition.md) + - [v1beta3_flow_schema_list_t](docs/v1beta3_flow_schema_list.md) + - [v1beta3_flow_schema_spec_t](docs/v1beta3_flow_schema_spec.md) + - [v1beta3_flow_schema_status_t](docs/v1beta3_flow_schema_status.md) + - [v1beta3_group_subject_t](docs/v1beta3_group_subject.md) + - [v1beta3_limit_response_t](docs/v1beta3_limit_response.md) + - [v1beta3_limited_priority_level_configuration_t](docs/v1beta3_limited_priority_level_configuration.md) + - [v1beta3_non_resource_policy_rule_t](docs/v1beta3_non_resource_policy_rule.md) + - [v1beta3_policy_rules_with_subjects_t](docs/v1beta3_policy_rules_with_subjects.md) + - [v1beta3_priority_level_configuration_t](docs/v1beta3_priority_level_configuration.md) + - [v1beta3_priority_level_configuration_condition_t](docs/v1beta3_priority_level_configuration_condition.md) + - [v1beta3_priority_level_configuration_list_t](docs/v1beta3_priority_level_configuration_list.md) + - [v1beta3_priority_level_configuration_reference_t](docs/v1beta3_priority_level_configuration_reference.md) + - [v1beta3_priority_level_configuration_spec_t](docs/v1beta3_priority_level_configuration_spec.md) + - [v1beta3_priority_level_configuration_status_t](docs/v1beta3_priority_level_configuration_status.md) + - [v1beta3_queuing_configuration_t](docs/v1beta3_queuing_configuration.md) + - [v1beta3_resource_policy_rule_t](docs/v1beta3_resource_policy_rule.md) + - [v1beta3_service_account_subject_t](docs/v1beta3_service_account_subject.md) + - [v1beta3_subject_t](docs/v1beta3_subject.md) + - [v1beta3_user_subject_t](docs/v1beta3_user_subject.md) - [v2_container_resource_metric_source_t](docs/v2_container_resource_metric_source.md) - [v2_container_resource_metric_status_t](docs/v2_container_resource_metric_status.md) - [v2_cross_version_object_reference_t](docs/v2_cross_version_object_reference.md) @@ -1207,30 +1292,6 @@ Category | Method | HTTP request | Description - [v2_pods_metric_status_t](docs/v2_pods_metric_status.md) - [v2_resource_metric_source_t](docs/v2_resource_metric_source.md) - [v2_resource_metric_status_t](docs/v2_resource_metric_status.md) - - [v2beta2_container_resource_metric_source_t](docs/v2beta2_container_resource_metric_source.md) - - [v2beta2_container_resource_metric_status_t](docs/v2beta2_container_resource_metric_status.md) - - [v2beta2_cross_version_object_reference_t](docs/v2beta2_cross_version_object_reference.md) - - [v2beta2_external_metric_source_t](docs/v2beta2_external_metric_source.md) - - [v2beta2_external_metric_status_t](docs/v2beta2_external_metric_status.md) - - [v2beta2_horizontal_pod_autoscaler_t](docs/v2beta2_horizontal_pod_autoscaler.md) - - [v2beta2_horizontal_pod_autoscaler_behavior_t](docs/v2beta2_horizontal_pod_autoscaler_behavior.md) - - [v2beta2_horizontal_pod_autoscaler_condition_t](docs/v2beta2_horizontal_pod_autoscaler_condition.md) - - [v2beta2_horizontal_pod_autoscaler_list_t](docs/v2beta2_horizontal_pod_autoscaler_list.md) - - [v2beta2_horizontal_pod_autoscaler_spec_t](docs/v2beta2_horizontal_pod_autoscaler_spec.md) - - [v2beta2_horizontal_pod_autoscaler_status_t](docs/v2beta2_horizontal_pod_autoscaler_status.md) - - [v2beta2_hpa_scaling_policy_t](docs/v2beta2_hpa_scaling_policy.md) - - [v2beta2_hpa_scaling_rules_t](docs/v2beta2_hpa_scaling_rules.md) - - [v2beta2_metric_identifier_t](docs/v2beta2_metric_identifier.md) - - [v2beta2_metric_spec_t](docs/v2beta2_metric_spec.md) - - [v2beta2_metric_status_t](docs/v2beta2_metric_status.md) - - [v2beta2_metric_target_t](docs/v2beta2_metric_target.md) - - [v2beta2_metric_value_status_t](docs/v2beta2_metric_value_status.md) - - [v2beta2_object_metric_source_t](docs/v2beta2_object_metric_source.md) - - [v2beta2_object_metric_status_t](docs/v2beta2_object_metric_status.md) - - [v2beta2_pods_metric_source_t](docs/v2beta2_pods_metric_source.md) - - [v2beta2_pods_metric_status_t](docs/v2beta2_pods_metric_status.md) - - [v2beta2_resource_metric_source_t](docs/v2beta2_resource_metric_source.md) - - [v2beta2_resource_metric_status_t](docs/v2beta2_resource_metric_status.md) - [version_info_t](docs/version_info.md) diff --git a/kubernetes/api/AutoscalingV2beta2API.c b/kubernetes/api/AdmissionregistrationV1alpha1API.c similarity index 67% rename from kubernetes/api/AutoscalingV2beta2API.c rename to kubernetes/api/AdmissionregistrationV1alpha1API.c index ffae948b..74bb35ab 100644 --- a/kubernetes/api/AutoscalingV2beta2API.c +++ b/kubernetes/api/AdmissionregistrationV1alpha1API.c @@ -1,7 +1,7 @@ #include #include #include -#include "AutoscalingV2beta2API.h" +#include "AdmissionregistrationV1alpha1API.h" #define MAX_NUMBER_LENGTH 16 #define MAX_BUFFER_LENGTH 4096 @@ -12,10 +12,10 @@ }while(0) -// create a HorizontalPodAutoscaler +// create a ValidatingAdmissionPolicy // -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_createNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * _namespace , v2beta2_horizontal_pod_autoscaler_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +v1alpha1_validating_admission_policy_t* +AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicy(apiClient_t *apiClient, v1alpha1_validating_admission_policy_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -25,20 +25,195 @@ AutoscalingV2beta2API_createNamespacedHorizontalPodAutoscaler(apiClient_t *apiCl char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies"); - // Path Params - long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); - if(_namespace == NULL) { - goto end; + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_validating_admission_policy_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "POST"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_validating_admission_policy_t *elementToReturn = v1alpha1_validating_admission_policy_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; } - char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); - sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// create a ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_t* +AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicyBinding(apiClient_t *apiClient, v1alpha1_validating_admission_policy_binding_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings"); - localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); @@ -95,7 +270,7 @@ AutoscalingV2beta2API_createNamespacedHorizontalPodAutoscaler(apiClient_t *apiCl if (body != NULL) { //string - localVarSingleItemJSON_body = v2beta2_horizontal_pod_autoscaler_convertToJSON(body); + localVarSingleItemJSON_body = v1alpha1_validating_admission_policy_binding_convertToJSON(body); localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); } list_addElement(localVarHeaderType,"application/json"); //produces @@ -128,9 +303,9 @@ AutoscalingV2beta2API_createNamespacedHorizontalPodAutoscaler(apiClient_t *apiCl // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta2_horizontal_pod_autoscaler_t *elementToReturn = v2beta2_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_validating_admission_policy_binding_t *elementToReturn = v1alpha1_validating_admission_policy_binding_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -147,7 +322,6 @@ AutoscalingV2beta2API_createNamespacedHorizontalPodAutoscaler(apiClient_t *apiCl list_freeList(localVarHeaderType); free(localVarPath); - free(localVarToReplace__namespace); if (localVarSingleItemJSON_body) { cJSON_Delete(localVarSingleItemJSON_body); localVarSingleItemJSON_body = NULL; @@ -208,10 +382,10 @@ AutoscalingV2beta2API_createNamespacedHorizontalPodAutoscaler(apiClient_t *apiCl } -// delete collection of HorizontalPodAutoscaler +// delete collection of ValidatingAdmissionPolicy // v1_status_t* -AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * _namespace , char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) +AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicy(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -221,20 +395,10 @@ AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClien char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers"); - + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies"); - // Path Params - long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); - if(_namespace == NULL) { - goto end; - } - char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); - sprintf(localVarToReplace__namespace, "{%s}", "namespace"); - - localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); @@ -274,18 +438,750 @@ AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClien list_addElement(localVarQueryParameters,keyPairQuery_dryRun); } - // query parameters - char *keyQuery_fieldSelector = NULL; - char * valueQuery_fieldSelector = NULL; - keyValuePair_t *keyPairQuery_fieldSelector = 0; - if (fieldSelector) - { - keyQuery_fieldSelector = strdup("fieldSelector"); - valueQuery_fieldSelector = strdup((fieldSelector)); - keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); - list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); - } - + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_gracePeriodSeconds = NULL; + char * valueQuery_gracePeriodSeconds = NULL; + keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); + valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_gracePeriodSeconds, MAX_NUMBER_LENGTH, "%d", gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = keyValuePair_create(keyQuery_gracePeriodSeconds, valueQuery_gracePeriodSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_orphanDependents = NULL; + char * valueQuery_orphanDependents = NULL; + keyValuePair_t *keyPairQuery_orphanDependents = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_orphanDependents = strdup("orphanDependents"); + valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_orphanDependents, MAX_NUMBER_LENGTH, "%d", orphanDependents); + keyPairQuery_orphanDependents = keyValuePair_create(keyQuery_orphanDependents, valueQuery_orphanDependents); + list_addElement(localVarQueryParameters,keyPairQuery_orphanDependents); + } + + // query parameters + char *keyQuery_propagationPolicy = NULL; + char * valueQuery_propagationPolicy = NULL; + keyValuePair_t *keyPairQuery_propagationPolicy = 0; + if (propagationPolicy) + { + keyQuery_propagationPolicy = strdup("propagationPolicy"); + valueQuery_propagationPolicy = strdup((propagationPolicy)); + keyPairQuery_propagationPolicy = keyValuePair_create(keyQuery_propagationPolicy, valueQuery_propagationPolicy); + list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1_delete_options_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "DELETE"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_gracePeriodSeconds){ + free(keyQuery_gracePeriodSeconds); + keyQuery_gracePeriodSeconds = NULL; + } + if(valueQuery_gracePeriodSeconds){ + free(valueQuery_gracePeriodSeconds); + valueQuery_gracePeriodSeconds = NULL; + } + if(keyPairQuery_gracePeriodSeconds){ + keyValuePair_free(keyPairQuery_gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_orphanDependents){ + free(keyQuery_orphanDependents); + keyQuery_orphanDependents = NULL; + } + if(valueQuery_orphanDependents){ + free(valueQuery_orphanDependents); + valueQuery_orphanDependents = NULL; + } + if(keyPairQuery_orphanDependents){ + keyValuePair_free(keyPairQuery_orphanDependents); + keyPairQuery_orphanDependents = NULL; + } + if(keyQuery_propagationPolicy){ + free(keyQuery_propagationPolicy); + keyQuery_propagationPolicy = NULL; + } + if(valueQuery_propagationPolicy){ + free(valueQuery_propagationPolicy); + valueQuery_propagationPolicy = NULL; + } + if(keyPairQuery_propagationPolicy){ + keyValuePair_free(keyPairQuery_propagationPolicy); + keyPairQuery_propagationPolicy = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// delete collection of ValidatingAdmissionPolicyBinding +// +v1_status_t* +AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings"); + + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_gracePeriodSeconds = NULL; + char * valueQuery_gracePeriodSeconds = NULL; + keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); + valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_gracePeriodSeconds, MAX_NUMBER_LENGTH, "%d", gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = keyValuePair_create(keyQuery_gracePeriodSeconds, valueQuery_gracePeriodSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_orphanDependents = NULL; + char * valueQuery_orphanDependents = NULL; + keyValuePair_t *keyPairQuery_orphanDependents = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_orphanDependents = strdup("orphanDependents"); + valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_orphanDependents, MAX_NUMBER_LENGTH, "%d", orphanDependents); + keyPairQuery_orphanDependents = keyValuePair_create(keyQuery_orphanDependents, valueQuery_orphanDependents); + list_addElement(localVarQueryParameters,keyPairQuery_orphanDependents); + } + + // query parameters + char *keyQuery_propagationPolicy = NULL; + char * valueQuery_propagationPolicy = NULL; + keyValuePair_t *keyPairQuery_propagationPolicy = 0; + if (propagationPolicy) + { + keyQuery_propagationPolicy = strdup("propagationPolicy"); + valueQuery_propagationPolicy = strdup((propagationPolicy)); + keyPairQuery_propagationPolicy = keyValuePair_create(keyQuery_propagationPolicy, valueQuery_propagationPolicy); + list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1_delete_options_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "DELETE"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_gracePeriodSeconds){ + free(keyQuery_gracePeriodSeconds); + keyQuery_gracePeriodSeconds = NULL; + } + if(valueQuery_gracePeriodSeconds){ + free(valueQuery_gracePeriodSeconds); + valueQuery_gracePeriodSeconds = NULL; + } + if(keyPairQuery_gracePeriodSeconds){ + keyValuePair_free(keyPairQuery_gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_orphanDependents){ + free(keyQuery_orphanDependents); + keyQuery_orphanDependents = NULL; + } + if(valueQuery_orphanDependents){ + free(valueQuery_orphanDependents); + valueQuery_orphanDependents = NULL; + } + if(keyPairQuery_orphanDependents){ + keyValuePair_free(keyPairQuery_orphanDependents); + keyPairQuery_orphanDependents = NULL; + } + if(keyQuery_propagationPolicy){ + free(keyQuery_propagationPolicy); + keyQuery_propagationPolicy = NULL; + } + if(valueQuery_propagationPolicy){ + free(valueQuery_propagationPolicy); + valueQuery_propagationPolicy = NULL; + } + if(keyPairQuery_propagationPolicy){ + keyValuePair_free(keyPairQuery_propagationPolicy); + keyPairQuery_propagationPolicy = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// delete a ValidatingAdmissionPolicy +// +v1_status_t* +AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicy(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + // query parameters char *keyQuery_gracePeriodSeconds = NULL; char * valueQuery_gracePeriodSeconds = NULL; @@ -299,31 +1195,6 @@ AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClien list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); } - // query parameters - char *keyQuery_labelSelector = NULL; - char * valueQuery_labelSelector = NULL; - keyValuePair_t *keyPairQuery_labelSelector = 0; - if (labelSelector) - { - keyQuery_labelSelector = strdup("labelSelector"); - valueQuery_labelSelector = strdup((labelSelector)); - keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); - list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); - } - - // query parameters - char *keyQuery_limit = NULL; - char * valueQuery_limit = NULL; - keyValuePair_t *keyPairQuery_limit = 0; - if (1) // Always send integer parameters to the API server - { - keyQuery_limit = strdup("limit"); - valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); - snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); - keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); - list_addElement(localVarQueryParameters,keyPairQuery_limit); - } - // query parameters char *keyQuery_orphanDependents = NULL; char * valueQuery_orphanDependents = NULL; @@ -349,43 +1220,6 @@ AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClien list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); } - // query parameters - char *keyQuery_resourceVersion = NULL; - char * valueQuery_resourceVersion = NULL; - keyValuePair_t *keyPairQuery_resourceVersion = 0; - if (resourceVersion) - { - keyQuery_resourceVersion = strdup("resourceVersion"); - valueQuery_resourceVersion = strdup((resourceVersion)); - keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); - list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); - } - - // query parameters - char *keyQuery_resourceVersionMatch = NULL; - char * valueQuery_resourceVersionMatch = NULL; - keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; - if (resourceVersionMatch) - { - keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); - valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); - keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); - list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); - } - - // query parameters - char *keyQuery_timeoutSeconds = NULL; - char * valueQuery_timeoutSeconds = NULL; - keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (1) // Always send integer parameters to the API server - { - keyQuery_timeoutSeconds = strdup("timeoutSeconds"); - valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); - snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); - keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); - list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); - } - // Body Param cJSON *localVarSingleItemJSON_body = NULL; if (body != NULL) @@ -412,13 +1246,17 @@ AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClien // printf("%s\n","OK"); //} // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response //if (apiClient->response_code == 401) { // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -435,7 +1273,7 @@ AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClien list_freeList(localVarHeaderType); free(localVarPath); - free(localVarToReplace__namespace); + free(localVarToReplace_name); if (localVarSingleItemJSON_body) { cJSON_Delete(localVarSingleItemJSON_body); localVarSingleItemJSON_body = NULL; @@ -453,18 +1291,6 @@ AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClien keyValuePair_free(keyPairQuery_pretty); keyPairQuery_pretty = NULL; } - if(keyQuery__continue){ - free(keyQuery__continue); - keyQuery__continue = NULL; - } - if(valueQuery__continue){ - free(valueQuery__continue); - valueQuery__continue = NULL; - } - if(keyPairQuery__continue){ - keyValuePair_free(keyPairQuery__continue); - keyPairQuery__continue = NULL; - } if(keyQuery_dryRun){ free(keyQuery_dryRun); keyQuery_dryRun = NULL; @@ -477,18 +1303,6 @@ AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClien keyValuePair_free(keyPairQuery_dryRun); keyPairQuery_dryRun = NULL; } - if(keyQuery_fieldSelector){ - free(keyQuery_fieldSelector); - keyQuery_fieldSelector = NULL; - } - if(valueQuery_fieldSelector){ - free(valueQuery_fieldSelector); - valueQuery_fieldSelector = NULL; - } - if(keyPairQuery_fieldSelector){ - keyValuePair_free(keyPairQuery_fieldSelector); - keyPairQuery_fieldSelector = NULL; - } if(keyQuery_gracePeriodSeconds){ free(keyQuery_gracePeriodSeconds); keyQuery_gracePeriodSeconds = NULL; @@ -501,30 +1315,6 @@ AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClien keyValuePair_free(keyPairQuery_gracePeriodSeconds); keyPairQuery_gracePeriodSeconds = NULL; } - if(keyQuery_labelSelector){ - free(keyQuery_labelSelector); - keyQuery_labelSelector = NULL; - } - if(valueQuery_labelSelector){ - free(valueQuery_labelSelector); - valueQuery_labelSelector = NULL; - } - if(keyPairQuery_labelSelector){ - keyValuePair_free(keyPairQuery_labelSelector); - keyPairQuery_labelSelector = NULL; - } - if(keyQuery_limit){ - free(keyQuery_limit); - keyQuery_limit = NULL; - } - if(valueQuery_limit){ - free(valueQuery_limit); - valueQuery_limit = NULL; - } - if(keyPairQuery_limit){ - keyValuePair_free(keyPairQuery_limit); - keyPairQuery_limit = NULL; - } if(keyQuery_orphanDependents){ free(keyQuery_orphanDependents); keyQuery_orphanDependents = NULL; @@ -549,42 +1339,6 @@ AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClien keyValuePair_free(keyPairQuery_propagationPolicy); keyPairQuery_propagationPolicy = NULL; } - if(keyQuery_resourceVersion){ - free(keyQuery_resourceVersion); - keyQuery_resourceVersion = NULL; - } - if(valueQuery_resourceVersion){ - free(valueQuery_resourceVersion); - valueQuery_resourceVersion = NULL; - } - if(keyPairQuery_resourceVersion){ - keyValuePair_free(keyPairQuery_resourceVersion); - keyPairQuery_resourceVersion = NULL; - } - if(keyQuery_resourceVersionMatch){ - free(keyQuery_resourceVersionMatch); - keyQuery_resourceVersionMatch = NULL; - } - if(valueQuery_resourceVersionMatch){ - free(valueQuery_resourceVersionMatch); - valueQuery_resourceVersionMatch = NULL; - } - if(keyPairQuery_resourceVersionMatch){ - keyValuePair_free(keyPairQuery_resourceVersionMatch); - keyPairQuery_resourceVersionMatch = NULL; - } - if(keyQuery_timeoutSeconds){ - free(keyQuery_timeoutSeconds); - keyQuery_timeoutSeconds = NULL; - } - if(valueQuery_timeoutSeconds){ - free(valueQuery_timeoutSeconds); - valueQuery_timeoutSeconds = NULL; - } - if(keyPairQuery_timeoutSeconds){ - keyValuePair_free(keyPairQuery_timeoutSeconds); - keyPairQuery_timeoutSeconds = NULL; - } return elementToReturn; end: free(localVarPath); @@ -592,10 +1346,10 @@ AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClien } -// delete a HorizontalPodAutoscaler +// delete a ValidatingAdmissionPolicyBinding // v1_status_t* -AutoscalingV2beta2API_deleteNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * name , char * _namespace , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) +AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -605,13 +1359,13 @@ AutoscalingV2beta2API_deleteNamespacedHorizontalPodAutoscaler(apiClient_t *apiCl char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}"); // Path Params - long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); if(name == NULL) { goto end; } @@ -620,16 +1374,6 @@ AutoscalingV2beta2API_deleteNamespacedHorizontalPodAutoscaler(apiClient_t *apiCl localVarPath = strReplace(localVarPath, localVarToReplace_name, name); - // Path Params - long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); - if(_namespace == NULL) { - goto end; - } - char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); - sprintf(localVarToReplace__namespace, "{%s}", "namespace"); - - localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); - // query parameters @@ -728,9 +1472,9 @@ AutoscalingV2beta2API_deleteNamespacedHorizontalPodAutoscaler(apiClient_t *apiCl // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -748,7 +1492,6 @@ AutoscalingV2beta2API_deleteNamespacedHorizontalPodAutoscaler(apiClient_t *apiCl free(localVarPath); free(localVarToReplace_name); - free(localVarToReplace__namespace); if (localVarSingleItemJSON_body) { cJSON_Delete(localVarSingleItemJSON_body); localVarSingleItemJSON_body = NULL; @@ -824,7 +1567,7 @@ AutoscalingV2beta2API_deleteNamespacedHorizontalPodAutoscaler(apiClient_t *apiCl // get available resources // v1_api_resource_list_t* -AutoscalingV2beta2API_getAPIResources(apiClient_t *apiClient) +AdmissionregistrationV1alpha1API_getAPIResources(apiClient_t *apiClient) { list_t *localVarQueryParameters = NULL; list_t *localVarHeaderParameters = NULL; @@ -834,9 +1577,9 @@ AutoscalingV2beta2API_getAPIResources(apiClient_t *apiClient) char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/"); @@ -862,9 +1605,9 @@ AutoscalingV2beta2API_getAPIResources(apiClient_t *apiClient) // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -888,10 +1631,10 @@ AutoscalingV2beta2API_getAPIResources(apiClient_t *apiClient) } -// list or watch objects of kind HorizontalPodAutoscaler +// list or watch objects of kind ValidatingAdmissionPolicy // -v2beta2_horizontal_pod_autoscaler_list_t* -AutoscalingV2beta2API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * pretty , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +v1alpha1_validating_admission_policy_list_t* +AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicy(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -901,12 +1644,24 @@ AutoscalingV2beta2API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *a char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/horizontalpodautoscalers")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/horizontalpodautoscalers"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies"); + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } // query parameters char *keyQuery_allowWatchBookmarks = NULL; @@ -970,18 +1725,6 @@ AutoscalingV2beta2API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *a list_addElement(localVarQueryParameters,keyPairQuery_limit); } - // query parameters - char *keyQuery_pretty = NULL; - char * valueQuery_pretty = NULL; - keyValuePair_t *keyPairQuery_pretty = 0; - if (pretty) - { - keyQuery_pretty = strdup("pretty"); - valueQuery_pretty = strdup((pretty)); - keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); - list_addElement(localVarQueryParameters,keyPairQuery_pretty); - } - // query parameters char *keyQuery_resourceVersion = NULL; char * valueQuery_resourceVersion = NULL; @@ -1055,9 +1798,9 @@ AutoscalingV2beta2API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *a // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta2_horizontal_pod_autoscaler_list_t *elementToReturn = v2beta2_horizontal_pod_autoscaler_list_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_validating_admission_policy_list_t *elementToReturn = v1alpha1_validating_admission_policy_list_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -1074,6 +1817,18 @@ AutoscalingV2beta2API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *a list_freeList(localVarHeaderType); free(localVarPath); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } if(keyQuery_allowWatchBookmarks){ free(keyQuery_allowWatchBookmarks); keyQuery_allowWatchBookmarks = NULL; @@ -1134,18 +1889,6 @@ AutoscalingV2beta2API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *a keyValuePair_free(keyPairQuery_limit); keyPairQuery_limit = NULL; } - if(keyQuery_pretty){ - free(keyQuery_pretty); - keyQuery_pretty = NULL; - } - if(valueQuery_pretty){ - free(valueQuery_pretty); - valueQuery_pretty = NULL; - } - if(keyPairQuery_pretty){ - keyValuePair_free(keyPairQuery_pretty); - keyPairQuery_pretty = NULL; - } if(keyQuery_resourceVersion){ free(keyQuery_resourceVersion); keyQuery_resourceVersion = NULL; @@ -1201,10 +1944,10 @@ AutoscalingV2beta2API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *a } -// list or watch objects of kind HorizontalPodAutoscaler +// list or watch objects of kind ValidatingAdmissionPolicyBinding // -v2beta2_horizontal_pod_autoscaler_list_t* -AutoscalingV2beta2API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * _namespace , char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +v1alpha1_validating_admission_policy_binding_list_t* +AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -1214,20 +1957,10 @@ AutoscalingV2beta2API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClie char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers"); - - - // Path Params - long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); - if(_namespace == NULL) { - goto end; - } - char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); - sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings"); - localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); @@ -1378,9 +2111,9 @@ AutoscalingV2beta2API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClie // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta2_horizontal_pod_autoscaler_list_t *elementToReturn = v2beta2_horizontal_pod_autoscaler_list_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_validating_admission_policy_binding_list_t *elementToReturn = v1alpha1_validating_admission_policy_binding_list_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -1397,7 +2130,6 @@ AutoscalingV2beta2API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClie list_freeList(localVarHeaderType); free(localVarPath); - free(localVarToReplace__namespace); if(keyQuery_pretty){ free(keyQuery_pretty); keyQuery_pretty = NULL; @@ -1525,10 +2257,10 @@ AutoscalingV2beta2API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClie } -// partially update the specified HorizontalPodAutoscaler +// partially update the specified ValidatingAdmissionPolicy // -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +v1alpha1_validating_admission_policy_t* +AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicy(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -1538,13 +2270,13 @@ AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscaler(apiClient_t *apiCli char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}"); // Path Params - long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); if(name == NULL) { goto end; } @@ -1553,16 +2285,6 @@ AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscaler(apiClient_t *apiCli localVarPath = strReplace(localVarPath, localVarToReplace_name, name); - // Path Params - long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); - if(_namespace == NULL) { - goto end; - } - char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); - sprintf(localVarToReplace__namespace, "{%s}", "namespace"); - - localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); - // query parameters @@ -1664,9 +2386,9 @@ AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscaler(apiClient_t *apiCli // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta2_horizontal_pod_autoscaler_t *elementToReturn = v2beta2_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_validating_admission_policy_t *elementToReturn = v1alpha1_validating_admission_policy_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -1684,7 +2406,6 @@ AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscaler(apiClient_t *apiCli list_freeList(localVarContentType); free(localVarPath); free(localVarToReplace_name); - free(localVarToReplace__namespace); if (localVarSingleItemJSON_body) { cJSON_Delete(localVarSingleItemJSON_body); localVarSingleItemJSON_body = NULL; @@ -1757,10 +2478,10 @@ AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscaler(apiClient_t *apiCli } -// partially update status of the specified HorizontalPodAutoscaler +// partially update the specified ValidatingAdmissionPolicyBinding // -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscalerStatus(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +v1alpha1_validating_admission_policy_binding_t* +AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -1770,13 +2491,13 @@ AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscalerStatus(apiClient_t * char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}"); // Path Params - long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); if(name == NULL) { goto end; } @@ -1785,16 +2506,6 @@ AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscalerStatus(apiClient_t * localVarPath = strReplace(localVarPath, localVarToReplace_name, name); - // Path Params - long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); - if(_namespace == NULL) { - goto end; - } - char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); - sprintf(localVarToReplace__namespace, "{%s}", "namespace"); - - localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); - // query parameters @@ -1896,9 +2607,9 @@ AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscalerStatus(apiClient_t * // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta2_horizontal_pod_autoscaler_t *elementToReturn = v2beta2_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_validating_admission_policy_binding_t *elementToReturn = v1alpha1_validating_admission_policy_binding_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -1916,7 +2627,6 @@ AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscalerStatus(apiClient_t * list_freeList(localVarContentType); free(localVarPath); free(localVarToReplace_name); - free(localVarToReplace__namespace); if (localVarSingleItemJSON_body) { cJSON_Delete(localVarSingleItemJSON_body); localVarSingleItemJSON_body = NULL; @@ -1989,10 +2699,10 @@ AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscalerStatus(apiClient_t * } -// read the specified HorizontalPodAutoscaler +// read the specified ValidatingAdmissionPolicy // -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ) +v1alpha1_validating_admission_policy_t* +AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicy(apiClient_t *apiClient, char * name , char * pretty ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -2002,13 +2712,13 @@ AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscaler(apiClient_t *apiClie char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}"); // Path Params - long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); if(name == NULL) { goto end; } @@ -2017,16 +2727,6 @@ AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscaler(apiClient_t *apiClie localVarPath = strReplace(localVarPath, localVarToReplace_name, name); - // Path Params - long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); - if(_namespace == NULL) { - goto end; - } - char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); - sprintf(localVarToReplace__namespace, "{%s}", "namespace"); - - localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); - // query parameters @@ -2062,9 +2762,9 @@ AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscaler(apiClient_t *apiClie // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta2_horizontal_pod_autoscaler_t *elementToReturn = v2beta2_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_validating_admission_policy_t *elementToReturn = v1alpha1_validating_admission_policy_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -2082,7 +2782,6 @@ AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscaler(apiClient_t *apiClie free(localVarPath); free(localVarToReplace_name); - free(localVarToReplace__namespace); if(keyQuery_pretty){ free(keyQuery_pretty); keyQuery_pretty = NULL; @@ -2102,10 +2801,10 @@ AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscaler(apiClient_t *apiClie } -// read status of the specified HorizontalPodAutoscaler +// read the specified ValidatingAdmissionPolicyBinding // -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscalerStatus(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ) +v1alpha1_validating_admission_policy_binding_t* +AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name , char * pretty ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -2115,13 +2814,13 @@ AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscalerStatus(apiClient_t *a char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}"); // Path Params - long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); if(name == NULL) { goto end; } @@ -2130,16 +2829,6 @@ AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscalerStatus(apiClient_t *a localVarPath = strReplace(localVarPath, localVarToReplace_name, name); - // Path Params - long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); - if(_namespace == NULL) { - goto end; - } - char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); - sprintf(localVarToReplace__namespace, "{%s}", "namespace"); - - localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); - // query parameters @@ -2175,9 +2864,9 @@ AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscalerStatus(apiClient_t *a // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta2_horizontal_pod_autoscaler_t *elementToReturn = v2beta2_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_validating_admission_policy_binding_t *elementToReturn = v1alpha1_validating_admission_policy_binding_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -2195,7 +2884,6 @@ AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscalerStatus(apiClient_t *a free(localVarPath); free(localVarToReplace_name); - free(localVarToReplace__namespace); if(keyQuery_pretty){ free(keyQuery_pretty); keyQuery_pretty = NULL; @@ -2215,10 +2903,10 @@ AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscalerStatus(apiClient_t *a } -// replace the specified HorizontalPodAutoscaler +// replace the specified ValidatingAdmissionPolicy // -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * name , char * _namespace , v2beta2_horizontal_pod_autoscaler_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +v1alpha1_validating_admission_policy_t* +AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicy(apiClient_t *apiClient, char * name , v1alpha1_validating_admission_policy_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -2228,13 +2916,13 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscaler(apiClient_t *apiC char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}"); // Path Params - long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); if(name == NULL) { goto end; } @@ -2243,16 +2931,6 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscaler(apiClient_t *apiC localVarPath = strReplace(localVarPath, localVarToReplace_name, name); - // Path Params - long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); - if(_namespace == NULL) { - goto end; - } - char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); - sprintf(localVarToReplace__namespace, "{%s}", "namespace"); - - localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); - // query parameters @@ -2308,7 +2986,7 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscaler(apiClient_t *apiC if (body != NULL) { //string - localVarSingleItemJSON_body = v2beta2_horizontal_pod_autoscaler_convertToJSON(body); + localVarSingleItemJSON_body = v1alpha1_validating_admission_policy_convertToJSON(body); localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); } list_addElement(localVarHeaderType,"application/json"); //produces @@ -2337,9 +3015,9 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscaler(apiClient_t *apiC // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta2_horizontal_pod_autoscaler_t *elementToReturn = v2beta2_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_validating_admission_policy_t *elementToReturn = v1alpha1_validating_admission_policy_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -2357,7 +3035,6 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscaler(apiClient_t *apiC free(localVarPath); free(localVarToReplace_name); - free(localVarToReplace__namespace); if (localVarSingleItemJSON_body) { cJSON_Delete(localVarSingleItemJSON_body); localVarSingleItemJSON_body = NULL; @@ -2418,10 +3095,10 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscaler(apiClient_t *apiC } -// replace status of the specified HorizontalPodAutoscaler +// replace the specified ValidatingAdmissionPolicyBinding // -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscalerStatus(apiClient_t *apiClient, char * name , char * _namespace , v2beta2_horizontal_pod_autoscaler_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +v1alpha1_validating_admission_policy_binding_t* +AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name , v1alpha1_validating_admission_policy_binding_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -2431,13 +3108,13 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscalerStatus(apiClient_t char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}"); // Path Params - long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); if(name == NULL) { goto end; } @@ -2446,16 +3123,6 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscalerStatus(apiClient_t localVarPath = strReplace(localVarPath, localVarToReplace_name, name); - // Path Params - long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); - if(_namespace == NULL) { - goto end; - } - char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); - sprintf(localVarToReplace__namespace, "{%s}", "namespace"); - - localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); - // query parameters @@ -2511,7 +3178,7 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscalerStatus(apiClient_t if (body != NULL) { //string - localVarSingleItemJSON_body = v2beta2_horizontal_pod_autoscaler_convertToJSON(body); + localVarSingleItemJSON_body = v1alpha1_validating_admission_policy_binding_convertToJSON(body); localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); } list_addElement(localVarHeaderType,"application/json"); //produces @@ -2540,9 +3207,9 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscalerStatus(apiClient_t // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta2_horizontal_pod_autoscaler_t *elementToReturn = v2beta2_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_validating_admission_policy_binding_t *elementToReturn = v1alpha1_validating_admission_policy_binding_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -2560,7 +3227,6 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscalerStatus(apiClient_t free(localVarPath); free(localVarToReplace_name); - free(localVarToReplace__namespace); if (localVarSingleItemJSON_body) { cJSON_Delete(localVarSingleItemJSON_body); localVarSingleItemJSON_body = NULL; diff --git a/kubernetes/api/AdmissionregistrationV1alpha1API.h b/kubernetes/api/AdmissionregistrationV1alpha1API.h new file mode 100644 index 00000000..38cfa972 --- /dev/null +++ b/kubernetes/api/AdmissionregistrationV1alpha1API.h @@ -0,0 +1,107 @@ +#include +#include +#include "../include/apiClient.h" +#include "../include/list.h" +#include "../external/cJSON.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" +#include "../model/object.h" +#include "../model/v1_api_resource_list.h" +#include "../model/v1_delete_options.h" +#include "../model/v1_status.h" +#include "../model/v1alpha1_validating_admission_policy.h" +#include "../model/v1alpha1_validating_admission_policy_binding.h" +#include "../model/v1alpha1_validating_admission_policy_binding_list.h" +#include "../model/v1alpha1_validating_admission_policy_list.h" + + +// create a ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_t* +AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicy(apiClient_t *apiClient, v1alpha1_validating_admission_policy_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// create a ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_t* +AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicyBinding(apiClient_t *apiClient, v1alpha1_validating_admission_policy_binding_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// delete collection of ValidatingAdmissionPolicy +// +v1_status_t* +AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicy(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); + + +// delete collection of ValidatingAdmissionPolicyBinding +// +v1_status_t* +AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); + + +// delete a ValidatingAdmissionPolicy +// +v1_status_t* +AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicy(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); + + +// delete a ValidatingAdmissionPolicyBinding +// +v1_status_t* +AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); + + +// get available resources +// +v1_api_resource_list_t* +AdmissionregistrationV1alpha1API_getAPIResources(apiClient_t *apiClient); + + +// list or watch objects of kind ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_list_t* +AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicy(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); + + +// list or watch objects of kind ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_list_t* +AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); + + +// partially update the specified ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_t* +AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicy(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); + + +// partially update the specified ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_t* +AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); + + +// read the specified ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_t* +AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicy(apiClient_t *apiClient, char * name , char * pretty ); + + +// read the specified ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_t* +AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name , char * pretty ); + + +// replace the specified ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_t* +AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicy(apiClient_t *apiClient, char * name , v1alpha1_validating_admission_policy_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// replace the specified ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_t* +AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name , v1alpha1_validating_admission_policy_binding_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + diff --git a/kubernetes/api/AuthenticationV1alpha1API.c b/kubernetes/api/AuthenticationV1alpha1API.c new file mode 100644 index 00000000..aaf8ef9d --- /dev/null +++ b/kubernetes/api/AuthenticationV1alpha1API.c @@ -0,0 +1,266 @@ +#include +#include +#include +#include "AuthenticationV1alpha1API.h" + +#define MAX_NUMBER_LENGTH 16 +#define MAX_BUFFER_LENGTH 4096 +#define intToStr(dst, src) \ + do {\ + char dst[256];\ + snprintf(dst, 256, "%ld", (long int)(src));\ +}while(0) + + +// create a SelfSubjectReview +// +v1alpha1_self_subject_review_t* +AuthenticationV1alpha1API_createSelfSubjectReview(apiClient_t *apiClient, v1alpha1_self_subject_review_t * body , char * dryRun , char * fieldManager , char * fieldValidation , char * pretty ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/authentication.k8s.io/v1alpha1/selfsubjectreviews")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/authentication.k8s.io/v1alpha1/selfsubjectreviews"); + + + + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_self_subject_review_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "POST"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *AuthenticationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_self_subject_review_t *elementToReturn = v1alpha1_self_subject_review_parseFromJSON(AuthenticationV1alpha1APIlocalVarJSON); + cJSON_Delete(AuthenticationV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// get available resources +// +v1_api_resource_list_t* +AuthenticationV1alpha1API_getAPIResources(apiClient_t *apiClient) +{ + list_t *localVarQueryParameters = NULL; + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/authentication.k8s.io/v1alpha1/")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/authentication.k8s.io/v1alpha1/"); + + + + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *AuthenticationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(AuthenticationV1alpha1APIlocalVarJSON); + cJSON_Delete(AuthenticationV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + + + + list_freeList(localVarHeaderType); + + free(localVarPath); + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + diff --git a/kubernetes/api/AuthenticationV1alpha1API.h b/kubernetes/api/AuthenticationV1alpha1API.h new file mode 100644 index 00000000..acdfda78 --- /dev/null +++ b/kubernetes/api/AuthenticationV1alpha1API.h @@ -0,0 +1,23 @@ +#include +#include +#include "../include/apiClient.h" +#include "../include/list.h" +#include "../external/cJSON.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" +#include "../model/v1_api_resource_list.h" +#include "../model/v1alpha1_self_subject_review.h" + + +// create a SelfSubjectReview +// +v1alpha1_self_subject_review_t* +AuthenticationV1alpha1API_createSelfSubjectReview(apiClient_t *apiClient, v1alpha1_self_subject_review_t * body , char * dryRun , char * fieldManager , char * fieldValidation , char * pretty ); + + +// get available resources +// +v1_api_resource_list_t* +AuthenticationV1alpha1API_getAPIResources(apiClient_t *apiClient); + + diff --git a/kubernetes/api/AutoscalingV2beta2API.h b/kubernetes/api/AutoscalingV2beta2API.h deleted file mode 100644 index f3f23fbd..00000000 --- a/kubernetes/api/AutoscalingV2beta2API.h +++ /dev/null @@ -1,87 +0,0 @@ -#include -#include -#include "../include/apiClient.h" -#include "../include/list.h" -#include "../external/cJSON.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" -#include "../model/object.h" -#include "../model/v1_api_resource_list.h" -#include "../model/v1_delete_options.h" -#include "../model/v1_status.h" -#include "../model/v2beta2_horizontal_pod_autoscaler.h" -#include "../model/v2beta2_horizontal_pod_autoscaler_list.h" - - -// create a HorizontalPodAutoscaler -// -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_createNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * _namespace , v2beta2_horizontal_pod_autoscaler_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - -// delete collection of HorizontalPodAutoscaler -// -v1_status_t* -AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * _namespace , char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); - - -// delete a HorizontalPodAutoscaler -// -v1_status_t* -AutoscalingV2beta2API_deleteNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * name , char * _namespace , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); - - -// get available resources -// -v1_api_resource_list_t* -AutoscalingV2beta2API_getAPIResources(apiClient_t *apiClient); - - -// list or watch objects of kind HorizontalPodAutoscaler -// -v2beta2_horizontal_pod_autoscaler_list_t* -AutoscalingV2beta2API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * pretty , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); - - -// list or watch objects of kind HorizontalPodAutoscaler -// -v2beta2_horizontal_pod_autoscaler_list_t* -AutoscalingV2beta2API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * _namespace , char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); - - -// partially update the specified HorizontalPodAutoscaler -// -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); - - -// partially update status of the specified HorizontalPodAutoscaler -// -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscalerStatus(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); - - -// read the specified HorizontalPodAutoscaler -// -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); - - -// read status of the specified HorizontalPodAutoscaler -// -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscalerStatus(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); - - -// replace the specified HorizontalPodAutoscaler -// -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * name , char * _namespace , v2beta2_horizontal_pod_autoscaler_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - -// replace status of the specified HorizontalPodAutoscaler -// -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscalerStatus(apiClient_t *apiClient, char * name , char * _namespace , v2beta2_horizontal_pod_autoscaler_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - diff --git a/kubernetes/api/CustomObjectsAPI.c b/kubernetes/api/CustomObjectsAPI.c index 33c73155..35409f46 100644 --- a/kubernetes/api/CustomObjectsAPI.c +++ b/kubernetes/api/CustomObjectsAPI.c @@ -1323,6 +1323,93 @@ CustomObjectsAPI_deleteNamespacedCustomObject(apiClient_t *apiClient, char * gro } +// get available resources +// +v1_api_resource_list_t* +CustomObjectsAPI_getAPIResources(apiClient_t *apiClient, char * group , char * version ) +{ + list_t *localVarQueryParameters = NULL; + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/{group}/{version}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/{group}/{version}"); + + + // Path Params + long sizeOfPathParams_group = strlen(group)+3 + strlen(version)+3 + strlen("{ group }"); + if(group == NULL) { + goto end; + } + char* localVarToReplace_group = malloc(sizeOfPathParams_group); + sprintf(localVarToReplace_group, "{%s}", "group"); + + localVarPath = strReplace(localVarPath, localVarToReplace_group, group); + + // Path Params + long sizeOfPathParams_version = strlen(group)+3 + strlen(version)+3 + strlen("{ version }"); + if(version == NULL) { + goto end; + } + char* localVarToReplace_version = malloc(sizeOfPathParams_version); + sprintf(localVarToReplace_version, "{%s}", "version"); + + localVarPath = strReplace(localVarPath, localVarToReplace_version, version); + + + list_addElement(localVarHeaderType,"application/json"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *CustomObjectsAPIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(CustomObjectsAPIlocalVarJSON); + cJSON_Delete(CustomObjectsAPIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_group); + free(localVarToReplace_version); + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + // Returns a cluster scoped custom object // object_t* diff --git a/kubernetes/api/CustomObjectsAPI.h b/kubernetes/api/CustomObjectsAPI.h index 0fb453ca..ce468704 100644 --- a/kubernetes/api/CustomObjectsAPI.h +++ b/kubernetes/api/CustomObjectsAPI.h @@ -6,6 +6,7 @@ #include "../include/keyValuePair.h" #include "../include/binary.h" #include "../model/object.h" +#include "../model/v1_api_resource_list.h" #include "../model/v1_delete_options.h" @@ -45,6 +46,12 @@ object_t* CustomObjectsAPI_deleteNamespacedCustomObject(apiClient_t *apiClient, char * group , char * version , char * _namespace , char * plural , char * name , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , char * dryRun , v1_delete_options_t * body ); +// get available resources +// +v1_api_resource_list_t* +CustomObjectsAPI_getAPIResources(apiClient_t *apiClient, char * group , char * version ); + + // Returns a cluster scoped custom object // object_t* diff --git a/kubernetes/api/FlowcontrolApiserverV1beta1API.c b/kubernetes/api/FlowcontrolApiserverV1beta3API.c similarity index 93% rename from kubernetes/api/FlowcontrolApiserverV1beta1API.c rename to kubernetes/api/FlowcontrolApiserverV1beta3API.c index ab531866..48b6f17c 100644 --- a/kubernetes/api/FlowcontrolApiserverV1beta1API.c +++ b/kubernetes/api/FlowcontrolApiserverV1beta3API.c @@ -1,7 +1,7 @@ #include #include #include -#include "FlowcontrolApiserverV1beta1API.h" +#include "FlowcontrolApiserverV1beta3API.h" #define MAX_NUMBER_LENGTH 16 #define MAX_BUFFER_LENGTH 4096 @@ -14,8 +14,8 @@ // create a FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_createFlowSchema(apiClient_t *apiClient, v1beta1_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_createFlowSchema(apiClient_t *apiClient, v1beta3_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -25,9 +25,9 @@ FlowcontrolApiserverV1beta1API_createFlowSchema(apiClient_t *apiClient, v1beta1_ char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas"); @@ -85,7 +85,7 @@ FlowcontrolApiserverV1beta1API_createFlowSchema(apiClient_t *apiClient, v1beta1_ if (body != NULL) { //string - localVarSingleItemJSON_body = v1beta1_flow_schema_convertToJSON(body); + localVarSingleItemJSON_body = v1beta3_flow_schema_convertToJSON(body); localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); } list_addElement(localVarHeaderType,"application/json"); //produces @@ -118,9 +118,9 @@ FlowcontrolApiserverV1beta1API_createFlowSchema(apiClient_t *apiClient, v1beta1_ // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_flow_schema_t *elementToReturn = v1beta1_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_flow_schema_t *elementToReturn = v1beta3_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -199,8 +199,8 @@ FlowcontrolApiserverV1beta1API_createFlowSchema(apiClient_t *apiClient, v1beta1_ // create a PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_createPriorityLevelConfiguration(apiClient_t *apiClient, v1beta1_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_createPriorityLevelConfiguration(apiClient_t *apiClient, v1beta3_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -210,9 +210,9 @@ FlowcontrolApiserverV1beta1API_createPriorityLevelConfiguration(apiClient_t *api char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations"); @@ -270,7 +270,7 @@ FlowcontrolApiserverV1beta1API_createPriorityLevelConfiguration(apiClient_t *api if (body != NULL) { //string - localVarSingleItemJSON_body = v1beta1_priority_level_configuration_convertToJSON(body); + localVarSingleItemJSON_body = v1beta3_priority_level_configuration_convertToJSON(body); localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); } list_addElement(localVarHeaderType,"application/json"); //produces @@ -303,9 +303,9 @@ FlowcontrolApiserverV1beta1API_createPriorityLevelConfiguration(apiClient_t *api // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_priority_level_configuration_t *elementToReturn = v1beta1_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_priority_level_configuration_t *elementToReturn = v1beta3_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -385,7 +385,7 @@ FlowcontrolApiserverV1beta1API_createPriorityLevelConfiguration(apiClient_t *api // delete collection of FlowSchema // v1_status_t* -FlowcontrolApiserverV1beta1API_deleteCollectionFlowSchema(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) +FlowcontrolApiserverV1beta3API_deleteCollectionFlowSchema(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -395,9 +395,9 @@ FlowcontrolApiserverV1beta1API_deleteCollectionFlowSchema(apiClient_t *apiClient char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas"); @@ -580,9 +580,9 @@ FlowcontrolApiserverV1beta1API_deleteCollectionFlowSchema(apiClient_t *apiClient // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -758,7 +758,7 @@ FlowcontrolApiserverV1beta1API_deleteCollectionFlowSchema(apiClient_t *apiClient // delete collection of PriorityLevelConfiguration // v1_status_t* -FlowcontrolApiserverV1beta1API_deleteCollectionPriorityLevelConfiguration(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) +FlowcontrolApiserverV1beta3API_deleteCollectionPriorityLevelConfiguration(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -768,9 +768,9 @@ FlowcontrolApiserverV1beta1API_deleteCollectionPriorityLevelConfiguration(apiCli char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations"); @@ -953,9 +953,9 @@ FlowcontrolApiserverV1beta1API_deleteCollectionPriorityLevelConfiguration(apiCli // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -1131,7 +1131,7 @@ FlowcontrolApiserverV1beta1API_deleteCollectionPriorityLevelConfiguration(apiCli // delete a FlowSchema // v1_status_t* -FlowcontrolApiserverV1beta1API_deleteFlowSchema(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) +FlowcontrolApiserverV1beta3API_deleteFlowSchema(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -1141,9 +1141,9 @@ FlowcontrolApiserverV1beta1API_deleteFlowSchema(apiClient_t *apiClient, char * n char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}"); // Path Params @@ -1254,9 +1254,9 @@ FlowcontrolApiserverV1beta1API_deleteFlowSchema(apiClient_t *apiClient, char * n // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -1349,7 +1349,7 @@ FlowcontrolApiserverV1beta1API_deleteFlowSchema(apiClient_t *apiClient, char * n // delete a PriorityLevelConfiguration // v1_status_t* -FlowcontrolApiserverV1beta1API_deletePriorityLevelConfiguration(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) +FlowcontrolApiserverV1beta3API_deletePriorityLevelConfiguration(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -1359,9 +1359,9 @@ FlowcontrolApiserverV1beta1API_deletePriorityLevelConfiguration(apiClient_t *api char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}"); // Path Params @@ -1472,9 +1472,9 @@ FlowcontrolApiserverV1beta1API_deletePriorityLevelConfiguration(apiClient_t *api // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -1567,7 +1567,7 @@ FlowcontrolApiserverV1beta1API_deletePriorityLevelConfiguration(apiClient_t *api // get available resources // v1_api_resource_list_t* -FlowcontrolApiserverV1beta1API_getAPIResources(apiClient_t *apiClient) +FlowcontrolApiserverV1beta3API_getAPIResources(apiClient_t *apiClient) { list_t *localVarQueryParameters = NULL; list_t *localVarHeaderParameters = NULL; @@ -1577,9 +1577,9 @@ FlowcontrolApiserverV1beta1API_getAPIResources(apiClient_t *apiClient) char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/"); @@ -1605,9 +1605,9 @@ FlowcontrolApiserverV1beta1API_getAPIResources(apiClient_t *apiClient) // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -1633,8 +1633,8 @@ FlowcontrolApiserverV1beta1API_getAPIResources(apiClient_t *apiClient) // list or watch objects of kind FlowSchema // -v1beta1_flow_schema_list_t* -FlowcontrolApiserverV1beta1API_listFlowSchema(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +v1beta3_flow_schema_list_t* +FlowcontrolApiserverV1beta3API_listFlowSchema(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -1644,9 +1644,9 @@ FlowcontrolApiserverV1beta1API_listFlowSchema(apiClient_t *apiClient, char * pre char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas"); @@ -1798,9 +1798,9 @@ FlowcontrolApiserverV1beta1API_listFlowSchema(apiClient_t *apiClient, char * pre // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_flow_schema_list_t *elementToReturn = v1beta1_flow_schema_list_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_flow_schema_list_t *elementToReturn = v1beta3_flow_schema_list_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -1946,8 +1946,8 @@ FlowcontrolApiserverV1beta1API_listFlowSchema(apiClient_t *apiClient, char * pre // list or watch objects of kind PriorityLevelConfiguration // -v1beta1_priority_level_configuration_list_t* -FlowcontrolApiserverV1beta1API_listPriorityLevelConfiguration(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +v1beta3_priority_level_configuration_list_t* +FlowcontrolApiserverV1beta3API_listPriorityLevelConfiguration(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -1957,9 +1957,9 @@ FlowcontrolApiserverV1beta1API_listPriorityLevelConfiguration(apiClient_t *apiCl char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations"); @@ -2111,9 +2111,9 @@ FlowcontrolApiserverV1beta1API_listPriorityLevelConfiguration(apiClient_t *apiCl // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_priority_level_configuration_list_t *elementToReturn = v1beta1_priority_level_configuration_list_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_priority_level_configuration_list_t *elementToReturn = v1beta3_priority_level_configuration_list_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -2259,8 +2259,8 @@ FlowcontrolApiserverV1beta1API_listPriorityLevelConfiguration(apiClient_t *apiCl // partially update the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_patchFlowSchema(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_patchFlowSchema(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -2270,9 +2270,9 @@ FlowcontrolApiserverV1beta1API_patchFlowSchema(apiClient_t *apiClient, char * na char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}"); // Path Params @@ -2386,9 +2386,9 @@ FlowcontrolApiserverV1beta1API_patchFlowSchema(apiClient_t *apiClient, char * na // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_flow_schema_t *elementToReturn = v1beta1_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_flow_schema_t *elementToReturn = v1beta3_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -2480,8 +2480,8 @@ FlowcontrolApiserverV1beta1API_patchFlowSchema(apiClient_t *apiClient, char * na // partially update status of the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_patchFlowSchemaStatus(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_patchFlowSchemaStatus(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -2491,9 +2491,9 @@ FlowcontrolApiserverV1beta1API_patchFlowSchemaStatus(apiClient_t *apiClient, cha char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status"); // Path Params @@ -2607,9 +2607,9 @@ FlowcontrolApiserverV1beta1API_patchFlowSchemaStatus(apiClient_t *apiClient, cha // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_flow_schema_t *elementToReturn = v1beta1_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_flow_schema_t *elementToReturn = v1beta3_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -2701,8 +2701,8 @@ FlowcontrolApiserverV1beta1API_patchFlowSchemaStatus(apiClient_t *apiClient, cha // partially update the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_patchPriorityLevelConfiguration(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_patchPriorityLevelConfiguration(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -2712,9 +2712,9 @@ FlowcontrolApiserverV1beta1API_patchPriorityLevelConfiguration(apiClient_t *apiC char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}"); // Path Params @@ -2828,9 +2828,9 @@ FlowcontrolApiserverV1beta1API_patchPriorityLevelConfiguration(apiClient_t *apiC // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_priority_level_configuration_t *elementToReturn = v1beta1_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_priority_level_configuration_t *elementToReturn = v1beta3_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -2922,8 +2922,8 @@ FlowcontrolApiserverV1beta1API_patchPriorityLevelConfiguration(apiClient_t *apiC // partially update status of the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_patchPriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_patchPriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -2933,9 +2933,9 @@ FlowcontrolApiserverV1beta1API_patchPriorityLevelConfigurationStatus(apiClient_t char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status"); // Path Params @@ -3049,9 +3049,9 @@ FlowcontrolApiserverV1beta1API_patchPriorityLevelConfigurationStatus(apiClient_t // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_priority_level_configuration_t *elementToReturn = v1beta1_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_priority_level_configuration_t *elementToReturn = v1beta3_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -3143,8 +3143,8 @@ FlowcontrolApiserverV1beta1API_patchPriorityLevelConfigurationStatus(apiClient_t // read the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_readFlowSchema(apiClient_t *apiClient, char * name , char * pretty ) +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_readFlowSchema(apiClient_t *apiClient, char * name , char * pretty ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -3154,9 +3154,9 @@ FlowcontrolApiserverV1beta1API_readFlowSchema(apiClient_t *apiClient, char * nam char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}"); // Path Params @@ -3204,9 +3204,9 @@ FlowcontrolApiserverV1beta1API_readFlowSchema(apiClient_t *apiClient, char * nam // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_flow_schema_t *elementToReturn = v1beta1_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_flow_schema_t *elementToReturn = v1beta3_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -3245,8 +3245,8 @@ FlowcontrolApiserverV1beta1API_readFlowSchema(apiClient_t *apiClient, char * nam // read status of the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_readFlowSchemaStatus(apiClient_t *apiClient, char * name , char * pretty ) +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_readFlowSchemaStatus(apiClient_t *apiClient, char * name , char * pretty ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -3256,9 +3256,9 @@ FlowcontrolApiserverV1beta1API_readFlowSchemaStatus(apiClient_t *apiClient, char char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status"); // Path Params @@ -3306,9 +3306,9 @@ FlowcontrolApiserverV1beta1API_readFlowSchemaStatus(apiClient_t *apiClient, char // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_flow_schema_t *elementToReturn = v1beta1_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_flow_schema_t *elementToReturn = v1beta3_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -3347,8 +3347,8 @@ FlowcontrolApiserverV1beta1API_readFlowSchemaStatus(apiClient_t *apiClient, char // read the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_readPriorityLevelConfiguration(apiClient_t *apiClient, char * name , char * pretty ) +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_readPriorityLevelConfiguration(apiClient_t *apiClient, char * name , char * pretty ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -3358,9 +3358,9 @@ FlowcontrolApiserverV1beta1API_readPriorityLevelConfiguration(apiClient_t *apiCl char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}"); // Path Params @@ -3408,9 +3408,9 @@ FlowcontrolApiserverV1beta1API_readPriorityLevelConfiguration(apiClient_t *apiCl // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_priority_level_configuration_t *elementToReturn = v1beta1_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_priority_level_configuration_t *elementToReturn = v1beta3_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -3449,8 +3449,8 @@ FlowcontrolApiserverV1beta1API_readPriorityLevelConfiguration(apiClient_t *apiCl // read status of the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_readPriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , char * pretty ) +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_readPriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , char * pretty ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -3460,9 +3460,9 @@ FlowcontrolApiserverV1beta1API_readPriorityLevelConfigurationStatus(apiClient_t char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status"); // Path Params @@ -3510,9 +3510,9 @@ FlowcontrolApiserverV1beta1API_readPriorityLevelConfigurationStatus(apiClient_t // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_priority_level_configuration_t *elementToReturn = v1beta1_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_priority_level_configuration_t *elementToReturn = v1beta3_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -3551,8 +3551,8 @@ FlowcontrolApiserverV1beta1API_readPriorityLevelConfigurationStatus(apiClient_t // replace the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_replaceFlowSchema(apiClient_t *apiClient, char * name , v1beta1_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_replaceFlowSchema(apiClient_t *apiClient, char * name , v1beta3_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -3562,9 +3562,9 @@ FlowcontrolApiserverV1beta1API_replaceFlowSchema(apiClient_t *apiClient, char * char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}"); // Path Params @@ -3632,7 +3632,7 @@ FlowcontrolApiserverV1beta1API_replaceFlowSchema(apiClient_t *apiClient, char * if (body != NULL) { //string - localVarSingleItemJSON_body = v1beta1_flow_schema_convertToJSON(body); + localVarSingleItemJSON_body = v1beta3_flow_schema_convertToJSON(body); localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); } list_addElement(localVarHeaderType,"application/json"); //produces @@ -3661,9 +3661,9 @@ FlowcontrolApiserverV1beta1API_replaceFlowSchema(apiClient_t *apiClient, char * // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_flow_schema_t *elementToReturn = v1beta1_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_flow_schema_t *elementToReturn = v1beta3_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -3743,8 +3743,8 @@ FlowcontrolApiserverV1beta1API_replaceFlowSchema(apiClient_t *apiClient, char * // replace status of the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_replaceFlowSchemaStatus(apiClient_t *apiClient, char * name , v1beta1_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_replaceFlowSchemaStatus(apiClient_t *apiClient, char * name , v1beta3_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -3754,9 +3754,9 @@ FlowcontrolApiserverV1beta1API_replaceFlowSchemaStatus(apiClient_t *apiClient, c char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status"); // Path Params @@ -3824,7 +3824,7 @@ FlowcontrolApiserverV1beta1API_replaceFlowSchemaStatus(apiClient_t *apiClient, c if (body != NULL) { //string - localVarSingleItemJSON_body = v1beta1_flow_schema_convertToJSON(body); + localVarSingleItemJSON_body = v1beta3_flow_schema_convertToJSON(body); localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); } list_addElement(localVarHeaderType,"application/json"); //produces @@ -3853,9 +3853,9 @@ FlowcontrolApiserverV1beta1API_replaceFlowSchemaStatus(apiClient_t *apiClient, c // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_flow_schema_t *elementToReturn = v1beta1_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_flow_schema_t *elementToReturn = v1beta3_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -3935,8 +3935,8 @@ FlowcontrolApiserverV1beta1API_replaceFlowSchemaStatus(apiClient_t *apiClient, c // replace the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_replacePriorityLevelConfiguration(apiClient_t *apiClient, char * name , v1beta1_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_replacePriorityLevelConfiguration(apiClient_t *apiClient, char * name , v1beta3_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -3946,9 +3946,9 @@ FlowcontrolApiserverV1beta1API_replacePriorityLevelConfiguration(apiClient_t *ap char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}"); // Path Params @@ -4016,7 +4016,7 @@ FlowcontrolApiserverV1beta1API_replacePriorityLevelConfiguration(apiClient_t *ap if (body != NULL) { //string - localVarSingleItemJSON_body = v1beta1_priority_level_configuration_convertToJSON(body); + localVarSingleItemJSON_body = v1beta3_priority_level_configuration_convertToJSON(body); localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); } list_addElement(localVarHeaderType,"application/json"); //produces @@ -4045,9 +4045,9 @@ FlowcontrolApiserverV1beta1API_replacePriorityLevelConfiguration(apiClient_t *ap // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_priority_level_configuration_t *elementToReturn = v1beta1_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_priority_level_configuration_t *elementToReturn = v1beta3_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -4127,8 +4127,8 @@ FlowcontrolApiserverV1beta1API_replacePriorityLevelConfiguration(apiClient_t *ap // replace status of the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_replacePriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , v1beta1_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_replacePriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , v1beta3_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -4138,9 +4138,9 @@ FlowcontrolApiserverV1beta1API_replacePriorityLevelConfigurationStatus(apiClient char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status"); // Path Params @@ -4208,7 +4208,7 @@ FlowcontrolApiserverV1beta1API_replacePriorityLevelConfigurationStatus(apiClient if (body != NULL) { //string - localVarSingleItemJSON_body = v1beta1_priority_level_configuration_convertToJSON(body); + localVarSingleItemJSON_body = v1beta3_priority_level_configuration_convertToJSON(body); localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); } list_addElement(localVarHeaderType,"application/json"); //produces @@ -4237,9 +4237,9 @@ FlowcontrolApiserverV1beta1API_replacePriorityLevelConfigurationStatus(apiClient // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_priority_level_configuration_t *elementToReturn = v1beta1_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_priority_level_configuration_t *elementToReturn = v1beta3_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } diff --git a/kubernetes/api/FlowcontrolApiserverV1beta1API.h b/kubernetes/api/FlowcontrolApiserverV1beta3API.h similarity index 62% rename from kubernetes/api/FlowcontrolApiserverV1beta1API.h rename to kubernetes/api/FlowcontrolApiserverV1beta3API.h index 25bc6143..85acd3f2 100644 --- a/kubernetes/api/FlowcontrolApiserverV1beta1API.h +++ b/kubernetes/api/FlowcontrolApiserverV1beta3API.h @@ -9,135 +9,135 @@ #include "../model/v1_api_resource_list.h" #include "../model/v1_delete_options.h" #include "../model/v1_status.h" -#include "../model/v1beta1_flow_schema.h" -#include "../model/v1beta1_flow_schema_list.h" -#include "../model/v1beta1_priority_level_configuration.h" -#include "../model/v1beta1_priority_level_configuration_list.h" +#include "../model/v1beta3_flow_schema.h" +#include "../model/v1beta3_flow_schema_list.h" +#include "../model/v1beta3_priority_level_configuration.h" +#include "../model/v1beta3_priority_level_configuration_list.h" // create a FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_createFlowSchema(apiClient_t *apiClient, v1beta1_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_createFlowSchema(apiClient_t *apiClient, v1beta3_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); // create a PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_createPriorityLevelConfiguration(apiClient_t *apiClient, v1beta1_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_createPriorityLevelConfiguration(apiClient_t *apiClient, v1beta3_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); // delete collection of FlowSchema // v1_status_t* -FlowcontrolApiserverV1beta1API_deleteCollectionFlowSchema(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); +FlowcontrolApiserverV1beta3API_deleteCollectionFlowSchema(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); // delete collection of PriorityLevelConfiguration // v1_status_t* -FlowcontrolApiserverV1beta1API_deleteCollectionPriorityLevelConfiguration(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); +FlowcontrolApiserverV1beta3API_deleteCollectionPriorityLevelConfiguration(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); // delete a FlowSchema // v1_status_t* -FlowcontrolApiserverV1beta1API_deleteFlowSchema(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); +FlowcontrolApiserverV1beta3API_deleteFlowSchema(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); // delete a PriorityLevelConfiguration // v1_status_t* -FlowcontrolApiserverV1beta1API_deletePriorityLevelConfiguration(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); +FlowcontrolApiserverV1beta3API_deletePriorityLevelConfiguration(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); // get available resources // v1_api_resource_list_t* -FlowcontrolApiserverV1beta1API_getAPIResources(apiClient_t *apiClient); +FlowcontrolApiserverV1beta3API_getAPIResources(apiClient_t *apiClient); // list or watch objects of kind FlowSchema // -v1beta1_flow_schema_list_t* -FlowcontrolApiserverV1beta1API_listFlowSchema(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); +v1beta3_flow_schema_list_t* +FlowcontrolApiserverV1beta3API_listFlowSchema(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); // list or watch objects of kind PriorityLevelConfiguration // -v1beta1_priority_level_configuration_list_t* -FlowcontrolApiserverV1beta1API_listPriorityLevelConfiguration(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); +v1beta3_priority_level_configuration_list_t* +FlowcontrolApiserverV1beta3API_listPriorityLevelConfiguration(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); // partially update the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_patchFlowSchema(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_patchFlowSchema(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); // partially update status of the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_patchFlowSchemaStatus(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_patchFlowSchemaStatus(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); // partially update the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_patchPriorityLevelConfiguration(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_patchPriorityLevelConfiguration(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); // partially update status of the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_patchPriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_patchPriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); // read the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_readFlowSchema(apiClient_t *apiClient, char * name , char * pretty ); +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_readFlowSchema(apiClient_t *apiClient, char * name , char * pretty ); // read status of the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_readFlowSchemaStatus(apiClient_t *apiClient, char * name , char * pretty ); +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_readFlowSchemaStatus(apiClient_t *apiClient, char * name , char * pretty ); // read the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_readPriorityLevelConfiguration(apiClient_t *apiClient, char * name , char * pretty ); +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_readPriorityLevelConfiguration(apiClient_t *apiClient, char * name , char * pretty ); // read status of the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_readPriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , char * pretty ); +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_readPriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , char * pretty ); // replace the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_replaceFlowSchema(apiClient_t *apiClient, char * name , v1beta1_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_replaceFlowSchema(apiClient_t *apiClient, char * name , v1beta3_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); // replace status of the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_replaceFlowSchemaStatus(apiClient_t *apiClient, char * name , v1beta1_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_replaceFlowSchemaStatus(apiClient_t *apiClient, char * name , v1beta3_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); // replace the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_replacePriorityLevelConfiguration(apiClient_t *apiClient, char * name , v1beta1_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_replacePriorityLevelConfiguration(apiClient_t *apiClient, char * name , v1beta3_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); // replace status of the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_replacePriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , v1beta1_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_replacePriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , v1beta3_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); diff --git a/kubernetes/api/ResourceAPI.c b/kubernetes/api/ResourceAPI.c new file mode 100644 index 00000000..dd4ed7e1 --- /dev/null +++ b/kubernetes/api/ResourceAPI.c @@ -0,0 +1,81 @@ +#include +#include +#include +#include "ResourceAPI.h" + +#define MAX_NUMBER_LENGTH 16 +#define MAX_BUFFER_LENGTH 4096 +#define intToStr(dst, src) \ + do {\ + char dst[256];\ + snprintf(dst, 256, "%ld", (long int)(src));\ +}while(0) + + +// get information of a group +// +v1_api_group_t* +ResourceAPI_getAPIGroup(apiClient_t *apiClient) +{ + list_t *localVarQueryParameters = NULL; + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/"); + + + + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceAPIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_api_group_t *elementToReturn = v1_api_group_parseFromJSON(ResourceAPIlocalVarJSON); + cJSON_Delete(ResourceAPIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + + + + list_freeList(localVarHeaderType); + + free(localVarPath); + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + diff --git a/kubernetes/api/ResourceAPI.h b/kubernetes/api/ResourceAPI.h new file mode 100644 index 00000000..5abd1a40 --- /dev/null +++ b/kubernetes/api/ResourceAPI.h @@ -0,0 +1,16 @@ +#include +#include +#include "../include/apiClient.h" +#include "../include/list.h" +#include "../external/cJSON.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" +#include "../model/v1_api_group.h" + + +// get information of a group +// +v1_api_group_t* +ResourceAPI_getAPIGroup(apiClient_t *apiClient); + + diff --git a/kubernetes/api/ResourceV1alpha1API.c b/kubernetes/api/ResourceV1alpha1API.c new file mode 100644 index 00000000..a26f993e --- /dev/null +++ b/kubernetes/api/ResourceV1alpha1API.c @@ -0,0 +1,8763 @@ +#include +#include +#include +#include "ResourceV1alpha1API.h" + +#define MAX_NUMBER_LENGTH 16 +#define MAX_BUFFER_LENGTH 4096 +#define intToStr(dst, src) \ + do {\ + char dst[256];\ + snprintf(dst, 256, "%ld", (long int)(src));\ +}while(0) + + +// create a PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_createNamespacedPodScheduling(apiClient_t *apiClient, char * _namespace , v1alpha1_pod_scheduling_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings"); + + + // Path Params + long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_pod_scheduling_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "POST"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_pod_scheduling_t *elementToReturn = v1alpha1_pod_scheduling_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// create a ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_createNamespacedResourceClaim(apiClient_t *apiClient, char * _namespace , v1alpha1_resource_claim_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims"); + + + // Path Params + long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_resource_claim_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "POST"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_t *elementToReturn = v1alpha1_resource_claim_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// create a ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* +ResourceV1alpha1API_createNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * _namespace , v1alpha1_resource_claim_template_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates"); + + + // Path Params + long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_resource_claim_template_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "POST"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_template_t *elementToReturn = v1alpha1_resource_claim_template_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// create a ResourceClass +// +v1alpha1_resource_class_t* +ResourceV1alpha1API_createResourceClass(apiClient_t *apiClient, v1alpha1_resource_class_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/resourceclasses")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/resourceclasses"); + + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_resource_class_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "POST"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_class_t *elementToReturn = v1alpha1_resource_class_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// delete collection of PodScheduling +// +v1_status_t* +ResourceV1alpha1API_deleteCollectionNamespacedPodScheduling(apiClient_t *apiClient, char * _namespace , char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings"); + + + // Path Params + long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_gracePeriodSeconds = NULL; + char * valueQuery_gracePeriodSeconds = NULL; + keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); + valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_gracePeriodSeconds, MAX_NUMBER_LENGTH, "%d", gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = keyValuePair_create(keyQuery_gracePeriodSeconds, valueQuery_gracePeriodSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_orphanDependents = NULL; + char * valueQuery_orphanDependents = NULL; + keyValuePair_t *keyPairQuery_orphanDependents = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_orphanDependents = strdup("orphanDependents"); + valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_orphanDependents, MAX_NUMBER_LENGTH, "%d", orphanDependents); + keyPairQuery_orphanDependents = keyValuePair_create(keyQuery_orphanDependents, valueQuery_orphanDependents); + list_addElement(localVarQueryParameters,keyPairQuery_orphanDependents); + } + + // query parameters + char *keyQuery_propagationPolicy = NULL; + char * valueQuery_propagationPolicy = NULL; + keyValuePair_t *keyPairQuery_propagationPolicy = 0; + if (propagationPolicy) + { + keyQuery_propagationPolicy = strdup("propagationPolicy"); + valueQuery_propagationPolicy = strdup((propagationPolicy)); + keyPairQuery_propagationPolicy = keyValuePair_create(keyQuery_propagationPolicy, valueQuery_propagationPolicy); + list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1_delete_options_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "DELETE"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_gracePeriodSeconds){ + free(keyQuery_gracePeriodSeconds); + keyQuery_gracePeriodSeconds = NULL; + } + if(valueQuery_gracePeriodSeconds){ + free(valueQuery_gracePeriodSeconds); + valueQuery_gracePeriodSeconds = NULL; + } + if(keyPairQuery_gracePeriodSeconds){ + keyValuePair_free(keyPairQuery_gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_orphanDependents){ + free(keyQuery_orphanDependents); + keyQuery_orphanDependents = NULL; + } + if(valueQuery_orphanDependents){ + free(valueQuery_orphanDependents); + valueQuery_orphanDependents = NULL; + } + if(keyPairQuery_orphanDependents){ + keyValuePair_free(keyPairQuery_orphanDependents); + keyPairQuery_orphanDependents = NULL; + } + if(keyQuery_propagationPolicy){ + free(keyQuery_propagationPolicy); + keyQuery_propagationPolicy = NULL; + } + if(valueQuery_propagationPolicy){ + free(valueQuery_propagationPolicy); + valueQuery_propagationPolicy = NULL; + } + if(keyPairQuery_propagationPolicy){ + keyValuePair_free(keyPairQuery_propagationPolicy); + keyPairQuery_propagationPolicy = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// delete collection of ResourceClaim +// +v1_status_t* +ResourceV1alpha1API_deleteCollectionNamespacedResourceClaim(apiClient_t *apiClient, char * _namespace , char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims"); + + + // Path Params + long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_gracePeriodSeconds = NULL; + char * valueQuery_gracePeriodSeconds = NULL; + keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); + valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_gracePeriodSeconds, MAX_NUMBER_LENGTH, "%d", gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = keyValuePair_create(keyQuery_gracePeriodSeconds, valueQuery_gracePeriodSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_orphanDependents = NULL; + char * valueQuery_orphanDependents = NULL; + keyValuePair_t *keyPairQuery_orphanDependents = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_orphanDependents = strdup("orphanDependents"); + valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_orphanDependents, MAX_NUMBER_LENGTH, "%d", orphanDependents); + keyPairQuery_orphanDependents = keyValuePair_create(keyQuery_orphanDependents, valueQuery_orphanDependents); + list_addElement(localVarQueryParameters,keyPairQuery_orphanDependents); + } + + // query parameters + char *keyQuery_propagationPolicy = NULL; + char * valueQuery_propagationPolicy = NULL; + keyValuePair_t *keyPairQuery_propagationPolicy = 0; + if (propagationPolicy) + { + keyQuery_propagationPolicy = strdup("propagationPolicy"); + valueQuery_propagationPolicy = strdup((propagationPolicy)); + keyPairQuery_propagationPolicy = keyValuePair_create(keyQuery_propagationPolicy, valueQuery_propagationPolicy); + list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1_delete_options_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "DELETE"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_gracePeriodSeconds){ + free(keyQuery_gracePeriodSeconds); + keyQuery_gracePeriodSeconds = NULL; + } + if(valueQuery_gracePeriodSeconds){ + free(valueQuery_gracePeriodSeconds); + valueQuery_gracePeriodSeconds = NULL; + } + if(keyPairQuery_gracePeriodSeconds){ + keyValuePair_free(keyPairQuery_gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_orphanDependents){ + free(keyQuery_orphanDependents); + keyQuery_orphanDependents = NULL; + } + if(valueQuery_orphanDependents){ + free(valueQuery_orphanDependents); + valueQuery_orphanDependents = NULL; + } + if(keyPairQuery_orphanDependents){ + keyValuePair_free(keyPairQuery_orphanDependents); + keyPairQuery_orphanDependents = NULL; + } + if(keyQuery_propagationPolicy){ + free(keyQuery_propagationPolicy); + keyQuery_propagationPolicy = NULL; + } + if(valueQuery_propagationPolicy){ + free(valueQuery_propagationPolicy); + valueQuery_propagationPolicy = NULL; + } + if(keyPairQuery_propagationPolicy){ + keyValuePair_free(keyPairQuery_propagationPolicy); + keyPairQuery_propagationPolicy = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// delete collection of ResourceClaimTemplate +// +v1_status_t* +ResourceV1alpha1API_deleteCollectionNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * _namespace , char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates"); + + + // Path Params + long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_gracePeriodSeconds = NULL; + char * valueQuery_gracePeriodSeconds = NULL; + keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); + valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_gracePeriodSeconds, MAX_NUMBER_LENGTH, "%d", gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = keyValuePair_create(keyQuery_gracePeriodSeconds, valueQuery_gracePeriodSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_orphanDependents = NULL; + char * valueQuery_orphanDependents = NULL; + keyValuePair_t *keyPairQuery_orphanDependents = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_orphanDependents = strdup("orphanDependents"); + valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_orphanDependents, MAX_NUMBER_LENGTH, "%d", orphanDependents); + keyPairQuery_orphanDependents = keyValuePair_create(keyQuery_orphanDependents, valueQuery_orphanDependents); + list_addElement(localVarQueryParameters,keyPairQuery_orphanDependents); + } + + // query parameters + char *keyQuery_propagationPolicy = NULL; + char * valueQuery_propagationPolicy = NULL; + keyValuePair_t *keyPairQuery_propagationPolicy = 0; + if (propagationPolicy) + { + keyQuery_propagationPolicy = strdup("propagationPolicy"); + valueQuery_propagationPolicy = strdup((propagationPolicy)); + keyPairQuery_propagationPolicy = keyValuePair_create(keyQuery_propagationPolicy, valueQuery_propagationPolicy); + list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1_delete_options_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "DELETE"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_gracePeriodSeconds){ + free(keyQuery_gracePeriodSeconds); + keyQuery_gracePeriodSeconds = NULL; + } + if(valueQuery_gracePeriodSeconds){ + free(valueQuery_gracePeriodSeconds); + valueQuery_gracePeriodSeconds = NULL; + } + if(keyPairQuery_gracePeriodSeconds){ + keyValuePair_free(keyPairQuery_gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_orphanDependents){ + free(keyQuery_orphanDependents); + keyQuery_orphanDependents = NULL; + } + if(valueQuery_orphanDependents){ + free(valueQuery_orphanDependents); + valueQuery_orphanDependents = NULL; + } + if(keyPairQuery_orphanDependents){ + keyValuePair_free(keyPairQuery_orphanDependents); + keyPairQuery_orphanDependents = NULL; + } + if(keyQuery_propagationPolicy){ + free(keyQuery_propagationPolicy); + keyQuery_propagationPolicy = NULL; + } + if(valueQuery_propagationPolicy){ + free(valueQuery_propagationPolicy); + valueQuery_propagationPolicy = NULL; + } + if(keyPairQuery_propagationPolicy){ + keyValuePair_free(keyPairQuery_propagationPolicy); + keyPairQuery_propagationPolicy = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// delete collection of ResourceClass +// +v1_status_t* +ResourceV1alpha1API_deleteCollectionResourceClass(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/resourceclasses")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/resourceclasses"); + + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_gracePeriodSeconds = NULL; + char * valueQuery_gracePeriodSeconds = NULL; + keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); + valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_gracePeriodSeconds, MAX_NUMBER_LENGTH, "%d", gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = keyValuePair_create(keyQuery_gracePeriodSeconds, valueQuery_gracePeriodSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_orphanDependents = NULL; + char * valueQuery_orphanDependents = NULL; + keyValuePair_t *keyPairQuery_orphanDependents = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_orphanDependents = strdup("orphanDependents"); + valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_orphanDependents, MAX_NUMBER_LENGTH, "%d", orphanDependents); + keyPairQuery_orphanDependents = keyValuePair_create(keyQuery_orphanDependents, valueQuery_orphanDependents); + list_addElement(localVarQueryParameters,keyPairQuery_orphanDependents); + } + + // query parameters + char *keyQuery_propagationPolicy = NULL; + char * valueQuery_propagationPolicy = NULL; + keyValuePair_t *keyPairQuery_propagationPolicy = 0; + if (propagationPolicy) + { + keyQuery_propagationPolicy = strdup("propagationPolicy"); + valueQuery_propagationPolicy = strdup((propagationPolicy)); + keyPairQuery_propagationPolicy = keyValuePair_create(keyQuery_propagationPolicy, valueQuery_propagationPolicy); + list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1_delete_options_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "DELETE"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_gracePeriodSeconds){ + free(keyQuery_gracePeriodSeconds); + keyQuery_gracePeriodSeconds = NULL; + } + if(valueQuery_gracePeriodSeconds){ + free(valueQuery_gracePeriodSeconds); + valueQuery_gracePeriodSeconds = NULL; + } + if(keyPairQuery_gracePeriodSeconds){ + keyValuePair_free(keyPairQuery_gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_orphanDependents){ + free(keyQuery_orphanDependents); + keyQuery_orphanDependents = NULL; + } + if(valueQuery_orphanDependents){ + free(valueQuery_orphanDependents); + valueQuery_orphanDependents = NULL; + } + if(keyPairQuery_orphanDependents){ + keyValuePair_free(keyPairQuery_orphanDependents); + keyPairQuery_orphanDependents = NULL; + } + if(keyQuery_propagationPolicy){ + free(keyQuery_propagationPolicy); + keyQuery_propagationPolicy = NULL; + } + if(valueQuery_propagationPolicy){ + free(valueQuery_propagationPolicy); + valueQuery_propagationPolicy = NULL; + } + if(keyPairQuery_propagationPolicy){ + keyValuePair_free(keyPairQuery_propagationPolicy); + keyPairQuery_propagationPolicy = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// delete a PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_deleteNamespacedPodScheduling(apiClient_t *apiClient, char * name , char * _namespace , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_gracePeriodSeconds = NULL; + char * valueQuery_gracePeriodSeconds = NULL; + keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); + valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_gracePeriodSeconds, MAX_NUMBER_LENGTH, "%d", gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = keyValuePair_create(keyQuery_gracePeriodSeconds, valueQuery_gracePeriodSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); + } + + // query parameters + char *keyQuery_orphanDependents = NULL; + char * valueQuery_orphanDependents = NULL; + keyValuePair_t *keyPairQuery_orphanDependents = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_orphanDependents = strdup("orphanDependents"); + valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_orphanDependents, MAX_NUMBER_LENGTH, "%d", orphanDependents); + keyPairQuery_orphanDependents = keyValuePair_create(keyQuery_orphanDependents, valueQuery_orphanDependents); + list_addElement(localVarQueryParameters,keyPairQuery_orphanDependents); + } + + // query parameters + char *keyQuery_propagationPolicy = NULL; + char * valueQuery_propagationPolicy = NULL; + keyValuePair_t *keyPairQuery_propagationPolicy = 0; + if (propagationPolicy) + { + keyQuery_propagationPolicy = strdup("propagationPolicy"); + valueQuery_propagationPolicy = strdup((propagationPolicy)); + keyPairQuery_propagationPolicy = keyValuePair_create(keyQuery_propagationPolicy, valueQuery_propagationPolicy); + list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1_delete_options_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "DELETE"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_pod_scheduling_t *elementToReturn = v1alpha1_pod_scheduling_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_gracePeriodSeconds){ + free(keyQuery_gracePeriodSeconds); + keyQuery_gracePeriodSeconds = NULL; + } + if(valueQuery_gracePeriodSeconds){ + free(valueQuery_gracePeriodSeconds); + valueQuery_gracePeriodSeconds = NULL; + } + if(keyPairQuery_gracePeriodSeconds){ + keyValuePair_free(keyPairQuery_gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = NULL; + } + if(keyQuery_orphanDependents){ + free(keyQuery_orphanDependents); + keyQuery_orphanDependents = NULL; + } + if(valueQuery_orphanDependents){ + free(valueQuery_orphanDependents); + valueQuery_orphanDependents = NULL; + } + if(keyPairQuery_orphanDependents){ + keyValuePair_free(keyPairQuery_orphanDependents); + keyPairQuery_orphanDependents = NULL; + } + if(keyQuery_propagationPolicy){ + free(keyQuery_propagationPolicy); + keyQuery_propagationPolicy = NULL; + } + if(valueQuery_propagationPolicy){ + free(valueQuery_propagationPolicy); + valueQuery_propagationPolicy = NULL; + } + if(keyPairQuery_propagationPolicy){ + keyValuePair_free(keyPairQuery_propagationPolicy); + keyPairQuery_propagationPolicy = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// delete a ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_deleteNamespacedResourceClaim(apiClient_t *apiClient, char * name , char * _namespace , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_gracePeriodSeconds = NULL; + char * valueQuery_gracePeriodSeconds = NULL; + keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); + valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_gracePeriodSeconds, MAX_NUMBER_LENGTH, "%d", gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = keyValuePair_create(keyQuery_gracePeriodSeconds, valueQuery_gracePeriodSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); + } + + // query parameters + char *keyQuery_orphanDependents = NULL; + char * valueQuery_orphanDependents = NULL; + keyValuePair_t *keyPairQuery_orphanDependents = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_orphanDependents = strdup("orphanDependents"); + valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_orphanDependents, MAX_NUMBER_LENGTH, "%d", orphanDependents); + keyPairQuery_orphanDependents = keyValuePair_create(keyQuery_orphanDependents, valueQuery_orphanDependents); + list_addElement(localVarQueryParameters,keyPairQuery_orphanDependents); + } + + // query parameters + char *keyQuery_propagationPolicy = NULL; + char * valueQuery_propagationPolicy = NULL; + keyValuePair_t *keyPairQuery_propagationPolicy = 0; + if (propagationPolicy) + { + keyQuery_propagationPolicy = strdup("propagationPolicy"); + valueQuery_propagationPolicy = strdup((propagationPolicy)); + keyPairQuery_propagationPolicy = keyValuePair_create(keyQuery_propagationPolicy, valueQuery_propagationPolicy); + list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1_delete_options_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "DELETE"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_t *elementToReturn = v1alpha1_resource_claim_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_gracePeriodSeconds){ + free(keyQuery_gracePeriodSeconds); + keyQuery_gracePeriodSeconds = NULL; + } + if(valueQuery_gracePeriodSeconds){ + free(valueQuery_gracePeriodSeconds); + valueQuery_gracePeriodSeconds = NULL; + } + if(keyPairQuery_gracePeriodSeconds){ + keyValuePair_free(keyPairQuery_gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = NULL; + } + if(keyQuery_orphanDependents){ + free(keyQuery_orphanDependents); + keyQuery_orphanDependents = NULL; + } + if(valueQuery_orphanDependents){ + free(valueQuery_orphanDependents); + valueQuery_orphanDependents = NULL; + } + if(keyPairQuery_orphanDependents){ + keyValuePair_free(keyPairQuery_orphanDependents); + keyPairQuery_orphanDependents = NULL; + } + if(keyQuery_propagationPolicy){ + free(keyQuery_propagationPolicy); + keyQuery_propagationPolicy = NULL; + } + if(valueQuery_propagationPolicy){ + free(valueQuery_propagationPolicy); + valueQuery_propagationPolicy = NULL; + } + if(keyPairQuery_propagationPolicy){ + keyValuePair_free(keyPairQuery_propagationPolicy); + keyPairQuery_propagationPolicy = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// delete a ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* +ResourceV1alpha1API_deleteNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name , char * _namespace , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_gracePeriodSeconds = NULL; + char * valueQuery_gracePeriodSeconds = NULL; + keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); + valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_gracePeriodSeconds, MAX_NUMBER_LENGTH, "%d", gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = keyValuePair_create(keyQuery_gracePeriodSeconds, valueQuery_gracePeriodSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); + } + + // query parameters + char *keyQuery_orphanDependents = NULL; + char * valueQuery_orphanDependents = NULL; + keyValuePair_t *keyPairQuery_orphanDependents = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_orphanDependents = strdup("orphanDependents"); + valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_orphanDependents, MAX_NUMBER_LENGTH, "%d", orphanDependents); + keyPairQuery_orphanDependents = keyValuePair_create(keyQuery_orphanDependents, valueQuery_orphanDependents); + list_addElement(localVarQueryParameters,keyPairQuery_orphanDependents); + } + + // query parameters + char *keyQuery_propagationPolicy = NULL; + char * valueQuery_propagationPolicy = NULL; + keyValuePair_t *keyPairQuery_propagationPolicy = 0; + if (propagationPolicy) + { + keyQuery_propagationPolicy = strdup("propagationPolicy"); + valueQuery_propagationPolicy = strdup((propagationPolicy)); + keyPairQuery_propagationPolicy = keyValuePair_create(keyQuery_propagationPolicy, valueQuery_propagationPolicy); + list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1_delete_options_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "DELETE"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_template_t *elementToReturn = v1alpha1_resource_claim_template_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_gracePeriodSeconds){ + free(keyQuery_gracePeriodSeconds); + keyQuery_gracePeriodSeconds = NULL; + } + if(valueQuery_gracePeriodSeconds){ + free(valueQuery_gracePeriodSeconds); + valueQuery_gracePeriodSeconds = NULL; + } + if(keyPairQuery_gracePeriodSeconds){ + keyValuePair_free(keyPairQuery_gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = NULL; + } + if(keyQuery_orphanDependents){ + free(keyQuery_orphanDependents); + keyQuery_orphanDependents = NULL; + } + if(valueQuery_orphanDependents){ + free(valueQuery_orphanDependents); + valueQuery_orphanDependents = NULL; + } + if(keyPairQuery_orphanDependents){ + keyValuePair_free(keyPairQuery_orphanDependents); + keyPairQuery_orphanDependents = NULL; + } + if(keyQuery_propagationPolicy){ + free(keyQuery_propagationPolicy); + keyQuery_propagationPolicy = NULL; + } + if(valueQuery_propagationPolicy){ + free(valueQuery_propagationPolicy); + valueQuery_propagationPolicy = NULL; + } + if(keyPairQuery_propagationPolicy){ + keyValuePair_free(keyPairQuery_propagationPolicy); + keyPairQuery_propagationPolicy = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// delete a ResourceClass +// +v1alpha1_resource_class_t* +ResourceV1alpha1API_deleteResourceClass(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/resourceclasses/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/resourceclasses/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_gracePeriodSeconds = NULL; + char * valueQuery_gracePeriodSeconds = NULL; + keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); + valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_gracePeriodSeconds, MAX_NUMBER_LENGTH, "%d", gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = keyValuePair_create(keyQuery_gracePeriodSeconds, valueQuery_gracePeriodSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); + } + + // query parameters + char *keyQuery_orphanDependents = NULL; + char * valueQuery_orphanDependents = NULL; + keyValuePair_t *keyPairQuery_orphanDependents = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_orphanDependents = strdup("orphanDependents"); + valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_orphanDependents, MAX_NUMBER_LENGTH, "%d", orphanDependents); + keyPairQuery_orphanDependents = keyValuePair_create(keyQuery_orphanDependents, valueQuery_orphanDependents); + list_addElement(localVarQueryParameters,keyPairQuery_orphanDependents); + } + + // query parameters + char *keyQuery_propagationPolicy = NULL; + char * valueQuery_propagationPolicy = NULL; + keyValuePair_t *keyPairQuery_propagationPolicy = 0; + if (propagationPolicy) + { + keyQuery_propagationPolicy = strdup("propagationPolicy"); + valueQuery_propagationPolicy = strdup((propagationPolicy)); + keyPairQuery_propagationPolicy = keyValuePair_create(keyQuery_propagationPolicy, valueQuery_propagationPolicy); + list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1_delete_options_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "DELETE"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_class_t *elementToReturn = v1alpha1_resource_class_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_gracePeriodSeconds){ + free(keyQuery_gracePeriodSeconds); + keyQuery_gracePeriodSeconds = NULL; + } + if(valueQuery_gracePeriodSeconds){ + free(valueQuery_gracePeriodSeconds); + valueQuery_gracePeriodSeconds = NULL; + } + if(keyPairQuery_gracePeriodSeconds){ + keyValuePair_free(keyPairQuery_gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = NULL; + } + if(keyQuery_orphanDependents){ + free(keyQuery_orphanDependents); + keyQuery_orphanDependents = NULL; + } + if(valueQuery_orphanDependents){ + free(valueQuery_orphanDependents); + valueQuery_orphanDependents = NULL; + } + if(keyPairQuery_orphanDependents){ + keyValuePair_free(keyPairQuery_orphanDependents); + keyPairQuery_orphanDependents = NULL; + } + if(keyQuery_propagationPolicy){ + free(keyQuery_propagationPolicy); + keyQuery_propagationPolicy = NULL; + } + if(valueQuery_propagationPolicy){ + free(valueQuery_propagationPolicy); + valueQuery_propagationPolicy = NULL; + } + if(keyPairQuery_propagationPolicy){ + keyValuePair_free(keyPairQuery_propagationPolicy); + keyPairQuery_propagationPolicy = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// get available resources +// +v1_api_resource_list_t* +ResourceV1alpha1API_getAPIResources(apiClient_t *apiClient) +{ + list_t *localVarQueryParameters = NULL; + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/"); + + + + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + + + + list_freeList(localVarHeaderType); + + free(localVarPath); + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// list or watch objects of kind PodScheduling +// +v1alpha1_pod_scheduling_list_t* +ResourceV1alpha1API_listNamespacedPodScheduling(apiClient_t *apiClient, char * _namespace , char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings"); + + + // Path Params + long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_allowWatchBookmarks = NULL; + char * valueQuery_allowWatchBookmarks = NULL; + keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); + valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_allowWatchBookmarks, MAX_NUMBER_LENGTH, "%d", allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = keyValuePair_create(keyQuery_allowWatchBookmarks, valueQuery_allowWatchBookmarks); + list_addElement(localVarQueryParameters,keyPairQuery_allowWatchBookmarks); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // query parameters + char *keyQuery_watch = NULL; + char * valueQuery_watch = NULL; + keyValuePair_t *keyPairQuery_watch = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_watch = strdup("watch"); + valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_watch, MAX_NUMBER_LENGTH, "%d", watch); + keyPairQuery_watch = keyValuePair_create(keyQuery_watch, valueQuery_watch); + list_addElement(localVarQueryParameters,keyPairQuery_watch); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarHeaderType,"application/json;stream=watch"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf;stream=watch"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_pod_scheduling_list_t *elementToReturn = v1alpha1_pod_scheduling_list_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace__namespace); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_allowWatchBookmarks){ + free(keyQuery_allowWatchBookmarks); + keyQuery_allowWatchBookmarks = NULL; + } + if(valueQuery_allowWatchBookmarks){ + free(valueQuery_allowWatchBookmarks); + valueQuery_allowWatchBookmarks = NULL; + } + if(keyPairQuery_allowWatchBookmarks){ + keyValuePair_free(keyPairQuery_allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + if(keyQuery_watch){ + free(keyQuery_watch); + keyQuery_watch = NULL; + } + if(valueQuery_watch){ + free(valueQuery_watch); + valueQuery_watch = NULL; + } + if(keyPairQuery_watch){ + keyValuePair_free(keyPairQuery_watch); + keyPairQuery_watch = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// list or watch objects of kind ResourceClaim +// +v1alpha1_resource_claim_list_t* +ResourceV1alpha1API_listNamespacedResourceClaim(apiClient_t *apiClient, char * _namespace , char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims"); + + + // Path Params + long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_allowWatchBookmarks = NULL; + char * valueQuery_allowWatchBookmarks = NULL; + keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); + valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_allowWatchBookmarks, MAX_NUMBER_LENGTH, "%d", allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = keyValuePair_create(keyQuery_allowWatchBookmarks, valueQuery_allowWatchBookmarks); + list_addElement(localVarQueryParameters,keyPairQuery_allowWatchBookmarks); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // query parameters + char *keyQuery_watch = NULL; + char * valueQuery_watch = NULL; + keyValuePair_t *keyPairQuery_watch = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_watch = strdup("watch"); + valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_watch, MAX_NUMBER_LENGTH, "%d", watch); + keyPairQuery_watch = keyValuePair_create(keyQuery_watch, valueQuery_watch); + list_addElement(localVarQueryParameters,keyPairQuery_watch); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarHeaderType,"application/json;stream=watch"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf;stream=watch"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_list_t *elementToReturn = v1alpha1_resource_claim_list_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace__namespace); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_allowWatchBookmarks){ + free(keyQuery_allowWatchBookmarks); + keyQuery_allowWatchBookmarks = NULL; + } + if(valueQuery_allowWatchBookmarks){ + free(valueQuery_allowWatchBookmarks); + valueQuery_allowWatchBookmarks = NULL; + } + if(keyPairQuery_allowWatchBookmarks){ + keyValuePair_free(keyPairQuery_allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + if(keyQuery_watch){ + free(keyQuery_watch); + keyQuery_watch = NULL; + } + if(valueQuery_watch){ + free(valueQuery_watch); + valueQuery_watch = NULL; + } + if(keyPairQuery_watch){ + keyValuePair_free(keyPairQuery_watch); + keyPairQuery_watch = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// list or watch objects of kind ResourceClaimTemplate +// +v1alpha1_resource_claim_template_list_t* +ResourceV1alpha1API_listNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * _namespace , char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates"); + + + // Path Params + long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_allowWatchBookmarks = NULL; + char * valueQuery_allowWatchBookmarks = NULL; + keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); + valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_allowWatchBookmarks, MAX_NUMBER_LENGTH, "%d", allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = keyValuePair_create(keyQuery_allowWatchBookmarks, valueQuery_allowWatchBookmarks); + list_addElement(localVarQueryParameters,keyPairQuery_allowWatchBookmarks); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // query parameters + char *keyQuery_watch = NULL; + char * valueQuery_watch = NULL; + keyValuePair_t *keyPairQuery_watch = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_watch = strdup("watch"); + valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_watch, MAX_NUMBER_LENGTH, "%d", watch); + keyPairQuery_watch = keyValuePair_create(keyQuery_watch, valueQuery_watch); + list_addElement(localVarQueryParameters,keyPairQuery_watch); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarHeaderType,"application/json;stream=watch"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf;stream=watch"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_template_list_t *elementToReturn = v1alpha1_resource_claim_template_list_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace__namespace); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_allowWatchBookmarks){ + free(keyQuery_allowWatchBookmarks); + keyQuery_allowWatchBookmarks = NULL; + } + if(valueQuery_allowWatchBookmarks){ + free(valueQuery_allowWatchBookmarks); + valueQuery_allowWatchBookmarks = NULL; + } + if(keyPairQuery_allowWatchBookmarks){ + keyValuePair_free(keyPairQuery_allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + if(keyQuery_watch){ + free(keyQuery_watch); + keyQuery_watch = NULL; + } + if(valueQuery_watch){ + free(valueQuery_watch); + valueQuery_watch = NULL; + } + if(keyPairQuery_watch){ + keyValuePair_free(keyPairQuery_watch); + keyPairQuery_watch = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// list or watch objects of kind PodScheduling +// +v1alpha1_pod_scheduling_list_t* +ResourceV1alpha1API_listPodSchedulingForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * pretty , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/podschedulings")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/podschedulings"); + + + + + // query parameters + char *keyQuery_allowWatchBookmarks = NULL; + char * valueQuery_allowWatchBookmarks = NULL; + keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); + valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_allowWatchBookmarks, MAX_NUMBER_LENGTH, "%d", allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = keyValuePair_create(keyQuery_allowWatchBookmarks, valueQuery_allowWatchBookmarks); + list_addElement(localVarQueryParameters,keyPairQuery_allowWatchBookmarks); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // query parameters + char *keyQuery_watch = NULL; + char * valueQuery_watch = NULL; + keyValuePair_t *keyPairQuery_watch = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_watch = strdup("watch"); + valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_watch, MAX_NUMBER_LENGTH, "%d", watch); + keyPairQuery_watch = keyValuePair_create(keyQuery_watch, valueQuery_watch); + list_addElement(localVarQueryParameters,keyPairQuery_watch); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarHeaderType,"application/json;stream=watch"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf;stream=watch"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_pod_scheduling_list_t *elementToReturn = v1alpha1_pod_scheduling_list_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + if(keyQuery_allowWatchBookmarks){ + free(keyQuery_allowWatchBookmarks); + keyQuery_allowWatchBookmarks = NULL; + } + if(valueQuery_allowWatchBookmarks){ + free(valueQuery_allowWatchBookmarks); + valueQuery_allowWatchBookmarks = NULL; + } + if(keyPairQuery_allowWatchBookmarks){ + keyValuePair_free(keyPairQuery_allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + if(keyQuery_watch){ + free(keyQuery_watch); + keyQuery_watch = NULL; + } + if(valueQuery_watch){ + free(valueQuery_watch); + valueQuery_watch = NULL; + } + if(keyPairQuery_watch){ + keyValuePair_free(keyPairQuery_watch); + keyPairQuery_watch = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// list or watch objects of kind ResourceClaim +// +v1alpha1_resource_claim_list_t* +ResourceV1alpha1API_listResourceClaimForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * pretty , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/resourceclaims")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/resourceclaims"); + + + + + // query parameters + char *keyQuery_allowWatchBookmarks = NULL; + char * valueQuery_allowWatchBookmarks = NULL; + keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); + valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_allowWatchBookmarks, MAX_NUMBER_LENGTH, "%d", allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = keyValuePair_create(keyQuery_allowWatchBookmarks, valueQuery_allowWatchBookmarks); + list_addElement(localVarQueryParameters,keyPairQuery_allowWatchBookmarks); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // query parameters + char *keyQuery_watch = NULL; + char * valueQuery_watch = NULL; + keyValuePair_t *keyPairQuery_watch = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_watch = strdup("watch"); + valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_watch, MAX_NUMBER_LENGTH, "%d", watch); + keyPairQuery_watch = keyValuePair_create(keyQuery_watch, valueQuery_watch); + list_addElement(localVarQueryParameters,keyPairQuery_watch); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarHeaderType,"application/json;stream=watch"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf;stream=watch"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_list_t *elementToReturn = v1alpha1_resource_claim_list_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + if(keyQuery_allowWatchBookmarks){ + free(keyQuery_allowWatchBookmarks); + keyQuery_allowWatchBookmarks = NULL; + } + if(valueQuery_allowWatchBookmarks){ + free(valueQuery_allowWatchBookmarks); + valueQuery_allowWatchBookmarks = NULL; + } + if(keyPairQuery_allowWatchBookmarks){ + keyValuePair_free(keyPairQuery_allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + if(keyQuery_watch){ + free(keyQuery_watch); + keyQuery_watch = NULL; + } + if(valueQuery_watch){ + free(valueQuery_watch); + valueQuery_watch = NULL; + } + if(keyPairQuery_watch){ + keyValuePair_free(keyPairQuery_watch); + keyPairQuery_watch = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// list or watch objects of kind ResourceClaimTemplate +// +v1alpha1_resource_claim_template_list_t* +ResourceV1alpha1API_listResourceClaimTemplateForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * pretty , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/resourceclaimtemplates")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/resourceclaimtemplates"); + + + + + // query parameters + char *keyQuery_allowWatchBookmarks = NULL; + char * valueQuery_allowWatchBookmarks = NULL; + keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); + valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_allowWatchBookmarks, MAX_NUMBER_LENGTH, "%d", allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = keyValuePair_create(keyQuery_allowWatchBookmarks, valueQuery_allowWatchBookmarks); + list_addElement(localVarQueryParameters,keyPairQuery_allowWatchBookmarks); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // query parameters + char *keyQuery_watch = NULL; + char * valueQuery_watch = NULL; + keyValuePair_t *keyPairQuery_watch = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_watch = strdup("watch"); + valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_watch, MAX_NUMBER_LENGTH, "%d", watch); + keyPairQuery_watch = keyValuePair_create(keyQuery_watch, valueQuery_watch); + list_addElement(localVarQueryParameters,keyPairQuery_watch); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarHeaderType,"application/json;stream=watch"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf;stream=watch"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_template_list_t *elementToReturn = v1alpha1_resource_claim_template_list_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + if(keyQuery_allowWatchBookmarks){ + free(keyQuery_allowWatchBookmarks); + keyQuery_allowWatchBookmarks = NULL; + } + if(valueQuery_allowWatchBookmarks){ + free(valueQuery_allowWatchBookmarks); + valueQuery_allowWatchBookmarks = NULL; + } + if(keyPairQuery_allowWatchBookmarks){ + keyValuePair_free(keyPairQuery_allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + if(keyQuery_watch){ + free(keyQuery_watch); + keyQuery_watch = NULL; + } + if(valueQuery_watch){ + free(valueQuery_watch); + valueQuery_watch = NULL; + } + if(keyPairQuery_watch){ + keyValuePair_free(keyPairQuery_watch); + keyPairQuery_watch = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// list or watch objects of kind ResourceClass +// +v1alpha1_resource_class_list_t* +ResourceV1alpha1API_listResourceClass(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/resourceclasses")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/resourceclasses"); + + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_allowWatchBookmarks = NULL; + char * valueQuery_allowWatchBookmarks = NULL; + keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); + valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_allowWatchBookmarks, MAX_NUMBER_LENGTH, "%d", allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = keyValuePair_create(keyQuery_allowWatchBookmarks, valueQuery_allowWatchBookmarks); + list_addElement(localVarQueryParameters,keyPairQuery_allowWatchBookmarks); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // query parameters + char *keyQuery_watch = NULL; + char * valueQuery_watch = NULL; + keyValuePair_t *keyPairQuery_watch = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_watch = strdup("watch"); + valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_watch, MAX_NUMBER_LENGTH, "%d", watch); + keyPairQuery_watch = keyValuePair_create(keyQuery_watch, valueQuery_watch); + list_addElement(localVarQueryParameters,keyPairQuery_watch); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarHeaderType,"application/json;stream=watch"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf;stream=watch"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_class_list_t *elementToReturn = v1alpha1_resource_class_list_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_allowWatchBookmarks){ + free(keyQuery_allowWatchBookmarks); + keyQuery_allowWatchBookmarks = NULL; + } + if(valueQuery_allowWatchBookmarks){ + free(valueQuery_allowWatchBookmarks); + valueQuery_allowWatchBookmarks = NULL; + } + if(keyPairQuery_allowWatchBookmarks){ + keyValuePair_free(keyPairQuery_allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + if(keyQuery_watch){ + free(keyQuery_watch); + keyQuery_watch = NULL; + } + if(valueQuery_watch){ + free(valueQuery_watch); + valueQuery_watch = NULL; + } + if(keyPairQuery_watch){ + keyValuePair_free(keyPairQuery_watch); + keyPairQuery_watch = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// partially update the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_patchNamespacedPodScheduling(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = list_createList(); + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // query parameters + char *keyQuery_force = NULL; + char * valueQuery_force = NULL; + keyValuePair_t *keyPairQuery_force = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_force = strdup("force"); + valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_force, MAX_NUMBER_LENGTH, "%d", force); + keyPairQuery_force = keyValuePair_create(keyQuery_force, valueQuery_force); + list_addElement(localVarQueryParameters,keyPairQuery_force); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = object_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarContentType,"application/json-patch+json"); //consumes + list_addElement(localVarContentType,"application/merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/strategic-merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/apply-patch+yaml"); //consumes + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PATCH"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_pod_scheduling_t *elementToReturn = v1alpha1_pod_scheduling_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + list_freeList(localVarContentType); + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + if(keyQuery_force){ + free(keyQuery_force); + keyQuery_force = NULL; + } + if(valueQuery_force){ + free(valueQuery_force); + valueQuery_force = NULL; + } + if(keyPairQuery_force){ + keyValuePair_free(keyPairQuery_force); + keyPairQuery_force = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// partially update status of the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_patchNamespacedPodSchedulingStatus(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = list_createList(); + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // query parameters + char *keyQuery_force = NULL; + char * valueQuery_force = NULL; + keyValuePair_t *keyPairQuery_force = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_force = strdup("force"); + valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_force, MAX_NUMBER_LENGTH, "%d", force); + keyPairQuery_force = keyValuePair_create(keyQuery_force, valueQuery_force); + list_addElement(localVarQueryParameters,keyPairQuery_force); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = object_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarContentType,"application/json-patch+json"); //consumes + list_addElement(localVarContentType,"application/merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/strategic-merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/apply-patch+yaml"); //consumes + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PATCH"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_pod_scheduling_t *elementToReturn = v1alpha1_pod_scheduling_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + list_freeList(localVarContentType); + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + if(keyQuery_force){ + free(keyQuery_force); + keyQuery_force = NULL; + } + if(valueQuery_force){ + free(valueQuery_force); + valueQuery_force = NULL; + } + if(keyPairQuery_force){ + keyValuePair_free(keyPairQuery_force); + keyPairQuery_force = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// partially update the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_patchNamespacedResourceClaim(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = list_createList(); + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // query parameters + char *keyQuery_force = NULL; + char * valueQuery_force = NULL; + keyValuePair_t *keyPairQuery_force = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_force = strdup("force"); + valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_force, MAX_NUMBER_LENGTH, "%d", force); + keyPairQuery_force = keyValuePair_create(keyQuery_force, valueQuery_force); + list_addElement(localVarQueryParameters,keyPairQuery_force); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = object_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarContentType,"application/json-patch+json"); //consumes + list_addElement(localVarContentType,"application/merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/strategic-merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/apply-patch+yaml"); //consumes + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PATCH"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_t *elementToReturn = v1alpha1_resource_claim_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + list_freeList(localVarContentType); + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + if(keyQuery_force){ + free(keyQuery_force); + keyQuery_force = NULL; + } + if(valueQuery_force){ + free(valueQuery_force); + valueQuery_force = NULL; + } + if(keyPairQuery_force){ + keyValuePair_free(keyPairQuery_force); + keyPairQuery_force = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// partially update status of the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_patchNamespacedResourceClaimStatus(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = list_createList(); + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // query parameters + char *keyQuery_force = NULL; + char * valueQuery_force = NULL; + keyValuePair_t *keyPairQuery_force = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_force = strdup("force"); + valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_force, MAX_NUMBER_LENGTH, "%d", force); + keyPairQuery_force = keyValuePair_create(keyQuery_force, valueQuery_force); + list_addElement(localVarQueryParameters,keyPairQuery_force); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = object_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarContentType,"application/json-patch+json"); //consumes + list_addElement(localVarContentType,"application/merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/strategic-merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/apply-patch+yaml"); //consumes + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PATCH"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_t *elementToReturn = v1alpha1_resource_claim_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + list_freeList(localVarContentType); + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + if(keyQuery_force){ + free(keyQuery_force); + keyQuery_force = NULL; + } + if(valueQuery_force){ + free(valueQuery_force); + valueQuery_force = NULL; + } + if(keyPairQuery_force){ + keyValuePair_free(keyPairQuery_force); + keyPairQuery_force = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// partially update the specified ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* +ResourceV1alpha1API_patchNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = list_createList(); + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // query parameters + char *keyQuery_force = NULL; + char * valueQuery_force = NULL; + keyValuePair_t *keyPairQuery_force = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_force = strdup("force"); + valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_force, MAX_NUMBER_LENGTH, "%d", force); + keyPairQuery_force = keyValuePair_create(keyQuery_force, valueQuery_force); + list_addElement(localVarQueryParameters,keyPairQuery_force); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = object_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarContentType,"application/json-patch+json"); //consumes + list_addElement(localVarContentType,"application/merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/strategic-merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/apply-patch+yaml"); //consumes + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PATCH"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_template_t *elementToReturn = v1alpha1_resource_claim_template_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + list_freeList(localVarContentType); + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + if(keyQuery_force){ + free(keyQuery_force); + keyQuery_force = NULL; + } + if(valueQuery_force){ + free(valueQuery_force); + valueQuery_force = NULL; + } + if(keyPairQuery_force){ + keyValuePair_free(keyPairQuery_force); + keyPairQuery_force = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// partially update the specified ResourceClass +// +v1alpha1_resource_class_t* +ResourceV1alpha1API_patchResourceClass(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = list_createList(); + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/resourceclasses/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/resourceclasses/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // query parameters + char *keyQuery_force = NULL; + char * valueQuery_force = NULL; + keyValuePair_t *keyPairQuery_force = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_force = strdup("force"); + valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_force, MAX_NUMBER_LENGTH, "%d", force); + keyPairQuery_force = keyValuePair_create(keyQuery_force, valueQuery_force); + list_addElement(localVarQueryParameters,keyPairQuery_force); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = object_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarContentType,"application/json-patch+json"); //consumes + list_addElement(localVarContentType,"application/merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/strategic-merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/apply-patch+yaml"); //consumes + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PATCH"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_class_t *elementToReturn = v1alpha1_resource_class_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + list_freeList(localVarContentType); + free(localVarPath); + free(localVarToReplace_name); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + if(keyQuery_force){ + free(keyQuery_force); + keyQuery_force = NULL; + } + if(valueQuery_force){ + free(valueQuery_force); + valueQuery_force = NULL; + } + if(keyPairQuery_force){ + keyValuePair_free(keyPairQuery_force); + keyPairQuery_force = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// read the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_readNamespacedPodScheduling(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_pod_scheduling_t *elementToReturn = v1alpha1_pod_scheduling_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// read status of the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_readNamespacedPodSchedulingStatus(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_pod_scheduling_t *elementToReturn = v1alpha1_pod_scheduling_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// read the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_readNamespacedResourceClaim(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_t *elementToReturn = v1alpha1_resource_claim_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// read status of the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_readNamespacedResourceClaimStatus(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_t *elementToReturn = v1alpha1_resource_claim_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// read the specified ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* +ResourceV1alpha1API_readNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_template_t *elementToReturn = v1alpha1_resource_claim_template_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// read the specified ResourceClass +// +v1alpha1_resource_class_t* +ResourceV1alpha1API_readResourceClass(apiClient_t *apiClient, char * name , char * pretty ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/resourceclasses/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/resourceclasses/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_class_t *elementToReturn = v1alpha1_resource_class_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// replace the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_replaceNamespacedPodScheduling(apiClient_t *apiClient, char * name , char * _namespace , v1alpha1_pod_scheduling_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_pod_scheduling_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PUT"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_pod_scheduling_t *elementToReturn = v1alpha1_pod_scheduling_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// replace status of the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_replaceNamespacedPodSchedulingStatus(apiClient_t *apiClient, char * name , char * _namespace , v1alpha1_pod_scheduling_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_pod_scheduling_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PUT"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_pod_scheduling_t *elementToReturn = v1alpha1_pod_scheduling_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// replace the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_replaceNamespacedResourceClaim(apiClient_t *apiClient, char * name , char * _namespace , v1alpha1_resource_claim_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_resource_claim_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PUT"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_t *elementToReturn = v1alpha1_resource_claim_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// replace status of the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_replaceNamespacedResourceClaimStatus(apiClient_t *apiClient, char * name , char * _namespace , v1alpha1_resource_claim_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_resource_claim_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PUT"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_t *elementToReturn = v1alpha1_resource_claim_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// replace the specified ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* +ResourceV1alpha1API_replaceNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name , char * _namespace , v1alpha1_resource_claim_template_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_resource_claim_template_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PUT"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_template_t *elementToReturn = v1alpha1_resource_claim_template_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// replace the specified ResourceClass +// +v1alpha1_resource_class_t* +ResourceV1alpha1API_replaceResourceClass(apiClient_t *apiClient, char * name , v1alpha1_resource_class_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/resourceclasses/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/resourceclasses/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_resource_class_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PUT"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_class_t *elementToReturn = v1alpha1_resource_class_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + diff --git a/kubernetes/api/ResourceV1alpha1API.h b/kubernetes/api/ResourceV1alpha1API.h new file mode 100644 index 00000000..dcdac173 --- /dev/null +++ b/kubernetes/api/ResourceV1alpha1API.h @@ -0,0 +1,249 @@ +#include +#include +#include "../include/apiClient.h" +#include "../include/list.h" +#include "../external/cJSON.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" +#include "../model/object.h" +#include "../model/v1_api_resource_list.h" +#include "../model/v1_delete_options.h" +#include "../model/v1_status.h" +#include "../model/v1alpha1_pod_scheduling.h" +#include "../model/v1alpha1_pod_scheduling_list.h" +#include "../model/v1alpha1_resource_claim.h" +#include "../model/v1alpha1_resource_claim_list.h" +#include "../model/v1alpha1_resource_claim_template.h" +#include "../model/v1alpha1_resource_claim_template_list.h" +#include "../model/v1alpha1_resource_class.h" +#include "../model/v1alpha1_resource_class_list.h" + + +// create a PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_createNamespacedPodScheduling(apiClient_t *apiClient, char * _namespace , v1alpha1_pod_scheduling_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// create a ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_createNamespacedResourceClaim(apiClient_t *apiClient, char * _namespace , v1alpha1_resource_claim_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// create a ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* +ResourceV1alpha1API_createNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * _namespace , v1alpha1_resource_claim_template_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// create a ResourceClass +// +v1alpha1_resource_class_t* +ResourceV1alpha1API_createResourceClass(apiClient_t *apiClient, v1alpha1_resource_class_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// delete collection of PodScheduling +// +v1_status_t* +ResourceV1alpha1API_deleteCollectionNamespacedPodScheduling(apiClient_t *apiClient, char * _namespace , char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); + + +// delete collection of ResourceClaim +// +v1_status_t* +ResourceV1alpha1API_deleteCollectionNamespacedResourceClaim(apiClient_t *apiClient, char * _namespace , char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); + + +// delete collection of ResourceClaimTemplate +// +v1_status_t* +ResourceV1alpha1API_deleteCollectionNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * _namespace , char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); + + +// delete collection of ResourceClass +// +v1_status_t* +ResourceV1alpha1API_deleteCollectionResourceClass(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); + + +// delete a PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_deleteNamespacedPodScheduling(apiClient_t *apiClient, char * name , char * _namespace , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); + + +// delete a ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_deleteNamespacedResourceClaim(apiClient_t *apiClient, char * name , char * _namespace , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); + + +// delete a ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* +ResourceV1alpha1API_deleteNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name , char * _namespace , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); + + +// delete a ResourceClass +// +v1alpha1_resource_class_t* +ResourceV1alpha1API_deleteResourceClass(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); + + +// get available resources +// +v1_api_resource_list_t* +ResourceV1alpha1API_getAPIResources(apiClient_t *apiClient); + + +// list or watch objects of kind PodScheduling +// +v1alpha1_pod_scheduling_list_t* +ResourceV1alpha1API_listNamespacedPodScheduling(apiClient_t *apiClient, char * _namespace , char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); + + +// list or watch objects of kind ResourceClaim +// +v1alpha1_resource_claim_list_t* +ResourceV1alpha1API_listNamespacedResourceClaim(apiClient_t *apiClient, char * _namespace , char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); + + +// list or watch objects of kind ResourceClaimTemplate +// +v1alpha1_resource_claim_template_list_t* +ResourceV1alpha1API_listNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * _namespace , char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); + + +// list or watch objects of kind PodScheduling +// +v1alpha1_pod_scheduling_list_t* +ResourceV1alpha1API_listPodSchedulingForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * pretty , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); + + +// list or watch objects of kind ResourceClaim +// +v1alpha1_resource_claim_list_t* +ResourceV1alpha1API_listResourceClaimForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * pretty , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); + + +// list or watch objects of kind ResourceClaimTemplate +// +v1alpha1_resource_claim_template_list_t* +ResourceV1alpha1API_listResourceClaimTemplateForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * pretty , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); + + +// list or watch objects of kind ResourceClass +// +v1alpha1_resource_class_list_t* +ResourceV1alpha1API_listResourceClass(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); + + +// partially update the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_patchNamespacedPodScheduling(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); + + +// partially update status of the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_patchNamespacedPodSchedulingStatus(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); + + +// partially update the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_patchNamespacedResourceClaim(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); + + +// partially update status of the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_patchNamespacedResourceClaimStatus(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); + + +// partially update the specified ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* +ResourceV1alpha1API_patchNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); + + +// partially update the specified ResourceClass +// +v1alpha1_resource_class_t* +ResourceV1alpha1API_patchResourceClass(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); + + +// read the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_readNamespacedPodScheduling(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); + + +// read status of the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_readNamespacedPodSchedulingStatus(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); + + +// read the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_readNamespacedResourceClaim(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); + + +// read status of the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_readNamespacedResourceClaimStatus(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); + + +// read the specified ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* +ResourceV1alpha1API_readNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); + + +// read the specified ResourceClass +// +v1alpha1_resource_class_t* +ResourceV1alpha1API_readResourceClass(apiClient_t *apiClient, char * name , char * pretty ); + + +// replace the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_replaceNamespacedPodScheduling(apiClient_t *apiClient, char * name , char * _namespace , v1alpha1_pod_scheduling_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// replace status of the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_replaceNamespacedPodSchedulingStatus(apiClient_t *apiClient, char * name , char * _namespace , v1alpha1_pod_scheduling_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// replace the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_replaceNamespacedResourceClaim(apiClient_t *apiClient, char * name , char * _namespace , v1alpha1_resource_claim_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// replace status of the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_replaceNamespacedResourceClaimStatus(apiClient_t *apiClient, char * name , char * _namespace , v1alpha1_resource_claim_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// replace the specified ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* +ResourceV1alpha1API_replaceNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name , char * _namespace , v1alpha1_resource_claim_template_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// replace the specified ResourceClass +// +v1alpha1_resource_class_t* +ResourceV1alpha1API_replaceResourceClass(apiClient_t *apiClient, char * name , v1alpha1_resource_class_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + diff --git a/kubernetes/docs/AdmissionregistrationV1alpha1API.md b/kubernetes/docs/AdmissionregistrationV1alpha1API.md new file mode 100644 index 00000000..2f17fbde --- /dev/null +++ b/kubernetes/docs/AdmissionregistrationV1alpha1API.md @@ -0,0 +1,543 @@ +# AdmissionregistrationV1alpha1API + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | +[**AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | +[**AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | +[**AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | +[**AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | +[**AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | +[**AdmissionregistrationV1alpha1API_getAPIResources**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_getAPIResources) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/ | +[**AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | +[**AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | +[**AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | +[**AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | +[**AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | +[**AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | +[**AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | +[**AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | + + +# **AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicy** +```c +// create a ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_t* AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicy(apiClient_t *apiClient, v1alpha1_validating_admission_policy_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**body** | **[v1alpha1_validating_admission_policy_t](v1alpha1_validating_admission_policy.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_validating_admission_policy_t](v1alpha1_validating_admission_policy.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicyBinding** +```c +// create a ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_t* AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicyBinding(apiClient_t *apiClient, v1alpha1_validating_admission_policy_binding_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**body** | **[v1alpha1_validating_admission_policy_binding_t](v1alpha1_validating_admission_policy_binding.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_validating_admission_policy_binding_t](v1alpha1_validating_admission_policy_binding.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicy** +```c +// delete collection of ValidatingAdmissionPolicy +// +v1_status_t* AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicy(apiClient_t *apiClient, char * pretty, char * _continue, char * dryRun, char * fieldSelector, int gracePeriodSeconds, char * labelSelector, int limit, int orphanDependents, char * propagationPolicy, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicyBinding** +```c +// delete collection of ValidatingAdmissionPolicyBinding +// +v1_status_t* AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * pretty, char * _continue, char * dryRun, char * fieldSelector, int gracePeriodSeconds, char * labelSelector, int limit, int orphanDependents, char * propagationPolicy, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicy** +```c +// delete a ValidatingAdmissionPolicy +// +v1_status_t* AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicy(apiClient_t *apiClient, char * name, char * pretty, char * dryRun, int gracePeriodSeconds, int orphanDependents, char * propagationPolicy, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ValidatingAdmissionPolicy | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicyBinding** +```c +// delete a ValidatingAdmissionPolicyBinding +// +v1_status_t* AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name, char * pretty, char * dryRun, int gracePeriodSeconds, int orphanDependents, char * propagationPolicy, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ValidatingAdmissionPolicyBinding | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_getAPIResources** +```c +// get available resources +// +v1_api_resource_list_t* AdmissionregistrationV1alpha1API_getAPIResources(apiClient_t *apiClient); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | + +### Return type + +[v1_api_resource_list_t](v1_api_resource_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicy** +```c +// list or watch objects of kind ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_list_t* AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicy(apiClient_t *apiClient, char * pretty, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1alpha1_validating_admission_policy_list_t](v1alpha1_validating_admission_policy_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicyBinding** +```c +// list or watch objects of kind ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_list_t* AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * pretty, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1alpha1_validating_admission_policy_binding_list_t](v1alpha1_validating_admission_policy_binding_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicy** +```c +// partially update the specified ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_t* AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicy(apiClient_t *apiClient, char * name, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ValidatingAdmissionPolicy | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1alpha1_validating_admission_policy_t](v1alpha1_validating_admission_policy.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicyBinding** +```c +// partially update the specified ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_t* AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ValidatingAdmissionPolicyBinding | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1alpha1_validating_admission_policy_binding_t](v1alpha1_validating_admission_policy_binding.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicy** +```c +// read the specified ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_t* AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicy(apiClient_t *apiClient, char * name, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ValidatingAdmissionPolicy | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1alpha1_validating_admission_policy_t](v1alpha1_validating_admission_policy.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicyBinding** +```c +// read the specified ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_t* AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ValidatingAdmissionPolicyBinding | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1alpha1_validating_admission_policy_binding_t](v1alpha1_validating_admission_policy_binding.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicy** +```c +// replace the specified ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_t* AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicy(apiClient_t *apiClient, char * name, v1alpha1_validating_admission_policy_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ValidatingAdmissionPolicy | +**body** | **[v1alpha1_validating_admission_policy_t](v1alpha1_validating_admission_policy.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_validating_admission_policy_t](v1alpha1_validating_admission_policy.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicyBinding** +```c +// replace the specified ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_t* AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name, v1alpha1_validating_admission_policy_binding_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ValidatingAdmissionPolicyBinding | +**body** | **[v1alpha1_validating_admission_policy_binding_t](v1alpha1_validating_admission_policy_binding.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_validating_admission_policy_binding_t](v1alpha1_validating_admission_policy_binding.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/kubernetes/docs/AuthenticationV1alpha1API.md b/kubernetes/docs/AuthenticationV1alpha1API.md new file mode 100644 index 00000000..58d4bdac --- /dev/null +++ b/kubernetes/docs/AuthenticationV1alpha1API.md @@ -0,0 +1,71 @@ +# AuthenticationV1alpha1API + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AuthenticationV1alpha1API_createSelfSubjectReview**](AuthenticationV1alpha1API.md#AuthenticationV1alpha1API_createSelfSubjectReview) | **POST** /apis/authentication.k8s.io/v1alpha1/selfsubjectreviews | +[**AuthenticationV1alpha1API_getAPIResources**](AuthenticationV1alpha1API.md#AuthenticationV1alpha1API_getAPIResources) | **GET** /apis/authentication.k8s.io/v1alpha1/ | + + +# **AuthenticationV1alpha1API_createSelfSubjectReview** +```c +// create a SelfSubjectReview +// +v1alpha1_self_subject_review_t* AuthenticationV1alpha1API_createSelfSubjectReview(apiClient_t *apiClient, v1alpha1_self_subject_review_t * body, char * dryRun, char * fieldManager, char * fieldValidation, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**body** | **[v1alpha1_self_subject_review_t](v1alpha1_self_subject_review.md) \*** | | +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1alpha1_self_subject_review_t](v1alpha1_self_subject_review.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AuthenticationV1alpha1API_getAPIResources** +```c +// get available resources +// +v1_api_resource_list_t* AuthenticationV1alpha1API_getAPIResources(apiClient_t *apiClient); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | + +### Return type + +[v1_api_resource_list_t](v1_api_resource_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/kubernetes/docs/CustomObjectsAPI.md b/kubernetes/docs/CustomObjectsAPI.md index 5ad7717a..2969172c 100644 --- a/kubernetes/docs/CustomObjectsAPI.md +++ b/kubernetes/docs/CustomObjectsAPI.md @@ -10,6 +10,7 @@ Method | HTTP request | Description [**CustomObjectsAPI_deleteCollectionClusterCustomObject**](CustomObjectsAPI.md#CustomObjectsAPI_deleteCollectionClusterCustomObject) | **DELETE** /apis/{group}/{version}/{plural} | [**CustomObjectsAPI_deleteCollectionNamespacedCustomObject**](CustomObjectsAPI.md#CustomObjectsAPI_deleteCollectionNamespacedCustomObject) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural} | [**CustomObjectsAPI_deleteNamespacedCustomObject**](CustomObjectsAPI.md#CustomObjectsAPI_deleteNamespacedCustomObject) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | +[**CustomObjectsAPI_getAPIResources**](CustomObjectsAPI.md#CustomObjectsAPI_getAPIResources) | **GET** /apis/{group}/{version} | [**CustomObjectsAPI_getClusterCustomObject**](CustomObjectsAPI.md#CustomObjectsAPI_getClusterCustomObject) | **GET** /apis/{group}/{version}/{plural}/{name} | [**CustomObjectsAPI_getClusterCustomObjectScale**](CustomObjectsAPI.md#CustomObjectsAPI_getClusterCustomObjectScale) | **GET** /apis/{group}/{version}/{plural}/{name}/scale | [**CustomObjectsAPI_getClusterCustomObjectStatus**](CustomObjectsAPI.md#CustomObjectsAPI_getClusterCustomObjectStatus) | **GET** /apis/{group}/{version}/{plural}/{name}/status | @@ -242,6 +243,36 @@ Name | Type | Description | Notes [object_t](object.md) * +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **CustomObjectsAPI_getAPIResources** +```c +// get available resources +// +v1_api_resource_list_t* CustomObjectsAPI_getAPIResources(apiClient_t *apiClient, char * group, char * version); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**group** | **char \*** | The custom resource's group name | +**version** | **char \*** | The custom resource's version | + +### Return type + +[v1_api_resource_list_t](v1_api_resource_list.md) * + + ### Authorization [BearerToken](../README.md#BearerToken) diff --git a/kubernetes/docs/FlowcontrolApiserverV1beta3API.md b/kubernetes/docs/FlowcontrolApiserverV1beta3API.md new file mode 100644 index 00000000..5610cdc5 --- /dev/null +++ b/kubernetes/docs/FlowcontrolApiserverV1beta3API.md @@ -0,0 +1,747 @@ +# FlowcontrolApiserverV1beta3API + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**FlowcontrolApiserverV1beta3API_createFlowSchema**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_createFlowSchema) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | +[**FlowcontrolApiserverV1beta3API_createPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_createPriorityLevelConfiguration) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | +[**FlowcontrolApiserverV1beta3API_deleteCollectionFlowSchema**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_deleteCollectionFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | +[**FlowcontrolApiserverV1beta3API_deleteCollectionPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_deleteCollectionPriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | +[**FlowcontrolApiserverV1beta3API_deleteFlowSchema**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_deleteFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | +[**FlowcontrolApiserverV1beta3API_deletePriorityLevelConfiguration**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_deletePriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | +[**FlowcontrolApiserverV1beta3API_getAPIResources**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_getAPIResources) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/ | +[**FlowcontrolApiserverV1beta3API_listFlowSchema**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_listFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | +[**FlowcontrolApiserverV1beta3API_listPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_listPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | +[**FlowcontrolApiserverV1beta3API_patchFlowSchema**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_patchFlowSchema) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | +[**FlowcontrolApiserverV1beta3API_patchFlowSchemaStatus**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_patchFlowSchemaStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | +[**FlowcontrolApiserverV1beta3API_patchPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_patchPriorityLevelConfiguration) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | +[**FlowcontrolApiserverV1beta3API_patchPriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_patchPriorityLevelConfigurationStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | +[**FlowcontrolApiserverV1beta3API_readFlowSchema**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_readFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | +[**FlowcontrolApiserverV1beta3API_readFlowSchemaStatus**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_readFlowSchemaStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | +[**FlowcontrolApiserverV1beta3API_readPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_readPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | +[**FlowcontrolApiserverV1beta3API_readPriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_readPriorityLevelConfigurationStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | +[**FlowcontrolApiserverV1beta3API_replaceFlowSchema**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_replaceFlowSchema) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | +[**FlowcontrolApiserverV1beta3API_replaceFlowSchemaStatus**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_replaceFlowSchemaStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | +[**FlowcontrolApiserverV1beta3API_replacePriorityLevelConfiguration**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_replacePriorityLevelConfiguration) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | +[**FlowcontrolApiserverV1beta3API_replacePriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_replacePriorityLevelConfigurationStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | + + +# **FlowcontrolApiserverV1beta3API_createFlowSchema** +```c +// create a FlowSchema +// +v1beta3_flow_schema_t* FlowcontrolApiserverV1beta3API_createFlowSchema(apiClient_t *apiClient, v1beta3_flow_schema_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**body** | **[v1beta3_flow_schema_t](v1beta3_flow_schema.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1beta3_flow_schema_t](v1beta3_flow_schema.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_createPriorityLevelConfiguration** +```c +// create a PriorityLevelConfiguration +// +v1beta3_priority_level_configuration_t* FlowcontrolApiserverV1beta3API_createPriorityLevelConfiguration(apiClient_t *apiClient, v1beta3_priority_level_configuration_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**body** | **[v1beta3_priority_level_configuration_t](v1beta3_priority_level_configuration.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1beta3_priority_level_configuration_t](v1beta3_priority_level_configuration.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_deleteCollectionFlowSchema** +```c +// delete collection of FlowSchema +// +v1_status_t* FlowcontrolApiserverV1beta3API_deleteCollectionFlowSchema(apiClient_t *apiClient, char * pretty, char * _continue, char * dryRun, char * fieldSelector, int gracePeriodSeconds, char * labelSelector, int limit, int orphanDependents, char * propagationPolicy, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_deleteCollectionPriorityLevelConfiguration** +```c +// delete collection of PriorityLevelConfiguration +// +v1_status_t* FlowcontrolApiserverV1beta3API_deleteCollectionPriorityLevelConfiguration(apiClient_t *apiClient, char * pretty, char * _continue, char * dryRun, char * fieldSelector, int gracePeriodSeconds, char * labelSelector, int limit, int orphanDependents, char * propagationPolicy, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_deleteFlowSchema** +```c +// delete a FlowSchema +// +v1_status_t* FlowcontrolApiserverV1beta3API_deleteFlowSchema(apiClient_t *apiClient, char * name, char * pretty, char * dryRun, int gracePeriodSeconds, int orphanDependents, char * propagationPolicy, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the FlowSchema | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_deletePriorityLevelConfiguration** +```c +// delete a PriorityLevelConfiguration +// +v1_status_t* FlowcontrolApiserverV1beta3API_deletePriorityLevelConfiguration(apiClient_t *apiClient, char * name, char * pretty, char * dryRun, int gracePeriodSeconds, int orphanDependents, char * propagationPolicy, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PriorityLevelConfiguration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_getAPIResources** +```c +// get available resources +// +v1_api_resource_list_t* FlowcontrolApiserverV1beta3API_getAPIResources(apiClient_t *apiClient); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | + +### Return type + +[v1_api_resource_list_t](v1_api_resource_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_listFlowSchema** +```c +// list or watch objects of kind FlowSchema +// +v1beta3_flow_schema_list_t* FlowcontrolApiserverV1beta3API_listFlowSchema(apiClient_t *apiClient, char * pretty, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1beta3_flow_schema_list_t](v1beta3_flow_schema_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_listPriorityLevelConfiguration** +```c +// list or watch objects of kind PriorityLevelConfiguration +// +v1beta3_priority_level_configuration_list_t* FlowcontrolApiserverV1beta3API_listPriorityLevelConfiguration(apiClient_t *apiClient, char * pretty, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1beta3_priority_level_configuration_list_t](v1beta3_priority_level_configuration_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_patchFlowSchema** +```c +// partially update the specified FlowSchema +// +v1beta3_flow_schema_t* FlowcontrolApiserverV1beta3API_patchFlowSchema(apiClient_t *apiClient, char * name, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the FlowSchema | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1beta3_flow_schema_t](v1beta3_flow_schema.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_patchFlowSchemaStatus** +```c +// partially update status of the specified FlowSchema +// +v1beta3_flow_schema_t* FlowcontrolApiserverV1beta3API_patchFlowSchemaStatus(apiClient_t *apiClient, char * name, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the FlowSchema | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1beta3_flow_schema_t](v1beta3_flow_schema.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_patchPriorityLevelConfiguration** +```c +// partially update the specified PriorityLevelConfiguration +// +v1beta3_priority_level_configuration_t* FlowcontrolApiserverV1beta3API_patchPriorityLevelConfiguration(apiClient_t *apiClient, char * name, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PriorityLevelConfiguration | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1beta3_priority_level_configuration_t](v1beta3_priority_level_configuration.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_patchPriorityLevelConfigurationStatus** +```c +// partially update status of the specified PriorityLevelConfiguration +// +v1beta3_priority_level_configuration_t* FlowcontrolApiserverV1beta3API_patchPriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PriorityLevelConfiguration | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1beta3_priority_level_configuration_t](v1beta3_priority_level_configuration.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_readFlowSchema** +```c +// read the specified FlowSchema +// +v1beta3_flow_schema_t* FlowcontrolApiserverV1beta3API_readFlowSchema(apiClient_t *apiClient, char * name, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the FlowSchema | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1beta3_flow_schema_t](v1beta3_flow_schema.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_readFlowSchemaStatus** +```c +// read status of the specified FlowSchema +// +v1beta3_flow_schema_t* FlowcontrolApiserverV1beta3API_readFlowSchemaStatus(apiClient_t *apiClient, char * name, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the FlowSchema | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1beta3_flow_schema_t](v1beta3_flow_schema.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_readPriorityLevelConfiguration** +```c +// read the specified PriorityLevelConfiguration +// +v1beta3_priority_level_configuration_t* FlowcontrolApiserverV1beta3API_readPriorityLevelConfiguration(apiClient_t *apiClient, char * name, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PriorityLevelConfiguration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1beta3_priority_level_configuration_t](v1beta3_priority_level_configuration.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_readPriorityLevelConfigurationStatus** +```c +// read status of the specified PriorityLevelConfiguration +// +v1beta3_priority_level_configuration_t* FlowcontrolApiserverV1beta3API_readPriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PriorityLevelConfiguration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1beta3_priority_level_configuration_t](v1beta3_priority_level_configuration.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_replaceFlowSchema** +```c +// replace the specified FlowSchema +// +v1beta3_flow_schema_t* FlowcontrolApiserverV1beta3API_replaceFlowSchema(apiClient_t *apiClient, char * name, v1beta3_flow_schema_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the FlowSchema | +**body** | **[v1beta3_flow_schema_t](v1beta3_flow_schema.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1beta3_flow_schema_t](v1beta3_flow_schema.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_replaceFlowSchemaStatus** +```c +// replace status of the specified FlowSchema +// +v1beta3_flow_schema_t* FlowcontrolApiserverV1beta3API_replaceFlowSchemaStatus(apiClient_t *apiClient, char * name, v1beta3_flow_schema_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the FlowSchema | +**body** | **[v1beta3_flow_schema_t](v1beta3_flow_schema.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1beta3_flow_schema_t](v1beta3_flow_schema.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_replacePriorityLevelConfiguration** +```c +// replace the specified PriorityLevelConfiguration +// +v1beta3_priority_level_configuration_t* FlowcontrolApiserverV1beta3API_replacePriorityLevelConfiguration(apiClient_t *apiClient, char * name, v1beta3_priority_level_configuration_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PriorityLevelConfiguration | +**body** | **[v1beta3_priority_level_configuration_t](v1beta3_priority_level_configuration.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1beta3_priority_level_configuration_t](v1beta3_priority_level_configuration.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_replacePriorityLevelConfigurationStatus** +```c +// replace status of the specified PriorityLevelConfiguration +// +v1beta3_priority_level_configuration_t* FlowcontrolApiserverV1beta3API_replacePriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name, v1beta3_priority_level_configuration_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PriorityLevelConfiguration | +**body** | **[v1beta3_priority_level_configuration_t](v1beta3_priority_level_configuration.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1beta3_priority_level_configuration_t](v1beta3_priority_level_configuration.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/kubernetes/docs/ResourceAPI.md b/kubernetes/docs/ResourceAPI.md new file mode 100644 index 00000000..17335b9a --- /dev/null +++ b/kubernetes/docs/ResourceAPI.md @@ -0,0 +1,37 @@ +# ResourceAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ResourceAPI_getAPIGroup**](ResourceAPI.md#ResourceAPI_getAPIGroup) | **GET** /apis/resource.k8s.io/ | + + +# **ResourceAPI_getAPIGroup** +```c +// get information of a group +// +v1_api_group_t* ResourceAPI_getAPIGroup(apiClient_t *apiClient); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | + +### Return type + +[v1_api_group_t](v1_api_group.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/kubernetes/docs/ResourceV1alpha1API.md b/kubernetes/docs/ResourceV1alpha1API.md new file mode 100644 index 00000000..02513499 --- /dev/null +++ b/kubernetes/docs/ResourceV1alpha1API.md @@ -0,0 +1,1397 @@ +# ResourceV1alpha1API + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ResourceV1alpha1API_createNamespacedPodScheduling**](ResourceV1alpha1API.md#ResourceV1alpha1API_createNamespacedPodScheduling) | **POST** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings | +[**ResourceV1alpha1API_createNamespacedResourceClaim**](ResourceV1alpha1API.md#ResourceV1alpha1API_createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims | +[**ResourceV1alpha1API_createNamespacedResourceClaimTemplate**](ResourceV1alpha1API.md#ResourceV1alpha1API_createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates | +[**ResourceV1alpha1API_createResourceClass**](ResourceV1alpha1API.md#ResourceV1alpha1API_createResourceClass) | **POST** /apis/resource.k8s.io/v1alpha1/resourceclasses | +[**ResourceV1alpha1API_deleteCollectionNamespacedPodScheduling**](ResourceV1alpha1API.md#ResourceV1alpha1API_deleteCollectionNamespacedPodScheduling) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings | +[**ResourceV1alpha1API_deleteCollectionNamespacedResourceClaim**](ResourceV1alpha1API.md#ResourceV1alpha1API_deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims | +[**ResourceV1alpha1API_deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1alpha1API.md#ResourceV1alpha1API_deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates | +[**ResourceV1alpha1API_deleteCollectionResourceClass**](ResourceV1alpha1API.md#ResourceV1alpha1API_deleteCollectionResourceClass) | **DELETE** /apis/resource.k8s.io/v1alpha1/resourceclasses | +[**ResourceV1alpha1API_deleteNamespacedPodScheduling**](ResourceV1alpha1API.md#ResourceV1alpha1API_deleteNamespacedPodScheduling) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name} | +[**ResourceV1alpha1API_deleteNamespacedResourceClaim**](ResourceV1alpha1API.md#ResourceV1alpha1API_deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name} | +[**ResourceV1alpha1API_deleteNamespacedResourceClaimTemplate**](ResourceV1alpha1API.md#ResourceV1alpha1API_deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**ResourceV1alpha1API_deleteResourceClass**](ResourceV1alpha1API.md#ResourceV1alpha1API_deleteResourceClass) | **DELETE** /apis/resource.k8s.io/v1alpha1/resourceclasses/{name} | +[**ResourceV1alpha1API_getAPIResources**](ResourceV1alpha1API.md#ResourceV1alpha1API_getAPIResources) | **GET** /apis/resource.k8s.io/v1alpha1/ | +[**ResourceV1alpha1API_listNamespacedPodScheduling**](ResourceV1alpha1API.md#ResourceV1alpha1API_listNamespacedPodScheduling) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings | +[**ResourceV1alpha1API_listNamespacedResourceClaim**](ResourceV1alpha1API.md#ResourceV1alpha1API_listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims | +[**ResourceV1alpha1API_listNamespacedResourceClaimTemplate**](ResourceV1alpha1API.md#ResourceV1alpha1API_listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates | +[**ResourceV1alpha1API_listPodSchedulingForAllNamespaces**](ResourceV1alpha1API.md#ResourceV1alpha1API_listPodSchedulingForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha1/podschedulings | +[**ResourceV1alpha1API_listResourceClaimForAllNamespaces**](ResourceV1alpha1API.md#ResourceV1alpha1API_listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha1/resourceclaims | +[**ResourceV1alpha1API_listResourceClaimTemplateForAllNamespaces**](ResourceV1alpha1API.md#ResourceV1alpha1API_listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha1/resourceclaimtemplates | +[**ResourceV1alpha1API_listResourceClass**](ResourceV1alpha1API.md#ResourceV1alpha1API_listResourceClass) | **GET** /apis/resource.k8s.io/v1alpha1/resourceclasses | +[**ResourceV1alpha1API_patchNamespacedPodScheduling**](ResourceV1alpha1API.md#ResourceV1alpha1API_patchNamespacedPodScheduling) | **PATCH** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name} | +[**ResourceV1alpha1API_patchNamespacedPodSchedulingStatus**](ResourceV1alpha1API.md#ResourceV1alpha1API_patchNamespacedPodSchedulingStatus) | **PATCH** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status | +[**ResourceV1alpha1API_patchNamespacedResourceClaim**](ResourceV1alpha1API.md#ResourceV1alpha1API_patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name} | +[**ResourceV1alpha1API_patchNamespacedResourceClaimStatus**](ResourceV1alpha1API.md#ResourceV1alpha1API_patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status | +[**ResourceV1alpha1API_patchNamespacedResourceClaimTemplate**](ResourceV1alpha1API.md#ResourceV1alpha1API_patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**ResourceV1alpha1API_patchResourceClass**](ResourceV1alpha1API.md#ResourceV1alpha1API_patchResourceClass) | **PATCH** /apis/resource.k8s.io/v1alpha1/resourceclasses/{name} | +[**ResourceV1alpha1API_readNamespacedPodScheduling**](ResourceV1alpha1API.md#ResourceV1alpha1API_readNamespacedPodScheduling) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name} | +[**ResourceV1alpha1API_readNamespacedPodSchedulingStatus**](ResourceV1alpha1API.md#ResourceV1alpha1API_readNamespacedPodSchedulingStatus) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status | +[**ResourceV1alpha1API_readNamespacedResourceClaim**](ResourceV1alpha1API.md#ResourceV1alpha1API_readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name} | +[**ResourceV1alpha1API_readNamespacedResourceClaimStatus**](ResourceV1alpha1API.md#ResourceV1alpha1API_readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status | +[**ResourceV1alpha1API_readNamespacedResourceClaimTemplate**](ResourceV1alpha1API.md#ResourceV1alpha1API_readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**ResourceV1alpha1API_readResourceClass**](ResourceV1alpha1API.md#ResourceV1alpha1API_readResourceClass) | **GET** /apis/resource.k8s.io/v1alpha1/resourceclasses/{name} | +[**ResourceV1alpha1API_replaceNamespacedPodScheduling**](ResourceV1alpha1API.md#ResourceV1alpha1API_replaceNamespacedPodScheduling) | **PUT** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name} | +[**ResourceV1alpha1API_replaceNamespacedPodSchedulingStatus**](ResourceV1alpha1API.md#ResourceV1alpha1API_replaceNamespacedPodSchedulingStatus) | **PUT** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status | +[**ResourceV1alpha1API_replaceNamespacedResourceClaim**](ResourceV1alpha1API.md#ResourceV1alpha1API_replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name} | +[**ResourceV1alpha1API_replaceNamespacedResourceClaimStatus**](ResourceV1alpha1API.md#ResourceV1alpha1API_replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status | +[**ResourceV1alpha1API_replaceNamespacedResourceClaimTemplate**](ResourceV1alpha1API.md#ResourceV1alpha1API_replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**ResourceV1alpha1API_replaceResourceClass**](ResourceV1alpha1API.md#ResourceV1alpha1API_replaceResourceClass) | **PUT** /apis/resource.k8s.io/v1alpha1/resourceclasses/{name} | + + +# **ResourceV1alpha1API_createNamespacedPodScheduling** +```c +// create a PodScheduling +// +v1alpha1_pod_scheduling_t* ResourceV1alpha1API_createNamespacedPodScheduling(apiClient_t *apiClient, char * _namespace, v1alpha1_pod_scheduling_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_createNamespacedResourceClaim** +```c +// create a ResourceClaim +// +v1alpha1_resource_claim_t* ResourceV1alpha1API_createNamespacedResourceClaim(apiClient_t *apiClient, char * _namespace, v1alpha1_resource_claim_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_createNamespacedResourceClaimTemplate** +```c +// create a ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* ResourceV1alpha1API_createNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * _namespace, v1alpha1_resource_claim_template_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[v1alpha1_resource_claim_template_t](v1alpha1_resource_claim_template.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_resource_claim_template_t](v1alpha1_resource_claim_template.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_createResourceClass** +```c +// create a ResourceClass +// +v1alpha1_resource_class_t* ResourceV1alpha1API_createResourceClass(apiClient_t *apiClient, v1alpha1_resource_class_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**body** | **[v1alpha1_resource_class_t](v1alpha1_resource_class.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_resource_class_t](v1alpha1_resource_class.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_deleteCollectionNamespacedPodScheduling** +```c +// delete collection of PodScheduling +// +v1_status_t* ResourceV1alpha1API_deleteCollectionNamespacedPodScheduling(apiClient_t *apiClient, char * _namespace, char * pretty, char * _continue, char * dryRun, char * fieldSelector, int gracePeriodSeconds, char * labelSelector, int limit, int orphanDependents, char * propagationPolicy, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_deleteCollectionNamespacedResourceClaim** +```c +// delete collection of ResourceClaim +// +v1_status_t* ResourceV1alpha1API_deleteCollectionNamespacedResourceClaim(apiClient_t *apiClient, char * _namespace, char * pretty, char * _continue, char * dryRun, char * fieldSelector, int gracePeriodSeconds, char * labelSelector, int limit, int orphanDependents, char * propagationPolicy, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_deleteCollectionNamespacedResourceClaimTemplate** +```c +// delete collection of ResourceClaimTemplate +// +v1_status_t* ResourceV1alpha1API_deleteCollectionNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * _namespace, char * pretty, char * _continue, char * dryRun, char * fieldSelector, int gracePeriodSeconds, char * labelSelector, int limit, int orphanDependents, char * propagationPolicy, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_deleteCollectionResourceClass** +```c +// delete collection of ResourceClass +// +v1_status_t* ResourceV1alpha1API_deleteCollectionResourceClass(apiClient_t *apiClient, char * pretty, char * _continue, char * dryRun, char * fieldSelector, int gracePeriodSeconds, char * labelSelector, int limit, int orphanDependents, char * propagationPolicy, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_deleteNamespacedPodScheduling** +```c +// delete a PodScheduling +// +v1alpha1_pod_scheduling_t* ResourceV1alpha1API_deleteNamespacedPodScheduling(apiClient_t *apiClient, char * name, char * _namespace, char * pretty, char * dryRun, int gracePeriodSeconds, int orphanDependents, char * propagationPolicy, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PodScheduling | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_deleteNamespacedResourceClaim** +```c +// delete a ResourceClaim +// +v1alpha1_resource_claim_t* ResourceV1alpha1API_deleteNamespacedResourceClaim(apiClient_t *apiClient, char * name, char * _namespace, char * pretty, char * dryRun, int gracePeriodSeconds, int orphanDependents, char * propagationPolicy, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaim | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_deleteNamespacedResourceClaimTemplate** +```c +// delete a ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* ResourceV1alpha1API_deleteNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name, char * _namespace, char * pretty, char * dryRun, int gracePeriodSeconds, int orphanDependents, char * propagationPolicy, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaimTemplate | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1alpha1_resource_claim_template_t](v1alpha1_resource_claim_template.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_deleteResourceClass** +```c +// delete a ResourceClass +// +v1alpha1_resource_class_t* ResourceV1alpha1API_deleteResourceClass(apiClient_t *apiClient, char * name, char * pretty, char * dryRun, int gracePeriodSeconds, int orphanDependents, char * propagationPolicy, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClass | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1alpha1_resource_class_t](v1alpha1_resource_class.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_getAPIResources** +```c +// get available resources +// +v1_api_resource_list_t* ResourceV1alpha1API_getAPIResources(apiClient_t *apiClient); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | + +### Return type + +[v1_api_resource_list_t](v1_api_resource_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_listNamespacedPodScheduling** +```c +// list or watch objects of kind PodScheduling +// +v1alpha1_pod_scheduling_list_t* ResourceV1alpha1API_listNamespacedPodScheduling(apiClient_t *apiClient, char * _namespace, char * pretty, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1alpha1_pod_scheduling_list_t](v1alpha1_pod_scheduling_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_listNamespacedResourceClaim** +```c +// list or watch objects of kind ResourceClaim +// +v1alpha1_resource_claim_list_t* ResourceV1alpha1API_listNamespacedResourceClaim(apiClient_t *apiClient, char * _namespace, char * pretty, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1alpha1_resource_claim_list_t](v1alpha1_resource_claim_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_listNamespacedResourceClaimTemplate** +```c +// list or watch objects of kind ResourceClaimTemplate +// +v1alpha1_resource_claim_template_list_t* ResourceV1alpha1API_listNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * _namespace, char * pretty, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1alpha1_resource_claim_template_list_t](v1alpha1_resource_claim_template_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_listPodSchedulingForAllNamespaces** +```c +// list or watch objects of kind PodScheduling +// +v1alpha1_pod_scheduling_list_t* ResourceV1alpha1API_listPodSchedulingForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * pretty, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1alpha1_pod_scheduling_list_t](v1alpha1_pod_scheduling_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_listResourceClaimForAllNamespaces** +```c +// list or watch objects of kind ResourceClaim +// +v1alpha1_resource_claim_list_t* ResourceV1alpha1API_listResourceClaimForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * pretty, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1alpha1_resource_claim_list_t](v1alpha1_resource_claim_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_listResourceClaimTemplateForAllNamespaces** +```c +// list or watch objects of kind ResourceClaimTemplate +// +v1alpha1_resource_claim_template_list_t* ResourceV1alpha1API_listResourceClaimTemplateForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * pretty, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1alpha1_resource_claim_template_list_t](v1alpha1_resource_claim_template_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_listResourceClass** +```c +// list or watch objects of kind ResourceClass +// +v1alpha1_resource_class_list_t* ResourceV1alpha1API_listResourceClass(apiClient_t *apiClient, char * pretty, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1alpha1_resource_class_list_t](v1alpha1_resource_class_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_patchNamespacedPodScheduling** +```c +// partially update the specified PodScheduling +// +v1alpha1_pod_scheduling_t* ResourceV1alpha1API_patchNamespacedPodScheduling(apiClient_t *apiClient, char * name, char * _namespace, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PodScheduling | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_patchNamespacedPodSchedulingStatus** +```c +// partially update status of the specified PodScheduling +// +v1alpha1_pod_scheduling_t* ResourceV1alpha1API_patchNamespacedPodSchedulingStatus(apiClient_t *apiClient, char * name, char * _namespace, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PodScheduling | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_patchNamespacedResourceClaim** +```c +// partially update the specified ResourceClaim +// +v1alpha1_resource_claim_t* ResourceV1alpha1API_patchNamespacedResourceClaim(apiClient_t *apiClient, char * name, char * _namespace, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaim | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_patchNamespacedResourceClaimStatus** +```c +// partially update status of the specified ResourceClaim +// +v1alpha1_resource_claim_t* ResourceV1alpha1API_patchNamespacedResourceClaimStatus(apiClient_t *apiClient, char * name, char * _namespace, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaim | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_patchNamespacedResourceClaimTemplate** +```c +// partially update the specified ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* ResourceV1alpha1API_patchNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name, char * _namespace, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaimTemplate | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1alpha1_resource_claim_template_t](v1alpha1_resource_claim_template.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_patchResourceClass** +```c +// partially update the specified ResourceClass +// +v1alpha1_resource_class_t* ResourceV1alpha1API_patchResourceClass(apiClient_t *apiClient, char * name, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClass | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1alpha1_resource_class_t](v1alpha1_resource_class.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_readNamespacedPodScheduling** +```c +// read the specified PodScheduling +// +v1alpha1_pod_scheduling_t* ResourceV1alpha1API_readNamespacedPodScheduling(apiClient_t *apiClient, char * name, char * _namespace, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PodScheduling | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_readNamespacedPodSchedulingStatus** +```c +// read status of the specified PodScheduling +// +v1alpha1_pod_scheduling_t* ResourceV1alpha1API_readNamespacedPodSchedulingStatus(apiClient_t *apiClient, char * name, char * _namespace, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PodScheduling | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_readNamespacedResourceClaim** +```c +// read the specified ResourceClaim +// +v1alpha1_resource_claim_t* ResourceV1alpha1API_readNamespacedResourceClaim(apiClient_t *apiClient, char * name, char * _namespace, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaim | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_readNamespacedResourceClaimStatus** +```c +// read status of the specified ResourceClaim +// +v1alpha1_resource_claim_t* ResourceV1alpha1API_readNamespacedResourceClaimStatus(apiClient_t *apiClient, char * name, char * _namespace, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaim | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_readNamespacedResourceClaimTemplate** +```c +// read the specified ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* ResourceV1alpha1API_readNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name, char * _namespace, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaimTemplate | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1alpha1_resource_claim_template_t](v1alpha1_resource_claim_template.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_readResourceClass** +```c +// read the specified ResourceClass +// +v1alpha1_resource_class_t* ResourceV1alpha1API_readResourceClass(apiClient_t *apiClient, char * name, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClass | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1alpha1_resource_class_t](v1alpha1_resource_class.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_replaceNamespacedPodScheduling** +```c +// replace the specified PodScheduling +// +v1alpha1_pod_scheduling_t* ResourceV1alpha1API_replaceNamespacedPodScheduling(apiClient_t *apiClient, char * name, char * _namespace, v1alpha1_pod_scheduling_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PodScheduling | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_replaceNamespacedPodSchedulingStatus** +```c +// replace status of the specified PodScheduling +// +v1alpha1_pod_scheduling_t* ResourceV1alpha1API_replaceNamespacedPodSchedulingStatus(apiClient_t *apiClient, char * name, char * _namespace, v1alpha1_pod_scheduling_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PodScheduling | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_replaceNamespacedResourceClaim** +```c +// replace the specified ResourceClaim +// +v1alpha1_resource_claim_t* ResourceV1alpha1API_replaceNamespacedResourceClaim(apiClient_t *apiClient, char * name, char * _namespace, v1alpha1_resource_claim_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaim | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_replaceNamespacedResourceClaimStatus** +```c +// replace status of the specified ResourceClaim +// +v1alpha1_resource_claim_t* ResourceV1alpha1API_replaceNamespacedResourceClaimStatus(apiClient_t *apiClient, char * name, char * _namespace, v1alpha1_resource_claim_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaim | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_replaceNamespacedResourceClaimTemplate** +```c +// replace the specified ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* ResourceV1alpha1API_replaceNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name, char * _namespace, v1alpha1_resource_claim_template_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaimTemplate | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[v1alpha1_resource_claim_template_t](v1alpha1_resource_claim_template.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_resource_claim_template_t](v1alpha1_resource_claim_template.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_replaceResourceClass** +```c +// replace the specified ResourceClass +// +v1alpha1_resource_class_t* ResourceV1alpha1API_replaceResourceClass(apiClient_t *apiClient, char * name, v1alpha1_resource_class_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClass | +**body** | **[v1alpha1_resource_class_t](v1alpha1_resource_class.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_resource_class_t](v1alpha1_resource_class.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/kubernetes/docs/v1_claim_source.md b/kubernetes/docs/v1_claim_source.md new file mode 100644 index 00000000..aad2161b --- /dev/null +++ b/kubernetes/docs/v1_claim_source.md @@ -0,0 +1,11 @@ +# v1_claim_source_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resource_claim_name** | **char \*** | ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. | [optional] +**resource_claim_template_name** | **char \*** | ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The name of the ResourceClaim will be <pod name>-<resource name>, where <resource name> is the PodResourceClaim.Name. Pod validation will reject the pod if the concatenated name is not valid for a ResourceClaim (e.g. too long). An existing ResourceClaim with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated resource by mistake. Scheduling and pod startup are then blocked until the unrelated ResourceClaim is removed. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1_cross_version_object_reference.md b/kubernetes/docs/v1_cross_version_object_reference.md index 78668b15..933c56e2 100644 --- a/kubernetes/docs/v1_cross_version_object_reference.md +++ b/kubernetes/docs/v1_cross_version_object_reference.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **char \*** | API version of the referent | [optional] -**kind** | **char \*** | Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\" | +**kind** | **char \*** | Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | **name** | **char \*** | Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/v1_custom_resource_definition_spec.md b/kubernetes/docs/v1_custom_resource_definition_spec.md index 75762230..48a74844 100644 --- a/kubernetes/docs/v1_custom_resource_definition_spec.md +++ b/kubernetes/docs/v1_custom_resource_definition_spec.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **conversion** | [**v1_custom_resource_conversion_t**](v1_custom_resource_conversion.md) \* | | [optional] **group** | **char \*** | group is the API group of the defined custom resource. The custom resources are served under `/apis/<group>/...`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). | **names** | [**v1_custom_resource_definition_names_t**](v1_custom_resource_definition_names.md) \* | | -**preserve_unknown_fields** | **int** | preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. | [optional] +**preserve_unknown_fields** | **int** | preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details. | [optional] **scope** | **char \*** | scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. | **versions** | [**list_t**](v1_custom_resource_definition_version.md) \* | versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. | diff --git a/kubernetes/docs/v1_endpoint_conditions.md b/kubernetes/docs/v1_endpoint_conditions.md index c7620885..9e121f47 100644 --- a/kubernetes/docs/v1_endpoint_conditions.md +++ b/kubernetes/docs/v1_endpoint_conditions.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ready** | **int** | ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be \"true\" for terminating endpoints. | [optional] -**serving** | **int** | serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate. | [optional] -**terminating** | **int** | terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate. | [optional] +**serving** | **int** | serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. | [optional] +**terminating** | **int** | terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/v1_ingress_load_balancer_ingress.md b/kubernetes/docs/v1_ingress_load_balancer_ingress.md new file mode 100644 index 00000000..e51d6b68 --- /dev/null +++ b/kubernetes/docs/v1_ingress_load_balancer_ingress.md @@ -0,0 +1,12 @@ +# v1_ingress_load_balancer_ingress_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hostname** | **char \*** | Hostname is set for load-balancer ingress points that are DNS based. | [optional] +**ip** | **char \*** | IP is set for load-balancer ingress points that are IP based. | [optional] +**ports** | [**list_t**](v1_ingress_port_status.md) \* | Ports provides information about the ports exposed by this LoadBalancer. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1_ingress_load_balancer_status.md b/kubernetes/docs/v1_ingress_load_balancer_status.md new file mode 100644 index 00000000..d887fd24 --- /dev/null +++ b/kubernetes/docs/v1_ingress_load_balancer_status.md @@ -0,0 +1,10 @@ +# v1_ingress_load_balancer_status_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ingress** | [**list_t**](v1_ingress_load_balancer_ingress.md) \* | Ingress is a list containing ingress points for the load-balancer. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1_ingress_port_status.md b/kubernetes/docs/v1_ingress_port_status.md new file mode 100644 index 00000000..59e4a478 --- /dev/null +++ b/kubernetes/docs/v1_ingress_port_status.md @@ -0,0 +1,12 @@ +# v1_ingress_port_status_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **char \*** | Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use CamelCase names - cloud provider specific error values must have names that comply with the format foo.example.com/CamelCase. | [optional] +**port** | **int** | Port is the port number of the ingress port. | +**protocol** | **char \*** | Protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\" | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1_ingress_status.md b/kubernetes/docs/v1_ingress_status.md index 85363bfc..f8aa1938 100644 --- a/kubernetes/docs/v1_ingress_status.md +++ b/kubernetes/docs/v1_ingress_status.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**load_balancer** | [**v1_load_balancer_status_t**](v1_load_balancer_status.md) \* | | [optional] +**load_balancer** | [**v1_ingress_load_balancer_status_t**](v1_ingress_load_balancer_status.md) \* | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/v1_ip_block.md b/kubernetes/docs/v1_ip_block.md index c85d198b..9dea5169 100644 --- a/kubernetes/docs/v1_ip_block.md +++ b/kubernetes/docs/v1_ip_block.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cidr** | **char \*** | CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\" | -**except** | **list_t \*** | Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\" Except values will be rejected if they are outside the CIDR range | [optional] +**cidr** | **char \*** | CIDR is a string representing the IP Block Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" | +**except** | **list_t \*** | Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the CIDR range | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/v1_node_status.md b/kubernetes/docs/v1_node_status.md index 5002dc52..c3ed6f59 100644 --- a/kubernetes/docs/v1_node_status.md +++ b/kubernetes/docs/v1_node_status.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**addresses** | [**list_t**](v1_node_address.md) \* | List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See http://pr.k8s.io/79391 for an example. | [optional] +**addresses** | [**list_t**](v1_node_address.md) \* | List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. | [optional] **allocatable** | **list_t*** | Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. | [optional] **capacity** | **list_t*** | Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity | [optional] **conditions** | [**list_t**](v1_node_condition.md) \* | Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition | [optional] diff --git a/kubernetes/docs/v1_persistent_volume_claim_spec.md b/kubernetes/docs/v1_persistent_volume_claim_spec.md index f2d25639..1746e269 100644 --- a/kubernetes/docs/v1_persistent_volume_claim_spec.md +++ b/kubernetes/docs/v1_persistent_volume_claim_spec.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_modes** | **list_t \*** | accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] **data_source** | [**v1_typed_local_object_reference_t**](v1_typed_local_object_reference.md) \* | | [optional] -**data_source_ref** | [**v1_typed_local_object_reference_t**](v1_typed_local_object_reference.md) \* | | [optional] +**data_source_ref** | [**v1_typed_object_reference_t**](v1_typed_object_reference.md) \* | | [optional] **resources** | [**v1_resource_requirements_t**](v1_resource_requirements.md) \* | | [optional] **selector** | [**v1_label_selector_t**](v1_label_selector.md) \* | | [optional] **storage_class_name** | **char \*** | storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] diff --git a/kubernetes/docs/v1_pod_disruption_budget_spec.md b/kubernetes/docs/v1_pod_disruption_budget_spec.md index bff45dc3..55b6cf1c 100644 --- a/kubernetes/docs/v1_pod_disruption_budget_spec.md +++ b/kubernetes/docs/v1_pod_disruption_budget_spec.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **max_unavailable** | **int_or_string_t \*** | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] **min_available** | **int_or_string_t \*** | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] **selector** | [**v1_label_selector_t**](v1_label_selector.md) \* | | [optional] +**unhealthy_pod_eviction_policy** | **char \*** | UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field. This field is alpha-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (disabled by default). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/v1_pod_resource_claim.md b/kubernetes/docs/v1_pod_resource_claim.md new file mode 100644 index 00000000..39d389f3 --- /dev/null +++ b/kubernetes/docs/v1_pod_resource_claim.md @@ -0,0 +1,11 @@ +# v1_pod_resource_claim_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **char \*** | Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. | +**source** | [**v1_claim_source_t**](v1_claim_source.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1_pod_scheduling_gate.md b/kubernetes/docs/v1_pod_scheduling_gate.md new file mode 100644 index 00000000..77500bf4 --- /dev/null +++ b/kubernetes/docs/v1_pod_scheduling_gate.md @@ -0,0 +1,10 @@ +# v1_pod_scheduling_gate_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **char \*** | Name of the scheduling gate. Each scheduling gate must have a unique name field. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1_pod_security_context.md b/kubernetes/docs/v1_pod_security_context.md index 3449b2a5..67b6c2d0 100644 --- a/kubernetes/docs/v1_pod_security_context.md +++ b/kubernetes/docs/v1_pod_security_context.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **run_as_user** | **long** | The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. | [optional] **se_linux_options** | [**v1_se_linux_options_t**](v1_se_linux_options.md) \* | | [optional] **seccomp_profile** | [**v1_seccomp_profile_t**](v1_seccomp_profile.md) \* | | [optional] -**supplemental_groups** | **list_t \*** | A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. Note that this field cannot be set when spec.os.name is windows. | [optional] +**supplemental_groups** | **list_t \*** | A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows. | [optional] **sysctls** | [**list_t**](v1_sysctl.md) \* | Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows. | [optional] **windows_options** | [**v1_windows_security_context_options_t**](v1_windows_security_context_options.md) \* | | [optional] diff --git a/kubernetes/docs/v1_pod_spec.md b/kubernetes/docs/v1_pod_spec.md index a154a0fc..d35b2998 100644 --- a/kubernetes/docs/v1_pod_spec.md +++ b/kubernetes/docs/v1_pod_spec.md @@ -27,9 +27,11 @@ Name | Type | Description | Notes **priority** | **int** | The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. | [optional] **priority_class_name** | **char \*** | If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. | [optional] **readiness_gates** | [**list_t**](v1_pod_readiness_gate.md) \* | If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates | [optional] +**resource_claims** | [**list_t**](v1_pod_resource_claim.md) \* | ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. | [optional] **restart_policy** | **char \*** | Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy | [optional] **runtime_class_name** | **char \*** | RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class | [optional] **scheduler_name** | **char \*** | If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. | [optional] +**scheduling_gates** | [**list_t**](v1_pod_scheduling_gate.md) \* | SchedulingGates is an opaque list of values that if specified will block scheduling the pod. More info: https://git.k8s.io/enhancements/keps/sig-scheduling/3521-pod-scheduling-readiness. This is an alpha-level feature enabled by PodSchedulingReadiness feature gate. | [optional] **security_context** | [**v1_pod_security_context_t**](v1_pod_security_context.md) \* | | [optional] **service_account** | **char \*** | DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. | [optional] **service_account_name** | **char \*** | ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ | [optional] diff --git a/kubernetes/docs/v1_replica_set_status.md b/kubernetes/docs/v1_replica_set_status.md index 4b9151ce..4b56f1d1 100644 --- a/kubernetes/docs/v1_replica_set_status.md +++ b/kubernetes/docs/v1_replica_set_status.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **fully_labeled_replicas** | **int** | The number of pods that have labels matching the labels of the pod template of the replicaset. | [optional] **observed_generation** | **long** | ObservedGeneration reflects the generation of the most recently observed ReplicaSet. | [optional] **ready_replicas** | **int** | readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition. | [optional] -**replicas** | **int** | Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller | +**replicas** | **int** | Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/v1_replication_controller_status.md b/kubernetes/docs/v1_replication_controller_status.md index 2ef21417..a9c794e7 100644 --- a/kubernetes/docs/v1_replication_controller_status.md +++ b/kubernetes/docs/v1_replication_controller_status.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **fully_labeled_replicas** | **int** | The number of pods that have labels matching the labels of the pod template of the replication controller. | [optional] **observed_generation** | **long** | ObservedGeneration reflects the generation of the most recently observed replication controller. | [optional] **ready_replicas** | **int** | The number of ready replicas for this replication controller. | [optional] -**replicas** | **int** | Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller | +**replicas** | **int** | Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/v1_resource_claim.md b/kubernetes/docs/v1_resource_claim.md new file mode 100644 index 00000000..26284bc8 --- /dev/null +++ b/kubernetes/docs/v1_resource_claim.md @@ -0,0 +1,10 @@ +# v1_resource_claim_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **char \*** | Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1_resource_requirements.md b/kubernetes/docs/v1_resource_requirements.md index b07742aa..b58920b6 100644 --- a/kubernetes/docs/v1_resource_requirements.md +++ b/kubernetes/docs/v1_resource_requirements.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**claims** | [**list_t**](v1_resource_claim.md) \* | Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. | [optional] **limits** | **list_t*** | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] **requests** | **list_t*** | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] diff --git a/kubernetes/docs/v1_stateful_set_ordinals.md b/kubernetes/docs/v1_stateful_set_ordinals.md new file mode 100644 index 00000000..ecdd3684 --- /dev/null +++ b/kubernetes/docs/v1_stateful_set_ordinals.md @@ -0,0 +1,10 @@ +# v1_stateful_set_ordinals_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start** | **int** | start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range: [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). If unset, defaults to 0. Replica indices will be in the range: [0, .spec.replicas). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1_stateful_set_spec.md b/kubernetes/docs/v1_stateful_set_spec.md index bad7a1f2..e6a80e4e 100644 --- a/kubernetes/docs/v1_stateful_set_spec.md +++ b/kubernetes/docs/v1_stateful_set_spec.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **min_ready_seconds** | **int** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] +**ordinals** | [**v1_stateful_set_ordinals_t**](v1_stateful_set_ordinals.md) \* | | [optional] **persistent_volume_claim_retention_policy** | [**v1_stateful_set_persistent_volume_claim_retention_policy_t**](v1_stateful_set_persistent_volume_claim_retention_policy.md) \* | | [optional] **pod_management_policy** | **char \*** | podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. | [optional] **replicas** | **int** | replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. | [optional] diff --git a/kubernetes/docs/v1_topology_spread_constraint.md b/kubernetes/docs/v1_topology_spread_constraint.md index e4f22833..1e3ba7ee 100644 --- a/kubernetes/docs/v1_topology_spread_constraint.md +++ b/kubernetes/docs/v1_topology_spread_constraint.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **match_label_keys** | **list_t \*** | MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. | [optional] **max_skew** | **int** | MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. | **min_domains** | **int** | MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). | [optional] -**node_affinity_policy** | **char \*** | NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. | [optional] -**node_taints_policy** | **char \*** | NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. | [optional] +**node_affinity_policy** | **char \*** | NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. | [optional] +**node_taints_policy** | **char \*** | NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. | [optional] **topology_key** | **char \*** | TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field. | **when_unsatisfiable** | **char \*** | WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. | diff --git a/kubernetes/docs/v1_typed_object_reference.md b/kubernetes/docs/v1_typed_object_reference.md new file mode 100644 index 00000000..38b1e986 --- /dev/null +++ b/kubernetes/docs/v1_typed_object_reference.md @@ -0,0 +1,13 @@ +# v1_typed_object_reference_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_group** | **char \*** | APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. | [optional] +**kind** | **char \*** | Kind is the type of resource being referenced | +**name** | **char \*** | Name is the name of resource being referenced | +**_namespace** | **char \*** | Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_allocation_result.md b/kubernetes/docs/v1alpha1_allocation_result.md new file mode 100644 index 00000000..2a42026d --- /dev/null +++ b/kubernetes/docs/v1alpha1_allocation_result.md @@ -0,0 +1,12 @@ +# v1alpha1_allocation_result_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_on_nodes** | [**v1_node_selector_t**](v1_node_selector.md) \* | | [optional] +**resource_handle** | **char \*** | ResourceHandle contains arbitrary data returned by the driver after a successful allocation. This is opaque for Kubernetes. Driver documentation may explain to users how to interpret this data if needed. The maximum size of this field is 16KiB. This may get increased in the future, but not reduced. | [optional] +**shareable** | **int** | Shareable determines whether the resource supports more than one consumer at a time. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_cluster_cidr_spec.md b/kubernetes/docs/v1alpha1_cluster_cidr_spec.md index 45ac0036..ae0d40c2 100644 --- a/kubernetes/docs/v1alpha1_cluster_cidr_spec.md +++ b/kubernetes/docs/v1alpha1_cluster_cidr_spec.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ipv4** | **char \*** | IPv4 defines an IPv4 IP block in CIDR notation(e.g. \"10.0.0.0/8\"). At least one of IPv4 and IPv6 must be specified. This field is immutable. | [optional] -**ipv6** | **char \*** | IPv6 defines an IPv6 IP block in CIDR notation(e.g. \"fd12:3456:789a:1::/64\"). At least one of IPv4 and IPv6 must be specified. This field is immutable. | [optional] +**ipv6** | **char \*** | IPv6 defines an IPv6 IP block in CIDR notation(e.g. \"2001:db8::/64\"). At least one of IPv4 and IPv6 must be specified. This field is immutable. | [optional] **node_selector** | [**v1_node_selector_t**](v1_node_selector.md) \* | | [optional] **per_node_host_bits** | **int** | PerNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable. | diff --git a/kubernetes/docs/v1alpha1_match_resources.md b/kubernetes/docs/v1alpha1_match_resources.md new file mode 100644 index 00000000..2f7f30e1 --- /dev/null +++ b/kubernetes/docs/v1alpha1_match_resources.md @@ -0,0 +1,14 @@ +# v1alpha1_match_resources_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**exclude_resource_rules** | [**list_t**](v1alpha1_named_rule_with_operations.md) \* | ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) | [optional] +**match_policy** | **char \*** | matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\" | [optional] +**namespace_selector** | [**v1_label_selector_t**](v1_label_selector.md) \* | | [optional] +**object_selector** | [**v1_label_selector_t**](v1_label_selector.md) \* | | [optional] +**resource_rules** | [**list_t**](v1alpha1_named_rule_with_operations.md) \* | ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_named_rule_with_operations.md b/kubernetes/docs/v1alpha1_named_rule_with_operations.md new file mode 100644 index 00000000..c8b84364 --- /dev/null +++ b/kubernetes/docs/v1alpha1_named_rule_with_operations.md @@ -0,0 +1,15 @@ +# v1alpha1_named_rule_with_operations_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_groups** | **list_t \*** | APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. | [optional] +**api_versions** | **list_t \*** | APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. | [optional] +**operations** | **list_t \*** | Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. | [optional] +**resource_names** | **list_t \*** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] +**resources** | **list_t \*** | Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. | [optional] +**scope** | **char \*** | scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_param_kind.md b/kubernetes/docs/v1alpha1_param_kind.md new file mode 100644 index 00000000..afb17109 --- /dev/null +++ b/kubernetes/docs/v1alpha1_param_kind.md @@ -0,0 +1,11 @@ +# v1alpha1_param_kind_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion is the API group version the resources belong to. In format of \"group/version\". Required. | [optional] +**kind** | **char \*** | Kind is the API kind the resources belong to. Required. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_param_ref.md b/kubernetes/docs/v1alpha1_param_ref.md new file mode 100644 index 00000000..1934159e --- /dev/null +++ b/kubernetes/docs/v1alpha1_param_ref.md @@ -0,0 +1,11 @@ +# v1alpha1_param_ref_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **char \*** | Name of the resource being referenced. | [optional] +**_namespace** | **char \*** | Namespace of the referenced resource. Should be empty for the cluster-scoped resources | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_pod_scheduling.md b/kubernetes/docs/v1alpha1_pod_scheduling.md new file mode 100644 index 00000000..015e881b --- /dev/null +++ b/kubernetes/docs/v1alpha1_pod_scheduling.md @@ -0,0 +1,14 @@ +# v1alpha1_pod_scheduling_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional] +**spec** | [**v1alpha1_pod_scheduling_spec_t**](v1alpha1_pod_scheduling_spec.md) \* | | +**status** | [**v1alpha1_pod_scheduling_status_t**](v1alpha1_pod_scheduling_status.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_pod_scheduling_list.md b/kubernetes/docs/v1alpha1_pod_scheduling_list.md new file mode 100644 index 00000000..b7d29c7f --- /dev/null +++ b/kubernetes/docs/v1alpha1_pod_scheduling_list.md @@ -0,0 +1,13 @@ +# v1alpha1_pod_scheduling_list_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list_t**](v1alpha1_pod_scheduling.md) \* | Items is the list of PodScheduling objects. | +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_list_meta_t**](v1_list_meta.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_pod_scheduling_spec.md b/kubernetes/docs/v1alpha1_pod_scheduling_spec.md new file mode 100644 index 00000000..0e2ff3b9 --- /dev/null +++ b/kubernetes/docs/v1alpha1_pod_scheduling_spec.md @@ -0,0 +1,11 @@ +# v1alpha1_pod_scheduling_spec_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**potential_nodes** | **list_t \*** | PotentialNodes lists nodes where the Pod might be able to run. The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced. | [optional] +**selected_node** | **char \*** | SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_pod_scheduling_status.md b/kubernetes/docs/v1alpha1_pod_scheduling_status.md new file mode 100644 index 00000000..ebddd9b9 --- /dev/null +++ b/kubernetes/docs/v1alpha1_pod_scheduling_status.md @@ -0,0 +1,10 @@ +# v1alpha1_pod_scheduling_status_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resource_claims** | [**list_t**](v1alpha1_resource_claim_scheduling_status.md) \* | ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_claim.md b/kubernetes/docs/v1alpha1_resource_claim.md new file mode 100644 index 00000000..1f37e2fc --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_claim.md @@ -0,0 +1,14 @@ +# v1alpha1_resource_claim_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional] +**spec** | [**v1alpha1_resource_claim_spec_t**](v1alpha1_resource_claim_spec.md) \* | | +**status** | [**v1alpha1_resource_claim_status_t**](v1alpha1_resource_claim_status.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_claim_consumer_reference.md b/kubernetes/docs/v1alpha1_resource_claim_consumer_reference.md new file mode 100644 index 00000000..e1a9fdde --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_claim_consumer_reference.md @@ -0,0 +1,13 @@ +# v1alpha1_resource_claim_consumer_reference_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_group** | **char \*** | APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. | [optional] +**name** | **char \*** | Name is the name of resource being referenced. | +**resource** | **char \*** | Resource is the type of resource being referenced, for example \"pods\". | +**uid** | **char \*** | UID identifies exactly one incarnation of the resource. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_claim_list.md b/kubernetes/docs/v1alpha1_resource_claim_list.md new file mode 100644 index 00000000..4bc2dfac --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_claim_list.md @@ -0,0 +1,13 @@ +# v1alpha1_resource_claim_list_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list_t**](v1alpha1_resource_claim.md) \* | Items is the list of resource claims. | +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_list_meta_t**](v1_list_meta.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_claim_parameters_reference.md b/kubernetes/docs/v1alpha1_resource_claim_parameters_reference.md new file mode 100644 index 00000000..7076254d --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_claim_parameters_reference.md @@ -0,0 +1,12 @@ +# v1alpha1_resource_claim_parameters_reference_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_group** | **char \*** | APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. | [optional] +**kind** | **char \*** | Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \"ConfigMap\". | +**name** | **char \*** | Name is the name of resource being referenced. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_claim_scheduling_status.md b/kubernetes/docs/v1alpha1_resource_claim_scheduling_status.md new file mode 100644 index 00000000..df1844a4 --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_claim_scheduling_status.md @@ -0,0 +1,11 @@ +# v1alpha1_resource_claim_scheduling_status_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **char \*** | Name matches the pod.spec.resourceClaims[*].Name field. | [optional] +**unsuitable_nodes** | **list_t \*** | UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for. The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_claim_spec.md b/kubernetes/docs/v1alpha1_resource_claim_spec.md new file mode 100644 index 00000000..b7e4ad93 --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_claim_spec.md @@ -0,0 +1,12 @@ +# v1alpha1_resource_claim_spec_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocation_mode** | **char \*** | Allocation can start immediately or when a Pod wants to use the resource. \"WaitForFirstConsumer\" is the default. | [optional] +**parameters_ref** | [**v1alpha1_resource_claim_parameters_reference_t**](v1alpha1_resource_claim_parameters_reference.md) \* | | [optional] +**resource_class_name** | **char \*** | ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_claim_status.md b/kubernetes/docs/v1alpha1_resource_claim_status.md new file mode 100644 index 00000000..778118c8 --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_claim_status.md @@ -0,0 +1,13 @@ +# v1alpha1_resource_claim_status_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocation** | [**v1alpha1_allocation_result_t**](v1alpha1_allocation_result.md) \* | | [optional] +**deallocation_requested** | **int** | DeallocationRequested indicates that a ResourceClaim is to be deallocated. The driver then must deallocate this claim and reset the field together with clearing the Allocation field. While DeallocationRequested is set, no new consumers may be added to ReservedFor. | [optional] +**driver_name** | **char \*** | DriverName is a copy of the driver name from the ResourceClass at the time when allocation started. | [optional] +**reserved_for** | [**list_t**](v1alpha1_resource_claim_consumer_reference.md) \* | ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. There can be at most 32 such reservations. This may get increased in the future, but not reduced. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_claim_template.md b/kubernetes/docs/v1alpha1_resource_claim_template.md new file mode 100644 index 00000000..0aabf564 --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_claim_template.md @@ -0,0 +1,13 @@ +# v1alpha1_resource_claim_template_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional] +**spec** | [**v1alpha1_resource_claim_template_spec_t**](v1alpha1_resource_claim_template_spec.md) \* | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_claim_template_list.md b/kubernetes/docs/v1alpha1_resource_claim_template_list.md new file mode 100644 index 00000000..01724720 --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_claim_template_list.md @@ -0,0 +1,13 @@ +# v1alpha1_resource_claim_template_list_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list_t**](v1alpha1_resource_claim_template.md) \* | Items is the list of resource claim templates. | +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_list_meta_t**](v1_list_meta.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_claim_template_spec.md b/kubernetes/docs/v1alpha1_resource_claim_template_spec.md new file mode 100644 index 00000000..abd5b402 --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_claim_template_spec.md @@ -0,0 +1,11 @@ +# v1alpha1_resource_claim_template_spec_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional] +**spec** | [**v1alpha1_resource_claim_spec_t**](v1alpha1_resource_claim_spec.md) \* | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_class.md b/kubernetes/docs/v1alpha1_resource_class.md new file mode 100644 index 00000000..f6b0fc56 --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_class.md @@ -0,0 +1,15 @@ +# v1alpha1_resource_class_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**driver_name** | **char \*** | DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class. Resource drivers have a unique name in forward domain order (acme.example.com). | +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional] +**parameters_ref** | [**v1alpha1_resource_class_parameters_reference_t**](v1alpha1_resource_class_parameters_reference.md) \* | | [optional] +**suitable_nodes** | [**v1_node_selector_t**](v1_node_selector.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_class_list.md b/kubernetes/docs/v1alpha1_resource_class_list.md new file mode 100644 index 00000000..038166cf --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_class_list.md @@ -0,0 +1,13 @@ +# v1alpha1_resource_class_list_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list_t**](v1alpha1_resource_class.md) \* | Items is the list of resource classes. | +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_list_meta_t**](v1_list_meta.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_class_parameters_reference.md b/kubernetes/docs/v1alpha1_resource_class_parameters_reference.md new file mode 100644 index 00000000..0e141eec --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_class_parameters_reference.md @@ -0,0 +1,13 @@ +# v1alpha1_resource_class_parameters_reference_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_group** | **char \*** | APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. | [optional] +**kind** | **char \*** | Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata. | +**name** | **char \*** | Name is the name of resource being referenced. | +**_namespace** | **char \*** | Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_self_subject_review.md b/kubernetes/docs/v1alpha1_self_subject_review.md new file mode 100644 index 00000000..d5f0616e --- /dev/null +++ b/kubernetes/docs/v1alpha1_self_subject_review.md @@ -0,0 +1,13 @@ +# v1alpha1_self_subject_review_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional] +**status** | [**v1alpha1_self_subject_review_status_t**](v1alpha1_self_subject_review_status.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_self_subject_review_status.md b/kubernetes/docs/v1alpha1_self_subject_review_status.md new file mode 100644 index 00000000..453ff127 --- /dev/null +++ b/kubernetes/docs/v1alpha1_self_subject_review_status.md @@ -0,0 +1,10 @@ +# v1alpha1_self_subject_review_status_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_info** | [**v1_user_info_t**](v1_user_info.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_validating_admission_policy.md b/kubernetes/docs/v1alpha1_validating_admission_policy.md new file mode 100644 index 00000000..27f68d84 --- /dev/null +++ b/kubernetes/docs/v1alpha1_validating_admission_policy.md @@ -0,0 +1,13 @@ +# v1alpha1_validating_admission_policy_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional] +**spec** | [**v1alpha1_validating_admission_policy_spec_t**](v1alpha1_validating_admission_policy_spec.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_validating_admission_policy_binding.md b/kubernetes/docs/v1alpha1_validating_admission_policy_binding.md new file mode 100644 index 00000000..752b5a0b --- /dev/null +++ b/kubernetes/docs/v1alpha1_validating_admission_policy_binding.md @@ -0,0 +1,13 @@ +# v1alpha1_validating_admission_policy_binding_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional] +**spec** | [**v1alpha1_validating_admission_policy_binding_spec_t**](v1alpha1_validating_admission_policy_binding_spec.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_validating_admission_policy_binding_list.md b/kubernetes/docs/v1alpha1_validating_admission_policy_binding_list.md new file mode 100644 index 00000000..d35cdee5 --- /dev/null +++ b/kubernetes/docs/v1alpha1_validating_admission_policy_binding_list.md @@ -0,0 +1,13 @@ +# v1alpha1_validating_admission_policy_binding_list_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list_t**](v1alpha1_validating_admission_policy_binding.md) \* | List of PolicyBinding. | [optional] +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_list_meta_t**](v1_list_meta.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_validating_admission_policy_binding_spec.md b/kubernetes/docs/v1alpha1_validating_admission_policy_binding_spec.md new file mode 100644 index 00000000..cd8f7e48 --- /dev/null +++ b/kubernetes/docs/v1alpha1_validating_admission_policy_binding_spec.md @@ -0,0 +1,12 @@ +# v1alpha1_validating_admission_policy_binding_spec_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**match_resources** | [**v1alpha1_match_resources_t**](v1alpha1_match_resources.md) \* | | [optional] +**param_ref** | [**v1alpha1_param_ref_t**](v1alpha1_param_ref.md) \* | | [optional] +**policy_name** | **char \*** | PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_validating_admission_policy_list.md b/kubernetes/docs/v1alpha1_validating_admission_policy_list.md new file mode 100644 index 00000000..c6dbe448 --- /dev/null +++ b/kubernetes/docs/v1alpha1_validating_admission_policy_list.md @@ -0,0 +1,13 @@ +# v1alpha1_validating_admission_policy_list_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list_t**](v1alpha1_validating_admission_policy.md) \* | List of ValidatingAdmissionPolicy. | [optional] +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_list_meta_t**](v1_list_meta.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_validating_admission_policy_spec.md b/kubernetes/docs/v1alpha1_validating_admission_policy_spec.md new file mode 100644 index 00000000..62d22c09 --- /dev/null +++ b/kubernetes/docs/v1alpha1_validating_admission_policy_spec.md @@ -0,0 +1,13 @@ +# v1alpha1_validating_admission_policy_spec_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**failure_policy** | **char \*** | FailurePolicy defines how to handle failures for the admission policy. Failures can occur from invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. Allowed values are Ignore or Fail. Defaults to Fail. | [optional] +**match_constraints** | [**v1alpha1_match_resources_t**](v1alpha1_match_resources.md) \* | | [optional] +**param_kind** | [**v1alpha1_param_kind_t**](v1alpha1_param_kind.md) \* | | [optional] +**validations** | [**list_t**](v1alpha1_validation.md) \* | Validations contain CEL expressions which is used to apply the validation. A minimum of one validation is required for a policy definition. Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_validation.md b/kubernetes/docs/v1alpha1_validation.md new file mode 100644 index 00000000..cc209041 --- /dev/null +++ b/kubernetes/docs/v1alpha1_validation.md @@ -0,0 +1,12 @@ +# v1alpha1_validation_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expression** | **char \*** | Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the Admission request/response, organized into CEL variables as well as some other useful variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required. | +**message** | **char \*** | Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\". | [optional] +**reason** | **char \*** | Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta2_limited_priority_level_configuration.md b/kubernetes/docs/v1beta2_limited_priority_level_configuration.md index 357d120b..cb924c2a 100644 --- a/kubernetes/docs/v1beta2_limited_priority_level_configuration.md +++ b/kubernetes/docs/v1beta2_limited_priority_level_configuration.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **assured_concurrency_shares** | **int** | `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. | [optional] +**borrowing_limit_percent** | **int** | `borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite. | [optional] +**lendable_percent** | **int** | `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) | [optional] **limit_response** | [**v1beta2_limit_response_t**](v1beta2_limit_response.md) \* | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/v1beta3_flow_distinguisher_method.md b/kubernetes/docs/v1beta3_flow_distinguisher_method.md new file mode 100644 index 00000000..e39091f7 --- /dev/null +++ b/kubernetes/docs/v1beta3_flow_distinguisher_method.md @@ -0,0 +1,10 @@ +# v1beta3_flow_distinguisher_method_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **char \*** | `type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_flow_schema.md b/kubernetes/docs/v1beta3_flow_schema.md new file mode 100644 index 00000000..4b4ef84b --- /dev/null +++ b/kubernetes/docs/v1beta3_flow_schema.md @@ -0,0 +1,14 @@ +# v1beta3_flow_schema_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional] +**spec** | [**v1beta3_flow_schema_spec_t**](v1beta3_flow_schema_spec.md) \* | | [optional] +**status** | [**v1beta3_flow_schema_status_t**](v1beta3_flow_schema_status.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_flow_schema_condition.md b/kubernetes/docs/v1beta3_flow_schema_condition.md new file mode 100644 index 00000000..a6c75ff7 --- /dev/null +++ b/kubernetes/docs/v1beta3_flow_schema_condition.md @@ -0,0 +1,14 @@ +# v1beta3_flow_schema_condition_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_transition_time** | **char \*** | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] +**message** | **char \*** | `message` is a human-readable message indicating details about last transition. | [optional] +**reason** | **char \*** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] +**status** | **char \*** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] +**type** | **char \*** | `type` is the type of the condition. Required. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_flow_schema_list.md b/kubernetes/docs/v1beta3_flow_schema_list.md new file mode 100644 index 00000000..1f90f610 --- /dev/null +++ b/kubernetes/docs/v1beta3_flow_schema_list.md @@ -0,0 +1,13 @@ +# v1beta3_flow_schema_list_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list_t**](v1beta3_flow_schema.md) \* | `items` is a list of FlowSchemas. | +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_list_meta_t**](v1_list_meta.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_flow_schema_spec.md b/kubernetes/docs/v1beta3_flow_schema_spec.md new file mode 100644 index 00000000..aa5a1916 --- /dev/null +++ b/kubernetes/docs/v1beta3_flow_schema_spec.md @@ -0,0 +1,13 @@ +# v1beta3_flow_schema_spec_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**distinguisher_method** | [**v1beta3_flow_distinguisher_method_t**](v1beta3_flow_distinguisher_method.md) \* | | [optional] +**matching_precedence** | **int** | `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. | [optional] +**priority_level_configuration** | [**v1beta3_priority_level_configuration_reference_t**](v1beta3_priority_level_configuration_reference.md) \* | | +**rules** | [**list_t**](v1beta3_policy_rules_with_subjects.md) \* | `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_flow_schema_status.md b/kubernetes/docs/v1beta3_flow_schema_status.md new file mode 100644 index 00000000..9d3126a4 --- /dev/null +++ b/kubernetes/docs/v1beta3_flow_schema_status.md @@ -0,0 +1,10 @@ +# v1beta3_flow_schema_status_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**list_t**](v1beta3_flow_schema_condition.md) \* | `conditions` is a list of the current states of FlowSchema. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_group_subject.md b/kubernetes/docs/v1beta3_group_subject.md new file mode 100644 index 00000000..194939f6 --- /dev/null +++ b/kubernetes/docs/v1beta3_group_subject.md @@ -0,0 +1,10 @@ +# v1beta3_group_subject_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **char \*** | name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_limit_response.md b/kubernetes/docs/v1beta3_limit_response.md new file mode 100644 index 00000000..1691b73b --- /dev/null +++ b/kubernetes/docs/v1beta3_limit_response.md @@ -0,0 +1,11 @@ +# v1beta3_limit_response_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**queuing** | [**v1beta3_queuing_configuration_t**](v1beta3_queuing_configuration.md) \* | | [optional] +**type** | **char \*** | `type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_limited_priority_level_configuration.md b/kubernetes/docs/v1beta3_limited_priority_level_configuration.md new file mode 100644 index 00000000..253af9a1 --- /dev/null +++ b/kubernetes/docs/v1beta3_limited_priority_level_configuration.md @@ -0,0 +1,13 @@ +# v1beta3_limited_priority_level_configuration_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**borrowing_limit_percent** | **int** | `borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite. | [optional] +**lendable_percent** | **int** | `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) | [optional] +**limit_response** | [**v1beta3_limit_response_t**](v1beta3_limit_response.md) \* | | [optional] +**nominal_concurrency_shares** | **int** | `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values: NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[limited priority level k] NCS(k) Bigger numbers mean a larger nominal concurrency limit, at the expense of every other Limited priority level. This field has a default value of 30. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_non_resource_policy_rule.md b/kubernetes/docs/v1beta3_non_resource_policy_rule.md new file mode 100644 index 00000000..c0547b60 --- /dev/null +++ b/kubernetes/docs/v1beta3_non_resource_policy_rule.md @@ -0,0 +1,11 @@ +# v1beta3_non_resource_policy_rule_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**non_resource_urls** | **list_t \*** | `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - \"/healthz\" is legal - \"/hea*\" is illegal - \"/hea\" is legal but matches nothing - \"/hea/*\" also matches nothing - \"/healthz/*\" matches all per-component health checks. \"*\" matches all non-resource urls. if it is present, it must be the only entry. Required. | +**verbs** | **list_t \*** | `verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_policy_rules_with_subjects.md b/kubernetes/docs/v1beta3_policy_rules_with_subjects.md new file mode 100644 index 00000000..34137d29 --- /dev/null +++ b/kubernetes/docs/v1beta3_policy_rules_with_subjects.md @@ -0,0 +1,12 @@ +# v1beta3_policy_rules_with_subjects_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**non_resource_rules** | [**list_t**](v1beta3_non_resource_policy_rule.md) \* | `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. | [optional] +**resource_rules** | [**list_t**](v1beta3_resource_policy_rule.md) \* | `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. | [optional] +**subjects** | [**list_t**](v1beta3_subject.md) \* | subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_priority_level_configuration.md b/kubernetes/docs/v1beta3_priority_level_configuration.md new file mode 100644 index 00000000..7fc4ac64 --- /dev/null +++ b/kubernetes/docs/v1beta3_priority_level_configuration.md @@ -0,0 +1,14 @@ +# v1beta3_priority_level_configuration_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional] +**spec** | [**v1beta3_priority_level_configuration_spec_t**](v1beta3_priority_level_configuration_spec.md) \* | | [optional] +**status** | [**v1beta3_priority_level_configuration_status_t**](v1beta3_priority_level_configuration_status.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_priority_level_configuration_condition.md b/kubernetes/docs/v1beta3_priority_level_configuration_condition.md new file mode 100644 index 00000000..f9c63496 --- /dev/null +++ b/kubernetes/docs/v1beta3_priority_level_configuration_condition.md @@ -0,0 +1,14 @@ +# v1beta3_priority_level_configuration_condition_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_transition_time** | **char \*** | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] +**message** | **char \*** | `message` is a human-readable message indicating details about last transition. | [optional] +**reason** | **char \*** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] +**status** | **char \*** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] +**type** | **char \*** | `type` is the type of the condition. Required. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_priority_level_configuration_list.md b/kubernetes/docs/v1beta3_priority_level_configuration_list.md new file mode 100644 index 00000000..fd9bb9c2 --- /dev/null +++ b/kubernetes/docs/v1beta3_priority_level_configuration_list.md @@ -0,0 +1,13 @@ +# v1beta3_priority_level_configuration_list_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list_t**](v1beta3_priority_level_configuration.md) \* | `items` is a list of request-priorities. | +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_list_meta_t**](v1_list_meta.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_priority_level_configuration_reference.md b/kubernetes/docs/v1beta3_priority_level_configuration_reference.md new file mode 100644 index 00000000..9c2c31c9 --- /dev/null +++ b/kubernetes/docs/v1beta3_priority_level_configuration_reference.md @@ -0,0 +1,10 @@ +# v1beta3_priority_level_configuration_reference_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **char \*** | `name` is the name of the priority level configuration being referenced Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_priority_level_configuration_spec.md b/kubernetes/docs/v1beta3_priority_level_configuration_spec.md new file mode 100644 index 00000000..87d83f47 --- /dev/null +++ b/kubernetes/docs/v1beta3_priority_level_configuration_spec.md @@ -0,0 +1,11 @@ +# v1beta3_priority_level_configuration_spec_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limited** | [**v1beta3_limited_priority_level_configuration_t**](v1beta3_limited_priority_level_configuration.md) \* | | [optional] +**type** | **char \*** | `type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_priority_level_configuration_status.md b/kubernetes/docs/v1beta3_priority_level_configuration_status.md new file mode 100644 index 00000000..098826b7 --- /dev/null +++ b/kubernetes/docs/v1beta3_priority_level_configuration_status.md @@ -0,0 +1,10 @@ +# v1beta3_priority_level_configuration_status_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**list_t**](v1beta3_priority_level_configuration_condition.md) \* | `conditions` is the current state of \"request-priority\". | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_queuing_configuration.md b/kubernetes/docs/v1beta3_queuing_configuration.md new file mode 100644 index 00000000..e300ea54 --- /dev/null +++ b/kubernetes/docs/v1beta3_queuing_configuration.md @@ -0,0 +1,12 @@ +# v1beta3_queuing_configuration_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hand_size** | **int** | `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. | [optional] +**queue_length_limit** | **int** | `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. | [optional] +**queues** | **int** | `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_resource_policy_rule.md b/kubernetes/docs/v1beta3_resource_policy_rule.md new file mode 100644 index 00000000..cbeb2306 --- /dev/null +++ b/kubernetes/docs/v1beta3_resource_policy_rule.md @@ -0,0 +1,14 @@ +# v1beta3_resource_policy_rule_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_groups** | **list_t \*** | `apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required. | +**cluster_scope** | **int** | `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. | [optional] +**namespaces** | **list_t \*** | `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. | [optional] +**resources** | **list_t \*** | `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required. | +**verbs** | **list_t \*** | `verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_service_account_subject.md b/kubernetes/docs/v1beta3_service_account_subject.md new file mode 100644 index 00000000..6521bba5 --- /dev/null +++ b/kubernetes/docs/v1beta3_service_account_subject.md @@ -0,0 +1,11 @@ +# v1beta3_service_account_subject_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **char \*** | `name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required. | +**_namespace** | **char \*** | `namespace` is the namespace of matching ServiceAccount objects. Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_subject.md b/kubernetes/docs/v1beta3_subject.md new file mode 100644 index 00000000..384ede7e --- /dev/null +++ b/kubernetes/docs/v1beta3_subject.md @@ -0,0 +1,13 @@ +# v1beta3_subject_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group** | [**v1beta3_group_subject_t**](v1beta3_group_subject.md) \* | | [optional] +**kind** | **char \*** | `kind` indicates which one of the other fields is non-empty. Required | +**service_account** | [**v1beta3_service_account_subject_t**](v1beta3_service_account_subject.md) \* | | [optional] +**user** | [**v1beta3_user_subject_t**](v1beta3_user_subject.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_user_subject.md b/kubernetes/docs/v1beta3_user_subject.md new file mode 100644 index 00000000..0a7b9b85 --- /dev/null +++ b/kubernetes/docs/v1beta3_user_subject.md @@ -0,0 +1,10 @@ +# v1beta3_user_subject_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **char \*** | `name` is the username that matches, or \"*\" to match all usernames. Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v2_cross_version_object_reference.md b/kubernetes/docs/v2_cross_version_object_reference.md index 31ba1881..24657396 100644 --- a/kubernetes/docs/v2_cross_version_object_reference.md +++ b/kubernetes/docs/v2_cross_version_object_reference.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **char \*** | API version of the referent | [optional] -**kind** | **char \*** | Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\" | +**kind** | **char \*** | Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | **name** | **char \*** | Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/model/v1_claim_source.c b/kubernetes/model/v1_claim_source.c new file mode 100644 index 00000000..8453692b --- /dev/null +++ b/kubernetes/model/v1_claim_source.c @@ -0,0 +1,97 @@ +#include +#include +#include +#include "v1_claim_source.h" + + + +v1_claim_source_t *v1_claim_source_create( + char *resource_claim_name, + char *resource_claim_template_name + ) { + v1_claim_source_t *v1_claim_source_local_var = malloc(sizeof(v1_claim_source_t)); + if (!v1_claim_source_local_var) { + return NULL; + } + v1_claim_source_local_var->resource_claim_name = resource_claim_name; + v1_claim_source_local_var->resource_claim_template_name = resource_claim_template_name; + + return v1_claim_source_local_var; +} + + +void v1_claim_source_free(v1_claim_source_t *v1_claim_source) { + if(NULL == v1_claim_source){ + return ; + } + listEntry_t *listEntry; + if (v1_claim_source->resource_claim_name) { + free(v1_claim_source->resource_claim_name); + v1_claim_source->resource_claim_name = NULL; + } + if (v1_claim_source->resource_claim_template_name) { + free(v1_claim_source->resource_claim_template_name); + v1_claim_source->resource_claim_template_name = NULL; + } + free(v1_claim_source); +} + +cJSON *v1_claim_source_convertToJSON(v1_claim_source_t *v1_claim_source) { + cJSON *item = cJSON_CreateObject(); + + // v1_claim_source->resource_claim_name + if(v1_claim_source->resource_claim_name) { + if(cJSON_AddStringToObject(item, "resourceClaimName", v1_claim_source->resource_claim_name) == NULL) { + goto fail; //String + } + } + + + // v1_claim_source->resource_claim_template_name + if(v1_claim_source->resource_claim_template_name) { + if(cJSON_AddStringToObject(item, "resourceClaimTemplateName", v1_claim_source->resource_claim_template_name) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_claim_source_t *v1_claim_source_parseFromJSON(cJSON *v1_claim_sourceJSON){ + + v1_claim_source_t *v1_claim_source_local_var = NULL; + + // v1_claim_source->resource_claim_name + cJSON *resource_claim_name = cJSON_GetObjectItemCaseSensitive(v1_claim_sourceJSON, "resourceClaimName"); + if (resource_claim_name) { + if(!cJSON_IsString(resource_claim_name) && !cJSON_IsNull(resource_claim_name)) + { + goto end; //String + } + } + + // v1_claim_source->resource_claim_template_name + cJSON *resource_claim_template_name = cJSON_GetObjectItemCaseSensitive(v1_claim_sourceJSON, "resourceClaimTemplateName"); + if (resource_claim_template_name) { + if(!cJSON_IsString(resource_claim_template_name) && !cJSON_IsNull(resource_claim_template_name)) + { + goto end; //String + } + } + + + v1_claim_source_local_var = v1_claim_source_create ( + resource_claim_name && !cJSON_IsNull(resource_claim_name) ? strdup(resource_claim_name->valuestring) : NULL, + resource_claim_template_name && !cJSON_IsNull(resource_claim_template_name) ? strdup(resource_claim_template_name->valuestring) : NULL + ); + + return v1_claim_source_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1_claim_source.h b/kubernetes/model/v1_claim_source.h new file mode 100644 index 00000000..3d99dcf0 --- /dev/null +++ b/kubernetes/model/v1_claim_source.h @@ -0,0 +1,39 @@ +/* + * v1_claim_source.h + * + * ClaimSource describes a reference to a ResourceClaim. Exactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value. + */ + +#ifndef _v1_claim_source_H_ +#define _v1_claim_source_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_claim_source_t v1_claim_source_t; + + + + +typedef struct v1_claim_source_t { + char *resource_claim_name; // string + char *resource_claim_template_name; // string + +} v1_claim_source_t; + +v1_claim_source_t *v1_claim_source_create( + char *resource_claim_name, + char *resource_claim_template_name +); + +void v1_claim_source_free(v1_claim_source_t *v1_claim_source); + +v1_claim_source_t *v1_claim_source_parseFromJSON(cJSON *v1_claim_sourceJSON); + +cJSON *v1_claim_source_convertToJSON(v1_claim_source_t *v1_claim_source); + +#endif /* _v1_claim_source_H_ */ + diff --git a/kubernetes/model/v1_ingress_load_balancer_ingress.c b/kubernetes/model/v1_ingress_load_balancer_ingress.c new file mode 100644 index 00000000..f04ea4e4 --- /dev/null +++ b/kubernetes/model/v1_ingress_load_balancer_ingress.c @@ -0,0 +1,160 @@ +#include +#include +#include +#include "v1_ingress_load_balancer_ingress.h" + + + +v1_ingress_load_balancer_ingress_t *v1_ingress_load_balancer_ingress_create( + char *hostname, + char *ip, + list_t *ports + ) { + v1_ingress_load_balancer_ingress_t *v1_ingress_load_balancer_ingress_local_var = malloc(sizeof(v1_ingress_load_balancer_ingress_t)); + if (!v1_ingress_load_balancer_ingress_local_var) { + return NULL; + } + v1_ingress_load_balancer_ingress_local_var->hostname = hostname; + v1_ingress_load_balancer_ingress_local_var->ip = ip; + v1_ingress_load_balancer_ingress_local_var->ports = ports; + + return v1_ingress_load_balancer_ingress_local_var; +} + + +void v1_ingress_load_balancer_ingress_free(v1_ingress_load_balancer_ingress_t *v1_ingress_load_balancer_ingress) { + if(NULL == v1_ingress_load_balancer_ingress){ + return ; + } + listEntry_t *listEntry; + if (v1_ingress_load_balancer_ingress->hostname) { + free(v1_ingress_load_balancer_ingress->hostname); + v1_ingress_load_balancer_ingress->hostname = NULL; + } + if (v1_ingress_load_balancer_ingress->ip) { + free(v1_ingress_load_balancer_ingress->ip); + v1_ingress_load_balancer_ingress->ip = NULL; + } + if (v1_ingress_load_balancer_ingress->ports) { + list_ForEach(listEntry, v1_ingress_load_balancer_ingress->ports) { + v1_ingress_port_status_free(listEntry->data); + } + list_freeList(v1_ingress_load_balancer_ingress->ports); + v1_ingress_load_balancer_ingress->ports = NULL; + } + free(v1_ingress_load_balancer_ingress); +} + +cJSON *v1_ingress_load_balancer_ingress_convertToJSON(v1_ingress_load_balancer_ingress_t *v1_ingress_load_balancer_ingress) { + cJSON *item = cJSON_CreateObject(); + + // v1_ingress_load_balancer_ingress->hostname + if(v1_ingress_load_balancer_ingress->hostname) { + if(cJSON_AddStringToObject(item, "hostname", v1_ingress_load_balancer_ingress->hostname) == NULL) { + goto fail; //String + } + } + + + // v1_ingress_load_balancer_ingress->ip + if(v1_ingress_load_balancer_ingress->ip) { + if(cJSON_AddStringToObject(item, "ip", v1_ingress_load_balancer_ingress->ip) == NULL) { + goto fail; //String + } + } + + + // v1_ingress_load_balancer_ingress->ports + if(v1_ingress_load_balancer_ingress->ports) { + cJSON *ports = cJSON_AddArrayToObject(item, "ports"); + if(ports == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *portsListEntry; + if (v1_ingress_load_balancer_ingress->ports) { + list_ForEach(portsListEntry, v1_ingress_load_balancer_ingress->ports) { + cJSON *itemLocal = v1_ingress_port_status_convertToJSON(portsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(ports, itemLocal); + } + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_ingress_load_balancer_ingress_t *v1_ingress_load_balancer_ingress_parseFromJSON(cJSON *v1_ingress_load_balancer_ingressJSON){ + + v1_ingress_load_balancer_ingress_t *v1_ingress_load_balancer_ingress_local_var = NULL; + + // define the local list for v1_ingress_load_balancer_ingress->ports + list_t *portsList = NULL; + + // v1_ingress_load_balancer_ingress->hostname + cJSON *hostname = cJSON_GetObjectItemCaseSensitive(v1_ingress_load_balancer_ingressJSON, "hostname"); + if (hostname) { + if(!cJSON_IsString(hostname) && !cJSON_IsNull(hostname)) + { + goto end; //String + } + } + + // v1_ingress_load_balancer_ingress->ip + cJSON *ip = cJSON_GetObjectItemCaseSensitive(v1_ingress_load_balancer_ingressJSON, "ip"); + if (ip) { + if(!cJSON_IsString(ip) && !cJSON_IsNull(ip)) + { + goto end; //String + } + } + + // v1_ingress_load_balancer_ingress->ports + cJSON *ports = cJSON_GetObjectItemCaseSensitive(v1_ingress_load_balancer_ingressJSON, "ports"); + if (ports) { + cJSON *ports_local_nonprimitive = NULL; + if(!cJSON_IsArray(ports)){ + goto end; //nonprimitive container + } + + portsList = list_createList(); + + cJSON_ArrayForEach(ports_local_nonprimitive,ports ) + { + if(!cJSON_IsObject(ports_local_nonprimitive)){ + goto end; + } + v1_ingress_port_status_t *portsItem = v1_ingress_port_status_parseFromJSON(ports_local_nonprimitive); + + list_addElement(portsList, portsItem); + } + } + + + v1_ingress_load_balancer_ingress_local_var = v1_ingress_load_balancer_ingress_create ( + hostname && !cJSON_IsNull(hostname) ? strdup(hostname->valuestring) : NULL, + ip && !cJSON_IsNull(ip) ? strdup(ip->valuestring) : NULL, + ports ? portsList : NULL + ); + + return v1_ingress_load_balancer_ingress_local_var; +end: + if (portsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, portsList) { + v1_ingress_port_status_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(portsList); + portsList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1_ingress_load_balancer_ingress.h b/kubernetes/model/v1_ingress_load_balancer_ingress.h new file mode 100644 index 00000000..b12c8309 --- /dev/null +++ b/kubernetes/model/v1_ingress_load_balancer_ingress.h @@ -0,0 +1,42 @@ +/* + * v1_ingress_load_balancer_ingress.h + * + * IngressLoadBalancerIngress represents the status of a load-balancer ingress point. + */ + +#ifndef _v1_ingress_load_balancer_ingress_H_ +#define _v1_ingress_load_balancer_ingress_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_ingress_load_balancer_ingress_t v1_ingress_load_balancer_ingress_t; + +#include "v1_ingress_port_status.h" + + + +typedef struct v1_ingress_load_balancer_ingress_t { + char *hostname; // string + char *ip; // string + list_t *ports; //nonprimitive container + +} v1_ingress_load_balancer_ingress_t; + +v1_ingress_load_balancer_ingress_t *v1_ingress_load_balancer_ingress_create( + char *hostname, + char *ip, + list_t *ports +); + +void v1_ingress_load_balancer_ingress_free(v1_ingress_load_balancer_ingress_t *v1_ingress_load_balancer_ingress); + +v1_ingress_load_balancer_ingress_t *v1_ingress_load_balancer_ingress_parseFromJSON(cJSON *v1_ingress_load_balancer_ingressJSON); + +cJSON *v1_ingress_load_balancer_ingress_convertToJSON(v1_ingress_load_balancer_ingress_t *v1_ingress_load_balancer_ingress); + +#endif /* _v1_ingress_load_balancer_ingress_H_ */ + diff --git a/kubernetes/model/v1_ingress_load_balancer_status.c b/kubernetes/model/v1_ingress_load_balancer_status.c new file mode 100644 index 00000000..d0c4d8f8 --- /dev/null +++ b/kubernetes/model/v1_ingress_load_balancer_status.c @@ -0,0 +1,112 @@ +#include +#include +#include +#include "v1_ingress_load_balancer_status.h" + + + +v1_ingress_load_balancer_status_t *v1_ingress_load_balancer_status_create( + list_t *ingress + ) { + v1_ingress_load_balancer_status_t *v1_ingress_load_balancer_status_local_var = malloc(sizeof(v1_ingress_load_balancer_status_t)); + if (!v1_ingress_load_balancer_status_local_var) { + return NULL; + } + v1_ingress_load_balancer_status_local_var->ingress = ingress; + + return v1_ingress_load_balancer_status_local_var; +} + + +void v1_ingress_load_balancer_status_free(v1_ingress_load_balancer_status_t *v1_ingress_load_balancer_status) { + if(NULL == v1_ingress_load_balancer_status){ + return ; + } + listEntry_t *listEntry; + if (v1_ingress_load_balancer_status->ingress) { + list_ForEach(listEntry, v1_ingress_load_balancer_status->ingress) { + v1_ingress_load_balancer_ingress_free(listEntry->data); + } + list_freeList(v1_ingress_load_balancer_status->ingress); + v1_ingress_load_balancer_status->ingress = NULL; + } + free(v1_ingress_load_balancer_status); +} + +cJSON *v1_ingress_load_balancer_status_convertToJSON(v1_ingress_load_balancer_status_t *v1_ingress_load_balancer_status) { + cJSON *item = cJSON_CreateObject(); + + // v1_ingress_load_balancer_status->ingress + if(v1_ingress_load_balancer_status->ingress) { + cJSON *ingress = cJSON_AddArrayToObject(item, "ingress"); + if(ingress == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *ingressListEntry; + if (v1_ingress_load_balancer_status->ingress) { + list_ForEach(ingressListEntry, v1_ingress_load_balancer_status->ingress) { + cJSON *itemLocal = v1_ingress_load_balancer_ingress_convertToJSON(ingressListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(ingress, itemLocal); + } + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_ingress_load_balancer_status_t *v1_ingress_load_balancer_status_parseFromJSON(cJSON *v1_ingress_load_balancer_statusJSON){ + + v1_ingress_load_balancer_status_t *v1_ingress_load_balancer_status_local_var = NULL; + + // define the local list for v1_ingress_load_balancer_status->ingress + list_t *ingressList = NULL; + + // v1_ingress_load_balancer_status->ingress + cJSON *ingress = cJSON_GetObjectItemCaseSensitive(v1_ingress_load_balancer_statusJSON, "ingress"); + if (ingress) { + cJSON *ingress_local_nonprimitive = NULL; + if(!cJSON_IsArray(ingress)){ + goto end; //nonprimitive container + } + + ingressList = list_createList(); + + cJSON_ArrayForEach(ingress_local_nonprimitive,ingress ) + { + if(!cJSON_IsObject(ingress_local_nonprimitive)){ + goto end; + } + v1_ingress_load_balancer_ingress_t *ingressItem = v1_ingress_load_balancer_ingress_parseFromJSON(ingress_local_nonprimitive); + + list_addElement(ingressList, ingressItem); + } + } + + + v1_ingress_load_balancer_status_local_var = v1_ingress_load_balancer_status_create ( + ingress ? ingressList : NULL + ); + + return v1_ingress_load_balancer_status_local_var; +end: + if (ingressList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, ingressList) { + v1_ingress_load_balancer_ingress_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(ingressList); + ingressList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1_ingress_load_balancer_status.h b/kubernetes/model/v1_ingress_load_balancer_status.h new file mode 100644 index 00000000..6efdc3d0 --- /dev/null +++ b/kubernetes/model/v1_ingress_load_balancer_status.h @@ -0,0 +1,38 @@ +/* + * v1_ingress_load_balancer_status.h + * + * IngressLoadBalancerStatus represents the status of a load-balancer. + */ + +#ifndef _v1_ingress_load_balancer_status_H_ +#define _v1_ingress_load_balancer_status_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_ingress_load_balancer_status_t v1_ingress_load_balancer_status_t; + +#include "v1_ingress_load_balancer_ingress.h" + + + +typedef struct v1_ingress_load_balancer_status_t { + list_t *ingress; //nonprimitive container + +} v1_ingress_load_balancer_status_t; + +v1_ingress_load_balancer_status_t *v1_ingress_load_balancer_status_create( + list_t *ingress +); + +void v1_ingress_load_balancer_status_free(v1_ingress_load_balancer_status_t *v1_ingress_load_balancer_status); + +v1_ingress_load_balancer_status_t *v1_ingress_load_balancer_status_parseFromJSON(cJSON *v1_ingress_load_balancer_statusJSON); + +cJSON *v1_ingress_load_balancer_status_convertToJSON(v1_ingress_load_balancer_status_t *v1_ingress_load_balancer_status); + +#endif /* _v1_ingress_load_balancer_status_H_ */ + diff --git a/kubernetes/model/v1_ingress_port_status.c b/kubernetes/model/v1_ingress_port_status.c new file mode 100644 index 00000000..d665b4e0 --- /dev/null +++ b/kubernetes/model/v1_ingress_port_status.c @@ -0,0 +1,125 @@ +#include +#include +#include +#include "v1_ingress_port_status.h" + + + +v1_ingress_port_status_t *v1_ingress_port_status_create( + char *error, + int port, + char *protocol + ) { + v1_ingress_port_status_t *v1_ingress_port_status_local_var = malloc(sizeof(v1_ingress_port_status_t)); + if (!v1_ingress_port_status_local_var) { + return NULL; + } + v1_ingress_port_status_local_var->error = error; + v1_ingress_port_status_local_var->port = port; + v1_ingress_port_status_local_var->protocol = protocol; + + return v1_ingress_port_status_local_var; +} + + +void v1_ingress_port_status_free(v1_ingress_port_status_t *v1_ingress_port_status) { + if(NULL == v1_ingress_port_status){ + return ; + } + listEntry_t *listEntry; + if (v1_ingress_port_status->error) { + free(v1_ingress_port_status->error); + v1_ingress_port_status->error = NULL; + } + if (v1_ingress_port_status->protocol) { + free(v1_ingress_port_status->protocol); + v1_ingress_port_status->protocol = NULL; + } + free(v1_ingress_port_status); +} + +cJSON *v1_ingress_port_status_convertToJSON(v1_ingress_port_status_t *v1_ingress_port_status) { + cJSON *item = cJSON_CreateObject(); + + // v1_ingress_port_status->error + if(v1_ingress_port_status->error) { + if(cJSON_AddStringToObject(item, "error", v1_ingress_port_status->error) == NULL) { + goto fail; //String + } + } + + + // v1_ingress_port_status->port + if (!v1_ingress_port_status->port) { + goto fail; + } + if(cJSON_AddNumberToObject(item, "port", v1_ingress_port_status->port) == NULL) { + goto fail; //Numeric + } + + + // v1_ingress_port_status->protocol + if (!v1_ingress_port_status->protocol) { + goto fail; + } + if(cJSON_AddStringToObject(item, "protocol", v1_ingress_port_status->protocol) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_ingress_port_status_t *v1_ingress_port_status_parseFromJSON(cJSON *v1_ingress_port_statusJSON){ + + v1_ingress_port_status_t *v1_ingress_port_status_local_var = NULL; + + // v1_ingress_port_status->error + cJSON *error = cJSON_GetObjectItemCaseSensitive(v1_ingress_port_statusJSON, "error"); + if (error) { + if(!cJSON_IsString(error) && !cJSON_IsNull(error)) + { + goto end; //String + } + } + + // v1_ingress_port_status->port + cJSON *port = cJSON_GetObjectItemCaseSensitive(v1_ingress_port_statusJSON, "port"); + if (!port) { + goto end; + } + + + if(!cJSON_IsNumber(port)) + { + goto end; //Numeric + } + + // v1_ingress_port_status->protocol + cJSON *protocol = cJSON_GetObjectItemCaseSensitive(v1_ingress_port_statusJSON, "protocol"); + if (!protocol) { + goto end; + } + + + if(!cJSON_IsString(protocol)) + { + goto end; //String + } + + + v1_ingress_port_status_local_var = v1_ingress_port_status_create ( + error && !cJSON_IsNull(error) ? strdup(error->valuestring) : NULL, + port->valuedouble, + strdup(protocol->valuestring) + ); + + return v1_ingress_port_status_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1_ingress_port_status.h b/kubernetes/model/v1_ingress_port_status.h new file mode 100644 index 00000000..a6016a03 --- /dev/null +++ b/kubernetes/model/v1_ingress_port_status.h @@ -0,0 +1,41 @@ +/* + * v1_ingress_port_status.h + * + * IngressPortStatus represents the error condition of a service port + */ + +#ifndef _v1_ingress_port_status_H_ +#define _v1_ingress_port_status_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_ingress_port_status_t v1_ingress_port_status_t; + + + + +typedef struct v1_ingress_port_status_t { + char *error; // string + int port; //numeric + char *protocol; // string + +} v1_ingress_port_status_t; + +v1_ingress_port_status_t *v1_ingress_port_status_create( + char *error, + int port, + char *protocol +); + +void v1_ingress_port_status_free(v1_ingress_port_status_t *v1_ingress_port_status); + +v1_ingress_port_status_t *v1_ingress_port_status_parseFromJSON(cJSON *v1_ingress_port_statusJSON); + +cJSON *v1_ingress_port_status_convertToJSON(v1_ingress_port_status_t *v1_ingress_port_status); + +#endif /* _v1_ingress_port_status_H_ */ + diff --git a/kubernetes/model/v1_ingress_status.c b/kubernetes/model/v1_ingress_status.c index 78d79523..9f31b4c8 100644 --- a/kubernetes/model/v1_ingress_status.c +++ b/kubernetes/model/v1_ingress_status.c @@ -6,7 +6,7 @@ v1_ingress_status_t *v1_ingress_status_create( - v1_load_balancer_status_t *load_balancer + v1_ingress_load_balancer_status_t *load_balancer ) { v1_ingress_status_t *v1_ingress_status_local_var = malloc(sizeof(v1_ingress_status_t)); if (!v1_ingress_status_local_var) { @@ -24,7 +24,7 @@ void v1_ingress_status_free(v1_ingress_status_t *v1_ingress_status) { } listEntry_t *listEntry; if (v1_ingress_status->load_balancer) { - v1_load_balancer_status_free(v1_ingress_status->load_balancer); + v1_ingress_load_balancer_status_free(v1_ingress_status->load_balancer); v1_ingress_status->load_balancer = NULL; } free(v1_ingress_status); @@ -35,7 +35,7 @@ cJSON *v1_ingress_status_convertToJSON(v1_ingress_status_t *v1_ingress_status) { // v1_ingress_status->load_balancer if(v1_ingress_status->load_balancer) { - cJSON *load_balancer_local_JSON = v1_load_balancer_status_convertToJSON(v1_ingress_status->load_balancer); + cJSON *load_balancer_local_JSON = v1_ingress_load_balancer_status_convertToJSON(v1_ingress_status->load_balancer); if(load_balancer_local_JSON == NULL) { goto fail; //model } @@ -58,12 +58,12 @@ 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_load_balancer_status_t *load_balancer_local_nonprim = NULL; // v1_ingress_status->load_balancer cJSON *load_balancer = cJSON_GetObjectItemCaseSensitive(v1_ingress_statusJSON, "loadBalancer"); if (load_balancer) { - load_balancer_local_nonprim = v1_load_balancer_status_parseFromJSON(load_balancer); //nonprimitive + load_balancer_local_nonprim = v1_ingress_load_balancer_status_parseFromJSON(load_balancer); //nonprimitive } @@ -74,7 +74,7 @@ v1_ingress_status_t *v1_ingress_status_parseFromJSON(cJSON *v1_ingress_statusJSO return v1_ingress_status_local_var; end: if (load_balancer_local_nonprim) { - v1_load_balancer_status_free(load_balancer_local_nonprim); + v1_ingress_load_balancer_status_free(load_balancer_local_nonprim); load_balancer_local_nonprim = NULL; } return NULL; diff --git a/kubernetes/model/v1_ingress_status.h b/kubernetes/model/v1_ingress_status.h index 44a3efd6..cb13ea84 100644 --- a/kubernetes/model/v1_ingress_status.h +++ b/kubernetes/model/v1_ingress_status.h @@ -15,17 +15,17 @@ typedef struct v1_ingress_status_t v1_ingress_status_t; -#include "v1_load_balancer_status.h" +#include "v1_ingress_load_balancer_status.h" typedef struct v1_ingress_status_t { - struct v1_load_balancer_status_t *load_balancer; //model + struct v1_ingress_load_balancer_status_t *load_balancer; //model } v1_ingress_status_t; v1_ingress_status_t *v1_ingress_status_create( - v1_load_balancer_status_t *load_balancer + v1_ingress_load_balancer_status_t *load_balancer ); void v1_ingress_status_free(v1_ingress_status_t *v1_ingress_status); diff --git a/kubernetes/model/v1_ip_block.h b/kubernetes/model/v1_ip_block.h index d265c850..6ac9ee71 100644 --- a/kubernetes/model/v1_ip_block.h +++ b/kubernetes/model/v1_ip_block.h @@ -1,7 +1,7 @@ /* * v1_ip_block.h * - * IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\",\"2001:db9::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule. + * IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule. */ #ifndef _v1_ip_block_H_ diff --git a/kubernetes/model/v1_persistent_volume_claim_spec.c b/kubernetes/model/v1_persistent_volume_claim_spec.c index a462594d..7c371539 100644 --- a/kubernetes/model/v1_persistent_volume_claim_spec.c +++ b/kubernetes/model/v1_persistent_volume_claim_spec.c @@ -8,7 +8,7 @@ v1_persistent_volume_claim_spec_t *v1_persistent_volume_claim_spec_create( list_t *access_modes, v1_typed_local_object_reference_t *data_source, - v1_typed_local_object_reference_t *data_source_ref, + v1_typed_object_reference_t *data_source_ref, v1_resource_requirements_t *resources, v1_label_selector_t *selector, char *storage_class_name, @@ -49,7 +49,7 @@ void v1_persistent_volume_claim_spec_free(v1_persistent_volume_claim_spec_t *v1_ v1_persistent_volume_claim_spec->data_source = NULL; } if (v1_persistent_volume_claim_spec->data_source_ref) { - v1_typed_local_object_reference_free(v1_persistent_volume_claim_spec->data_source_ref); + v1_typed_object_reference_free(v1_persistent_volume_claim_spec->data_source_ref); v1_persistent_volume_claim_spec->data_source_ref = NULL; } if (v1_persistent_volume_claim_spec->resources) { @@ -110,7 +110,7 @@ cJSON *v1_persistent_volume_claim_spec_convertToJSON(v1_persistent_volume_claim_ // v1_persistent_volume_claim_spec->data_source_ref if(v1_persistent_volume_claim_spec->data_source_ref) { - cJSON *data_source_ref_local_JSON = v1_typed_local_object_reference_convertToJSON(v1_persistent_volume_claim_spec->data_source_ref); + cJSON *data_source_ref_local_JSON = v1_typed_object_reference_convertToJSON(v1_persistent_volume_claim_spec->data_source_ref); if(data_source_ref_local_JSON == NULL) { goto fail; //model } @@ -189,7 +189,7 @@ v1_persistent_volume_claim_spec_t *v1_persistent_volume_claim_spec_parseFromJSON v1_typed_local_object_reference_t *data_source_local_nonprim = NULL; // define the local variable for v1_persistent_volume_claim_spec->data_source_ref - v1_typed_local_object_reference_t *data_source_ref_local_nonprim = NULL; + v1_typed_object_reference_t *data_source_ref_local_nonprim = NULL; // define the local variable for v1_persistent_volume_claim_spec->resources v1_resource_requirements_t *resources_local_nonprim = NULL; @@ -225,7 +225,7 @@ v1_persistent_volume_claim_spec_t *v1_persistent_volume_claim_spec_parseFromJSON // v1_persistent_volume_claim_spec->data_source_ref cJSON *data_source_ref = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_claim_specJSON, "dataSourceRef"); if (data_source_ref) { - data_source_ref_local_nonprim = v1_typed_local_object_reference_parseFromJSON(data_source_ref); //nonprimitive + data_source_ref_local_nonprim = v1_typed_object_reference_parseFromJSON(data_source_ref); //nonprimitive } // v1_persistent_volume_claim_spec->resources @@ -295,7 +295,7 @@ v1_persistent_volume_claim_spec_t *v1_persistent_volume_claim_spec_parseFromJSON data_source_local_nonprim = NULL; } if (data_source_ref_local_nonprim) { - v1_typed_local_object_reference_free(data_source_ref_local_nonprim); + v1_typed_object_reference_free(data_source_ref_local_nonprim); data_source_ref_local_nonprim = NULL; } if (resources_local_nonprim) { diff --git a/kubernetes/model/v1_persistent_volume_claim_spec.h b/kubernetes/model/v1_persistent_volume_claim_spec.h index d3009f6f..6c7d21b6 100644 --- a/kubernetes/model/v1_persistent_volume_claim_spec.h +++ b/kubernetes/model/v1_persistent_volume_claim_spec.h @@ -18,13 +18,14 @@ typedef struct v1_persistent_volume_claim_spec_t v1_persistent_volume_claim_spec #include "v1_label_selector.h" #include "v1_resource_requirements.h" #include "v1_typed_local_object_reference.h" +#include "v1_typed_object_reference.h" typedef struct v1_persistent_volume_claim_spec_t { list_t *access_modes; //primitive container struct v1_typed_local_object_reference_t *data_source; //model - struct v1_typed_local_object_reference_t *data_source_ref; //model + struct v1_typed_object_reference_t *data_source_ref; //model struct v1_resource_requirements_t *resources; //model struct v1_label_selector_t *selector; //model char *storage_class_name; // string @@ -36,7 +37,7 @@ typedef struct v1_persistent_volume_claim_spec_t { v1_persistent_volume_claim_spec_t *v1_persistent_volume_claim_spec_create( list_t *access_modes, v1_typed_local_object_reference_t *data_source, - v1_typed_local_object_reference_t *data_source_ref, + v1_typed_object_reference_t *data_source_ref, v1_resource_requirements_t *resources, v1_label_selector_t *selector, char *storage_class_name, diff --git a/kubernetes/model/v1_pod_disruption_budget_spec.c b/kubernetes/model/v1_pod_disruption_budget_spec.c index eae81984..30747687 100644 --- a/kubernetes/model/v1_pod_disruption_budget_spec.c +++ b/kubernetes/model/v1_pod_disruption_budget_spec.c @@ -8,7 +8,8 @@ v1_pod_disruption_budget_spec_t *v1_pod_disruption_budget_spec_create( int_or_string_t *max_unavailable, int_or_string_t *min_available, - v1_label_selector_t *selector + v1_label_selector_t *selector, + char *unhealthy_pod_eviction_policy ) { v1_pod_disruption_budget_spec_t *v1_pod_disruption_budget_spec_local_var = malloc(sizeof(v1_pod_disruption_budget_spec_t)); if (!v1_pod_disruption_budget_spec_local_var) { @@ -17,6 +18,7 @@ v1_pod_disruption_budget_spec_t *v1_pod_disruption_budget_spec_create( v1_pod_disruption_budget_spec_local_var->max_unavailable = max_unavailable; v1_pod_disruption_budget_spec_local_var->min_available = min_available; v1_pod_disruption_budget_spec_local_var->selector = selector; + v1_pod_disruption_budget_spec_local_var->unhealthy_pod_eviction_policy = unhealthy_pod_eviction_policy; return v1_pod_disruption_budget_spec_local_var; } @@ -39,6 +41,10 @@ void v1_pod_disruption_budget_spec_free(v1_pod_disruption_budget_spec_t *v1_pod_ v1_label_selector_free(v1_pod_disruption_budget_spec->selector); v1_pod_disruption_budget_spec->selector = NULL; } + if (v1_pod_disruption_budget_spec->unhealthy_pod_eviction_policy) { + free(v1_pod_disruption_budget_spec->unhealthy_pod_eviction_policy); + v1_pod_disruption_budget_spec->unhealthy_pod_eviction_policy = NULL; + } free(v1_pod_disruption_budget_spec); } @@ -83,6 +89,14 @@ cJSON *v1_pod_disruption_budget_spec_convertToJSON(v1_pod_disruption_budget_spec } } + + // v1_pod_disruption_budget_spec->unhealthy_pod_eviction_policy + if(v1_pod_disruption_budget_spec->unhealthy_pod_eviction_policy) { + if(cJSON_AddStringToObject(item, "unhealthyPodEvictionPolicy", v1_pod_disruption_budget_spec->unhealthy_pod_eviction_policy) == NULL) { + goto fail; //String + } + } + return item; fail: if (item) { @@ -122,11 +136,21 @@ v1_pod_disruption_budget_spec_t *v1_pod_disruption_budget_spec_parseFromJSON(cJS selector_local_nonprim = v1_label_selector_parseFromJSON(selector); //nonprimitive } + // v1_pod_disruption_budget_spec->unhealthy_pod_eviction_policy + cJSON *unhealthy_pod_eviction_policy = cJSON_GetObjectItemCaseSensitive(v1_pod_disruption_budget_specJSON, "unhealthyPodEvictionPolicy"); + if (unhealthy_pod_eviction_policy) { + if(!cJSON_IsString(unhealthy_pod_eviction_policy) && !cJSON_IsNull(unhealthy_pod_eviction_policy)) + { + goto end; //String + } + } + v1_pod_disruption_budget_spec_local_var = v1_pod_disruption_budget_spec_create ( max_unavailable ? max_unavailable_local_nonprim : NULL, min_available ? min_available_local_nonprim : NULL, - selector ? selector_local_nonprim : NULL + selector ? selector_local_nonprim : NULL, + unhealthy_pod_eviction_policy && !cJSON_IsNull(unhealthy_pod_eviction_policy) ? strdup(unhealthy_pod_eviction_policy->valuestring) : NULL ); return v1_pod_disruption_budget_spec_local_var; diff --git a/kubernetes/model/v1_pod_disruption_budget_spec.h b/kubernetes/model/v1_pod_disruption_budget_spec.h index 7480a055..d751e8e2 100644 --- a/kubernetes/model/v1_pod_disruption_budget_spec.h +++ b/kubernetes/model/v1_pod_disruption_budget_spec.h @@ -24,13 +24,15 @@ typedef struct v1_pod_disruption_budget_spec_t { int_or_string_t *max_unavailable; // custom int_or_string_t *min_available; // custom struct v1_label_selector_t *selector; //model + char *unhealthy_pod_eviction_policy; // string } v1_pod_disruption_budget_spec_t; v1_pod_disruption_budget_spec_t *v1_pod_disruption_budget_spec_create( int_or_string_t *max_unavailable, int_or_string_t *min_available, - v1_label_selector_t *selector + v1_label_selector_t *selector, + char *unhealthy_pod_eviction_policy ); void v1_pod_disruption_budget_spec_free(v1_pod_disruption_budget_spec_t *v1_pod_disruption_budget_spec); diff --git a/kubernetes/model/v1_pod_resource_claim.c b/kubernetes/model/v1_pod_resource_claim.c new file mode 100644 index 00000000..94113396 --- /dev/null +++ b/kubernetes/model/v1_pod_resource_claim.c @@ -0,0 +1,110 @@ +#include +#include +#include +#include "v1_pod_resource_claim.h" + + + +v1_pod_resource_claim_t *v1_pod_resource_claim_create( + char *name, + v1_claim_source_t *source + ) { + v1_pod_resource_claim_t *v1_pod_resource_claim_local_var = malloc(sizeof(v1_pod_resource_claim_t)); + if (!v1_pod_resource_claim_local_var) { + return NULL; + } + v1_pod_resource_claim_local_var->name = name; + v1_pod_resource_claim_local_var->source = source; + + return v1_pod_resource_claim_local_var; +} + + +void v1_pod_resource_claim_free(v1_pod_resource_claim_t *v1_pod_resource_claim) { + if(NULL == v1_pod_resource_claim){ + return ; + } + listEntry_t *listEntry; + if (v1_pod_resource_claim->name) { + free(v1_pod_resource_claim->name); + v1_pod_resource_claim->name = NULL; + } + if (v1_pod_resource_claim->source) { + v1_claim_source_free(v1_pod_resource_claim->source); + v1_pod_resource_claim->source = NULL; + } + free(v1_pod_resource_claim); +} + +cJSON *v1_pod_resource_claim_convertToJSON(v1_pod_resource_claim_t *v1_pod_resource_claim) { + cJSON *item = cJSON_CreateObject(); + + // v1_pod_resource_claim->name + if (!v1_pod_resource_claim->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1_pod_resource_claim->name) == NULL) { + goto fail; //String + } + + + // v1_pod_resource_claim->source + if(v1_pod_resource_claim->source) { + cJSON *source_local_JSON = v1_claim_source_convertToJSON(v1_pod_resource_claim->source); + if(source_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "source", source_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_pod_resource_claim_t *v1_pod_resource_claim_parseFromJSON(cJSON *v1_pod_resource_claimJSON){ + + v1_pod_resource_claim_t *v1_pod_resource_claim_local_var = NULL; + + // define the local variable for v1_pod_resource_claim->source + v1_claim_source_t *source_local_nonprim = NULL; + + // v1_pod_resource_claim->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_pod_resource_claimJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + // v1_pod_resource_claim->source + cJSON *source = cJSON_GetObjectItemCaseSensitive(v1_pod_resource_claimJSON, "source"); + if (source) { + source_local_nonprim = v1_claim_source_parseFromJSON(source); //nonprimitive + } + + + v1_pod_resource_claim_local_var = v1_pod_resource_claim_create ( + strdup(name->valuestring), + source ? source_local_nonprim : NULL + ); + + return v1_pod_resource_claim_local_var; +end: + if (source_local_nonprim) { + v1_claim_source_free(source_local_nonprim); + source_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1_pod_resource_claim.h b/kubernetes/model/v1_pod_resource_claim.h new file mode 100644 index 00000000..6c1b0cb1 --- /dev/null +++ b/kubernetes/model/v1_pod_resource_claim.h @@ -0,0 +1,40 @@ +/* + * v1_pod_resource_claim.h + * + * PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name. + */ + +#ifndef _v1_pod_resource_claim_H_ +#define _v1_pod_resource_claim_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_pod_resource_claim_t v1_pod_resource_claim_t; + +#include "v1_claim_source.h" + + + +typedef struct v1_pod_resource_claim_t { + char *name; // string + struct v1_claim_source_t *source; //model + +} v1_pod_resource_claim_t; + +v1_pod_resource_claim_t *v1_pod_resource_claim_create( + char *name, + v1_claim_source_t *source +); + +void v1_pod_resource_claim_free(v1_pod_resource_claim_t *v1_pod_resource_claim); + +v1_pod_resource_claim_t *v1_pod_resource_claim_parseFromJSON(cJSON *v1_pod_resource_claimJSON); + +cJSON *v1_pod_resource_claim_convertToJSON(v1_pod_resource_claim_t *v1_pod_resource_claim); + +#endif /* _v1_pod_resource_claim_H_ */ + diff --git a/kubernetes/model/v1_pod_scheduling_gate.c b/kubernetes/model/v1_pod_scheduling_gate.c new file mode 100644 index 00000000..e851a8ff --- /dev/null +++ b/kubernetes/model/v1_pod_scheduling_gate.c @@ -0,0 +1,77 @@ +#include +#include +#include +#include "v1_pod_scheduling_gate.h" + + + +v1_pod_scheduling_gate_t *v1_pod_scheduling_gate_create( + char *name + ) { + v1_pod_scheduling_gate_t *v1_pod_scheduling_gate_local_var = malloc(sizeof(v1_pod_scheduling_gate_t)); + if (!v1_pod_scheduling_gate_local_var) { + return NULL; + } + v1_pod_scheduling_gate_local_var->name = name; + + return v1_pod_scheduling_gate_local_var; +} + + +void v1_pod_scheduling_gate_free(v1_pod_scheduling_gate_t *v1_pod_scheduling_gate) { + if(NULL == v1_pod_scheduling_gate){ + return ; + } + listEntry_t *listEntry; + if (v1_pod_scheduling_gate->name) { + free(v1_pod_scheduling_gate->name); + v1_pod_scheduling_gate->name = NULL; + } + free(v1_pod_scheduling_gate); +} + +cJSON *v1_pod_scheduling_gate_convertToJSON(v1_pod_scheduling_gate_t *v1_pod_scheduling_gate) { + cJSON *item = cJSON_CreateObject(); + + // v1_pod_scheduling_gate->name + if (!v1_pod_scheduling_gate->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1_pod_scheduling_gate->name) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_pod_scheduling_gate_t *v1_pod_scheduling_gate_parseFromJSON(cJSON *v1_pod_scheduling_gateJSON){ + + v1_pod_scheduling_gate_t *v1_pod_scheduling_gate_local_var = NULL; + + // v1_pod_scheduling_gate->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_pod_scheduling_gateJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + + v1_pod_scheduling_gate_local_var = v1_pod_scheduling_gate_create ( + strdup(name->valuestring) + ); + + return v1_pod_scheduling_gate_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1_pod_scheduling_gate.h b/kubernetes/model/v1_pod_scheduling_gate.h new file mode 100644 index 00000000..d46b953c --- /dev/null +++ b/kubernetes/model/v1_pod_scheduling_gate.h @@ -0,0 +1,37 @@ +/* + * v1_pod_scheduling_gate.h + * + * PodSchedulingGate is associated to a Pod to guard its scheduling. + */ + +#ifndef _v1_pod_scheduling_gate_H_ +#define _v1_pod_scheduling_gate_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_pod_scheduling_gate_t v1_pod_scheduling_gate_t; + + + + +typedef struct v1_pod_scheduling_gate_t { + char *name; // string + +} v1_pod_scheduling_gate_t; + +v1_pod_scheduling_gate_t *v1_pod_scheduling_gate_create( + char *name +); + +void v1_pod_scheduling_gate_free(v1_pod_scheduling_gate_t *v1_pod_scheduling_gate); + +v1_pod_scheduling_gate_t *v1_pod_scheduling_gate_parseFromJSON(cJSON *v1_pod_scheduling_gateJSON); + +cJSON *v1_pod_scheduling_gate_convertToJSON(v1_pod_scheduling_gate_t *v1_pod_scheduling_gate); + +#endif /* _v1_pod_scheduling_gate_H_ */ + diff --git a/kubernetes/model/v1_pod_spec.c b/kubernetes/model/v1_pod_spec.c index 8d6f3b7e..6fc38b71 100644 --- a/kubernetes/model/v1_pod_spec.c +++ b/kubernetes/model/v1_pod_spec.c @@ -30,9 +30,11 @@ v1_pod_spec_t *v1_pod_spec_create( int priority, char *priority_class_name, list_t *readiness_gates, + list_t *resource_claims, char *restart_policy, char *runtime_class_name, char *scheduler_name, + list_t *scheduling_gates, v1_pod_security_context_t *security_context, char *service_account, char *service_account_name, @@ -72,9 +74,11 @@ v1_pod_spec_t *v1_pod_spec_create( v1_pod_spec_local_var->priority = priority; v1_pod_spec_local_var->priority_class_name = priority_class_name; v1_pod_spec_local_var->readiness_gates = readiness_gates; + v1_pod_spec_local_var->resource_claims = resource_claims; v1_pod_spec_local_var->restart_policy = restart_policy; v1_pod_spec_local_var->runtime_class_name = runtime_class_name; v1_pod_spec_local_var->scheduler_name = scheduler_name; + v1_pod_spec_local_var->scheduling_gates = scheduling_gates; v1_pod_spec_local_var->security_context = security_context; v1_pod_spec_local_var->service_account = service_account; v1_pod_spec_local_var->service_account_name = service_account_name; @@ -189,6 +193,13 @@ void v1_pod_spec_free(v1_pod_spec_t *v1_pod_spec) { list_freeList(v1_pod_spec->readiness_gates); v1_pod_spec->readiness_gates = NULL; } + if (v1_pod_spec->resource_claims) { + list_ForEach(listEntry, v1_pod_spec->resource_claims) { + v1_pod_resource_claim_free(listEntry->data); + } + list_freeList(v1_pod_spec->resource_claims); + v1_pod_spec->resource_claims = NULL; + } if (v1_pod_spec->restart_policy) { free(v1_pod_spec->restart_policy); v1_pod_spec->restart_policy = NULL; @@ -201,6 +212,13 @@ void v1_pod_spec_free(v1_pod_spec_t *v1_pod_spec) { free(v1_pod_spec->scheduler_name); v1_pod_spec->scheduler_name = NULL; } + if (v1_pod_spec->scheduling_gates) { + list_ForEach(listEntry, v1_pod_spec->scheduling_gates) { + v1_pod_scheduling_gate_free(listEntry->data); + } + list_freeList(v1_pod_spec->scheduling_gates); + v1_pod_spec->scheduling_gates = NULL; + } if (v1_pod_spec->security_context) { v1_pod_security_context_free(v1_pod_spec->security_context); v1_pod_spec->security_context = NULL; @@ -548,6 +566,26 @@ cJSON *v1_pod_spec_convertToJSON(v1_pod_spec_t *v1_pod_spec) { } + // v1_pod_spec->resource_claims + if(v1_pod_spec->resource_claims) { + cJSON *resource_claims = cJSON_AddArrayToObject(item, "resourceClaims"); + if(resource_claims == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *resource_claimsListEntry; + if (v1_pod_spec->resource_claims) { + list_ForEach(resource_claimsListEntry, v1_pod_spec->resource_claims) { + cJSON *itemLocal = v1_pod_resource_claim_convertToJSON(resource_claimsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(resource_claims, itemLocal); + } + } + } + + // v1_pod_spec->restart_policy if(v1_pod_spec->restart_policy) { if(cJSON_AddStringToObject(item, "restartPolicy", v1_pod_spec->restart_policy) == NULL) { @@ -572,6 +610,26 @@ cJSON *v1_pod_spec_convertToJSON(v1_pod_spec_t *v1_pod_spec) { } + // v1_pod_spec->scheduling_gates + if(v1_pod_spec->scheduling_gates) { + cJSON *scheduling_gates = cJSON_AddArrayToObject(item, "schedulingGates"); + if(scheduling_gates == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *scheduling_gatesListEntry; + if (v1_pod_spec->scheduling_gates) { + list_ForEach(scheduling_gatesListEntry, v1_pod_spec->scheduling_gates) { + cJSON *itemLocal = v1_pod_scheduling_gate_convertToJSON(scheduling_gatesListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(scheduling_gates, itemLocal); + } + } + } + + // v1_pod_spec->security_context if(v1_pod_spec->security_context) { cJSON *security_context_local_JSON = v1_pod_security_context_convertToJSON(v1_pod_spec->security_context); @@ -737,6 +795,12 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ // define the local list for v1_pod_spec->readiness_gates list_t *readiness_gatesList = NULL; + // define the local list for v1_pod_spec->resource_claims + list_t *resource_claimsList = NULL; + + // define the local list for v1_pod_spec->scheduling_gates + list_t *scheduling_gatesList = NULL; + // define the local variable for v1_pod_spec->security_context v1_pod_security_context_t *security_context_local_nonprim = NULL; @@ -1063,6 +1127,27 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ } } + // v1_pod_spec->resource_claims + cJSON *resource_claims = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "resourceClaims"); + if (resource_claims) { + cJSON *resource_claims_local_nonprimitive = NULL; + if(!cJSON_IsArray(resource_claims)){ + goto end; //nonprimitive container + } + + resource_claimsList = list_createList(); + + cJSON_ArrayForEach(resource_claims_local_nonprimitive,resource_claims ) + { + if(!cJSON_IsObject(resource_claims_local_nonprimitive)){ + goto end; + } + v1_pod_resource_claim_t *resource_claimsItem = v1_pod_resource_claim_parseFromJSON(resource_claims_local_nonprimitive); + + list_addElement(resource_claimsList, resource_claimsItem); + } + } + // v1_pod_spec->restart_policy cJSON *restart_policy = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "restartPolicy"); if (restart_policy) { @@ -1090,6 +1175,27 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ } } + // v1_pod_spec->scheduling_gates + cJSON *scheduling_gates = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "schedulingGates"); + if (scheduling_gates) { + cJSON *scheduling_gates_local_nonprimitive = NULL; + if(!cJSON_IsArray(scheduling_gates)){ + goto end; //nonprimitive container + } + + scheduling_gatesList = list_createList(); + + cJSON_ArrayForEach(scheduling_gates_local_nonprimitive,scheduling_gates ) + { + if(!cJSON_IsObject(scheduling_gates_local_nonprimitive)){ + goto end; + } + v1_pod_scheduling_gate_t *scheduling_gatesItem = v1_pod_scheduling_gate_parseFromJSON(scheduling_gates_local_nonprimitive); + + list_addElement(scheduling_gatesList, scheduling_gatesItem); + } + } + // v1_pod_spec->security_context cJSON *security_context = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "securityContext"); if (security_context) { @@ -1239,9 +1345,11 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ priority ? priority->valuedouble : 0, priority_class_name && !cJSON_IsNull(priority_class_name) ? strdup(priority_class_name->valuestring) : NULL, readiness_gates ? readiness_gatesList : NULL, + resource_claims ? resource_claimsList : NULL, restart_policy && !cJSON_IsNull(restart_policy) ? strdup(restart_policy->valuestring) : NULL, runtime_class_name && !cJSON_IsNull(runtime_class_name) ? strdup(runtime_class_name->valuestring) : NULL, scheduler_name && !cJSON_IsNull(scheduler_name) ? strdup(scheduler_name->valuestring) : NULL, + scheduling_gates ? scheduling_gatesList : NULL, security_context ? security_context_local_nonprim : NULL, service_account && !cJSON_IsNull(service_account) ? strdup(service_account->valuestring) : NULL, service_account_name && !cJSON_IsNull(service_account_name) ? strdup(service_account_name->valuestring) : NULL, @@ -1350,6 +1458,24 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ list_freeList(readiness_gatesList); readiness_gatesList = NULL; } + if (resource_claimsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, resource_claimsList) { + v1_pod_resource_claim_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(resource_claimsList); + resource_claimsList = NULL; + } + if (scheduling_gatesList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, scheduling_gatesList) { + v1_pod_scheduling_gate_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(scheduling_gatesList); + scheduling_gatesList = NULL; + } if (security_context_local_nonprim) { v1_pod_security_context_free(security_context_local_nonprim); security_context_local_nonprim = NULL; diff --git a/kubernetes/model/v1_pod_spec.h b/kubernetes/model/v1_pod_spec.h index a1019931..7b9ea573 100644 --- a/kubernetes/model/v1_pod_spec.h +++ b/kubernetes/model/v1_pod_spec.h @@ -23,6 +23,8 @@ typedef struct v1_pod_spec_t v1_pod_spec_t; #include "v1_pod_dns_config.h" #include "v1_pod_os.h" #include "v1_pod_readiness_gate.h" +#include "v1_pod_resource_claim.h" +#include "v1_pod_scheduling_gate.h" #include "v1_pod_security_context.h" #include "v1_toleration.h" #include "v1_topology_spread_constraint.h" @@ -55,9 +57,11 @@ typedef struct v1_pod_spec_t { int priority; //numeric char *priority_class_name; // string list_t *readiness_gates; //nonprimitive container + list_t *resource_claims; //nonprimitive container char *restart_policy; // string char *runtime_class_name; // string char *scheduler_name; // string + list_t *scheduling_gates; //nonprimitive container struct v1_pod_security_context_t *security_context; //model char *service_account; // string char *service_account_name; // string @@ -96,9 +100,11 @@ v1_pod_spec_t *v1_pod_spec_create( int priority, char *priority_class_name, list_t *readiness_gates, + list_t *resource_claims, char *restart_policy, char *runtime_class_name, char *scheduler_name, + list_t *scheduling_gates, v1_pod_security_context_t *security_context, char *service_account, char *service_account_name, diff --git a/kubernetes/model/v1_resource_claim.c b/kubernetes/model/v1_resource_claim.c new file mode 100644 index 00000000..e37ca3ff --- /dev/null +++ b/kubernetes/model/v1_resource_claim.c @@ -0,0 +1,77 @@ +#include +#include +#include +#include "v1_resource_claim.h" + + + +v1_resource_claim_t *v1_resource_claim_create( + char *name + ) { + v1_resource_claim_t *v1_resource_claim_local_var = malloc(sizeof(v1_resource_claim_t)); + if (!v1_resource_claim_local_var) { + return NULL; + } + v1_resource_claim_local_var->name = name; + + return v1_resource_claim_local_var; +} + + +void v1_resource_claim_free(v1_resource_claim_t *v1_resource_claim) { + if(NULL == v1_resource_claim){ + return ; + } + listEntry_t *listEntry; + if (v1_resource_claim->name) { + free(v1_resource_claim->name); + v1_resource_claim->name = NULL; + } + free(v1_resource_claim); +} + +cJSON *v1_resource_claim_convertToJSON(v1_resource_claim_t *v1_resource_claim) { + cJSON *item = cJSON_CreateObject(); + + // v1_resource_claim->name + if (!v1_resource_claim->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1_resource_claim->name) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_resource_claim_t *v1_resource_claim_parseFromJSON(cJSON *v1_resource_claimJSON){ + + v1_resource_claim_t *v1_resource_claim_local_var = NULL; + + // v1_resource_claim->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_resource_claimJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + + v1_resource_claim_local_var = v1_resource_claim_create ( + strdup(name->valuestring) + ); + + return v1_resource_claim_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1_resource_claim.h b/kubernetes/model/v1_resource_claim.h new file mode 100644 index 00000000..b68f7ace --- /dev/null +++ b/kubernetes/model/v1_resource_claim.h @@ -0,0 +1,37 @@ +/* + * v1_resource_claim.h + * + * ResourceClaim references one entry in PodSpec.ResourceClaims. + */ + +#ifndef _v1_resource_claim_H_ +#define _v1_resource_claim_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_resource_claim_t v1_resource_claim_t; + + + + +typedef struct v1_resource_claim_t { + char *name; // string + +} v1_resource_claim_t; + +v1_resource_claim_t *v1_resource_claim_create( + char *name +); + +void v1_resource_claim_free(v1_resource_claim_t *v1_resource_claim); + +v1_resource_claim_t *v1_resource_claim_parseFromJSON(cJSON *v1_resource_claimJSON); + +cJSON *v1_resource_claim_convertToJSON(v1_resource_claim_t *v1_resource_claim); + +#endif /* _v1_resource_claim_H_ */ + diff --git a/kubernetes/model/v1_resource_requirements.c b/kubernetes/model/v1_resource_requirements.c index 03686787..f02893ee 100644 --- a/kubernetes/model/v1_resource_requirements.c +++ b/kubernetes/model/v1_resource_requirements.c @@ -6,6 +6,7 @@ v1_resource_requirements_t *v1_resource_requirements_create( + list_t *claims, list_t* limits, list_t* requests ) { @@ -13,6 +14,7 @@ v1_resource_requirements_t *v1_resource_requirements_create( if (!v1_resource_requirements_local_var) { return NULL; } + v1_resource_requirements_local_var->claims = claims; v1_resource_requirements_local_var->limits = limits; v1_resource_requirements_local_var->requests = requests; @@ -25,6 +27,13 @@ void v1_resource_requirements_free(v1_resource_requirements_t *v1_resource_requi return ; } listEntry_t *listEntry; + if (v1_resource_requirements->claims) { + list_ForEach(listEntry, v1_resource_requirements->claims) { + v1_resource_claim_free(listEntry->data); + } + list_freeList(v1_resource_requirements->claims); + v1_resource_requirements->claims = NULL; + } if (v1_resource_requirements->limits) { list_ForEach(listEntry, v1_resource_requirements->limits) { keyValuePair_t *localKeyValue = (keyValuePair_t*) listEntry->data; @@ -51,6 +60,26 @@ void v1_resource_requirements_free(v1_resource_requirements_t *v1_resource_requi cJSON *v1_resource_requirements_convertToJSON(v1_resource_requirements_t *v1_resource_requirements) { cJSON *item = cJSON_CreateObject(); + // v1_resource_requirements->claims + if(v1_resource_requirements->claims) { + cJSON *claims = cJSON_AddArrayToObject(item, "claims"); + if(claims == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *claimsListEntry; + if (v1_resource_requirements->claims) { + list_ForEach(claimsListEntry, v1_resource_requirements->claims) { + cJSON *itemLocal = v1_resource_claim_convertToJSON(claimsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(claims, itemLocal); + } + } + } + + // v1_resource_requirements->limits if(v1_resource_requirements->limits) { cJSON *limits = cJSON_AddObjectToObject(item, "limits"); @@ -102,12 +131,36 @@ v1_resource_requirements_t *v1_resource_requirements_parseFromJSON(cJSON *v1_res v1_resource_requirements_t *v1_resource_requirements_local_var = NULL; + // define the local list for v1_resource_requirements->claims + list_t *claimsList = NULL; + // define the local map for v1_resource_requirements->limits list_t *limitsList = NULL; // define the local map for v1_resource_requirements->requests list_t *requestsList = NULL; + // v1_resource_requirements->claims + cJSON *claims = cJSON_GetObjectItemCaseSensitive(v1_resource_requirementsJSON, "claims"); + if (claims) { + cJSON *claims_local_nonprimitive = NULL; + if(!cJSON_IsArray(claims)){ + goto end; //nonprimitive container + } + + claimsList = list_createList(); + + cJSON_ArrayForEach(claims_local_nonprimitive,claims ) + { + if(!cJSON_IsObject(claims_local_nonprimitive)){ + goto end; + } + v1_resource_claim_t *claimsItem = v1_resource_claim_parseFromJSON(claims_local_nonprimitive); + + list_addElement(claimsList, claimsItem); + } + } + // v1_resource_requirements->limits cJSON *limits = cJSON_GetObjectItemCaseSensitive(v1_resource_requirementsJSON, "limits"); if (limits) { @@ -160,12 +213,22 @@ v1_resource_requirements_t *v1_resource_requirements_parseFromJSON(cJSON *v1_res v1_resource_requirements_local_var = v1_resource_requirements_create ( + claims ? claimsList : NULL, limits ? limitsList : NULL, requests ? requestsList : NULL ); return v1_resource_requirements_local_var; end: + if (claimsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, claimsList) { + v1_resource_claim_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(claimsList); + claimsList = NULL; + } if (limitsList) { listEntry_t *listEntry = NULL; list_ForEach(listEntry, limitsList) { diff --git a/kubernetes/model/v1_resource_requirements.h b/kubernetes/model/v1_resource_requirements.h index e085ce91..eeb17bf2 100644 --- a/kubernetes/model/v1_resource_requirements.h +++ b/kubernetes/model/v1_resource_requirements.h @@ -15,16 +15,19 @@ typedef struct v1_resource_requirements_t v1_resource_requirements_t; +#include "v1_resource_claim.h" typedef struct v1_resource_requirements_t { + list_t *claims; //nonprimitive container list_t* limits; //map list_t* requests; //map } v1_resource_requirements_t; v1_resource_requirements_t *v1_resource_requirements_create( + list_t *claims, list_t* limits, list_t* requests ); diff --git a/kubernetes/model/v1_stateful_set_ordinals.c b/kubernetes/model/v1_stateful_set_ordinals.c new file mode 100644 index 00000000..aecece67 --- /dev/null +++ b/kubernetes/model/v1_stateful_set_ordinals.c @@ -0,0 +1,69 @@ +#include +#include +#include +#include "v1_stateful_set_ordinals.h" + + + +v1_stateful_set_ordinals_t *v1_stateful_set_ordinals_create( + int start + ) { + v1_stateful_set_ordinals_t *v1_stateful_set_ordinals_local_var = malloc(sizeof(v1_stateful_set_ordinals_t)); + if (!v1_stateful_set_ordinals_local_var) { + return NULL; + } + v1_stateful_set_ordinals_local_var->start = start; + + return v1_stateful_set_ordinals_local_var; +} + + +void v1_stateful_set_ordinals_free(v1_stateful_set_ordinals_t *v1_stateful_set_ordinals) { + if(NULL == v1_stateful_set_ordinals){ + return ; + } + listEntry_t *listEntry; + free(v1_stateful_set_ordinals); +} + +cJSON *v1_stateful_set_ordinals_convertToJSON(v1_stateful_set_ordinals_t *v1_stateful_set_ordinals) { + cJSON *item = cJSON_CreateObject(); + + // v1_stateful_set_ordinals->start + if(v1_stateful_set_ordinals->start) { + if(cJSON_AddNumberToObject(item, "start", v1_stateful_set_ordinals->start) == NULL) { + goto fail; //Numeric + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_stateful_set_ordinals_t *v1_stateful_set_ordinals_parseFromJSON(cJSON *v1_stateful_set_ordinalsJSON){ + + v1_stateful_set_ordinals_t *v1_stateful_set_ordinals_local_var = NULL; + + // v1_stateful_set_ordinals->start + cJSON *start = cJSON_GetObjectItemCaseSensitive(v1_stateful_set_ordinalsJSON, "start"); + if (start) { + if(!cJSON_IsNumber(start)) + { + goto end; //Numeric + } + } + + + v1_stateful_set_ordinals_local_var = v1_stateful_set_ordinals_create ( + start ? start->valuedouble : 0 + ); + + return v1_stateful_set_ordinals_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1_stateful_set_ordinals.h b/kubernetes/model/v1_stateful_set_ordinals.h new file mode 100644 index 00000000..65ef569a --- /dev/null +++ b/kubernetes/model/v1_stateful_set_ordinals.h @@ -0,0 +1,37 @@ +/* + * v1_stateful_set_ordinals.h + * + * StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet. + */ + +#ifndef _v1_stateful_set_ordinals_H_ +#define _v1_stateful_set_ordinals_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_stateful_set_ordinals_t v1_stateful_set_ordinals_t; + + + + +typedef struct v1_stateful_set_ordinals_t { + int start; //numeric + +} v1_stateful_set_ordinals_t; + +v1_stateful_set_ordinals_t *v1_stateful_set_ordinals_create( + int start +); + +void v1_stateful_set_ordinals_free(v1_stateful_set_ordinals_t *v1_stateful_set_ordinals); + +v1_stateful_set_ordinals_t *v1_stateful_set_ordinals_parseFromJSON(cJSON *v1_stateful_set_ordinalsJSON); + +cJSON *v1_stateful_set_ordinals_convertToJSON(v1_stateful_set_ordinals_t *v1_stateful_set_ordinals); + +#endif /* _v1_stateful_set_ordinals_H_ */ + diff --git a/kubernetes/model/v1_stateful_set_spec.c b/kubernetes/model/v1_stateful_set_spec.c index fbf916eb..ea9b65fa 100644 --- a/kubernetes/model/v1_stateful_set_spec.c +++ b/kubernetes/model/v1_stateful_set_spec.c @@ -7,6 +7,7 @@ v1_stateful_set_spec_t *v1_stateful_set_spec_create( int min_ready_seconds, + v1_stateful_set_ordinals_t *ordinals, v1_stateful_set_persistent_volume_claim_retention_policy_t *persistent_volume_claim_retention_policy, char *pod_management_policy, int replicas, @@ -22,6 +23,7 @@ v1_stateful_set_spec_t *v1_stateful_set_spec_create( return NULL; } v1_stateful_set_spec_local_var->min_ready_seconds = min_ready_seconds; + v1_stateful_set_spec_local_var->ordinals = ordinals; v1_stateful_set_spec_local_var->persistent_volume_claim_retention_policy = persistent_volume_claim_retention_policy; v1_stateful_set_spec_local_var->pod_management_policy = pod_management_policy; v1_stateful_set_spec_local_var->replicas = replicas; @@ -41,6 +43,10 @@ void v1_stateful_set_spec_free(v1_stateful_set_spec_t *v1_stateful_set_spec) { return ; } listEntry_t *listEntry; + if (v1_stateful_set_spec->ordinals) { + v1_stateful_set_ordinals_free(v1_stateful_set_spec->ordinals); + v1_stateful_set_spec->ordinals = NULL; + } if (v1_stateful_set_spec->persistent_volume_claim_retention_policy) { v1_stateful_set_persistent_volume_claim_retention_policy_free(v1_stateful_set_spec->persistent_volume_claim_retention_policy); v1_stateful_set_spec->persistent_volume_claim_retention_policy = NULL; @@ -86,6 +92,19 @@ cJSON *v1_stateful_set_spec_convertToJSON(v1_stateful_set_spec_t *v1_stateful_se } + // v1_stateful_set_spec->ordinals + if(v1_stateful_set_spec->ordinals) { + cJSON *ordinals_local_JSON = v1_stateful_set_ordinals_convertToJSON(v1_stateful_set_spec->ordinals); + if(ordinals_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "ordinals", ordinals_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + // v1_stateful_set_spec->persistent_volume_claim_retention_policy if(v1_stateful_set_spec->persistent_volume_claim_retention_policy) { cJSON *persistent_volume_claim_retention_policy_local_JSON = v1_stateful_set_persistent_volume_claim_retention_policy_convertToJSON(v1_stateful_set_spec->persistent_volume_claim_retention_policy); @@ -204,6 +223,9 @@ v1_stateful_set_spec_t *v1_stateful_set_spec_parseFromJSON(cJSON *v1_stateful_se v1_stateful_set_spec_t *v1_stateful_set_spec_local_var = NULL; + // define the local variable for v1_stateful_set_spec->ordinals + v1_stateful_set_ordinals_t *ordinals_local_nonprim = NULL; + // define the local variable for v1_stateful_set_spec->persistent_volume_claim_retention_policy v1_stateful_set_persistent_volume_claim_retention_policy_t *persistent_volume_claim_retention_policy_local_nonprim = NULL; @@ -228,6 +250,12 @@ v1_stateful_set_spec_t *v1_stateful_set_spec_parseFromJSON(cJSON *v1_stateful_se } } + // v1_stateful_set_spec->ordinals + cJSON *ordinals = cJSON_GetObjectItemCaseSensitive(v1_stateful_set_specJSON, "ordinals"); + if (ordinals) { + ordinals_local_nonprim = v1_stateful_set_ordinals_parseFromJSON(ordinals); //nonprimitive + } + // v1_stateful_set_spec->persistent_volume_claim_retention_policy cJSON *persistent_volume_claim_retention_policy = cJSON_GetObjectItemCaseSensitive(v1_stateful_set_specJSON, "persistentVolumeClaimRetentionPolicy"); if (persistent_volume_claim_retention_policy) { @@ -321,6 +349,7 @@ v1_stateful_set_spec_t *v1_stateful_set_spec_parseFromJSON(cJSON *v1_stateful_se v1_stateful_set_spec_local_var = v1_stateful_set_spec_create ( min_ready_seconds ? min_ready_seconds->valuedouble : 0, + ordinals ? ordinals_local_nonprim : NULL, persistent_volume_claim_retention_policy ? persistent_volume_claim_retention_policy_local_nonprim : NULL, pod_management_policy && !cJSON_IsNull(pod_management_policy) ? strdup(pod_management_policy->valuestring) : NULL, replicas ? replicas->valuedouble : 0, @@ -334,6 +363,10 @@ v1_stateful_set_spec_t *v1_stateful_set_spec_parseFromJSON(cJSON *v1_stateful_se return v1_stateful_set_spec_local_var; end: + if (ordinals_local_nonprim) { + v1_stateful_set_ordinals_free(ordinals_local_nonprim); + ordinals_local_nonprim = NULL; + } if (persistent_volume_claim_retention_policy_local_nonprim) { v1_stateful_set_persistent_volume_claim_retention_policy_free(persistent_volume_claim_retention_policy_local_nonprim); persistent_volume_claim_retention_policy_local_nonprim = NULL; diff --git a/kubernetes/model/v1_stateful_set_spec.h b/kubernetes/model/v1_stateful_set_spec.h index 0c1bb648..2019bec3 100644 --- a/kubernetes/model/v1_stateful_set_spec.h +++ b/kubernetes/model/v1_stateful_set_spec.h @@ -18,6 +18,7 @@ typedef struct v1_stateful_set_spec_t v1_stateful_set_spec_t; #include "v1_label_selector.h" #include "v1_persistent_volume_claim.h" #include "v1_pod_template_spec.h" +#include "v1_stateful_set_ordinals.h" #include "v1_stateful_set_persistent_volume_claim_retention_policy.h" #include "v1_stateful_set_update_strategy.h" @@ -25,6 +26,7 @@ typedef struct v1_stateful_set_spec_t v1_stateful_set_spec_t; typedef struct v1_stateful_set_spec_t { int min_ready_seconds; //numeric + struct v1_stateful_set_ordinals_t *ordinals; //model struct v1_stateful_set_persistent_volume_claim_retention_policy_t *persistent_volume_claim_retention_policy; //model char *pod_management_policy; // string int replicas; //numeric @@ -39,6 +41,7 @@ typedef struct v1_stateful_set_spec_t { v1_stateful_set_spec_t *v1_stateful_set_spec_create( int min_ready_seconds, + v1_stateful_set_ordinals_t *ordinals, v1_stateful_set_persistent_volume_claim_retention_policy_t *persistent_volume_claim_retention_policy, char *pod_management_policy, int replicas, diff --git a/kubernetes/model/v1_typed_object_reference.c b/kubernetes/model/v1_typed_object_reference.c new file mode 100644 index 00000000..ec98bdb1 --- /dev/null +++ b/kubernetes/model/v1_typed_object_reference.c @@ -0,0 +1,153 @@ +#include +#include +#include +#include "v1_typed_object_reference.h" + + + +v1_typed_object_reference_t *v1_typed_object_reference_create( + char *api_group, + char *kind, + char *name, + char *_namespace + ) { + v1_typed_object_reference_t *v1_typed_object_reference_local_var = malloc(sizeof(v1_typed_object_reference_t)); + if (!v1_typed_object_reference_local_var) { + return NULL; + } + v1_typed_object_reference_local_var->api_group = api_group; + v1_typed_object_reference_local_var->kind = kind; + v1_typed_object_reference_local_var->name = name; + v1_typed_object_reference_local_var->_namespace = _namespace; + + return v1_typed_object_reference_local_var; +} + + +void v1_typed_object_reference_free(v1_typed_object_reference_t *v1_typed_object_reference) { + if(NULL == v1_typed_object_reference){ + return ; + } + listEntry_t *listEntry; + if (v1_typed_object_reference->api_group) { + free(v1_typed_object_reference->api_group); + v1_typed_object_reference->api_group = NULL; + } + if (v1_typed_object_reference->kind) { + free(v1_typed_object_reference->kind); + v1_typed_object_reference->kind = NULL; + } + if (v1_typed_object_reference->name) { + free(v1_typed_object_reference->name); + v1_typed_object_reference->name = NULL; + } + if (v1_typed_object_reference->_namespace) { + free(v1_typed_object_reference->_namespace); + v1_typed_object_reference->_namespace = NULL; + } + free(v1_typed_object_reference); +} + +cJSON *v1_typed_object_reference_convertToJSON(v1_typed_object_reference_t *v1_typed_object_reference) { + cJSON *item = cJSON_CreateObject(); + + // v1_typed_object_reference->api_group + if(v1_typed_object_reference->api_group) { + if(cJSON_AddStringToObject(item, "apiGroup", v1_typed_object_reference->api_group) == NULL) { + goto fail; //String + } + } + + + // v1_typed_object_reference->kind + if (!v1_typed_object_reference->kind) { + goto fail; + } + if(cJSON_AddStringToObject(item, "kind", v1_typed_object_reference->kind) == NULL) { + goto fail; //String + } + + + // v1_typed_object_reference->name + if (!v1_typed_object_reference->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1_typed_object_reference->name) == NULL) { + goto fail; //String + } + + + // v1_typed_object_reference->_namespace + if(v1_typed_object_reference->_namespace) { + if(cJSON_AddStringToObject(item, "namespace", v1_typed_object_reference->_namespace) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_typed_object_reference_t *v1_typed_object_reference_parseFromJSON(cJSON *v1_typed_object_referenceJSON){ + + v1_typed_object_reference_t *v1_typed_object_reference_local_var = NULL; + + // v1_typed_object_reference->api_group + cJSON *api_group = cJSON_GetObjectItemCaseSensitive(v1_typed_object_referenceJSON, "apiGroup"); + if (api_group) { + if(!cJSON_IsString(api_group) && !cJSON_IsNull(api_group)) + { + goto end; //String + } + } + + // v1_typed_object_reference->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_typed_object_referenceJSON, "kind"); + if (!kind) { + goto end; + } + + + if(!cJSON_IsString(kind)) + { + goto end; //String + } + + // v1_typed_object_reference->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_typed_object_referenceJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + // v1_typed_object_reference->_namespace + cJSON *_namespace = cJSON_GetObjectItemCaseSensitive(v1_typed_object_referenceJSON, "namespace"); + if (_namespace) { + if(!cJSON_IsString(_namespace) && !cJSON_IsNull(_namespace)) + { + goto end; //String + } + } + + + v1_typed_object_reference_local_var = v1_typed_object_reference_create ( + api_group && !cJSON_IsNull(api_group) ? strdup(api_group->valuestring) : NULL, + strdup(kind->valuestring), + strdup(name->valuestring), + _namespace && !cJSON_IsNull(_namespace) ? strdup(_namespace->valuestring) : NULL + ); + + return v1_typed_object_reference_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1_typed_object_reference.h b/kubernetes/model/v1_typed_object_reference.h new file mode 100644 index 00000000..0536d07b --- /dev/null +++ b/kubernetes/model/v1_typed_object_reference.h @@ -0,0 +1,43 @@ +/* + * v1_typed_object_reference.h + * + * + */ + +#ifndef _v1_typed_object_reference_H_ +#define _v1_typed_object_reference_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_typed_object_reference_t v1_typed_object_reference_t; + + + + +typedef struct v1_typed_object_reference_t { + char *api_group; // string + char *kind; // string + char *name; // string + char *_namespace; // string + +} v1_typed_object_reference_t; + +v1_typed_object_reference_t *v1_typed_object_reference_create( + char *api_group, + char *kind, + char *name, + char *_namespace +); + +void v1_typed_object_reference_free(v1_typed_object_reference_t *v1_typed_object_reference); + +v1_typed_object_reference_t *v1_typed_object_reference_parseFromJSON(cJSON *v1_typed_object_referenceJSON); + +cJSON *v1_typed_object_reference_convertToJSON(v1_typed_object_reference_t *v1_typed_object_reference); + +#endif /* _v1_typed_object_reference_H_ */ + diff --git a/kubernetes/model/v1alpha1_allocation_result.c b/kubernetes/model/v1alpha1_allocation_result.c new file mode 100644 index 00000000..be833623 --- /dev/null +++ b/kubernetes/model/v1alpha1_allocation_result.c @@ -0,0 +1,126 @@ +#include +#include +#include +#include "v1alpha1_allocation_result.h" + + + +v1alpha1_allocation_result_t *v1alpha1_allocation_result_create( + v1_node_selector_t *available_on_nodes, + char *resource_handle, + int shareable + ) { + v1alpha1_allocation_result_t *v1alpha1_allocation_result_local_var = malloc(sizeof(v1alpha1_allocation_result_t)); + if (!v1alpha1_allocation_result_local_var) { + return NULL; + } + v1alpha1_allocation_result_local_var->available_on_nodes = available_on_nodes; + v1alpha1_allocation_result_local_var->resource_handle = resource_handle; + v1alpha1_allocation_result_local_var->shareable = shareable; + + return v1alpha1_allocation_result_local_var; +} + + +void v1alpha1_allocation_result_free(v1alpha1_allocation_result_t *v1alpha1_allocation_result) { + if(NULL == v1alpha1_allocation_result){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_allocation_result->available_on_nodes) { + v1_node_selector_free(v1alpha1_allocation_result->available_on_nodes); + v1alpha1_allocation_result->available_on_nodes = NULL; + } + if (v1alpha1_allocation_result->resource_handle) { + free(v1alpha1_allocation_result->resource_handle); + v1alpha1_allocation_result->resource_handle = NULL; + } + free(v1alpha1_allocation_result); +} + +cJSON *v1alpha1_allocation_result_convertToJSON(v1alpha1_allocation_result_t *v1alpha1_allocation_result) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_allocation_result->available_on_nodes + if(v1alpha1_allocation_result->available_on_nodes) { + cJSON *available_on_nodes_local_JSON = v1_node_selector_convertToJSON(v1alpha1_allocation_result->available_on_nodes); + if(available_on_nodes_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "availableOnNodes", available_on_nodes_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_allocation_result->resource_handle + if(v1alpha1_allocation_result->resource_handle) { + if(cJSON_AddStringToObject(item, "resourceHandle", v1alpha1_allocation_result->resource_handle) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_allocation_result->shareable + if(v1alpha1_allocation_result->shareable) { + if(cJSON_AddBoolToObject(item, "shareable", v1alpha1_allocation_result->shareable) == NULL) { + goto fail; //Bool + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_allocation_result_t *v1alpha1_allocation_result_parseFromJSON(cJSON *v1alpha1_allocation_resultJSON){ + + v1alpha1_allocation_result_t *v1alpha1_allocation_result_local_var = NULL; + + // define the local variable for v1alpha1_allocation_result->available_on_nodes + v1_node_selector_t *available_on_nodes_local_nonprim = NULL; + + // v1alpha1_allocation_result->available_on_nodes + cJSON *available_on_nodes = cJSON_GetObjectItemCaseSensitive(v1alpha1_allocation_resultJSON, "availableOnNodes"); + if (available_on_nodes) { + available_on_nodes_local_nonprim = v1_node_selector_parseFromJSON(available_on_nodes); //nonprimitive + } + + // v1alpha1_allocation_result->resource_handle + cJSON *resource_handle = cJSON_GetObjectItemCaseSensitive(v1alpha1_allocation_resultJSON, "resourceHandle"); + if (resource_handle) { + if(!cJSON_IsString(resource_handle) && !cJSON_IsNull(resource_handle)) + { + goto end; //String + } + } + + // v1alpha1_allocation_result->shareable + cJSON *shareable = cJSON_GetObjectItemCaseSensitive(v1alpha1_allocation_resultJSON, "shareable"); + if (shareable) { + if(!cJSON_IsBool(shareable)) + { + goto end; //Bool + } + } + + + v1alpha1_allocation_result_local_var = v1alpha1_allocation_result_create ( + available_on_nodes ? available_on_nodes_local_nonprim : NULL, + resource_handle && !cJSON_IsNull(resource_handle) ? strdup(resource_handle->valuestring) : NULL, + shareable ? shareable->valueint : 0 + ); + + return v1alpha1_allocation_result_local_var; +end: + if (available_on_nodes_local_nonprim) { + v1_node_selector_free(available_on_nodes_local_nonprim); + available_on_nodes_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_allocation_result.h b/kubernetes/model/v1alpha1_allocation_result.h new file mode 100644 index 00000000..d5addb9e --- /dev/null +++ b/kubernetes/model/v1alpha1_allocation_result.h @@ -0,0 +1,42 @@ +/* + * v1alpha1_allocation_result.h + * + * AllocationResult contains attributed of an allocated resource. + */ + +#ifndef _v1alpha1_allocation_result_H_ +#define _v1alpha1_allocation_result_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_allocation_result_t v1alpha1_allocation_result_t; + +#include "v1_node_selector.h" + + + +typedef struct v1alpha1_allocation_result_t { + struct v1_node_selector_t *available_on_nodes; //model + char *resource_handle; // string + int shareable; //boolean + +} v1alpha1_allocation_result_t; + +v1alpha1_allocation_result_t *v1alpha1_allocation_result_create( + v1_node_selector_t *available_on_nodes, + char *resource_handle, + int shareable +); + +void v1alpha1_allocation_result_free(v1alpha1_allocation_result_t *v1alpha1_allocation_result); + +v1alpha1_allocation_result_t *v1alpha1_allocation_result_parseFromJSON(cJSON *v1alpha1_allocation_resultJSON); + +cJSON *v1alpha1_allocation_result_convertToJSON(v1alpha1_allocation_result_t *v1alpha1_allocation_result); + +#endif /* _v1alpha1_allocation_result_H_ */ + diff --git a/kubernetes/model/v1alpha1_match_resources.c b/kubernetes/model/v1alpha1_match_resources.c new file mode 100644 index 00000000..e363d23d --- /dev/null +++ b/kubernetes/model/v1alpha1_match_resources.c @@ -0,0 +1,265 @@ +#include +#include +#include +#include "v1alpha1_match_resources.h" + + + +v1alpha1_match_resources_t *v1alpha1_match_resources_create( + list_t *exclude_resource_rules, + char *match_policy, + v1_label_selector_t *namespace_selector, + v1_label_selector_t *object_selector, + list_t *resource_rules + ) { + v1alpha1_match_resources_t *v1alpha1_match_resources_local_var = malloc(sizeof(v1alpha1_match_resources_t)); + if (!v1alpha1_match_resources_local_var) { + return NULL; + } + v1alpha1_match_resources_local_var->exclude_resource_rules = exclude_resource_rules; + v1alpha1_match_resources_local_var->match_policy = match_policy; + v1alpha1_match_resources_local_var->namespace_selector = namespace_selector; + v1alpha1_match_resources_local_var->object_selector = object_selector; + v1alpha1_match_resources_local_var->resource_rules = resource_rules; + + return v1alpha1_match_resources_local_var; +} + + +void v1alpha1_match_resources_free(v1alpha1_match_resources_t *v1alpha1_match_resources) { + if(NULL == v1alpha1_match_resources){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_match_resources->exclude_resource_rules) { + list_ForEach(listEntry, v1alpha1_match_resources->exclude_resource_rules) { + v1alpha1_named_rule_with_operations_free(listEntry->data); + } + list_freeList(v1alpha1_match_resources->exclude_resource_rules); + v1alpha1_match_resources->exclude_resource_rules = NULL; + } + if (v1alpha1_match_resources->match_policy) { + free(v1alpha1_match_resources->match_policy); + v1alpha1_match_resources->match_policy = NULL; + } + if (v1alpha1_match_resources->namespace_selector) { + v1_label_selector_free(v1alpha1_match_resources->namespace_selector); + v1alpha1_match_resources->namespace_selector = NULL; + } + if (v1alpha1_match_resources->object_selector) { + v1_label_selector_free(v1alpha1_match_resources->object_selector); + v1alpha1_match_resources->object_selector = NULL; + } + if (v1alpha1_match_resources->resource_rules) { + list_ForEach(listEntry, v1alpha1_match_resources->resource_rules) { + v1alpha1_named_rule_with_operations_free(listEntry->data); + } + list_freeList(v1alpha1_match_resources->resource_rules); + v1alpha1_match_resources->resource_rules = NULL; + } + free(v1alpha1_match_resources); +} + +cJSON *v1alpha1_match_resources_convertToJSON(v1alpha1_match_resources_t *v1alpha1_match_resources) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_match_resources->exclude_resource_rules + if(v1alpha1_match_resources->exclude_resource_rules) { + cJSON *exclude_resource_rules = cJSON_AddArrayToObject(item, "excludeResourceRules"); + if(exclude_resource_rules == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *exclude_resource_rulesListEntry; + if (v1alpha1_match_resources->exclude_resource_rules) { + list_ForEach(exclude_resource_rulesListEntry, v1alpha1_match_resources->exclude_resource_rules) { + cJSON *itemLocal = v1alpha1_named_rule_with_operations_convertToJSON(exclude_resource_rulesListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(exclude_resource_rules, itemLocal); + } + } + } + + + // v1alpha1_match_resources->match_policy + if(v1alpha1_match_resources->match_policy) { + if(cJSON_AddStringToObject(item, "matchPolicy", v1alpha1_match_resources->match_policy) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_match_resources->namespace_selector + if(v1alpha1_match_resources->namespace_selector) { + cJSON *namespace_selector_local_JSON = v1_label_selector_convertToJSON(v1alpha1_match_resources->namespace_selector); + if(namespace_selector_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "namespaceSelector", namespace_selector_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_match_resources->object_selector + if(v1alpha1_match_resources->object_selector) { + cJSON *object_selector_local_JSON = v1_label_selector_convertToJSON(v1alpha1_match_resources->object_selector); + if(object_selector_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "objectSelector", object_selector_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_match_resources->resource_rules + if(v1alpha1_match_resources->resource_rules) { + cJSON *resource_rules = cJSON_AddArrayToObject(item, "resourceRules"); + if(resource_rules == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *resource_rulesListEntry; + if (v1alpha1_match_resources->resource_rules) { + list_ForEach(resource_rulesListEntry, v1alpha1_match_resources->resource_rules) { + cJSON *itemLocal = v1alpha1_named_rule_with_operations_convertToJSON(resource_rulesListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(resource_rules, itemLocal); + } + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_match_resources_t *v1alpha1_match_resources_parseFromJSON(cJSON *v1alpha1_match_resourcesJSON){ + + v1alpha1_match_resources_t *v1alpha1_match_resources_local_var = NULL; + + // define the local list for v1alpha1_match_resources->exclude_resource_rules + list_t *exclude_resource_rulesList = NULL; + + // define the local variable for v1alpha1_match_resources->namespace_selector + v1_label_selector_t *namespace_selector_local_nonprim = NULL; + + // define the local variable for v1alpha1_match_resources->object_selector + v1_label_selector_t *object_selector_local_nonprim = NULL; + + // define the local list for v1alpha1_match_resources->resource_rules + list_t *resource_rulesList = NULL; + + // v1alpha1_match_resources->exclude_resource_rules + cJSON *exclude_resource_rules = cJSON_GetObjectItemCaseSensitive(v1alpha1_match_resourcesJSON, "excludeResourceRules"); + if (exclude_resource_rules) { + cJSON *exclude_resource_rules_local_nonprimitive = NULL; + if(!cJSON_IsArray(exclude_resource_rules)){ + goto end; //nonprimitive container + } + + exclude_resource_rulesList = list_createList(); + + cJSON_ArrayForEach(exclude_resource_rules_local_nonprimitive,exclude_resource_rules ) + { + if(!cJSON_IsObject(exclude_resource_rules_local_nonprimitive)){ + goto end; + } + v1alpha1_named_rule_with_operations_t *exclude_resource_rulesItem = v1alpha1_named_rule_with_operations_parseFromJSON(exclude_resource_rules_local_nonprimitive); + + list_addElement(exclude_resource_rulesList, exclude_resource_rulesItem); + } + } + + // v1alpha1_match_resources->match_policy + cJSON *match_policy = cJSON_GetObjectItemCaseSensitive(v1alpha1_match_resourcesJSON, "matchPolicy"); + if (match_policy) { + if(!cJSON_IsString(match_policy) && !cJSON_IsNull(match_policy)) + { + goto end; //String + } + } + + // v1alpha1_match_resources->namespace_selector + cJSON *namespace_selector = cJSON_GetObjectItemCaseSensitive(v1alpha1_match_resourcesJSON, "namespaceSelector"); + if (namespace_selector) { + namespace_selector_local_nonprim = v1_label_selector_parseFromJSON(namespace_selector); //nonprimitive + } + + // v1alpha1_match_resources->object_selector + cJSON *object_selector = cJSON_GetObjectItemCaseSensitive(v1alpha1_match_resourcesJSON, "objectSelector"); + if (object_selector) { + object_selector_local_nonprim = v1_label_selector_parseFromJSON(object_selector); //nonprimitive + } + + // v1alpha1_match_resources->resource_rules + cJSON *resource_rules = cJSON_GetObjectItemCaseSensitive(v1alpha1_match_resourcesJSON, "resourceRules"); + if (resource_rules) { + cJSON *resource_rules_local_nonprimitive = NULL; + if(!cJSON_IsArray(resource_rules)){ + goto end; //nonprimitive container + } + + resource_rulesList = list_createList(); + + cJSON_ArrayForEach(resource_rules_local_nonprimitive,resource_rules ) + { + if(!cJSON_IsObject(resource_rules_local_nonprimitive)){ + goto end; + } + v1alpha1_named_rule_with_operations_t *resource_rulesItem = v1alpha1_named_rule_with_operations_parseFromJSON(resource_rules_local_nonprimitive); + + list_addElement(resource_rulesList, resource_rulesItem); + } + } + + + v1alpha1_match_resources_local_var = v1alpha1_match_resources_create ( + exclude_resource_rules ? exclude_resource_rulesList : NULL, + match_policy && !cJSON_IsNull(match_policy) ? strdup(match_policy->valuestring) : NULL, + namespace_selector ? namespace_selector_local_nonprim : NULL, + object_selector ? object_selector_local_nonprim : NULL, + resource_rules ? resource_rulesList : NULL + ); + + return v1alpha1_match_resources_local_var; +end: + if (exclude_resource_rulesList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, exclude_resource_rulesList) { + v1alpha1_named_rule_with_operations_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(exclude_resource_rulesList); + exclude_resource_rulesList = NULL; + } + if (namespace_selector_local_nonprim) { + v1_label_selector_free(namespace_selector_local_nonprim); + namespace_selector_local_nonprim = NULL; + } + if (object_selector_local_nonprim) { + v1_label_selector_free(object_selector_local_nonprim); + object_selector_local_nonprim = NULL; + } + if (resource_rulesList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, resource_rulesList) { + v1alpha1_named_rule_with_operations_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(resource_rulesList); + resource_rulesList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_match_resources.h b/kubernetes/model/v1alpha1_match_resources.h new file mode 100644 index 00000000..168c70d1 --- /dev/null +++ b/kubernetes/model/v1alpha1_match_resources.h @@ -0,0 +1,47 @@ +/* + * v1alpha1_match_resources.h + * + * MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) + */ + +#ifndef _v1alpha1_match_resources_H_ +#define _v1alpha1_match_resources_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_match_resources_t v1alpha1_match_resources_t; + +#include "v1_label_selector.h" +#include "v1alpha1_named_rule_with_operations.h" + + + +typedef struct v1alpha1_match_resources_t { + list_t *exclude_resource_rules; //nonprimitive container + char *match_policy; // string + struct v1_label_selector_t *namespace_selector; //model + struct v1_label_selector_t *object_selector; //model + list_t *resource_rules; //nonprimitive container + +} v1alpha1_match_resources_t; + +v1alpha1_match_resources_t *v1alpha1_match_resources_create( + list_t *exclude_resource_rules, + char *match_policy, + v1_label_selector_t *namespace_selector, + v1_label_selector_t *object_selector, + list_t *resource_rules +); + +void v1alpha1_match_resources_free(v1alpha1_match_resources_t *v1alpha1_match_resources); + +v1alpha1_match_resources_t *v1alpha1_match_resources_parseFromJSON(cJSON *v1alpha1_match_resourcesJSON); + +cJSON *v1alpha1_match_resources_convertToJSON(v1alpha1_match_resources_t *v1alpha1_match_resources); + +#endif /* _v1alpha1_match_resources_H_ */ + diff --git a/kubernetes/model/v1alpha1_named_rule_with_operations.c b/kubernetes/model/v1alpha1_named_rule_with_operations.c new file mode 100644 index 00000000..014667bb --- /dev/null +++ b/kubernetes/model/v1alpha1_named_rule_with_operations.c @@ -0,0 +1,363 @@ +#include +#include +#include +#include "v1alpha1_named_rule_with_operations.h" + + + +v1alpha1_named_rule_with_operations_t *v1alpha1_named_rule_with_operations_create( + list_t *api_groups, + list_t *api_versions, + list_t *operations, + list_t *resource_names, + list_t *resources, + char *scope + ) { + v1alpha1_named_rule_with_operations_t *v1alpha1_named_rule_with_operations_local_var = malloc(sizeof(v1alpha1_named_rule_with_operations_t)); + if (!v1alpha1_named_rule_with_operations_local_var) { + return NULL; + } + v1alpha1_named_rule_with_operations_local_var->api_groups = api_groups; + v1alpha1_named_rule_with_operations_local_var->api_versions = api_versions; + v1alpha1_named_rule_with_operations_local_var->operations = operations; + v1alpha1_named_rule_with_operations_local_var->resource_names = resource_names; + v1alpha1_named_rule_with_operations_local_var->resources = resources; + v1alpha1_named_rule_with_operations_local_var->scope = scope; + + return v1alpha1_named_rule_with_operations_local_var; +} + + +void v1alpha1_named_rule_with_operations_free(v1alpha1_named_rule_with_operations_t *v1alpha1_named_rule_with_operations) { + if(NULL == v1alpha1_named_rule_with_operations){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_named_rule_with_operations->api_groups) { + list_ForEach(listEntry, v1alpha1_named_rule_with_operations->api_groups) { + free(listEntry->data); + } + list_freeList(v1alpha1_named_rule_with_operations->api_groups); + v1alpha1_named_rule_with_operations->api_groups = NULL; + } + if (v1alpha1_named_rule_with_operations->api_versions) { + list_ForEach(listEntry, v1alpha1_named_rule_with_operations->api_versions) { + free(listEntry->data); + } + list_freeList(v1alpha1_named_rule_with_operations->api_versions); + v1alpha1_named_rule_with_operations->api_versions = NULL; + } + if (v1alpha1_named_rule_with_operations->operations) { + list_ForEach(listEntry, v1alpha1_named_rule_with_operations->operations) { + free(listEntry->data); + } + list_freeList(v1alpha1_named_rule_with_operations->operations); + v1alpha1_named_rule_with_operations->operations = NULL; + } + if (v1alpha1_named_rule_with_operations->resource_names) { + list_ForEach(listEntry, v1alpha1_named_rule_with_operations->resource_names) { + free(listEntry->data); + } + list_freeList(v1alpha1_named_rule_with_operations->resource_names); + v1alpha1_named_rule_with_operations->resource_names = NULL; + } + if (v1alpha1_named_rule_with_operations->resources) { + list_ForEach(listEntry, v1alpha1_named_rule_with_operations->resources) { + free(listEntry->data); + } + list_freeList(v1alpha1_named_rule_with_operations->resources); + v1alpha1_named_rule_with_operations->resources = NULL; + } + if (v1alpha1_named_rule_with_operations->scope) { + free(v1alpha1_named_rule_with_operations->scope); + v1alpha1_named_rule_with_operations->scope = NULL; + } + free(v1alpha1_named_rule_with_operations); +} + +cJSON *v1alpha1_named_rule_with_operations_convertToJSON(v1alpha1_named_rule_with_operations_t *v1alpha1_named_rule_with_operations) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_named_rule_with_operations->api_groups + if(v1alpha1_named_rule_with_operations->api_groups) { + cJSON *api_groups = cJSON_AddArrayToObject(item, "apiGroups"); + if(api_groups == NULL) { + goto fail; //primitive container + } + + listEntry_t *api_groupsListEntry; + list_ForEach(api_groupsListEntry, v1alpha1_named_rule_with_operations->api_groups) { + if(cJSON_AddStringToObject(api_groups, "", (char*)api_groupsListEntry->data) == NULL) + { + goto fail; + } + } + } + + + // v1alpha1_named_rule_with_operations->api_versions + if(v1alpha1_named_rule_with_operations->api_versions) { + cJSON *api_versions = cJSON_AddArrayToObject(item, "apiVersions"); + if(api_versions == NULL) { + goto fail; //primitive container + } + + listEntry_t *api_versionsListEntry; + list_ForEach(api_versionsListEntry, v1alpha1_named_rule_with_operations->api_versions) { + if(cJSON_AddStringToObject(api_versions, "", (char*)api_versionsListEntry->data) == NULL) + { + goto fail; + } + } + } + + + // v1alpha1_named_rule_with_operations->operations + if(v1alpha1_named_rule_with_operations->operations) { + cJSON *operations = cJSON_AddArrayToObject(item, "operations"); + if(operations == NULL) { + goto fail; //primitive container + } + + listEntry_t *operationsListEntry; + list_ForEach(operationsListEntry, v1alpha1_named_rule_with_operations->operations) { + if(cJSON_AddStringToObject(operations, "", (char*)operationsListEntry->data) == NULL) + { + goto fail; + } + } + } + + + // v1alpha1_named_rule_with_operations->resource_names + if(v1alpha1_named_rule_with_operations->resource_names) { + cJSON *resource_names = cJSON_AddArrayToObject(item, "resourceNames"); + if(resource_names == NULL) { + goto fail; //primitive container + } + + listEntry_t *resource_namesListEntry; + list_ForEach(resource_namesListEntry, v1alpha1_named_rule_with_operations->resource_names) { + if(cJSON_AddStringToObject(resource_names, "", (char*)resource_namesListEntry->data) == NULL) + { + goto fail; + } + } + } + + + // v1alpha1_named_rule_with_operations->resources + if(v1alpha1_named_rule_with_operations->resources) { + cJSON *resources = cJSON_AddArrayToObject(item, "resources"); + if(resources == NULL) { + goto fail; //primitive container + } + + listEntry_t *resourcesListEntry; + list_ForEach(resourcesListEntry, v1alpha1_named_rule_with_operations->resources) { + if(cJSON_AddStringToObject(resources, "", (char*)resourcesListEntry->data) == NULL) + { + goto fail; + } + } + } + + + // v1alpha1_named_rule_with_operations->scope + if(v1alpha1_named_rule_with_operations->scope) { + if(cJSON_AddStringToObject(item, "scope", v1alpha1_named_rule_with_operations->scope) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_named_rule_with_operations_t *v1alpha1_named_rule_with_operations_parseFromJSON(cJSON *v1alpha1_named_rule_with_operationsJSON){ + + v1alpha1_named_rule_with_operations_t *v1alpha1_named_rule_with_operations_local_var = NULL; + + // define the local list for v1alpha1_named_rule_with_operations->api_groups + list_t *api_groupsList = NULL; + + // define the local list for v1alpha1_named_rule_with_operations->api_versions + list_t *api_versionsList = NULL; + + // define the local list for v1alpha1_named_rule_with_operations->operations + list_t *operationsList = NULL; + + // define the local list for v1alpha1_named_rule_with_operations->resource_names + list_t *resource_namesList = NULL; + + // define the local list for v1alpha1_named_rule_with_operations->resources + list_t *resourcesList = NULL; + + // v1alpha1_named_rule_with_operations->api_groups + cJSON *api_groups = cJSON_GetObjectItemCaseSensitive(v1alpha1_named_rule_with_operationsJSON, "apiGroups"); + if (api_groups) { + cJSON *api_groups_local = NULL; + if(!cJSON_IsArray(api_groups)) { + goto end;//primitive container + } + api_groupsList = list_createList(); + + cJSON_ArrayForEach(api_groups_local, api_groups) + { + if(!cJSON_IsString(api_groups_local)) + { + goto end; + } + list_addElement(api_groupsList , strdup(api_groups_local->valuestring)); + } + } + + // v1alpha1_named_rule_with_operations->api_versions + cJSON *api_versions = cJSON_GetObjectItemCaseSensitive(v1alpha1_named_rule_with_operationsJSON, "apiVersions"); + if (api_versions) { + cJSON *api_versions_local = NULL; + if(!cJSON_IsArray(api_versions)) { + goto end;//primitive container + } + api_versionsList = list_createList(); + + cJSON_ArrayForEach(api_versions_local, api_versions) + { + if(!cJSON_IsString(api_versions_local)) + { + goto end; + } + list_addElement(api_versionsList , strdup(api_versions_local->valuestring)); + } + } + + // v1alpha1_named_rule_with_operations->operations + cJSON *operations = cJSON_GetObjectItemCaseSensitive(v1alpha1_named_rule_with_operationsJSON, "operations"); + if (operations) { + cJSON *operations_local = NULL; + if(!cJSON_IsArray(operations)) { + goto end;//primitive container + } + operationsList = list_createList(); + + cJSON_ArrayForEach(operations_local, operations) + { + if(!cJSON_IsString(operations_local)) + { + goto end; + } + list_addElement(operationsList , strdup(operations_local->valuestring)); + } + } + + // v1alpha1_named_rule_with_operations->resource_names + cJSON *resource_names = cJSON_GetObjectItemCaseSensitive(v1alpha1_named_rule_with_operationsJSON, "resourceNames"); + if (resource_names) { + cJSON *resource_names_local = NULL; + if(!cJSON_IsArray(resource_names)) { + goto end;//primitive container + } + resource_namesList = list_createList(); + + cJSON_ArrayForEach(resource_names_local, resource_names) + { + if(!cJSON_IsString(resource_names_local)) + { + goto end; + } + list_addElement(resource_namesList , strdup(resource_names_local->valuestring)); + } + } + + // v1alpha1_named_rule_with_operations->resources + cJSON *resources = cJSON_GetObjectItemCaseSensitive(v1alpha1_named_rule_with_operationsJSON, "resources"); + if (resources) { + cJSON *resources_local = NULL; + if(!cJSON_IsArray(resources)) { + goto end;//primitive container + } + resourcesList = list_createList(); + + cJSON_ArrayForEach(resources_local, resources) + { + if(!cJSON_IsString(resources_local)) + { + goto end; + } + list_addElement(resourcesList , strdup(resources_local->valuestring)); + } + } + + // v1alpha1_named_rule_with_operations->scope + cJSON *scope = cJSON_GetObjectItemCaseSensitive(v1alpha1_named_rule_with_operationsJSON, "scope"); + if (scope) { + if(!cJSON_IsString(scope) && !cJSON_IsNull(scope)) + { + goto end; //String + } + } + + + v1alpha1_named_rule_with_operations_local_var = v1alpha1_named_rule_with_operations_create ( + api_groups ? api_groupsList : NULL, + api_versions ? api_versionsList : NULL, + operations ? operationsList : NULL, + resource_names ? resource_namesList : NULL, + resources ? resourcesList : NULL, + scope && !cJSON_IsNull(scope) ? strdup(scope->valuestring) : NULL + ); + + return v1alpha1_named_rule_with_operations_local_var; +end: + if (api_groupsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, api_groupsList) { + free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(api_groupsList); + api_groupsList = NULL; + } + if (api_versionsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, api_versionsList) { + free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(api_versionsList); + api_versionsList = NULL; + } + if (operationsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, operationsList) { + free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(operationsList); + operationsList = NULL; + } + if (resource_namesList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, resource_namesList) { + free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(resource_namesList); + resource_namesList = NULL; + } + if (resourcesList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, resourcesList) { + free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(resourcesList); + resourcesList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_named_rule_with_operations.h b/kubernetes/model/v1alpha1_named_rule_with_operations.h new file mode 100644 index 00000000..8138d79b --- /dev/null +++ b/kubernetes/model/v1alpha1_named_rule_with_operations.h @@ -0,0 +1,47 @@ +/* + * v1alpha1_named_rule_with_operations.h + * + * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. + */ + +#ifndef _v1alpha1_named_rule_with_operations_H_ +#define _v1alpha1_named_rule_with_operations_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_named_rule_with_operations_t v1alpha1_named_rule_with_operations_t; + + + + +typedef struct v1alpha1_named_rule_with_operations_t { + list_t *api_groups; //primitive container + list_t *api_versions; //primitive container + list_t *operations; //primitive container + list_t *resource_names; //primitive container + list_t *resources; //primitive container + char *scope; // string + +} v1alpha1_named_rule_with_operations_t; + +v1alpha1_named_rule_with_operations_t *v1alpha1_named_rule_with_operations_create( + list_t *api_groups, + list_t *api_versions, + list_t *operations, + list_t *resource_names, + list_t *resources, + char *scope +); + +void v1alpha1_named_rule_with_operations_free(v1alpha1_named_rule_with_operations_t *v1alpha1_named_rule_with_operations); + +v1alpha1_named_rule_with_operations_t *v1alpha1_named_rule_with_operations_parseFromJSON(cJSON *v1alpha1_named_rule_with_operationsJSON); + +cJSON *v1alpha1_named_rule_with_operations_convertToJSON(v1alpha1_named_rule_with_operations_t *v1alpha1_named_rule_with_operations); + +#endif /* _v1alpha1_named_rule_with_operations_H_ */ + diff --git a/kubernetes/model/v1alpha1_param_kind.c b/kubernetes/model/v1alpha1_param_kind.c new file mode 100644 index 00000000..a25f8eb3 --- /dev/null +++ b/kubernetes/model/v1alpha1_param_kind.c @@ -0,0 +1,97 @@ +#include +#include +#include +#include "v1alpha1_param_kind.h" + + + +v1alpha1_param_kind_t *v1alpha1_param_kind_create( + char *api_version, + char *kind + ) { + v1alpha1_param_kind_t *v1alpha1_param_kind_local_var = malloc(sizeof(v1alpha1_param_kind_t)); + if (!v1alpha1_param_kind_local_var) { + return NULL; + } + v1alpha1_param_kind_local_var->api_version = api_version; + v1alpha1_param_kind_local_var->kind = kind; + + return v1alpha1_param_kind_local_var; +} + + +void v1alpha1_param_kind_free(v1alpha1_param_kind_t *v1alpha1_param_kind) { + if(NULL == v1alpha1_param_kind){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_param_kind->api_version) { + free(v1alpha1_param_kind->api_version); + v1alpha1_param_kind->api_version = NULL; + } + if (v1alpha1_param_kind->kind) { + free(v1alpha1_param_kind->kind); + v1alpha1_param_kind->kind = NULL; + } + free(v1alpha1_param_kind); +} + +cJSON *v1alpha1_param_kind_convertToJSON(v1alpha1_param_kind_t *v1alpha1_param_kind) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_param_kind->api_version + if(v1alpha1_param_kind->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_param_kind->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_param_kind->kind + if(v1alpha1_param_kind->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_param_kind->kind) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_param_kind_t *v1alpha1_param_kind_parseFromJSON(cJSON *v1alpha1_param_kindJSON){ + + v1alpha1_param_kind_t *v1alpha1_param_kind_local_var = NULL; + + // v1alpha1_param_kind->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_param_kindJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_param_kind->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_param_kindJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + + v1alpha1_param_kind_local_var = v1alpha1_param_kind_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL + ); + + return v1alpha1_param_kind_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_param_kind.h b/kubernetes/model/v1alpha1_param_kind.h new file mode 100644 index 00000000..4fb04f43 --- /dev/null +++ b/kubernetes/model/v1alpha1_param_kind.h @@ -0,0 +1,39 @@ +/* + * v1alpha1_param_kind.h + * + * ParamKind is a tuple of Group Kind and Version. + */ + +#ifndef _v1alpha1_param_kind_H_ +#define _v1alpha1_param_kind_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_param_kind_t v1alpha1_param_kind_t; + + + + +typedef struct v1alpha1_param_kind_t { + char *api_version; // string + char *kind; // string + +} v1alpha1_param_kind_t; + +v1alpha1_param_kind_t *v1alpha1_param_kind_create( + char *api_version, + char *kind +); + +void v1alpha1_param_kind_free(v1alpha1_param_kind_t *v1alpha1_param_kind); + +v1alpha1_param_kind_t *v1alpha1_param_kind_parseFromJSON(cJSON *v1alpha1_param_kindJSON); + +cJSON *v1alpha1_param_kind_convertToJSON(v1alpha1_param_kind_t *v1alpha1_param_kind); + +#endif /* _v1alpha1_param_kind_H_ */ + diff --git a/kubernetes/model/v1alpha1_param_ref.c b/kubernetes/model/v1alpha1_param_ref.c new file mode 100644 index 00000000..a78b5836 --- /dev/null +++ b/kubernetes/model/v1alpha1_param_ref.c @@ -0,0 +1,97 @@ +#include +#include +#include +#include "v1alpha1_param_ref.h" + + + +v1alpha1_param_ref_t *v1alpha1_param_ref_create( + char *name, + char *_namespace + ) { + v1alpha1_param_ref_t *v1alpha1_param_ref_local_var = malloc(sizeof(v1alpha1_param_ref_t)); + if (!v1alpha1_param_ref_local_var) { + return NULL; + } + v1alpha1_param_ref_local_var->name = name; + v1alpha1_param_ref_local_var->_namespace = _namespace; + + return v1alpha1_param_ref_local_var; +} + + +void v1alpha1_param_ref_free(v1alpha1_param_ref_t *v1alpha1_param_ref) { + if(NULL == v1alpha1_param_ref){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_param_ref->name) { + free(v1alpha1_param_ref->name); + v1alpha1_param_ref->name = NULL; + } + if (v1alpha1_param_ref->_namespace) { + free(v1alpha1_param_ref->_namespace); + v1alpha1_param_ref->_namespace = NULL; + } + free(v1alpha1_param_ref); +} + +cJSON *v1alpha1_param_ref_convertToJSON(v1alpha1_param_ref_t *v1alpha1_param_ref) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_param_ref->name + if(v1alpha1_param_ref->name) { + if(cJSON_AddStringToObject(item, "name", v1alpha1_param_ref->name) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_param_ref->_namespace + if(v1alpha1_param_ref->_namespace) { + if(cJSON_AddStringToObject(item, "namespace", v1alpha1_param_ref->_namespace) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_param_ref_t *v1alpha1_param_ref_parseFromJSON(cJSON *v1alpha1_param_refJSON){ + + v1alpha1_param_ref_t *v1alpha1_param_ref_local_var = NULL; + + // v1alpha1_param_ref->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1alpha1_param_refJSON, "name"); + if (name) { + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) + { + goto end; //String + } + } + + // v1alpha1_param_ref->_namespace + cJSON *_namespace = cJSON_GetObjectItemCaseSensitive(v1alpha1_param_refJSON, "namespace"); + if (_namespace) { + if(!cJSON_IsString(_namespace) && !cJSON_IsNull(_namespace)) + { + goto end; //String + } + } + + + v1alpha1_param_ref_local_var = v1alpha1_param_ref_create ( + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, + _namespace && !cJSON_IsNull(_namespace) ? strdup(_namespace->valuestring) : NULL + ); + + return v1alpha1_param_ref_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_param_ref.h b/kubernetes/model/v1alpha1_param_ref.h new file mode 100644 index 00000000..18614ddd --- /dev/null +++ b/kubernetes/model/v1alpha1_param_ref.h @@ -0,0 +1,39 @@ +/* + * v1alpha1_param_ref.h + * + * ParamRef references a parameter resource + */ + +#ifndef _v1alpha1_param_ref_H_ +#define _v1alpha1_param_ref_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_param_ref_t v1alpha1_param_ref_t; + + + + +typedef struct v1alpha1_param_ref_t { + char *name; // string + char *_namespace; // string + +} v1alpha1_param_ref_t; + +v1alpha1_param_ref_t *v1alpha1_param_ref_create( + char *name, + char *_namespace +); + +void v1alpha1_param_ref_free(v1alpha1_param_ref_t *v1alpha1_param_ref); + +v1alpha1_param_ref_t *v1alpha1_param_ref_parseFromJSON(cJSON *v1alpha1_param_refJSON); + +cJSON *v1alpha1_param_ref_convertToJSON(v1alpha1_param_ref_t *v1alpha1_param_ref); + +#endif /* _v1alpha1_param_ref_H_ */ + diff --git a/kubernetes/model/v1alpha1_pod_scheduling.c b/kubernetes/model/v1alpha1_pod_scheduling.c new file mode 100644 index 00000000..afbd21c2 --- /dev/null +++ b/kubernetes/model/v1alpha1_pod_scheduling.c @@ -0,0 +1,200 @@ +#include +#include +#include +#include "v1alpha1_pod_scheduling.h" + + + +v1alpha1_pod_scheduling_t *v1alpha1_pod_scheduling_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_pod_scheduling_spec_t *spec, + v1alpha1_pod_scheduling_status_t *status + ) { + v1alpha1_pod_scheduling_t *v1alpha1_pod_scheduling_local_var = malloc(sizeof(v1alpha1_pod_scheduling_t)); + if (!v1alpha1_pod_scheduling_local_var) { + return NULL; + } + v1alpha1_pod_scheduling_local_var->api_version = api_version; + v1alpha1_pod_scheduling_local_var->kind = kind; + v1alpha1_pod_scheduling_local_var->metadata = metadata; + v1alpha1_pod_scheduling_local_var->spec = spec; + v1alpha1_pod_scheduling_local_var->status = status; + + return v1alpha1_pod_scheduling_local_var; +} + + +void v1alpha1_pod_scheduling_free(v1alpha1_pod_scheduling_t *v1alpha1_pod_scheduling) { + if(NULL == v1alpha1_pod_scheduling){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_pod_scheduling->api_version) { + free(v1alpha1_pod_scheduling->api_version); + v1alpha1_pod_scheduling->api_version = NULL; + } + if (v1alpha1_pod_scheduling->kind) { + free(v1alpha1_pod_scheduling->kind); + v1alpha1_pod_scheduling->kind = NULL; + } + if (v1alpha1_pod_scheduling->metadata) { + v1_object_meta_free(v1alpha1_pod_scheduling->metadata); + v1alpha1_pod_scheduling->metadata = NULL; + } + if (v1alpha1_pod_scheduling->spec) { + v1alpha1_pod_scheduling_spec_free(v1alpha1_pod_scheduling->spec); + v1alpha1_pod_scheduling->spec = NULL; + } + if (v1alpha1_pod_scheduling->status) { + v1alpha1_pod_scheduling_status_free(v1alpha1_pod_scheduling->status); + v1alpha1_pod_scheduling->status = NULL; + } + free(v1alpha1_pod_scheduling); +} + +cJSON *v1alpha1_pod_scheduling_convertToJSON(v1alpha1_pod_scheduling_t *v1alpha1_pod_scheduling) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_pod_scheduling->api_version + if(v1alpha1_pod_scheduling->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_pod_scheduling->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_pod_scheduling->kind + if(v1alpha1_pod_scheduling->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_pod_scheduling->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_pod_scheduling->metadata + if(v1alpha1_pod_scheduling->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1alpha1_pod_scheduling->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_pod_scheduling->spec + if (!v1alpha1_pod_scheduling->spec) { + goto fail; + } + cJSON *spec_local_JSON = v1alpha1_pod_scheduling_spec_convertToJSON(v1alpha1_pod_scheduling->spec); + if(spec_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "spec", spec_local_JSON); + if(item->child == NULL) { + goto fail; + } + + + // v1alpha1_pod_scheduling->status + if(v1alpha1_pod_scheduling->status) { + cJSON *status_local_JSON = v1alpha1_pod_scheduling_status_convertToJSON(v1alpha1_pod_scheduling->status); + if(status_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "status", status_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_pod_scheduling_t *v1alpha1_pod_scheduling_parseFromJSON(cJSON *v1alpha1_pod_schedulingJSON){ + + v1alpha1_pod_scheduling_t *v1alpha1_pod_scheduling_local_var = NULL; + + // define the local variable for v1alpha1_pod_scheduling->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1alpha1_pod_scheduling->spec + v1alpha1_pod_scheduling_spec_t *spec_local_nonprim = NULL; + + // define the local variable for v1alpha1_pod_scheduling->status + v1alpha1_pod_scheduling_status_t *status_local_nonprim = NULL; + + // v1alpha1_pod_scheduling->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_schedulingJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_pod_scheduling->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_schedulingJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_pod_scheduling->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_schedulingJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1alpha1_pod_scheduling->spec + cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_schedulingJSON, "spec"); + if (!spec) { + goto end; + } + + + spec_local_nonprim = v1alpha1_pod_scheduling_spec_parseFromJSON(spec); //nonprimitive + + // v1alpha1_pod_scheduling->status + cJSON *status = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_schedulingJSON, "status"); + if (status) { + status_local_nonprim = v1alpha1_pod_scheduling_status_parseFromJSON(status); //nonprimitive + } + + + v1alpha1_pod_scheduling_local_var = v1alpha1_pod_scheduling_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL, + spec_local_nonprim, + status ? status_local_nonprim : NULL + ); + + return v1alpha1_pod_scheduling_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (spec_local_nonprim) { + v1alpha1_pod_scheduling_spec_free(spec_local_nonprim); + spec_local_nonprim = NULL; + } + if (status_local_nonprim) { + v1alpha1_pod_scheduling_status_free(status_local_nonprim); + status_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_pod_scheduling.h b/kubernetes/model/v1alpha1_pod_scheduling.h new file mode 100644 index 00000000..866688cd --- /dev/null +++ b/kubernetes/model/v1alpha1_pod_scheduling.h @@ -0,0 +1,48 @@ +/* + * v1alpha1_pod_scheduling.h + * + * PodScheduling objects hold information that is needed to schedule a Pod with ResourceClaims that use \"WaitForFirstConsumer\" allocation mode. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + */ + +#ifndef _v1alpha1_pod_scheduling_H_ +#define _v1alpha1_pod_scheduling_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_pod_scheduling_t v1alpha1_pod_scheduling_t; + +#include "v1_object_meta.h" +#include "v1alpha1_pod_scheduling_spec.h" +#include "v1alpha1_pod_scheduling_status.h" + + + +typedef struct v1alpha1_pod_scheduling_t { + char *api_version; // string + char *kind; // string + struct v1_object_meta_t *metadata; //model + struct v1alpha1_pod_scheduling_spec_t *spec; //model + struct v1alpha1_pod_scheduling_status_t *status; //model + +} v1alpha1_pod_scheduling_t; + +v1alpha1_pod_scheduling_t *v1alpha1_pod_scheduling_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_pod_scheduling_spec_t *spec, + v1alpha1_pod_scheduling_status_t *status +); + +void v1alpha1_pod_scheduling_free(v1alpha1_pod_scheduling_t *v1alpha1_pod_scheduling); + +v1alpha1_pod_scheduling_t *v1alpha1_pod_scheduling_parseFromJSON(cJSON *v1alpha1_pod_schedulingJSON); + +cJSON *v1alpha1_pod_scheduling_convertToJSON(v1alpha1_pod_scheduling_t *v1alpha1_pod_scheduling); + +#endif /* _v1alpha1_pod_scheduling_H_ */ + diff --git a/kubernetes/model/v1alpha1_pod_scheduling_list.c b/kubernetes/model/v1alpha1_pod_scheduling_list.c new file mode 100644 index 00000000..02c28354 --- /dev/null +++ b/kubernetes/model/v1alpha1_pod_scheduling_list.c @@ -0,0 +1,197 @@ +#include +#include +#include +#include "v1alpha1_pod_scheduling_list.h" + + + +v1alpha1_pod_scheduling_list_t *v1alpha1_pod_scheduling_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata + ) { + v1alpha1_pod_scheduling_list_t *v1alpha1_pod_scheduling_list_local_var = malloc(sizeof(v1alpha1_pod_scheduling_list_t)); + if (!v1alpha1_pod_scheduling_list_local_var) { + return NULL; + } + v1alpha1_pod_scheduling_list_local_var->api_version = api_version; + v1alpha1_pod_scheduling_list_local_var->items = items; + v1alpha1_pod_scheduling_list_local_var->kind = kind; + v1alpha1_pod_scheduling_list_local_var->metadata = metadata; + + return v1alpha1_pod_scheduling_list_local_var; +} + + +void v1alpha1_pod_scheduling_list_free(v1alpha1_pod_scheduling_list_t *v1alpha1_pod_scheduling_list) { + if(NULL == v1alpha1_pod_scheduling_list){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_pod_scheduling_list->api_version) { + free(v1alpha1_pod_scheduling_list->api_version); + v1alpha1_pod_scheduling_list->api_version = NULL; + } + if (v1alpha1_pod_scheduling_list->items) { + list_ForEach(listEntry, v1alpha1_pod_scheduling_list->items) { + v1alpha1_pod_scheduling_free(listEntry->data); + } + list_freeList(v1alpha1_pod_scheduling_list->items); + v1alpha1_pod_scheduling_list->items = NULL; + } + if (v1alpha1_pod_scheduling_list->kind) { + free(v1alpha1_pod_scheduling_list->kind); + v1alpha1_pod_scheduling_list->kind = NULL; + } + if (v1alpha1_pod_scheduling_list->metadata) { + v1_list_meta_free(v1alpha1_pod_scheduling_list->metadata); + v1alpha1_pod_scheduling_list->metadata = NULL; + } + free(v1alpha1_pod_scheduling_list); +} + +cJSON *v1alpha1_pod_scheduling_list_convertToJSON(v1alpha1_pod_scheduling_list_t *v1alpha1_pod_scheduling_list) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_pod_scheduling_list->api_version + if(v1alpha1_pod_scheduling_list->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_pod_scheduling_list->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_pod_scheduling_list->items + if (!v1alpha1_pod_scheduling_list->items) { + goto fail; + } + cJSON *items = cJSON_AddArrayToObject(item, "items"); + if(items == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *itemsListEntry; + if (v1alpha1_pod_scheduling_list->items) { + list_ForEach(itemsListEntry, v1alpha1_pod_scheduling_list->items) { + cJSON *itemLocal = v1alpha1_pod_scheduling_convertToJSON(itemsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(items, itemLocal); + } + } + + + // v1alpha1_pod_scheduling_list->kind + if(v1alpha1_pod_scheduling_list->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_pod_scheduling_list->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_pod_scheduling_list->metadata + if(v1alpha1_pod_scheduling_list->metadata) { + cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1alpha1_pod_scheduling_list->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_pod_scheduling_list_t *v1alpha1_pod_scheduling_list_parseFromJSON(cJSON *v1alpha1_pod_scheduling_listJSON){ + + v1alpha1_pod_scheduling_list_t *v1alpha1_pod_scheduling_list_local_var = NULL; + + // define the local list for v1alpha1_pod_scheduling_list->items + list_t *itemsList = NULL; + + // define the local variable for v1alpha1_pod_scheduling_list->metadata + v1_list_meta_t *metadata_local_nonprim = NULL; + + // v1alpha1_pod_scheduling_list->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_scheduling_listJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_pod_scheduling_list->items + cJSON *items = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_scheduling_listJSON, "items"); + if (!items) { + goto end; + } + + + cJSON *items_local_nonprimitive = NULL; + if(!cJSON_IsArray(items)){ + goto end; //nonprimitive container + } + + itemsList = list_createList(); + + cJSON_ArrayForEach(items_local_nonprimitive,items ) + { + if(!cJSON_IsObject(items_local_nonprimitive)){ + goto end; + } + v1alpha1_pod_scheduling_t *itemsItem = v1alpha1_pod_scheduling_parseFromJSON(items_local_nonprimitive); + + list_addElement(itemsList, itemsItem); + } + + // v1alpha1_pod_scheduling_list->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_scheduling_listJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_pod_scheduling_list->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_scheduling_listJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive + } + + + v1alpha1_pod_scheduling_list_local_var = v1alpha1_pod_scheduling_list_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + itemsList, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL + ); + + return v1alpha1_pod_scheduling_list_local_var; +end: + if (itemsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, itemsList) { + v1alpha1_pod_scheduling_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(itemsList); + itemsList = NULL; + } + if (metadata_local_nonprim) { + v1_list_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_pod_scheduling_list.h b/kubernetes/model/v1alpha1_pod_scheduling_list.h new file mode 100644 index 00000000..975188e1 --- /dev/null +++ b/kubernetes/model/v1alpha1_pod_scheduling_list.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_pod_scheduling_list.h + * + * PodSchedulingList is a collection of Pod scheduling objects. + */ + +#ifndef _v1alpha1_pod_scheduling_list_H_ +#define _v1alpha1_pod_scheduling_list_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_pod_scheduling_list_t v1alpha1_pod_scheduling_list_t; + +#include "v1_list_meta.h" +#include "v1alpha1_pod_scheduling.h" + + + +typedef struct v1alpha1_pod_scheduling_list_t { + char *api_version; // string + list_t *items; //nonprimitive container + char *kind; // string + struct v1_list_meta_t *metadata; //model + +} v1alpha1_pod_scheduling_list_t; + +v1alpha1_pod_scheduling_list_t *v1alpha1_pod_scheduling_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata +); + +void v1alpha1_pod_scheduling_list_free(v1alpha1_pod_scheduling_list_t *v1alpha1_pod_scheduling_list); + +v1alpha1_pod_scheduling_list_t *v1alpha1_pod_scheduling_list_parseFromJSON(cJSON *v1alpha1_pod_scheduling_listJSON); + +cJSON *v1alpha1_pod_scheduling_list_convertToJSON(v1alpha1_pod_scheduling_list_t *v1alpha1_pod_scheduling_list); + +#endif /* _v1alpha1_pod_scheduling_list_H_ */ + diff --git a/kubernetes/model/v1alpha1_pod_scheduling_spec.c b/kubernetes/model/v1alpha1_pod_scheduling_spec.c new file mode 100644 index 00000000..057786d7 --- /dev/null +++ b/kubernetes/model/v1alpha1_pod_scheduling_spec.c @@ -0,0 +1,131 @@ +#include +#include +#include +#include "v1alpha1_pod_scheduling_spec.h" + + + +v1alpha1_pod_scheduling_spec_t *v1alpha1_pod_scheduling_spec_create( + list_t *potential_nodes, + char *selected_node + ) { + v1alpha1_pod_scheduling_spec_t *v1alpha1_pod_scheduling_spec_local_var = malloc(sizeof(v1alpha1_pod_scheduling_spec_t)); + if (!v1alpha1_pod_scheduling_spec_local_var) { + return NULL; + } + v1alpha1_pod_scheduling_spec_local_var->potential_nodes = potential_nodes; + v1alpha1_pod_scheduling_spec_local_var->selected_node = selected_node; + + return v1alpha1_pod_scheduling_spec_local_var; +} + + +void v1alpha1_pod_scheduling_spec_free(v1alpha1_pod_scheduling_spec_t *v1alpha1_pod_scheduling_spec) { + if(NULL == v1alpha1_pod_scheduling_spec){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_pod_scheduling_spec->potential_nodes) { + list_ForEach(listEntry, v1alpha1_pod_scheduling_spec->potential_nodes) { + free(listEntry->data); + } + list_freeList(v1alpha1_pod_scheduling_spec->potential_nodes); + v1alpha1_pod_scheduling_spec->potential_nodes = NULL; + } + if (v1alpha1_pod_scheduling_spec->selected_node) { + free(v1alpha1_pod_scheduling_spec->selected_node); + v1alpha1_pod_scheduling_spec->selected_node = NULL; + } + free(v1alpha1_pod_scheduling_spec); +} + +cJSON *v1alpha1_pod_scheduling_spec_convertToJSON(v1alpha1_pod_scheduling_spec_t *v1alpha1_pod_scheduling_spec) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_pod_scheduling_spec->potential_nodes + if(v1alpha1_pod_scheduling_spec->potential_nodes) { + cJSON *potential_nodes = cJSON_AddArrayToObject(item, "potentialNodes"); + if(potential_nodes == NULL) { + goto fail; //primitive container + } + + listEntry_t *potential_nodesListEntry; + list_ForEach(potential_nodesListEntry, v1alpha1_pod_scheduling_spec->potential_nodes) { + if(cJSON_AddStringToObject(potential_nodes, "", (char*)potential_nodesListEntry->data) == NULL) + { + goto fail; + } + } + } + + + // v1alpha1_pod_scheduling_spec->selected_node + if(v1alpha1_pod_scheduling_spec->selected_node) { + if(cJSON_AddStringToObject(item, "selectedNode", v1alpha1_pod_scheduling_spec->selected_node) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_pod_scheduling_spec_t *v1alpha1_pod_scheduling_spec_parseFromJSON(cJSON *v1alpha1_pod_scheduling_specJSON){ + + v1alpha1_pod_scheduling_spec_t *v1alpha1_pod_scheduling_spec_local_var = NULL; + + // define the local list for v1alpha1_pod_scheduling_spec->potential_nodes + list_t *potential_nodesList = NULL; + + // v1alpha1_pod_scheduling_spec->potential_nodes + cJSON *potential_nodes = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_scheduling_specJSON, "potentialNodes"); + if (potential_nodes) { + cJSON *potential_nodes_local = NULL; + if(!cJSON_IsArray(potential_nodes)) { + goto end;//primitive container + } + potential_nodesList = list_createList(); + + cJSON_ArrayForEach(potential_nodes_local, potential_nodes) + { + if(!cJSON_IsString(potential_nodes_local)) + { + goto end; + } + list_addElement(potential_nodesList , strdup(potential_nodes_local->valuestring)); + } + } + + // v1alpha1_pod_scheduling_spec->selected_node + cJSON *selected_node = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_scheduling_specJSON, "selectedNode"); + if (selected_node) { + if(!cJSON_IsString(selected_node) && !cJSON_IsNull(selected_node)) + { + goto end; //String + } + } + + + v1alpha1_pod_scheduling_spec_local_var = v1alpha1_pod_scheduling_spec_create ( + potential_nodes ? potential_nodesList : NULL, + selected_node && !cJSON_IsNull(selected_node) ? strdup(selected_node->valuestring) : NULL + ); + + return v1alpha1_pod_scheduling_spec_local_var; +end: + if (potential_nodesList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, potential_nodesList) { + free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(potential_nodesList); + potential_nodesList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_pod_scheduling_spec.h b/kubernetes/model/v1alpha1_pod_scheduling_spec.h new file mode 100644 index 00000000..3dcd02ea --- /dev/null +++ b/kubernetes/model/v1alpha1_pod_scheduling_spec.h @@ -0,0 +1,39 @@ +/* + * v1alpha1_pod_scheduling_spec.h + * + * PodSchedulingSpec describes where resources for the Pod are needed. + */ + +#ifndef _v1alpha1_pod_scheduling_spec_H_ +#define _v1alpha1_pod_scheduling_spec_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_pod_scheduling_spec_t v1alpha1_pod_scheduling_spec_t; + + + + +typedef struct v1alpha1_pod_scheduling_spec_t { + list_t *potential_nodes; //primitive container + char *selected_node; // string + +} v1alpha1_pod_scheduling_spec_t; + +v1alpha1_pod_scheduling_spec_t *v1alpha1_pod_scheduling_spec_create( + list_t *potential_nodes, + char *selected_node +); + +void v1alpha1_pod_scheduling_spec_free(v1alpha1_pod_scheduling_spec_t *v1alpha1_pod_scheduling_spec); + +v1alpha1_pod_scheduling_spec_t *v1alpha1_pod_scheduling_spec_parseFromJSON(cJSON *v1alpha1_pod_scheduling_specJSON); + +cJSON *v1alpha1_pod_scheduling_spec_convertToJSON(v1alpha1_pod_scheduling_spec_t *v1alpha1_pod_scheduling_spec); + +#endif /* _v1alpha1_pod_scheduling_spec_H_ */ + diff --git a/kubernetes/model/v1alpha1_pod_scheduling_status.c b/kubernetes/model/v1alpha1_pod_scheduling_status.c new file mode 100644 index 00000000..ca459e56 --- /dev/null +++ b/kubernetes/model/v1alpha1_pod_scheduling_status.c @@ -0,0 +1,112 @@ +#include +#include +#include +#include "v1alpha1_pod_scheduling_status.h" + + + +v1alpha1_pod_scheduling_status_t *v1alpha1_pod_scheduling_status_create( + list_t *resource_claims + ) { + v1alpha1_pod_scheduling_status_t *v1alpha1_pod_scheduling_status_local_var = malloc(sizeof(v1alpha1_pod_scheduling_status_t)); + if (!v1alpha1_pod_scheduling_status_local_var) { + return NULL; + } + v1alpha1_pod_scheduling_status_local_var->resource_claims = resource_claims; + + return v1alpha1_pod_scheduling_status_local_var; +} + + +void v1alpha1_pod_scheduling_status_free(v1alpha1_pod_scheduling_status_t *v1alpha1_pod_scheduling_status) { + if(NULL == v1alpha1_pod_scheduling_status){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_pod_scheduling_status->resource_claims) { + list_ForEach(listEntry, v1alpha1_pod_scheduling_status->resource_claims) { + v1alpha1_resource_claim_scheduling_status_free(listEntry->data); + } + list_freeList(v1alpha1_pod_scheduling_status->resource_claims); + v1alpha1_pod_scheduling_status->resource_claims = NULL; + } + free(v1alpha1_pod_scheduling_status); +} + +cJSON *v1alpha1_pod_scheduling_status_convertToJSON(v1alpha1_pod_scheduling_status_t *v1alpha1_pod_scheduling_status) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_pod_scheduling_status->resource_claims + if(v1alpha1_pod_scheduling_status->resource_claims) { + cJSON *resource_claims = cJSON_AddArrayToObject(item, "resourceClaims"); + if(resource_claims == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *resource_claimsListEntry; + if (v1alpha1_pod_scheduling_status->resource_claims) { + list_ForEach(resource_claimsListEntry, v1alpha1_pod_scheduling_status->resource_claims) { + cJSON *itemLocal = v1alpha1_resource_claim_scheduling_status_convertToJSON(resource_claimsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(resource_claims, itemLocal); + } + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_pod_scheduling_status_t *v1alpha1_pod_scheduling_status_parseFromJSON(cJSON *v1alpha1_pod_scheduling_statusJSON){ + + v1alpha1_pod_scheduling_status_t *v1alpha1_pod_scheduling_status_local_var = NULL; + + // define the local list for v1alpha1_pod_scheduling_status->resource_claims + list_t *resource_claimsList = NULL; + + // v1alpha1_pod_scheduling_status->resource_claims + cJSON *resource_claims = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_scheduling_statusJSON, "resourceClaims"); + if (resource_claims) { + cJSON *resource_claims_local_nonprimitive = NULL; + if(!cJSON_IsArray(resource_claims)){ + goto end; //nonprimitive container + } + + resource_claimsList = list_createList(); + + cJSON_ArrayForEach(resource_claims_local_nonprimitive,resource_claims ) + { + if(!cJSON_IsObject(resource_claims_local_nonprimitive)){ + goto end; + } + v1alpha1_resource_claim_scheduling_status_t *resource_claimsItem = v1alpha1_resource_claim_scheduling_status_parseFromJSON(resource_claims_local_nonprimitive); + + list_addElement(resource_claimsList, resource_claimsItem); + } + } + + + v1alpha1_pod_scheduling_status_local_var = v1alpha1_pod_scheduling_status_create ( + resource_claims ? resource_claimsList : NULL + ); + + return v1alpha1_pod_scheduling_status_local_var; +end: + if (resource_claimsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, resource_claimsList) { + v1alpha1_resource_claim_scheduling_status_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(resource_claimsList); + resource_claimsList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_pod_scheduling_status.h b/kubernetes/model/v1alpha1_pod_scheduling_status.h new file mode 100644 index 00000000..d94e39c6 --- /dev/null +++ b/kubernetes/model/v1alpha1_pod_scheduling_status.h @@ -0,0 +1,38 @@ +/* + * v1alpha1_pod_scheduling_status.h + * + * PodSchedulingStatus describes where resources for the Pod can be allocated. + */ + +#ifndef _v1alpha1_pod_scheduling_status_H_ +#define _v1alpha1_pod_scheduling_status_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_pod_scheduling_status_t v1alpha1_pod_scheduling_status_t; + +#include "v1alpha1_resource_claim_scheduling_status.h" + + + +typedef struct v1alpha1_pod_scheduling_status_t { + list_t *resource_claims; //nonprimitive container + +} v1alpha1_pod_scheduling_status_t; + +v1alpha1_pod_scheduling_status_t *v1alpha1_pod_scheduling_status_create( + list_t *resource_claims +); + +void v1alpha1_pod_scheduling_status_free(v1alpha1_pod_scheduling_status_t *v1alpha1_pod_scheduling_status); + +v1alpha1_pod_scheduling_status_t *v1alpha1_pod_scheduling_status_parseFromJSON(cJSON *v1alpha1_pod_scheduling_statusJSON); + +cJSON *v1alpha1_pod_scheduling_status_convertToJSON(v1alpha1_pod_scheduling_status_t *v1alpha1_pod_scheduling_status); + +#endif /* _v1alpha1_pod_scheduling_status_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_claim.c b/kubernetes/model/v1alpha1_resource_claim.c new file mode 100644 index 00000000..c29bf7df --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim.c @@ -0,0 +1,200 @@ +#include +#include +#include +#include "v1alpha1_resource_claim.h" + + + +v1alpha1_resource_claim_t *v1alpha1_resource_claim_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_resource_claim_spec_t *spec, + v1alpha1_resource_claim_status_t *status + ) { + v1alpha1_resource_claim_t *v1alpha1_resource_claim_local_var = malloc(sizeof(v1alpha1_resource_claim_t)); + if (!v1alpha1_resource_claim_local_var) { + return NULL; + } + v1alpha1_resource_claim_local_var->api_version = api_version; + v1alpha1_resource_claim_local_var->kind = kind; + v1alpha1_resource_claim_local_var->metadata = metadata; + v1alpha1_resource_claim_local_var->spec = spec; + v1alpha1_resource_claim_local_var->status = status; + + return v1alpha1_resource_claim_local_var; +} + + +void v1alpha1_resource_claim_free(v1alpha1_resource_claim_t *v1alpha1_resource_claim) { + if(NULL == v1alpha1_resource_claim){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_claim->api_version) { + free(v1alpha1_resource_claim->api_version); + v1alpha1_resource_claim->api_version = NULL; + } + if (v1alpha1_resource_claim->kind) { + free(v1alpha1_resource_claim->kind); + v1alpha1_resource_claim->kind = NULL; + } + if (v1alpha1_resource_claim->metadata) { + v1_object_meta_free(v1alpha1_resource_claim->metadata); + v1alpha1_resource_claim->metadata = NULL; + } + if (v1alpha1_resource_claim->spec) { + v1alpha1_resource_claim_spec_free(v1alpha1_resource_claim->spec); + v1alpha1_resource_claim->spec = NULL; + } + if (v1alpha1_resource_claim->status) { + v1alpha1_resource_claim_status_free(v1alpha1_resource_claim->status); + v1alpha1_resource_claim->status = NULL; + } + free(v1alpha1_resource_claim); +} + +cJSON *v1alpha1_resource_claim_convertToJSON(v1alpha1_resource_claim_t *v1alpha1_resource_claim) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_claim->api_version + if(v1alpha1_resource_claim->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_resource_claim->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim->kind + if(v1alpha1_resource_claim->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_resource_claim->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim->metadata + if(v1alpha1_resource_claim->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1alpha1_resource_claim->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_resource_claim->spec + if (!v1alpha1_resource_claim->spec) { + goto fail; + } + cJSON *spec_local_JSON = v1alpha1_resource_claim_spec_convertToJSON(v1alpha1_resource_claim->spec); + if(spec_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "spec", spec_local_JSON); + if(item->child == NULL) { + goto fail; + } + + + // v1alpha1_resource_claim->status + if(v1alpha1_resource_claim->status) { + cJSON *status_local_JSON = v1alpha1_resource_claim_status_convertToJSON(v1alpha1_resource_claim->status); + if(status_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "status", status_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_claim_t *v1alpha1_resource_claim_parseFromJSON(cJSON *v1alpha1_resource_claimJSON){ + + v1alpha1_resource_claim_t *v1alpha1_resource_claim_local_var = NULL; + + // define the local variable for v1alpha1_resource_claim->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1alpha1_resource_claim->spec + v1alpha1_resource_claim_spec_t *spec_local_nonprim = NULL; + + // define the local variable for v1alpha1_resource_claim->status + v1alpha1_resource_claim_status_t *status_local_nonprim = NULL; + + // v1alpha1_resource_claim->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claimJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claimJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claimJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1alpha1_resource_claim->spec + cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claimJSON, "spec"); + if (!spec) { + goto end; + } + + + spec_local_nonprim = v1alpha1_resource_claim_spec_parseFromJSON(spec); //nonprimitive + + // v1alpha1_resource_claim->status + cJSON *status = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claimJSON, "status"); + if (status) { + status_local_nonprim = v1alpha1_resource_claim_status_parseFromJSON(status); //nonprimitive + } + + + v1alpha1_resource_claim_local_var = v1alpha1_resource_claim_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL, + spec_local_nonprim, + status ? status_local_nonprim : NULL + ); + + return v1alpha1_resource_claim_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (spec_local_nonprim) { + v1alpha1_resource_claim_spec_free(spec_local_nonprim); + spec_local_nonprim = NULL; + } + if (status_local_nonprim) { + v1alpha1_resource_claim_status_free(status_local_nonprim); + status_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_claim.h b/kubernetes/model/v1alpha1_resource_claim.h new file mode 100644 index 00000000..99c0e0bb --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim.h @@ -0,0 +1,48 @@ +/* + * v1alpha1_resource_claim.h + * + * ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + */ + +#ifndef _v1alpha1_resource_claim_H_ +#define _v1alpha1_resource_claim_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_claim_t v1alpha1_resource_claim_t; + +#include "v1_object_meta.h" +#include "v1alpha1_resource_claim_spec.h" +#include "v1alpha1_resource_claim_status.h" + + + +typedef struct v1alpha1_resource_claim_t { + char *api_version; // string + char *kind; // string + struct v1_object_meta_t *metadata; //model + struct v1alpha1_resource_claim_spec_t *spec; //model + struct v1alpha1_resource_claim_status_t *status; //model + +} v1alpha1_resource_claim_t; + +v1alpha1_resource_claim_t *v1alpha1_resource_claim_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_resource_claim_spec_t *spec, + v1alpha1_resource_claim_status_t *status +); + +void v1alpha1_resource_claim_free(v1alpha1_resource_claim_t *v1alpha1_resource_claim); + +v1alpha1_resource_claim_t *v1alpha1_resource_claim_parseFromJSON(cJSON *v1alpha1_resource_claimJSON); + +cJSON *v1alpha1_resource_claim_convertToJSON(v1alpha1_resource_claim_t *v1alpha1_resource_claim); + +#endif /* _v1alpha1_resource_claim_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_claim_consumer_reference.c b/kubernetes/model/v1alpha1_resource_claim_consumer_reference.c new file mode 100644 index 00000000..a8db1b98 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_consumer_reference.c @@ -0,0 +1,157 @@ +#include +#include +#include +#include "v1alpha1_resource_claim_consumer_reference.h" + + + +v1alpha1_resource_claim_consumer_reference_t *v1alpha1_resource_claim_consumer_reference_create( + char *api_group, + char *name, + char *resource, + char *uid + ) { + v1alpha1_resource_claim_consumer_reference_t *v1alpha1_resource_claim_consumer_reference_local_var = malloc(sizeof(v1alpha1_resource_claim_consumer_reference_t)); + if (!v1alpha1_resource_claim_consumer_reference_local_var) { + return NULL; + } + v1alpha1_resource_claim_consumer_reference_local_var->api_group = api_group; + v1alpha1_resource_claim_consumer_reference_local_var->name = name; + v1alpha1_resource_claim_consumer_reference_local_var->resource = resource; + v1alpha1_resource_claim_consumer_reference_local_var->uid = uid; + + return v1alpha1_resource_claim_consumer_reference_local_var; +} + + +void v1alpha1_resource_claim_consumer_reference_free(v1alpha1_resource_claim_consumer_reference_t *v1alpha1_resource_claim_consumer_reference) { + if(NULL == v1alpha1_resource_claim_consumer_reference){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_claim_consumer_reference->api_group) { + free(v1alpha1_resource_claim_consumer_reference->api_group); + v1alpha1_resource_claim_consumer_reference->api_group = NULL; + } + if (v1alpha1_resource_claim_consumer_reference->name) { + free(v1alpha1_resource_claim_consumer_reference->name); + v1alpha1_resource_claim_consumer_reference->name = NULL; + } + if (v1alpha1_resource_claim_consumer_reference->resource) { + free(v1alpha1_resource_claim_consumer_reference->resource); + v1alpha1_resource_claim_consumer_reference->resource = NULL; + } + if (v1alpha1_resource_claim_consumer_reference->uid) { + free(v1alpha1_resource_claim_consumer_reference->uid); + v1alpha1_resource_claim_consumer_reference->uid = NULL; + } + free(v1alpha1_resource_claim_consumer_reference); +} + +cJSON *v1alpha1_resource_claim_consumer_reference_convertToJSON(v1alpha1_resource_claim_consumer_reference_t *v1alpha1_resource_claim_consumer_reference) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_claim_consumer_reference->api_group + if(v1alpha1_resource_claim_consumer_reference->api_group) { + if(cJSON_AddStringToObject(item, "apiGroup", v1alpha1_resource_claim_consumer_reference->api_group) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_consumer_reference->name + if (!v1alpha1_resource_claim_consumer_reference->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1alpha1_resource_claim_consumer_reference->name) == NULL) { + goto fail; //String + } + + + // v1alpha1_resource_claim_consumer_reference->resource + if (!v1alpha1_resource_claim_consumer_reference->resource) { + goto fail; + } + if(cJSON_AddStringToObject(item, "resource", v1alpha1_resource_claim_consumer_reference->resource) == NULL) { + goto fail; //String + } + + + // v1alpha1_resource_claim_consumer_reference->uid + if (!v1alpha1_resource_claim_consumer_reference->uid) { + goto fail; + } + if(cJSON_AddStringToObject(item, "uid", v1alpha1_resource_claim_consumer_reference->uid) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_claim_consumer_reference_t *v1alpha1_resource_claim_consumer_reference_parseFromJSON(cJSON *v1alpha1_resource_claim_consumer_referenceJSON){ + + v1alpha1_resource_claim_consumer_reference_t *v1alpha1_resource_claim_consumer_reference_local_var = NULL; + + // v1alpha1_resource_claim_consumer_reference->api_group + cJSON *api_group = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_consumer_referenceJSON, "apiGroup"); + if (api_group) { + if(!cJSON_IsString(api_group) && !cJSON_IsNull(api_group)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_consumer_reference->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_consumer_referenceJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + // v1alpha1_resource_claim_consumer_reference->resource + cJSON *resource = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_consumer_referenceJSON, "resource"); + if (!resource) { + goto end; + } + + + if(!cJSON_IsString(resource)) + { + goto end; //String + } + + // v1alpha1_resource_claim_consumer_reference->uid + cJSON *uid = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_consumer_referenceJSON, "uid"); + if (!uid) { + goto end; + } + + + if(!cJSON_IsString(uid)) + { + goto end; //String + } + + + v1alpha1_resource_claim_consumer_reference_local_var = v1alpha1_resource_claim_consumer_reference_create ( + api_group && !cJSON_IsNull(api_group) ? strdup(api_group->valuestring) : NULL, + strdup(name->valuestring), + strdup(resource->valuestring), + strdup(uid->valuestring) + ); + + return v1alpha1_resource_claim_consumer_reference_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_claim_consumer_reference.h b/kubernetes/model/v1alpha1_resource_claim_consumer_reference.h new file mode 100644 index 00000000..4a666c9b --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_consumer_reference.h @@ -0,0 +1,43 @@ +/* + * v1alpha1_resource_claim_consumer_reference.h + * + * ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim. + */ + +#ifndef _v1alpha1_resource_claim_consumer_reference_H_ +#define _v1alpha1_resource_claim_consumer_reference_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_claim_consumer_reference_t v1alpha1_resource_claim_consumer_reference_t; + + + + +typedef struct v1alpha1_resource_claim_consumer_reference_t { + char *api_group; // string + char *name; // string + char *resource; // string + char *uid; // string + +} v1alpha1_resource_claim_consumer_reference_t; + +v1alpha1_resource_claim_consumer_reference_t *v1alpha1_resource_claim_consumer_reference_create( + char *api_group, + char *name, + char *resource, + char *uid +); + +void v1alpha1_resource_claim_consumer_reference_free(v1alpha1_resource_claim_consumer_reference_t *v1alpha1_resource_claim_consumer_reference); + +v1alpha1_resource_claim_consumer_reference_t *v1alpha1_resource_claim_consumer_reference_parseFromJSON(cJSON *v1alpha1_resource_claim_consumer_referenceJSON); + +cJSON *v1alpha1_resource_claim_consumer_reference_convertToJSON(v1alpha1_resource_claim_consumer_reference_t *v1alpha1_resource_claim_consumer_reference); + +#endif /* _v1alpha1_resource_claim_consumer_reference_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_claim_list.c b/kubernetes/model/v1alpha1_resource_claim_list.c new file mode 100644 index 00000000..e20ccbb6 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_list.c @@ -0,0 +1,197 @@ +#include +#include +#include +#include "v1alpha1_resource_claim_list.h" + + + +v1alpha1_resource_claim_list_t *v1alpha1_resource_claim_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata + ) { + v1alpha1_resource_claim_list_t *v1alpha1_resource_claim_list_local_var = malloc(sizeof(v1alpha1_resource_claim_list_t)); + if (!v1alpha1_resource_claim_list_local_var) { + return NULL; + } + v1alpha1_resource_claim_list_local_var->api_version = api_version; + v1alpha1_resource_claim_list_local_var->items = items; + v1alpha1_resource_claim_list_local_var->kind = kind; + v1alpha1_resource_claim_list_local_var->metadata = metadata; + + return v1alpha1_resource_claim_list_local_var; +} + + +void v1alpha1_resource_claim_list_free(v1alpha1_resource_claim_list_t *v1alpha1_resource_claim_list) { + if(NULL == v1alpha1_resource_claim_list){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_claim_list->api_version) { + free(v1alpha1_resource_claim_list->api_version); + v1alpha1_resource_claim_list->api_version = NULL; + } + if (v1alpha1_resource_claim_list->items) { + list_ForEach(listEntry, v1alpha1_resource_claim_list->items) { + v1alpha1_resource_claim_free(listEntry->data); + } + list_freeList(v1alpha1_resource_claim_list->items); + v1alpha1_resource_claim_list->items = NULL; + } + if (v1alpha1_resource_claim_list->kind) { + free(v1alpha1_resource_claim_list->kind); + v1alpha1_resource_claim_list->kind = NULL; + } + if (v1alpha1_resource_claim_list->metadata) { + v1_list_meta_free(v1alpha1_resource_claim_list->metadata); + v1alpha1_resource_claim_list->metadata = NULL; + } + free(v1alpha1_resource_claim_list); +} + +cJSON *v1alpha1_resource_claim_list_convertToJSON(v1alpha1_resource_claim_list_t *v1alpha1_resource_claim_list) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_claim_list->api_version + if(v1alpha1_resource_claim_list->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_resource_claim_list->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_list->items + if (!v1alpha1_resource_claim_list->items) { + goto fail; + } + cJSON *items = cJSON_AddArrayToObject(item, "items"); + if(items == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *itemsListEntry; + if (v1alpha1_resource_claim_list->items) { + list_ForEach(itemsListEntry, v1alpha1_resource_claim_list->items) { + cJSON *itemLocal = v1alpha1_resource_claim_convertToJSON(itemsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(items, itemLocal); + } + } + + + // v1alpha1_resource_claim_list->kind + if(v1alpha1_resource_claim_list->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_resource_claim_list->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_list->metadata + if(v1alpha1_resource_claim_list->metadata) { + cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1alpha1_resource_claim_list->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_claim_list_t *v1alpha1_resource_claim_list_parseFromJSON(cJSON *v1alpha1_resource_claim_listJSON){ + + v1alpha1_resource_claim_list_t *v1alpha1_resource_claim_list_local_var = NULL; + + // define the local list for v1alpha1_resource_claim_list->items + list_t *itemsList = NULL; + + // define the local variable for v1alpha1_resource_claim_list->metadata + v1_list_meta_t *metadata_local_nonprim = NULL; + + // v1alpha1_resource_claim_list->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_listJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_list->items + cJSON *items = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_listJSON, "items"); + if (!items) { + goto end; + } + + + cJSON *items_local_nonprimitive = NULL; + if(!cJSON_IsArray(items)){ + goto end; //nonprimitive container + } + + itemsList = list_createList(); + + cJSON_ArrayForEach(items_local_nonprimitive,items ) + { + if(!cJSON_IsObject(items_local_nonprimitive)){ + goto end; + } + v1alpha1_resource_claim_t *itemsItem = v1alpha1_resource_claim_parseFromJSON(items_local_nonprimitive); + + list_addElement(itemsList, itemsItem); + } + + // v1alpha1_resource_claim_list->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_listJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_list->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_listJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive + } + + + v1alpha1_resource_claim_list_local_var = v1alpha1_resource_claim_list_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + itemsList, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL + ); + + return v1alpha1_resource_claim_list_local_var; +end: + if (itemsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, itemsList) { + v1alpha1_resource_claim_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(itemsList); + itemsList = NULL; + } + if (metadata_local_nonprim) { + v1_list_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_claim_list.h b/kubernetes/model/v1alpha1_resource_claim_list.h new file mode 100644 index 00000000..eda85e4d --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_list.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_resource_claim_list.h + * + * ResourceClaimList is a collection of claims. + */ + +#ifndef _v1alpha1_resource_claim_list_H_ +#define _v1alpha1_resource_claim_list_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_claim_list_t v1alpha1_resource_claim_list_t; + +#include "v1_list_meta.h" +#include "v1alpha1_resource_claim.h" + + + +typedef struct v1alpha1_resource_claim_list_t { + char *api_version; // string + list_t *items; //nonprimitive container + char *kind; // string + struct v1_list_meta_t *metadata; //model + +} v1alpha1_resource_claim_list_t; + +v1alpha1_resource_claim_list_t *v1alpha1_resource_claim_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata +); + +void v1alpha1_resource_claim_list_free(v1alpha1_resource_claim_list_t *v1alpha1_resource_claim_list); + +v1alpha1_resource_claim_list_t *v1alpha1_resource_claim_list_parseFromJSON(cJSON *v1alpha1_resource_claim_listJSON); + +cJSON *v1alpha1_resource_claim_list_convertToJSON(v1alpha1_resource_claim_list_t *v1alpha1_resource_claim_list); + +#endif /* _v1alpha1_resource_claim_list_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_claim_parameters_reference.c b/kubernetes/model/v1alpha1_resource_claim_parameters_reference.c new file mode 100644 index 00000000..a769310c --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_parameters_reference.c @@ -0,0 +1,129 @@ +#include +#include +#include +#include "v1alpha1_resource_claim_parameters_reference.h" + + + +v1alpha1_resource_claim_parameters_reference_t *v1alpha1_resource_claim_parameters_reference_create( + char *api_group, + char *kind, + char *name + ) { + v1alpha1_resource_claim_parameters_reference_t *v1alpha1_resource_claim_parameters_reference_local_var = malloc(sizeof(v1alpha1_resource_claim_parameters_reference_t)); + if (!v1alpha1_resource_claim_parameters_reference_local_var) { + return NULL; + } + v1alpha1_resource_claim_parameters_reference_local_var->api_group = api_group; + v1alpha1_resource_claim_parameters_reference_local_var->kind = kind; + v1alpha1_resource_claim_parameters_reference_local_var->name = name; + + return v1alpha1_resource_claim_parameters_reference_local_var; +} + + +void v1alpha1_resource_claim_parameters_reference_free(v1alpha1_resource_claim_parameters_reference_t *v1alpha1_resource_claim_parameters_reference) { + if(NULL == v1alpha1_resource_claim_parameters_reference){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_claim_parameters_reference->api_group) { + free(v1alpha1_resource_claim_parameters_reference->api_group); + v1alpha1_resource_claim_parameters_reference->api_group = NULL; + } + if (v1alpha1_resource_claim_parameters_reference->kind) { + free(v1alpha1_resource_claim_parameters_reference->kind); + v1alpha1_resource_claim_parameters_reference->kind = NULL; + } + if (v1alpha1_resource_claim_parameters_reference->name) { + free(v1alpha1_resource_claim_parameters_reference->name); + v1alpha1_resource_claim_parameters_reference->name = NULL; + } + free(v1alpha1_resource_claim_parameters_reference); +} + +cJSON *v1alpha1_resource_claim_parameters_reference_convertToJSON(v1alpha1_resource_claim_parameters_reference_t *v1alpha1_resource_claim_parameters_reference) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_claim_parameters_reference->api_group + if(v1alpha1_resource_claim_parameters_reference->api_group) { + if(cJSON_AddStringToObject(item, "apiGroup", v1alpha1_resource_claim_parameters_reference->api_group) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_parameters_reference->kind + if (!v1alpha1_resource_claim_parameters_reference->kind) { + goto fail; + } + if(cJSON_AddStringToObject(item, "kind", v1alpha1_resource_claim_parameters_reference->kind) == NULL) { + goto fail; //String + } + + + // v1alpha1_resource_claim_parameters_reference->name + if (!v1alpha1_resource_claim_parameters_reference->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1alpha1_resource_claim_parameters_reference->name) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_claim_parameters_reference_t *v1alpha1_resource_claim_parameters_reference_parseFromJSON(cJSON *v1alpha1_resource_claim_parameters_referenceJSON){ + + v1alpha1_resource_claim_parameters_reference_t *v1alpha1_resource_claim_parameters_reference_local_var = NULL; + + // v1alpha1_resource_claim_parameters_reference->api_group + cJSON *api_group = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_parameters_referenceJSON, "apiGroup"); + if (api_group) { + if(!cJSON_IsString(api_group) && !cJSON_IsNull(api_group)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_parameters_reference->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_parameters_referenceJSON, "kind"); + if (!kind) { + goto end; + } + + + if(!cJSON_IsString(kind)) + { + goto end; //String + } + + // v1alpha1_resource_claim_parameters_reference->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_parameters_referenceJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + + v1alpha1_resource_claim_parameters_reference_local_var = v1alpha1_resource_claim_parameters_reference_create ( + api_group && !cJSON_IsNull(api_group) ? strdup(api_group->valuestring) : NULL, + strdup(kind->valuestring), + strdup(name->valuestring) + ); + + return v1alpha1_resource_claim_parameters_reference_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_claim_parameters_reference.h b/kubernetes/model/v1alpha1_resource_claim_parameters_reference.h new file mode 100644 index 00000000..3c9b4d51 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_parameters_reference.h @@ -0,0 +1,41 @@ +/* + * v1alpha1_resource_claim_parameters_reference.h + * + * ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim. + */ + +#ifndef _v1alpha1_resource_claim_parameters_reference_H_ +#define _v1alpha1_resource_claim_parameters_reference_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_claim_parameters_reference_t v1alpha1_resource_claim_parameters_reference_t; + + + + +typedef struct v1alpha1_resource_claim_parameters_reference_t { + char *api_group; // string + char *kind; // string + char *name; // string + +} v1alpha1_resource_claim_parameters_reference_t; + +v1alpha1_resource_claim_parameters_reference_t *v1alpha1_resource_claim_parameters_reference_create( + char *api_group, + char *kind, + char *name +); + +void v1alpha1_resource_claim_parameters_reference_free(v1alpha1_resource_claim_parameters_reference_t *v1alpha1_resource_claim_parameters_reference); + +v1alpha1_resource_claim_parameters_reference_t *v1alpha1_resource_claim_parameters_reference_parseFromJSON(cJSON *v1alpha1_resource_claim_parameters_referenceJSON); + +cJSON *v1alpha1_resource_claim_parameters_reference_convertToJSON(v1alpha1_resource_claim_parameters_reference_t *v1alpha1_resource_claim_parameters_reference); + +#endif /* _v1alpha1_resource_claim_parameters_reference_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_claim_scheduling_status.c b/kubernetes/model/v1alpha1_resource_claim_scheduling_status.c new file mode 100644 index 00000000..c8bcf4e7 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_scheduling_status.c @@ -0,0 +1,131 @@ +#include +#include +#include +#include "v1alpha1_resource_claim_scheduling_status.h" + + + +v1alpha1_resource_claim_scheduling_status_t *v1alpha1_resource_claim_scheduling_status_create( + char *name, + list_t *unsuitable_nodes + ) { + v1alpha1_resource_claim_scheduling_status_t *v1alpha1_resource_claim_scheduling_status_local_var = malloc(sizeof(v1alpha1_resource_claim_scheduling_status_t)); + if (!v1alpha1_resource_claim_scheduling_status_local_var) { + return NULL; + } + v1alpha1_resource_claim_scheduling_status_local_var->name = name; + v1alpha1_resource_claim_scheduling_status_local_var->unsuitable_nodes = unsuitable_nodes; + + return v1alpha1_resource_claim_scheduling_status_local_var; +} + + +void v1alpha1_resource_claim_scheduling_status_free(v1alpha1_resource_claim_scheduling_status_t *v1alpha1_resource_claim_scheduling_status) { + if(NULL == v1alpha1_resource_claim_scheduling_status){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_claim_scheduling_status->name) { + free(v1alpha1_resource_claim_scheduling_status->name); + v1alpha1_resource_claim_scheduling_status->name = NULL; + } + if (v1alpha1_resource_claim_scheduling_status->unsuitable_nodes) { + list_ForEach(listEntry, v1alpha1_resource_claim_scheduling_status->unsuitable_nodes) { + free(listEntry->data); + } + list_freeList(v1alpha1_resource_claim_scheduling_status->unsuitable_nodes); + v1alpha1_resource_claim_scheduling_status->unsuitable_nodes = NULL; + } + free(v1alpha1_resource_claim_scheduling_status); +} + +cJSON *v1alpha1_resource_claim_scheduling_status_convertToJSON(v1alpha1_resource_claim_scheduling_status_t *v1alpha1_resource_claim_scheduling_status) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_claim_scheduling_status->name + if(v1alpha1_resource_claim_scheduling_status->name) { + if(cJSON_AddStringToObject(item, "name", v1alpha1_resource_claim_scheduling_status->name) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_scheduling_status->unsuitable_nodes + if(v1alpha1_resource_claim_scheduling_status->unsuitable_nodes) { + cJSON *unsuitable_nodes = cJSON_AddArrayToObject(item, "unsuitableNodes"); + if(unsuitable_nodes == NULL) { + goto fail; //primitive container + } + + listEntry_t *unsuitable_nodesListEntry; + list_ForEach(unsuitable_nodesListEntry, v1alpha1_resource_claim_scheduling_status->unsuitable_nodes) { + if(cJSON_AddStringToObject(unsuitable_nodes, "", (char*)unsuitable_nodesListEntry->data) == NULL) + { + goto fail; + } + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_claim_scheduling_status_t *v1alpha1_resource_claim_scheduling_status_parseFromJSON(cJSON *v1alpha1_resource_claim_scheduling_statusJSON){ + + v1alpha1_resource_claim_scheduling_status_t *v1alpha1_resource_claim_scheduling_status_local_var = NULL; + + // define the local list for v1alpha1_resource_claim_scheduling_status->unsuitable_nodes + list_t *unsuitable_nodesList = NULL; + + // v1alpha1_resource_claim_scheduling_status->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_scheduling_statusJSON, "name"); + if (name) { + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_scheduling_status->unsuitable_nodes + cJSON *unsuitable_nodes = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_scheduling_statusJSON, "unsuitableNodes"); + if (unsuitable_nodes) { + cJSON *unsuitable_nodes_local = NULL; + if(!cJSON_IsArray(unsuitable_nodes)) { + goto end;//primitive container + } + unsuitable_nodesList = list_createList(); + + cJSON_ArrayForEach(unsuitable_nodes_local, unsuitable_nodes) + { + if(!cJSON_IsString(unsuitable_nodes_local)) + { + goto end; + } + list_addElement(unsuitable_nodesList , strdup(unsuitable_nodes_local->valuestring)); + } + } + + + v1alpha1_resource_claim_scheduling_status_local_var = v1alpha1_resource_claim_scheduling_status_create ( + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, + unsuitable_nodes ? unsuitable_nodesList : NULL + ); + + return v1alpha1_resource_claim_scheduling_status_local_var; +end: + if (unsuitable_nodesList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, unsuitable_nodesList) { + free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(unsuitable_nodesList); + unsuitable_nodesList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_claim_scheduling_status.h b/kubernetes/model/v1alpha1_resource_claim_scheduling_status.h new file mode 100644 index 00000000..e8b5ac98 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_scheduling_status.h @@ -0,0 +1,39 @@ +/* + * v1alpha1_resource_claim_scheduling_status.h + * + * ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode. + */ + +#ifndef _v1alpha1_resource_claim_scheduling_status_H_ +#define _v1alpha1_resource_claim_scheduling_status_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_claim_scheduling_status_t v1alpha1_resource_claim_scheduling_status_t; + + + + +typedef struct v1alpha1_resource_claim_scheduling_status_t { + char *name; // string + list_t *unsuitable_nodes; //primitive container + +} v1alpha1_resource_claim_scheduling_status_t; + +v1alpha1_resource_claim_scheduling_status_t *v1alpha1_resource_claim_scheduling_status_create( + char *name, + list_t *unsuitable_nodes +); + +void v1alpha1_resource_claim_scheduling_status_free(v1alpha1_resource_claim_scheduling_status_t *v1alpha1_resource_claim_scheduling_status); + +v1alpha1_resource_claim_scheduling_status_t *v1alpha1_resource_claim_scheduling_status_parseFromJSON(cJSON *v1alpha1_resource_claim_scheduling_statusJSON); + +cJSON *v1alpha1_resource_claim_scheduling_status_convertToJSON(v1alpha1_resource_claim_scheduling_status_t *v1alpha1_resource_claim_scheduling_status); + +#endif /* _v1alpha1_resource_claim_scheduling_status_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_claim_spec.c b/kubernetes/model/v1alpha1_resource_claim_spec.c new file mode 100644 index 00000000..8bf8e3fa --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_spec.c @@ -0,0 +1,134 @@ +#include +#include +#include +#include "v1alpha1_resource_claim_spec.h" + + + +v1alpha1_resource_claim_spec_t *v1alpha1_resource_claim_spec_create( + char *allocation_mode, + v1alpha1_resource_claim_parameters_reference_t *parameters_ref, + char *resource_class_name + ) { + v1alpha1_resource_claim_spec_t *v1alpha1_resource_claim_spec_local_var = malloc(sizeof(v1alpha1_resource_claim_spec_t)); + if (!v1alpha1_resource_claim_spec_local_var) { + return NULL; + } + v1alpha1_resource_claim_spec_local_var->allocation_mode = allocation_mode; + v1alpha1_resource_claim_spec_local_var->parameters_ref = parameters_ref; + v1alpha1_resource_claim_spec_local_var->resource_class_name = resource_class_name; + + return v1alpha1_resource_claim_spec_local_var; +} + + +void v1alpha1_resource_claim_spec_free(v1alpha1_resource_claim_spec_t *v1alpha1_resource_claim_spec) { + if(NULL == v1alpha1_resource_claim_spec){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_claim_spec->allocation_mode) { + free(v1alpha1_resource_claim_spec->allocation_mode); + v1alpha1_resource_claim_spec->allocation_mode = NULL; + } + if (v1alpha1_resource_claim_spec->parameters_ref) { + v1alpha1_resource_claim_parameters_reference_free(v1alpha1_resource_claim_spec->parameters_ref); + v1alpha1_resource_claim_spec->parameters_ref = NULL; + } + if (v1alpha1_resource_claim_spec->resource_class_name) { + free(v1alpha1_resource_claim_spec->resource_class_name); + v1alpha1_resource_claim_spec->resource_class_name = NULL; + } + free(v1alpha1_resource_claim_spec); +} + +cJSON *v1alpha1_resource_claim_spec_convertToJSON(v1alpha1_resource_claim_spec_t *v1alpha1_resource_claim_spec) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_claim_spec->allocation_mode + if(v1alpha1_resource_claim_spec->allocation_mode) { + if(cJSON_AddStringToObject(item, "allocationMode", v1alpha1_resource_claim_spec->allocation_mode) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_spec->parameters_ref + if(v1alpha1_resource_claim_spec->parameters_ref) { + cJSON *parameters_ref_local_JSON = v1alpha1_resource_claim_parameters_reference_convertToJSON(v1alpha1_resource_claim_spec->parameters_ref); + if(parameters_ref_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "parametersRef", parameters_ref_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_resource_claim_spec->resource_class_name + if (!v1alpha1_resource_claim_spec->resource_class_name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "resourceClassName", v1alpha1_resource_claim_spec->resource_class_name) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_claim_spec_t *v1alpha1_resource_claim_spec_parseFromJSON(cJSON *v1alpha1_resource_claim_specJSON){ + + v1alpha1_resource_claim_spec_t *v1alpha1_resource_claim_spec_local_var = NULL; + + // define the local variable for v1alpha1_resource_claim_spec->parameters_ref + v1alpha1_resource_claim_parameters_reference_t *parameters_ref_local_nonprim = NULL; + + // v1alpha1_resource_claim_spec->allocation_mode + cJSON *allocation_mode = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_specJSON, "allocationMode"); + if (allocation_mode) { + if(!cJSON_IsString(allocation_mode) && !cJSON_IsNull(allocation_mode)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_spec->parameters_ref + cJSON *parameters_ref = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_specJSON, "parametersRef"); + if (parameters_ref) { + parameters_ref_local_nonprim = v1alpha1_resource_claim_parameters_reference_parseFromJSON(parameters_ref); //nonprimitive + } + + // v1alpha1_resource_claim_spec->resource_class_name + cJSON *resource_class_name = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_specJSON, "resourceClassName"); + if (!resource_class_name) { + goto end; + } + + + if(!cJSON_IsString(resource_class_name)) + { + goto end; //String + } + + + v1alpha1_resource_claim_spec_local_var = v1alpha1_resource_claim_spec_create ( + allocation_mode && !cJSON_IsNull(allocation_mode) ? strdup(allocation_mode->valuestring) : NULL, + parameters_ref ? parameters_ref_local_nonprim : NULL, + strdup(resource_class_name->valuestring) + ); + + return v1alpha1_resource_claim_spec_local_var; +end: + if (parameters_ref_local_nonprim) { + v1alpha1_resource_claim_parameters_reference_free(parameters_ref_local_nonprim); + parameters_ref_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_claim_spec.h b/kubernetes/model/v1alpha1_resource_claim_spec.h new file mode 100644 index 00000000..e02699d7 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_spec.h @@ -0,0 +1,42 @@ +/* + * v1alpha1_resource_claim_spec.h + * + * ResourceClaimSpec defines how a resource is to be allocated. + */ + +#ifndef _v1alpha1_resource_claim_spec_H_ +#define _v1alpha1_resource_claim_spec_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_claim_spec_t v1alpha1_resource_claim_spec_t; + +#include "v1alpha1_resource_claim_parameters_reference.h" + + + +typedef struct v1alpha1_resource_claim_spec_t { + char *allocation_mode; // string + struct v1alpha1_resource_claim_parameters_reference_t *parameters_ref; //model + char *resource_class_name; // string + +} v1alpha1_resource_claim_spec_t; + +v1alpha1_resource_claim_spec_t *v1alpha1_resource_claim_spec_create( + char *allocation_mode, + v1alpha1_resource_claim_parameters_reference_t *parameters_ref, + char *resource_class_name +); + +void v1alpha1_resource_claim_spec_free(v1alpha1_resource_claim_spec_t *v1alpha1_resource_claim_spec); + +v1alpha1_resource_claim_spec_t *v1alpha1_resource_claim_spec_parseFromJSON(cJSON *v1alpha1_resource_claim_specJSON); + +cJSON *v1alpha1_resource_claim_spec_convertToJSON(v1alpha1_resource_claim_spec_t *v1alpha1_resource_claim_spec); + +#endif /* _v1alpha1_resource_claim_spec_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_claim_status.c b/kubernetes/model/v1alpha1_resource_claim_status.c new file mode 100644 index 00000000..2f8f23e3 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_status.c @@ -0,0 +1,189 @@ +#include +#include +#include +#include "v1alpha1_resource_claim_status.h" + + + +v1alpha1_resource_claim_status_t *v1alpha1_resource_claim_status_create( + v1alpha1_allocation_result_t *allocation, + int deallocation_requested, + char *driver_name, + list_t *reserved_for + ) { + v1alpha1_resource_claim_status_t *v1alpha1_resource_claim_status_local_var = malloc(sizeof(v1alpha1_resource_claim_status_t)); + if (!v1alpha1_resource_claim_status_local_var) { + return NULL; + } + v1alpha1_resource_claim_status_local_var->allocation = allocation; + v1alpha1_resource_claim_status_local_var->deallocation_requested = deallocation_requested; + v1alpha1_resource_claim_status_local_var->driver_name = driver_name; + v1alpha1_resource_claim_status_local_var->reserved_for = reserved_for; + + return v1alpha1_resource_claim_status_local_var; +} + + +void v1alpha1_resource_claim_status_free(v1alpha1_resource_claim_status_t *v1alpha1_resource_claim_status) { + if(NULL == v1alpha1_resource_claim_status){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_claim_status->allocation) { + v1alpha1_allocation_result_free(v1alpha1_resource_claim_status->allocation); + v1alpha1_resource_claim_status->allocation = NULL; + } + if (v1alpha1_resource_claim_status->driver_name) { + free(v1alpha1_resource_claim_status->driver_name); + v1alpha1_resource_claim_status->driver_name = NULL; + } + if (v1alpha1_resource_claim_status->reserved_for) { + list_ForEach(listEntry, v1alpha1_resource_claim_status->reserved_for) { + v1alpha1_resource_claim_consumer_reference_free(listEntry->data); + } + list_freeList(v1alpha1_resource_claim_status->reserved_for); + v1alpha1_resource_claim_status->reserved_for = NULL; + } + free(v1alpha1_resource_claim_status); +} + +cJSON *v1alpha1_resource_claim_status_convertToJSON(v1alpha1_resource_claim_status_t *v1alpha1_resource_claim_status) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_claim_status->allocation + if(v1alpha1_resource_claim_status->allocation) { + cJSON *allocation_local_JSON = v1alpha1_allocation_result_convertToJSON(v1alpha1_resource_claim_status->allocation); + if(allocation_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "allocation", allocation_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_resource_claim_status->deallocation_requested + if(v1alpha1_resource_claim_status->deallocation_requested) { + if(cJSON_AddBoolToObject(item, "deallocationRequested", v1alpha1_resource_claim_status->deallocation_requested) == NULL) { + goto fail; //Bool + } + } + + + // v1alpha1_resource_claim_status->driver_name + if(v1alpha1_resource_claim_status->driver_name) { + if(cJSON_AddStringToObject(item, "driverName", v1alpha1_resource_claim_status->driver_name) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_status->reserved_for + if(v1alpha1_resource_claim_status->reserved_for) { + cJSON *reserved_for = cJSON_AddArrayToObject(item, "reservedFor"); + if(reserved_for == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *reserved_forListEntry; + if (v1alpha1_resource_claim_status->reserved_for) { + list_ForEach(reserved_forListEntry, v1alpha1_resource_claim_status->reserved_for) { + cJSON *itemLocal = v1alpha1_resource_claim_consumer_reference_convertToJSON(reserved_forListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(reserved_for, itemLocal); + } + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_claim_status_t *v1alpha1_resource_claim_status_parseFromJSON(cJSON *v1alpha1_resource_claim_statusJSON){ + + v1alpha1_resource_claim_status_t *v1alpha1_resource_claim_status_local_var = NULL; + + // define the local variable for v1alpha1_resource_claim_status->allocation + v1alpha1_allocation_result_t *allocation_local_nonprim = NULL; + + // define the local list for v1alpha1_resource_claim_status->reserved_for + list_t *reserved_forList = NULL; + + // v1alpha1_resource_claim_status->allocation + cJSON *allocation = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_statusJSON, "allocation"); + if (allocation) { + allocation_local_nonprim = v1alpha1_allocation_result_parseFromJSON(allocation); //nonprimitive + } + + // v1alpha1_resource_claim_status->deallocation_requested + cJSON *deallocation_requested = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_statusJSON, "deallocationRequested"); + if (deallocation_requested) { + if(!cJSON_IsBool(deallocation_requested)) + { + goto end; //Bool + } + } + + // v1alpha1_resource_claim_status->driver_name + cJSON *driver_name = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_statusJSON, "driverName"); + if (driver_name) { + if(!cJSON_IsString(driver_name) && !cJSON_IsNull(driver_name)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_status->reserved_for + cJSON *reserved_for = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_statusJSON, "reservedFor"); + if (reserved_for) { + cJSON *reserved_for_local_nonprimitive = NULL; + if(!cJSON_IsArray(reserved_for)){ + goto end; //nonprimitive container + } + + reserved_forList = list_createList(); + + cJSON_ArrayForEach(reserved_for_local_nonprimitive,reserved_for ) + { + if(!cJSON_IsObject(reserved_for_local_nonprimitive)){ + goto end; + } + v1alpha1_resource_claim_consumer_reference_t *reserved_forItem = v1alpha1_resource_claim_consumer_reference_parseFromJSON(reserved_for_local_nonprimitive); + + list_addElement(reserved_forList, reserved_forItem); + } + } + + + v1alpha1_resource_claim_status_local_var = v1alpha1_resource_claim_status_create ( + allocation ? allocation_local_nonprim : NULL, + deallocation_requested ? deallocation_requested->valueint : 0, + driver_name && !cJSON_IsNull(driver_name) ? strdup(driver_name->valuestring) : NULL, + reserved_for ? reserved_forList : NULL + ); + + return v1alpha1_resource_claim_status_local_var; +end: + if (allocation_local_nonprim) { + v1alpha1_allocation_result_free(allocation_local_nonprim); + allocation_local_nonprim = NULL; + } + if (reserved_forList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, reserved_forList) { + v1alpha1_resource_claim_consumer_reference_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(reserved_forList); + reserved_forList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_claim_status.h b/kubernetes/model/v1alpha1_resource_claim_status.h new file mode 100644 index 00000000..00ab0b9c --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_status.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_resource_claim_status.h + * + * ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are. + */ + +#ifndef _v1alpha1_resource_claim_status_H_ +#define _v1alpha1_resource_claim_status_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_claim_status_t v1alpha1_resource_claim_status_t; + +#include "v1alpha1_allocation_result.h" +#include "v1alpha1_resource_claim_consumer_reference.h" + + + +typedef struct v1alpha1_resource_claim_status_t { + struct v1alpha1_allocation_result_t *allocation; //model + int deallocation_requested; //boolean + char *driver_name; // string + list_t *reserved_for; //nonprimitive container + +} v1alpha1_resource_claim_status_t; + +v1alpha1_resource_claim_status_t *v1alpha1_resource_claim_status_create( + v1alpha1_allocation_result_t *allocation, + int deallocation_requested, + char *driver_name, + list_t *reserved_for +); + +void v1alpha1_resource_claim_status_free(v1alpha1_resource_claim_status_t *v1alpha1_resource_claim_status); + +v1alpha1_resource_claim_status_t *v1alpha1_resource_claim_status_parseFromJSON(cJSON *v1alpha1_resource_claim_statusJSON); + +cJSON *v1alpha1_resource_claim_status_convertToJSON(v1alpha1_resource_claim_status_t *v1alpha1_resource_claim_status); + +#endif /* _v1alpha1_resource_claim_status_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_claim_template.c b/kubernetes/model/v1alpha1_resource_claim_template.c new file mode 100644 index 00000000..545ec55a --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_template.c @@ -0,0 +1,167 @@ +#include +#include +#include +#include "v1alpha1_resource_claim_template.h" + + + +v1alpha1_resource_claim_template_t *v1alpha1_resource_claim_template_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_resource_claim_template_spec_t *spec + ) { + v1alpha1_resource_claim_template_t *v1alpha1_resource_claim_template_local_var = malloc(sizeof(v1alpha1_resource_claim_template_t)); + if (!v1alpha1_resource_claim_template_local_var) { + return NULL; + } + v1alpha1_resource_claim_template_local_var->api_version = api_version; + v1alpha1_resource_claim_template_local_var->kind = kind; + v1alpha1_resource_claim_template_local_var->metadata = metadata; + v1alpha1_resource_claim_template_local_var->spec = spec; + + return v1alpha1_resource_claim_template_local_var; +} + + +void v1alpha1_resource_claim_template_free(v1alpha1_resource_claim_template_t *v1alpha1_resource_claim_template) { + if(NULL == v1alpha1_resource_claim_template){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_claim_template->api_version) { + free(v1alpha1_resource_claim_template->api_version); + v1alpha1_resource_claim_template->api_version = NULL; + } + if (v1alpha1_resource_claim_template->kind) { + free(v1alpha1_resource_claim_template->kind); + v1alpha1_resource_claim_template->kind = NULL; + } + if (v1alpha1_resource_claim_template->metadata) { + v1_object_meta_free(v1alpha1_resource_claim_template->metadata); + v1alpha1_resource_claim_template->metadata = NULL; + } + if (v1alpha1_resource_claim_template->spec) { + v1alpha1_resource_claim_template_spec_free(v1alpha1_resource_claim_template->spec); + v1alpha1_resource_claim_template->spec = NULL; + } + free(v1alpha1_resource_claim_template); +} + +cJSON *v1alpha1_resource_claim_template_convertToJSON(v1alpha1_resource_claim_template_t *v1alpha1_resource_claim_template) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_claim_template->api_version + if(v1alpha1_resource_claim_template->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_resource_claim_template->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_template->kind + if(v1alpha1_resource_claim_template->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_resource_claim_template->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_template->metadata + if(v1alpha1_resource_claim_template->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1alpha1_resource_claim_template->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_resource_claim_template->spec + if (!v1alpha1_resource_claim_template->spec) { + goto fail; + } + cJSON *spec_local_JSON = v1alpha1_resource_claim_template_spec_convertToJSON(v1alpha1_resource_claim_template->spec); + if(spec_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "spec", spec_local_JSON); + if(item->child == NULL) { + goto fail; + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_claim_template_t *v1alpha1_resource_claim_template_parseFromJSON(cJSON *v1alpha1_resource_claim_templateJSON){ + + v1alpha1_resource_claim_template_t *v1alpha1_resource_claim_template_local_var = NULL; + + // define the local variable for v1alpha1_resource_claim_template->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1alpha1_resource_claim_template->spec + v1alpha1_resource_claim_template_spec_t *spec_local_nonprim = NULL; + + // v1alpha1_resource_claim_template->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_templateJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_template->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_templateJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_template->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_templateJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1alpha1_resource_claim_template->spec + cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_templateJSON, "spec"); + if (!spec) { + goto end; + } + + + spec_local_nonprim = v1alpha1_resource_claim_template_spec_parseFromJSON(spec); //nonprimitive + + + v1alpha1_resource_claim_template_local_var = v1alpha1_resource_claim_template_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL, + spec_local_nonprim + ); + + return v1alpha1_resource_claim_template_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (spec_local_nonprim) { + v1alpha1_resource_claim_template_spec_free(spec_local_nonprim); + spec_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_claim_template.h b/kubernetes/model/v1alpha1_resource_claim_template.h new file mode 100644 index 00000000..1768193b --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_template.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_resource_claim_template.h + * + * ResourceClaimTemplate is used to produce ResourceClaim objects. + */ + +#ifndef _v1alpha1_resource_claim_template_H_ +#define _v1alpha1_resource_claim_template_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_claim_template_t v1alpha1_resource_claim_template_t; + +#include "v1_object_meta.h" +#include "v1alpha1_resource_claim_template_spec.h" + + + +typedef struct v1alpha1_resource_claim_template_t { + char *api_version; // string + char *kind; // string + struct v1_object_meta_t *metadata; //model + struct v1alpha1_resource_claim_template_spec_t *spec; //model + +} v1alpha1_resource_claim_template_t; + +v1alpha1_resource_claim_template_t *v1alpha1_resource_claim_template_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_resource_claim_template_spec_t *spec +); + +void v1alpha1_resource_claim_template_free(v1alpha1_resource_claim_template_t *v1alpha1_resource_claim_template); + +v1alpha1_resource_claim_template_t *v1alpha1_resource_claim_template_parseFromJSON(cJSON *v1alpha1_resource_claim_templateJSON); + +cJSON *v1alpha1_resource_claim_template_convertToJSON(v1alpha1_resource_claim_template_t *v1alpha1_resource_claim_template); + +#endif /* _v1alpha1_resource_claim_template_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_claim_template_list.c b/kubernetes/model/v1alpha1_resource_claim_template_list.c new file mode 100644 index 00000000..9a91e5d6 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_template_list.c @@ -0,0 +1,197 @@ +#include +#include +#include +#include "v1alpha1_resource_claim_template_list.h" + + + +v1alpha1_resource_claim_template_list_t *v1alpha1_resource_claim_template_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata + ) { + v1alpha1_resource_claim_template_list_t *v1alpha1_resource_claim_template_list_local_var = malloc(sizeof(v1alpha1_resource_claim_template_list_t)); + if (!v1alpha1_resource_claim_template_list_local_var) { + return NULL; + } + v1alpha1_resource_claim_template_list_local_var->api_version = api_version; + v1alpha1_resource_claim_template_list_local_var->items = items; + v1alpha1_resource_claim_template_list_local_var->kind = kind; + v1alpha1_resource_claim_template_list_local_var->metadata = metadata; + + return v1alpha1_resource_claim_template_list_local_var; +} + + +void v1alpha1_resource_claim_template_list_free(v1alpha1_resource_claim_template_list_t *v1alpha1_resource_claim_template_list) { + if(NULL == v1alpha1_resource_claim_template_list){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_claim_template_list->api_version) { + free(v1alpha1_resource_claim_template_list->api_version); + v1alpha1_resource_claim_template_list->api_version = NULL; + } + if (v1alpha1_resource_claim_template_list->items) { + list_ForEach(listEntry, v1alpha1_resource_claim_template_list->items) { + v1alpha1_resource_claim_template_free(listEntry->data); + } + list_freeList(v1alpha1_resource_claim_template_list->items); + v1alpha1_resource_claim_template_list->items = NULL; + } + if (v1alpha1_resource_claim_template_list->kind) { + free(v1alpha1_resource_claim_template_list->kind); + v1alpha1_resource_claim_template_list->kind = NULL; + } + if (v1alpha1_resource_claim_template_list->metadata) { + v1_list_meta_free(v1alpha1_resource_claim_template_list->metadata); + v1alpha1_resource_claim_template_list->metadata = NULL; + } + free(v1alpha1_resource_claim_template_list); +} + +cJSON *v1alpha1_resource_claim_template_list_convertToJSON(v1alpha1_resource_claim_template_list_t *v1alpha1_resource_claim_template_list) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_claim_template_list->api_version + if(v1alpha1_resource_claim_template_list->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_resource_claim_template_list->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_template_list->items + if (!v1alpha1_resource_claim_template_list->items) { + goto fail; + } + cJSON *items = cJSON_AddArrayToObject(item, "items"); + if(items == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *itemsListEntry; + if (v1alpha1_resource_claim_template_list->items) { + list_ForEach(itemsListEntry, v1alpha1_resource_claim_template_list->items) { + cJSON *itemLocal = v1alpha1_resource_claim_template_convertToJSON(itemsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(items, itemLocal); + } + } + + + // v1alpha1_resource_claim_template_list->kind + if(v1alpha1_resource_claim_template_list->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_resource_claim_template_list->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_template_list->metadata + if(v1alpha1_resource_claim_template_list->metadata) { + cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1alpha1_resource_claim_template_list->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_claim_template_list_t *v1alpha1_resource_claim_template_list_parseFromJSON(cJSON *v1alpha1_resource_claim_template_listJSON){ + + v1alpha1_resource_claim_template_list_t *v1alpha1_resource_claim_template_list_local_var = NULL; + + // define the local list for v1alpha1_resource_claim_template_list->items + list_t *itemsList = NULL; + + // define the local variable for v1alpha1_resource_claim_template_list->metadata + v1_list_meta_t *metadata_local_nonprim = NULL; + + // v1alpha1_resource_claim_template_list->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_template_listJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_template_list->items + cJSON *items = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_template_listJSON, "items"); + if (!items) { + goto end; + } + + + cJSON *items_local_nonprimitive = NULL; + if(!cJSON_IsArray(items)){ + goto end; //nonprimitive container + } + + itemsList = list_createList(); + + cJSON_ArrayForEach(items_local_nonprimitive,items ) + { + if(!cJSON_IsObject(items_local_nonprimitive)){ + goto end; + } + v1alpha1_resource_claim_template_t *itemsItem = v1alpha1_resource_claim_template_parseFromJSON(items_local_nonprimitive); + + list_addElement(itemsList, itemsItem); + } + + // v1alpha1_resource_claim_template_list->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_template_listJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_template_list->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_template_listJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive + } + + + v1alpha1_resource_claim_template_list_local_var = v1alpha1_resource_claim_template_list_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + itemsList, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL + ); + + return v1alpha1_resource_claim_template_list_local_var; +end: + if (itemsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, itemsList) { + v1alpha1_resource_claim_template_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(itemsList); + itemsList = NULL; + } + if (metadata_local_nonprim) { + v1_list_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_claim_template_list.h b/kubernetes/model/v1alpha1_resource_claim_template_list.h new file mode 100644 index 00000000..2633fbb2 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_template_list.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_resource_claim_template_list.h + * + * ResourceClaimTemplateList is a collection of claim templates. + */ + +#ifndef _v1alpha1_resource_claim_template_list_H_ +#define _v1alpha1_resource_claim_template_list_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_claim_template_list_t v1alpha1_resource_claim_template_list_t; + +#include "v1_list_meta.h" +#include "v1alpha1_resource_claim_template.h" + + + +typedef struct v1alpha1_resource_claim_template_list_t { + char *api_version; // string + list_t *items; //nonprimitive container + char *kind; // string + struct v1_list_meta_t *metadata; //model + +} v1alpha1_resource_claim_template_list_t; + +v1alpha1_resource_claim_template_list_t *v1alpha1_resource_claim_template_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata +); + +void v1alpha1_resource_claim_template_list_free(v1alpha1_resource_claim_template_list_t *v1alpha1_resource_claim_template_list); + +v1alpha1_resource_claim_template_list_t *v1alpha1_resource_claim_template_list_parseFromJSON(cJSON *v1alpha1_resource_claim_template_listJSON); + +cJSON *v1alpha1_resource_claim_template_list_convertToJSON(v1alpha1_resource_claim_template_list_t *v1alpha1_resource_claim_template_list); + +#endif /* _v1alpha1_resource_claim_template_list_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_claim_template_spec.c b/kubernetes/model/v1alpha1_resource_claim_template_spec.c new file mode 100644 index 00000000..d36d9b34 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_template_spec.c @@ -0,0 +1,119 @@ +#include +#include +#include +#include "v1alpha1_resource_claim_template_spec.h" + + + +v1alpha1_resource_claim_template_spec_t *v1alpha1_resource_claim_template_spec_create( + v1_object_meta_t *metadata, + v1alpha1_resource_claim_spec_t *spec + ) { + v1alpha1_resource_claim_template_spec_t *v1alpha1_resource_claim_template_spec_local_var = malloc(sizeof(v1alpha1_resource_claim_template_spec_t)); + if (!v1alpha1_resource_claim_template_spec_local_var) { + return NULL; + } + v1alpha1_resource_claim_template_spec_local_var->metadata = metadata; + v1alpha1_resource_claim_template_spec_local_var->spec = spec; + + return v1alpha1_resource_claim_template_spec_local_var; +} + + +void v1alpha1_resource_claim_template_spec_free(v1alpha1_resource_claim_template_spec_t *v1alpha1_resource_claim_template_spec) { + if(NULL == v1alpha1_resource_claim_template_spec){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_claim_template_spec->metadata) { + v1_object_meta_free(v1alpha1_resource_claim_template_spec->metadata); + v1alpha1_resource_claim_template_spec->metadata = NULL; + } + if (v1alpha1_resource_claim_template_spec->spec) { + v1alpha1_resource_claim_spec_free(v1alpha1_resource_claim_template_spec->spec); + v1alpha1_resource_claim_template_spec->spec = NULL; + } + free(v1alpha1_resource_claim_template_spec); +} + +cJSON *v1alpha1_resource_claim_template_spec_convertToJSON(v1alpha1_resource_claim_template_spec_t *v1alpha1_resource_claim_template_spec) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_claim_template_spec->metadata + if(v1alpha1_resource_claim_template_spec->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1alpha1_resource_claim_template_spec->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_resource_claim_template_spec->spec + if (!v1alpha1_resource_claim_template_spec->spec) { + goto fail; + } + cJSON *spec_local_JSON = v1alpha1_resource_claim_spec_convertToJSON(v1alpha1_resource_claim_template_spec->spec); + if(spec_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "spec", spec_local_JSON); + if(item->child == NULL) { + goto fail; + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_claim_template_spec_t *v1alpha1_resource_claim_template_spec_parseFromJSON(cJSON *v1alpha1_resource_claim_template_specJSON){ + + v1alpha1_resource_claim_template_spec_t *v1alpha1_resource_claim_template_spec_local_var = NULL; + + // define the local variable for v1alpha1_resource_claim_template_spec->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1alpha1_resource_claim_template_spec->spec + v1alpha1_resource_claim_spec_t *spec_local_nonprim = NULL; + + // v1alpha1_resource_claim_template_spec->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_template_specJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1alpha1_resource_claim_template_spec->spec + cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_template_specJSON, "spec"); + if (!spec) { + goto end; + } + + + spec_local_nonprim = v1alpha1_resource_claim_spec_parseFromJSON(spec); //nonprimitive + + + v1alpha1_resource_claim_template_spec_local_var = v1alpha1_resource_claim_template_spec_create ( + metadata ? metadata_local_nonprim : NULL, + spec_local_nonprim + ); + + return v1alpha1_resource_claim_template_spec_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (spec_local_nonprim) { + v1alpha1_resource_claim_spec_free(spec_local_nonprim); + spec_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_claim_template_spec.h b/kubernetes/model/v1alpha1_resource_claim_template_spec.h new file mode 100644 index 00000000..7e74098e --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_template_spec.h @@ -0,0 +1,41 @@ +/* + * v1alpha1_resource_claim_template_spec.h + * + * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. + */ + +#ifndef _v1alpha1_resource_claim_template_spec_H_ +#define _v1alpha1_resource_claim_template_spec_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_claim_template_spec_t v1alpha1_resource_claim_template_spec_t; + +#include "v1_object_meta.h" +#include "v1alpha1_resource_claim_spec.h" + + + +typedef struct v1alpha1_resource_claim_template_spec_t { + struct v1_object_meta_t *metadata; //model + struct v1alpha1_resource_claim_spec_t *spec; //model + +} v1alpha1_resource_claim_template_spec_t; + +v1alpha1_resource_claim_template_spec_t *v1alpha1_resource_claim_template_spec_create( + v1_object_meta_t *metadata, + v1alpha1_resource_claim_spec_t *spec +); + +void v1alpha1_resource_claim_template_spec_free(v1alpha1_resource_claim_template_spec_t *v1alpha1_resource_claim_template_spec); + +v1alpha1_resource_claim_template_spec_t *v1alpha1_resource_claim_template_spec_parseFromJSON(cJSON *v1alpha1_resource_claim_template_specJSON); + +cJSON *v1alpha1_resource_claim_template_spec_convertToJSON(v1alpha1_resource_claim_template_spec_t *v1alpha1_resource_claim_template_spec); + +#endif /* _v1alpha1_resource_claim_template_spec_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_class.c b/kubernetes/model/v1alpha1_resource_class.c new file mode 100644 index 00000000..7a6e4914 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_class.c @@ -0,0 +1,224 @@ +#include +#include +#include +#include "v1alpha1_resource_class.h" + + + +v1alpha1_resource_class_t *v1alpha1_resource_class_create( + char *api_version, + char *driver_name, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_resource_class_parameters_reference_t *parameters_ref, + v1_node_selector_t *suitable_nodes + ) { + v1alpha1_resource_class_t *v1alpha1_resource_class_local_var = malloc(sizeof(v1alpha1_resource_class_t)); + if (!v1alpha1_resource_class_local_var) { + return NULL; + } + v1alpha1_resource_class_local_var->api_version = api_version; + v1alpha1_resource_class_local_var->driver_name = driver_name; + v1alpha1_resource_class_local_var->kind = kind; + v1alpha1_resource_class_local_var->metadata = metadata; + v1alpha1_resource_class_local_var->parameters_ref = parameters_ref; + v1alpha1_resource_class_local_var->suitable_nodes = suitable_nodes; + + return v1alpha1_resource_class_local_var; +} + + +void v1alpha1_resource_class_free(v1alpha1_resource_class_t *v1alpha1_resource_class) { + if(NULL == v1alpha1_resource_class){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_class->api_version) { + free(v1alpha1_resource_class->api_version); + v1alpha1_resource_class->api_version = NULL; + } + if (v1alpha1_resource_class->driver_name) { + free(v1alpha1_resource_class->driver_name); + v1alpha1_resource_class->driver_name = NULL; + } + if (v1alpha1_resource_class->kind) { + free(v1alpha1_resource_class->kind); + v1alpha1_resource_class->kind = NULL; + } + if (v1alpha1_resource_class->metadata) { + v1_object_meta_free(v1alpha1_resource_class->metadata); + v1alpha1_resource_class->metadata = NULL; + } + if (v1alpha1_resource_class->parameters_ref) { + v1alpha1_resource_class_parameters_reference_free(v1alpha1_resource_class->parameters_ref); + v1alpha1_resource_class->parameters_ref = NULL; + } + if (v1alpha1_resource_class->suitable_nodes) { + v1_node_selector_free(v1alpha1_resource_class->suitable_nodes); + v1alpha1_resource_class->suitable_nodes = NULL; + } + free(v1alpha1_resource_class); +} + +cJSON *v1alpha1_resource_class_convertToJSON(v1alpha1_resource_class_t *v1alpha1_resource_class) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_class->api_version + if(v1alpha1_resource_class->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_resource_class->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_class->driver_name + if (!v1alpha1_resource_class->driver_name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "driverName", v1alpha1_resource_class->driver_name) == NULL) { + goto fail; //String + } + + + // v1alpha1_resource_class->kind + if(v1alpha1_resource_class->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_resource_class->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_class->metadata + if(v1alpha1_resource_class->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1alpha1_resource_class->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_resource_class->parameters_ref + if(v1alpha1_resource_class->parameters_ref) { + cJSON *parameters_ref_local_JSON = v1alpha1_resource_class_parameters_reference_convertToJSON(v1alpha1_resource_class->parameters_ref); + if(parameters_ref_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "parametersRef", parameters_ref_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_resource_class->suitable_nodes + if(v1alpha1_resource_class->suitable_nodes) { + cJSON *suitable_nodes_local_JSON = v1_node_selector_convertToJSON(v1alpha1_resource_class->suitable_nodes); + if(suitable_nodes_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "suitableNodes", suitable_nodes_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_class_t *v1alpha1_resource_class_parseFromJSON(cJSON *v1alpha1_resource_classJSON){ + + v1alpha1_resource_class_t *v1alpha1_resource_class_local_var = NULL; + + // define the local variable for v1alpha1_resource_class->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1alpha1_resource_class->parameters_ref + v1alpha1_resource_class_parameters_reference_t *parameters_ref_local_nonprim = NULL; + + // define the local variable for v1alpha1_resource_class->suitable_nodes + v1_node_selector_t *suitable_nodes_local_nonprim = NULL; + + // v1alpha1_resource_class->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_classJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_resource_class->driver_name + cJSON *driver_name = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_classJSON, "driverName"); + if (!driver_name) { + goto end; + } + + + if(!cJSON_IsString(driver_name)) + { + goto end; //String + } + + // v1alpha1_resource_class->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_classJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_resource_class->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_classJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1alpha1_resource_class->parameters_ref + cJSON *parameters_ref = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_classJSON, "parametersRef"); + if (parameters_ref) { + parameters_ref_local_nonprim = v1alpha1_resource_class_parameters_reference_parseFromJSON(parameters_ref); //nonprimitive + } + + // v1alpha1_resource_class->suitable_nodes + cJSON *suitable_nodes = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_classJSON, "suitableNodes"); + if (suitable_nodes) { + suitable_nodes_local_nonprim = v1_node_selector_parseFromJSON(suitable_nodes); //nonprimitive + } + + + v1alpha1_resource_class_local_var = v1alpha1_resource_class_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + strdup(driver_name->valuestring), + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL, + parameters_ref ? parameters_ref_local_nonprim : NULL, + suitable_nodes ? suitable_nodes_local_nonprim : NULL + ); + + return v1alpha1_resource_class_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (parameters_ref_local_nonprim) { + v1alpha1_resource_class_parameters_reference_free(parameters_ref_local_nonprim); + parameters_ref_local_nonprim = NULL; + } + if (suitable_nodes_local_nonprim) { + v1_node_selector_free(suitable_nodes_local_nonprim); + suitable_nodes_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_class.h b/kubernetes/model/v1alpha1_resource_class.h new file mode 100644 index 00000000..58bed3aa --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_class.h @@ -0,0 +1,50 @@ +/* + * v1alpha1_resource_class.h + * + * ResourceClass is used by administrators to influence how resources are allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + */ + +#ifndef _v1alpha1_resource_class_H_ +#define _v1alpha1_resource_class_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_class_t v1alpha1_resource_class_t; + +#include "v1_node_selector.h" +#include "v1_object_meta.h" +#include "v1alpha1_resource_class_parameters_reference.h" + + + +typedef struct v1alpha1_resource_class_t { + char *api_version; // string + char *driver_name; // string + char *kind; // string + struct v1_object_meta_t *metadata; //model + struct v1alpha1_resource_class_parameters_reference_t *parameters_ref; //model + struct v1_node_selector_t *suitable_nodes; //model + +} v1alpha1_resource_class_t; + +v1alpha1_resource_class_t *v1alpha1_resource_class_create( + char *api_version, + char *driver_name, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_resource_class_parameters_reference_t *parameters_ref, + v1_node_selector_t *suitable_nodes +); + +void v1alpha1_resource_class_free(v1alpha1_resource_class_t *v1alpha1_resource_class); + +v1alpha1_resource_class_t *v1alpha1_resource_class_parseFromJSON(cJSON *v1alpha1_resource_classJSON); + +cJSON *v1alpha1_resource_class_convertToJSON(v1alpha1_resource_class_t *v1alpha1_resource_class); + +#endif /* _v1alpha1_resource_class_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_class_list.c b/kubernetes/model/v1alpha1_resource_class_list.c new file mode 100644 index 00000000..99e84c68 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_class_list.c @@ -0,0 +1,197 @@ +#include +#include +#include +#include "v1alpha1_resource_class_list.h" + + + +v1alpha1_resource_class_list_t *v1alpha1_resource_class_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata + ) { + v1alpha1_resource_class_list_t *v1alpha1_resource_class_list_local_var = malloc(sizeof(v1alpha1_resource_class_list_t)); + if (!v1alpha1_resource_class_list_local_var) { + return NULL; + } + v1alpha1_resource_class_list_local_var->api_version = api_version; + v1alpha1_resource_class_list_local_var->items = items; + v1alpha1_resource_class_list_local_var->kind = kind; + v1alpha1_resource_class_list_local_var->metadata = metadata; + + return v1alpha1_resource_class_list_local_var; +} + + +void v1alpha1_resource_class_list_free(v1alpha1_resource_class_list_t *v1alpha1_resource_class_list) { + if(NULL == v1alpha1_resource_class_list){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_class_list->api_version) { + free(v1alpha1_resource_class_list->api_version); + v1alpha1_resource_class_list->api_version = NULL; + } + if (v1alpha1_resource_class_list->items) { + list_ForEach(listEntry, v1alpha1_resource_class_list->items) { + v1alpha1_resource_class_free(listEntry->data); + } + list_freeList(v1alpha1_resource_class_list->items); + v1alpha1_resource_class_list->items = NULL; + } + if (v1alpha1_resource_class_list->kind) { + free(v1alpha1_resource_class_list->kind); + v1alpha1_resource_class_list->kind = NULL; + } + if (v1alpha1_resource_class_list->metadata) { + v1_list_meta_free(v1alpha1_resource_class_list->metadata); + v1alpha1_resource_class_list->metadata = NULL; + } + free(v1alpha1_resource_class_list); +} + +cJSON *v1alpha1_resource_class_list_convertToJSON(v1alpha1_resource_class_list_t *v1alpha1_resource_class_list) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_class_list->api_version + if(v1alpha1_resource_class_list->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_resource_class_list->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_class_list->items + if (!v1alpha1_resource_class_list->items) { + goto fail; + } + cJSON *items = cJSON_AddArrayToObject(item, "items"); + if(items == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *itemsListEntry; + if (v1alpha1_resource_class_list->items) { + list_ForEach(itemsListEntry, v1alpha1_resource_class_list->items) { + cJSON *itemLocal = v1alpha1_resource_class_convertToJSON(itemsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(items, itemLocal); + } + } + + + // v1alpha1_resource_class_list->kind + if(v1alpha1_resource_class_list->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_resource_class_list->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_class_list->metadata + if(v1alpha1_resource_class_list->metadata) { + cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1alpha1_resource_class_list->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_class_list_t *v1alpha1_resource_class_list_parseFromJSON(cJSON *v1alpha1_resource_class_listJSON){ + + v1alpha1_resource_class_list_t *v1alpha1_resource_class_list_local_var = NULL; + + // define the local list for v1alpha1_resource_class_list->items + list_t *itemsList = NULL; + + // define the local variable for v1alpha1_resource_class_list->metadata + v1_list_meta_t *metadata_local_nonprim = NULL; + + // v1alpha1_resource_class_list->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_class_listJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_resource_class_list->items + cJSON *items = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_class_listJSON, "items"); + if (!items) { + goto end; + } + + + cJSON *items_local_nonprimitive = NULL; + if(!cJSON_IsArray(items)){ + goto end; //nonprimitive container + } + + itemsList = list_createList(); + + cJSON_ArrayForEach(items_local_nonprimitive,items ) + { + if(!cJSON_IsObject(items_local_nonprimitive)){ + goto end; + } + v1alpha1_resource_class_t *itemsItem = v1alpha1_resource_class_parseFromJSON(items_local_nonprimitive); + + list_addElement(itemsList, itemsItem); + } + + // v1alpha1_resource_class_list->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_class_listJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_resource_class_list->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_class_listJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive + } + + + v1alpha1_resource_class_list_local_var = v1alpha1_resource_class_list_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + itemsList, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL + ); + + return v1alpha1_resource_class_list_local_var; +end: + if (itemsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, itemsList) { + v1alpha1_resource_class_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(itemsList); + itemsList = NULL; + } + if (metadata_local_nonprim) { + v1_list_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_class_list.h b/kubernetes/model/v1alpha1_resource_class_list.h new file mode 100644 index 00000000..e20944c7 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_class_list.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_resource_class_list.h + * + * ResourceClassList is a collection of classes. + */ + +#ifndef _v1alpha1_resource_class_list_H_ +#define _v1alpha1_resource_class_list_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_class_list_t v1alpha1_resource_class_list_t; + +#include "v1_list_meta.h" +#include "v1alpha1_resource_class.h" + + + +typedef struct v1alpha1_resource_class_list_t { + char *api_version; // string + list_t *items; //nonprimitive container + char *kind; // string + struct v1_list_meta_t *metadata; //model + +} v1alpha1_resource_class_list_t; + +v1alpha1_resource_class_list_t *v1alpha1_resource_class_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata +); + +void v1alpha1_resource_class_list_free(v1alpha1_resource_class_list_t *v1alpha1_resource_class_list); + +v1alpha1_resource_class_list_t *v1alpha1_resource_class_list_parseFromJSON(cJSON *v1alpha1_resource_class_listJSON); + +cJSON *v1alpha1_resource_class_list_convertToJSON(v1alpha1_resource_class_list_t *v1alpha1_resource_class_list); + +#endif /* _v1alpha1_resource_class_list_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_class_parameters_reference.c b/kubernetes/model/v1alpha1_resource_class_parameters_reference.c new file mode 100644 index 00000000..4526887f --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_class_parameters_reference.c @@ -0,0 +1,153 @@ +#include +#include +#include +#include "v1alpha1_resource_class_parameters_reference.h" + + + +v1alpha1_resource_class_parameters_reference_t *v1alpha1_resource_class_parameters_reference_create( + char *api_group, + char *kind, + char *name, + char *_namespace + ) { + v1alpha1_resource_class_parameters_reference_t *v1alpha1_resource_class_parameters_reference_local_var = malloc(sizeof(v1alpha1_resource_class_parameters_reference_t)); + if (!v1alpha1_resource_class_parameters_reference_local_var) { + return NULL; + } + v1alpha1_resource_class_parameters_reference_local_var->api_group = api_group; + v1alpha1_resource_class_parameters_reference_local_var->kind = kind; + v1alpha1_resource_class_parameters_reference_local_var->name = name; + v1alpha1_resource_class_parameters_reference_local_var->_namespace = _namespace; + + return v1alpha1_resource_class_parameters_reference_local_var; +} + + +void v1alpha1_resource_class_parameters_reference_free(v1alpha1_resource_class_parameters_reference_t *v1alpha1_resource_class_parameters_reference) { + if(NULL == v1alpha1_resource_class_parameters_reference){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_class_parameters_reference->api_group) { + free(v1alpha1_resource_class_parameters_reference->api_group); + v1alpha1_resource_class_parameters_reference->api_group = NULL; + } + if (v1alpha1_resource_class_parameters_reference->kind) { + free(v1alpha1_resource_class_parameters_reference->kind); + v1alpha1_resource_class_parameters_reference->kind = NULL; + } + if (v1alpha1_resource_class_parameters_reference->name) { + free(v1alpha1_resource_class_parameters_reference->name); + v1alpha1_resource_class_parameters_reference->name = NULL; + } + if (v1alpha1_resource_class_parameters_reference->_namespace) { + free(v1alpha1_resource_class_parameters_reference->_namespace); + v1alpha1_resource_class_parameters_reference->_namespace = NULL; + } + free(v1alpha1_resource_class_parameters_reference); +} + +cJSON *v1alpha1_resource_class_parameters_reference_convertToJSON(v1alpha1_resource_class_parameters_reference_t *v1alpha1_resource_class_parameters_reference) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_class_parameters_reference->api_group + if(v1alpha1_resource_class_parameters_reference->api_group) { + if(cJSON_AddStringToObject(item, "apiGroup", v1alpha1_resource_class_parameters_reference->api_group) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_class_parameters_reference->kind + if (!v1alpha1_resource_class_parameters_reference->kind) { + goto fail; + } + if(cJSON_AddStringToObject(item, "kind", v1alpha1_resource_class_parameters_reference->kind) == NULL) { + goto fail; //String + } + + + // v1alpha1_resource_class_parameters_reference->name + if (!v1alpha1_resource_class_parameters_reference->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1alpha1_resource_class_parameters_reference->name) == NULL) { + goto fail; //String + } + + + // v1alpha1_resource_class_parameters_reference->_namespace + if(v1alpha1_resource_class_parameters_reference->_namespace) { + if(cJSON_AddStringToObject(item, "namespace", v1alpha1_resource_class_parameters_reference->_namespace) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_class_parameters_reference_t *v1alpha1_resource_class_parameters_reference_parseFromJSON(cJSON *v1alpha1_resource_class_parameters_referenceJSON){ + + v1alpha1_resource_class_parameters_reference_t *v1alpha1_resource_class_parameters_reference_local_var = NULL; + + // v1alpha1_resource_class_parameters_reference->api_group + cJSON *api_group = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_class_parameters_referenceJSON, "apiGroup"); + if (api_group) { + if(!cJSON_IsString(api_group) && !cJSON_IsNull(api_group)) + { + goto end; //String + } + } + + // v1alpha1_resource_class_parameters_reference->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_class_parameters_referenceJSON, "kind"); + if (!kind) { + goto end; + } + + + if(!cJSON_IsString(kind)) + { + goto end; //String + } + + // v1alpha1_resource_class_parameters_reference->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_class_parameters_referenceJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + // v1alpha1_resource_class_parameters_reference->_namespace + cJSON *_namespace = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_class_parameters_referenceJSON, "namespace"); + if (_namespace) { + if(!cJSON_IsString(_namespace) && !cJSON_IsNull(_namespace)) + { + goto end; //String + } + } + + + v1alpha1_resource_class_parameters_reference_local_var = v1alpha1_resource_class_parameters_reference_create ( + api_group && !cJSON_IsNull(api_group) ? strdup(api_group->valuestring) : NULL, + strdup(kind->valuestring), + strdup(name->valuestring), + _namespace && !cJSON_IsNull(_namespace) ? strdup(_namespace->valuestring) : NULL + ); + + return v1alpha1_resource_class_parameters_reference_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_class_parameters_reference.h b/kubernetes/model/v1alpha1_resource_class_parameters_reference.h new file mode 100644 index 00000000..120b0780 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_class_parameters_reference.h @@ -0,0 +1,43 @@ +/* + * v1alpha1_resource_class_parameters_reference.h + * + * ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass. + */ + +#ifndef _v1alpha1_resource_class_parameters_reference_H_ +#define _v1alpha1_resource_class_parameters_reference_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_class_parameters_reference_t v1alpha1_resource_class_parameters_reference_t; + + + + +typedef struct v1alpha1_resource_class_parameters_reference_t { + char *api_group; // string + char *kind; // string + char *name; // string + char *_namespace; // string + +} v1alpha1_resource_class_parameters_reference_t; + +v1alpha1_resource_class_parameters_reference_t *v1alpha1_resource_class_parameters_reference_create( + char *api_group, + char *kind, + char *name, + char *_namespace +); + +void v1alpha1_resource_class_parameters_reference_free(v1alpha1_resource_class_parameters_reference_t *v1alpha1_resource_class_parameters_reference); + +v1alpha1_resource_class_parameters_reference_t *v1alpha1_resource_class_parameters_reference_parseFromJSON(cJSON *v1alpha1_resource_class_parameters_referenceJSON); + +cJSON *v1alpha1_resource_class_parameters_reference_convertToJSON(v1alpha1_resource_class_parameters_reference_t *v1alpha1_resource_class_parameters_reference); + +#endif /* _v1alpha1_resource_class_parameters_reference_H_ */ + diff --git a/kubernetes/model/v1alpha1_self_subject_review.c b/kubernetes/model/v1alpha1_self_subject_review.c new file mode 100644 index 00000000..557ecc30 --- /dev/null +++ b/kubernetes/model/v1alpha1_self_subject_review.c @@ -0,0 +1,163 @@ +#include +#include +#include +#include "v1alpha1_self_subject_review.h" + + + +v1alpha1_self_subject_review_t *v1alpha1_self_subject_review_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_self_subject_review_status_t *status + ) { + v1alpha1_self_subject_review_t *v1alpha1_self_subject_review_local_var = malloc(sizeof(v1alpha1_self_subject_review_t)); + if (!v1alpha1_self_subject_review_local_var) { + return NULL; + } + v1alpha1_self_subject_review_local_var->api_version = api_version; + v1alpha1_self_subject_review_local_var->kind = kind; + v1alpha1_self_subject_review_local_var->metadata = metadata; + v1alpha1_self_subject_review_local_var->status = status; + + return v1alpha1_self_subject_review_local_var; +} + + +void v1alpha1_self_subject_review_free(v1alpha1_self_subject_review_t *v1alpha1_self_subject_review) { + if(NULL == v1alpha1_self_subject_review){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_self_subject_review->api_version) { + free(v1alpha1_self_subject_review->api_version); + v1alpha1_self_subject_review->api_version = NULL; + } + if (v1alpha1_self_subject_review->kind) { + free(v1alpha1_self_subject_review->kind); + v1alpha1_self_subject_review->kind = NULL; + } + if (v1alpha1_self_subject_review->metadata) { + v1_object_meta_free(v1alpha1_self_subject_review->metadata); + v1alpha1_self_subject_review->metadata = NULL; + } + if (v1alpha1_self_subject_review->status) { + v1alpha1_self_subject_review_status_free(v1alpha1_self_subject_review->status); + v1alpha1_self_subject_review->status = NULL; + } + free(v1alpha1_self_subject_review); +} + +cJSON *v1alpha1_self_subject_review_convertToJSON(v1alpha1_self_subject_review_t *v1alpha1_self_subject_review) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_self_subject_review->api_version + if(v1alpha1_self_subject_review->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_self_subject_review->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_self_subject_review->kind + if(v1alpha1_self_subject_review->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_self_subject_review->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_self_subject_review->metadata + if(v1alpha1_self_subject_review->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1alpha1_self_subject_review->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_self_subject_review->status + if(v1alpha1_self_subject_review->status) { + cJSON *status_local_JSON = v1alpha1_self_subject_review_status_convertToJSON(v1alpha1_self_subject_review->status); + if(status_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "status", status_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_self_subject_review_t *v1alpha1_self_subject_review_parseFromJSON(cJSON *v1alpha1_self_subject_reviewJSON){ + + v1alpha1_self_subject_review_t *v1alpha1_self_subject_review_local_var = NULL; + + // define the local variable for v1alpha1_self_subject_review->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1alpha1_self_subject_review->status + v1alpha1_self_subject_review_status_t *status_local_nonprim = NULL; + + // v1alpha1_self_subject_review->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_self_subject_reviewJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_self_subject_review->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_self_subject_reviewJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_self_subject_review->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_self_subject_reviewJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1alpha1_self_subject_review->status + cJSON *status = cJSON_GetObjectItemCaseSensitive(v1alpha1_self_subject_reviewJSON, "status"); + if (status) { + status_local_nonprim = v1alpha1_self_subject_review_status_parseFromJSON(status); //nonprimitive + } + + + v1alpha1_self_subject_review_local_var = v1alpha1_self_subject_review_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL, + status ? status_local_nonprim : NULL + ); + + return v1alpha1_self_subject_review_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (status_local_nonprim) { + v1alpha1_self_subject_review_status_free(status_local_nonprim); + status_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_self_subject_review.h b/kubernetes/model/v1alpha1_self_subject_review.h new file mode 100644 index 00000000..40dd31a5 --- /dev/null +++ b/kubernetes/model/v1alpha1_self_subject_review.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_self_subject_review.h + * + * SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. + */ + +#ifndef _v1alpha1_self_subject_review_H_ +#define _v1alpha1_self_subject_review_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_self_subject_review_t v1alpha1_self_subject_review_t; + +#include "v1_object_meta.h" +#include "v1alpha1_self_subject_review_status.h" + + + +typedef struct v1alpha1_self_subject_review_t { + char *api_version; // string + char *kind; // string + struct v1_object_meta_t *metadata; //model + struct v1alpha1_self_subject_review_status_t *status; //model + +} v1alpha1_self_subject_review_t; + +v1alpha1_self_subject_review_t *v1alpha1_self_subject_review_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_self_subject_review_status_t *status +); + +void v1alpha1_self_subject_review_free(v1alpha1_self_subject_review_t *v1alpha1_self_subject_review); + +v1alpha1_self_subject_review_t *v1alpha1_self_subject_review_parseFromJSON(cJSON *v1alpha1_self_subject_reviewJSON); + +cJSON *v1alpha1_self_subject_review_convertToJSON(v1alpha1_self_subject_review_t *v1alpha1_self_subject_review); + +#endif /* _v1alpha1_self_subject_review_H_ */ + diff --git a/kubernetes/model/v1alpha1_self_subject_review_status.c b/kubernetes/model/v1alpha1_self_subject_review_status.c new file mode 100644 index 00000000..b30367eb --- /dev/null +++ b/kubernetes/model/v1alpha1_self_subject_review_status.c @@ -0,0 +1,82 @@ +#include +#include +#include +#include "v1alpha1_self_subject_review_status.h" + + + +v1alpha1_self_subject_review_status_t *v1alpha1_self_subject_review_status_create( + v1_user_info_t *user_info + ) { + v1alpha1_self_subject_review_status_t *v1alpha1_self_subject_review_status_local_var = malloc(sizeof(v1alpha1_self_subject_review_status_t)); + if (!v1alpha1_self_subject_review_status_local_var) { + return NULL; + } + v1alpha1_self_subject_review_status_local_var->user_info = user_info; + + return v1alpha1_self_subject_review_status_local_var; +} + + +void v1alpha1_self_subject_review_status_free(v1alpha1_self_subject_review_status_t *v1alpha1_self_subject_review_status) { + if(NULL == v1alpha1_self_subject_review_status){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_self_subject_review_status->user_info) { + v1_user_info_free(v1alpha1_self_subject_review_status->user_info); + v1alpha1_self_subject_review_status->user_info = NULL; + } + free(v1alpha1_self_subject_review_status); +} + +cJSON *v1alpha1_self_subject_review_status_convertToJSON(v1alpha1_self_subject_review_status_t *v1alpha1_self_subject_review_status) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_self_subject_review_status->user_info + if(v1alpha1_self_subject_review_status->user_info) { + cJSON *user_info_local_JSON = v1_user_info_convertToJSON(v1alpha1_self_subject_review_status->user_info); + if(user_info_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "userInfo", user_info_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_self_subject_review_status_t *v1alpha1_self_subject_review_status_parseFromJSON(cJSON *v1alpha1_self_subject_review_statusJSON){ + + v1alpha1_self_subject_review_status_t *v1alpha1_self_subject_review_status_local_var = NULL; + + // define the local variable for v1alpha1_self_subject_review_status->user_info + v1_user_info_t *user_info_local_nonprim = NULL; + + // v1alpha1_self_subject_review_status->user_info + cJSON *user_info = cJSON_GetObjectItemCaseSensitive(v1alpha1_self_subject_review_statusJSON, "userInfo"); + if (user_info) { + user_info_local_nonprim = v1_user_info_parseFromJSON(user_info); //nonprimitive + } + + + v1alpha1_self_subject_review_status_local_var = v1alpha1_self_subject_review_status_create ( + user_info ? user_info_local_nonprim : NULL + ); + + return v1alpha1_self_subject_review_status_local_var; +end: + if (user_info_local_nonprim) { + v1_user_info_free(user_info_local_nonprim); + user_info_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_self_subject_review_status.h b/kubernetes/model/v1alpha1_self_subject_review_status.h new file mode 100644 index 00000000..8e2b3aa6 --- /dev/null +++ b/kubernetes/model/v1alpha1_self_subject_review_status.h @@ -0,0 +1,38 @@ +/* + * v1alpha1_self_subject_review_status.h + * + * SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. + */ + +#ifndef _v1alpha1_self_subject_review_status_H_ +#define _v1alpha1_self_subject_review_status_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_self_subject_review_status_t v1alpha1_self_subject_review_status_t; + +#include "v1_user_info.h" + + + +typedef struct v1alpha1_self_subject_review_status_t { + struct v1_user_info_t *user_info; //model + +} v1alpha1_self_subject_review_status_t; + +v1alpha1_self_subject_review_status_t *v1alpha1_self_subject_review_status_create( + v1_user_info_t *user_info +); + +void v1alpha1_self_subject_review_status_free(v1alpha1_self_subject_review_status_t *v1alpha1_self_subject_review_status); + +v1alpha1_self_subject_review_status_t *v1alpha1_self_subject_review_status_parseFromJSON(cJSON *v1alpha1_self_subject_review_statusJSON); + +cJSON *v1alpha1_self_subject_review_status_convertToJSON(v1alpha1_self_subject_review_status_t *v1alpha1_self_subject_review_status); + +#endif /* _v1alpha1_self_subject_review_status_H_ */ + diff --git a/kubernetes/model/v1alpha1_validating_admission_policy.c b/kubernetes/model/v1alpha1_validating_admission_policy.c new file mode 100644 index 00000000..c7d116c1 --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy.c @@ -0,0 +1,163 @@ +#include +#include +#include +#include "v1alpha1_validating_admission_policy.h" + + + +v1alpha1_validating_admission_policy_t *v1alpha1_validating_admission_policy_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_validating_admission_policy_spec_t *spec + ) { + v1alpha1_validating_admission_policy_t *v1alpha1_validating_admission_policy_local_var = malloc(sizeof(v1alpha1_validating_admission_policy_t)); + if (!v1alpha1_validating_admission_policy_local_var) { + return NULL; + } + v1alpha1_validating_admission_policy_local_var->api_version = api_version; + v1alpha1_validating_admission_policy_local_var->kind = kind; + v1alpha1_validating_admission_policy_local_var->metadata = metadata; + v1alpha1_validating_admission_policy_local_var->spec = spec; + + return v1alpha1_validating_admission_policy_local_var; +} + + +void v1alpha1_validating_admission_policy_free(v1alpha1_validating_admission_policy_t *v1alpha1_validating_admission_policy) { + if(NULL == v1alpha1_validating_admission_policy){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_validating_admission_policy->api_version) { + free(v1alpha1_validating_admission_policy->api_version); + v1alpha1_validating_admission_policy->api_version = NULL; + } + if (v1alpha1_validating_admission_policy->kind) { + free(v1alpha1_validating_admission_policy->kind); + v1alpha1_validating_admission_policy->kind = NULL; + } + if (v1alpha1_validating_admission_policy->metadata) { + v1_object_meta_free(v1alpha1_validating_admission_policy->metadata); + v1alpha1_validating_admission_policy->metadata = NULL; + } + if (v1alpha1_validating_admission_policy->spec) { + v1alpha1_validating_admission_policy_spec_free(v1alpha1_validating_admission_policy->spec); + v1alpha1_validating_admission_policy->spec = NULL; + } + free(v1alpha1_validating_admission_policy); +} + +cJSON *v1alpha1_validating_admission_policy_convertToJSON(v1alpha1_validating_admission_policy_t *v1alpha1_validating_admission_policy) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_validating_admission_policy->api_version + if(v1alpha1_validating_admission_policy->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_validating_admission_policy->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_validating_admission_policy->kind + if(v1alpha1_validating_admission_policy->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_validating_admission_policy->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_validating_admission_policy->metadata + if(v1alpha1_validating_admission_policy->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1alpha1_validating_admission_policy->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_validating_admission_policy->spec + if(v1alpha1_validating_admission_policy->spec) { + cJSON *spec_local_JSON = v1alpha1_validating_admission_policy_spec_convertToJSON(v1alpha1_validating_admission_policy->spec); + if(spec_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "spec", spec_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_validating_admission_policy_t *v1alpha1_validating_admission_policy_parseFromJSON(cJSON *v1alpha1_validating_admission_policyJSON){ + + v1alpha1_validating_admission_policy_t *v1alpha1_validating_admission_policy_local_var = NULL; + + // define the local variable for v1alpha1_validating_admission_policy->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1alpha1_validating_admission_policy->spec + v1alpha1_validating_admission_policy_spec_t *spec_local_nonprim = NULL; + + // v1alpha1_validating_admission_policy->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policyJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_validating_admission_policy->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policyJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_validating_admission_policy->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policyJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1alpha1_validating_admission_policy->spec + cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policyJSON, "spec"); + if (spec) { + spec_local_nonprim = v1alpha1_validating_admission_policy_spec_parseFromJSON(spec); //nonprimitive + } + + + v1alpha1_validating_admission_policy_local_var = v1alpha1_validating_admission_policy_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL, + spec ? spec_local_nonprim : NULL + ); + + return v1alpha1_validating_admission_policy_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (spec_local_nonprim) { + v1alpha1_validating_admission_policy_spec_free(spec_local_nonprim); + spec_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_validating_admission_policy.h b/kubernetes/model/v1alpha1_validating_admission_policy.h new file mode 100644 index 00000000..313823bd --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_validating_admission_policy.h + * + * ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. + */ + +#ifndef _v1alpha1_validating_admission_policy_H_ +#define _v1alpha1_validating_admission_policy_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_validating_admission_policy_t v1alpha1_validating_admission_policy_t; + +#include "v1_object_meta.h" +#include "v1alpha1_validating_admission_policy_spec.h" + + + +typedef struct v1alpha1_validating_admission_policy_t { + char *api_version; // string + char *kind; // string + struct v1_object_meta_t *metadata; //model + struct v1alpha1_validating_admission_policy_spec_t *spec; //model + +} v1alpha1_validating_admission_policy_t; + +v1alpha1_validating_admission_policy_t *v1alpha1_validating_admission_policy_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_validating_admission_policy_spec_t *spec +); + +void v1alpha1_validating_admission_policy_free(v1alpha1_validating_admission_policy_t *v1alpha1_validating_admission_policy); + +v1alpha1_validating_admission_policy_t *v1alpha1_validating_admission_policy_parseFromJSON(cJSON *v1alpha1_validating_admission_policyJSON); + +cJSON *v1alpha1_validating_admission_policy_convertToJSON(v1alpha1_validating_admission_policy_t *v1alpha1_validating_admission_policy); + +#endif /* _v1alpha1_validating_admission_policy_H_ */ + diff --git a/kubernetes/model/v1alpha1_validating_admission_policy_binding.c b/kubernetes/model/v1alpha1_validating_admission_policy_binding.c new file mode 100644 index 00000000..4d35e305 --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy_binding.c @@ -0,0 +1,163 @@ +#include +#include +#include +#include "v1alpha1_validating_admission_policy_binding.h" + + + +v1alpha1_validating_admission_policy_binding_t *v1alpha1_validating_admission_policy_binding_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_validating_admission_policy_binding_spec_t *spec + ) { + v1alpha1_validating_admission_policy_binding_t *v1alpha1_validating_admission_policy_binding_local_var = malloc(sizeof(v1alpha1_validating_admission_policy_binding_t)); + if (!v1alpha1_validating_admission_policy_binding_local_var) { + return NULL; + } + v1alpha1_validating_admission_policy_binding_local_var->api_version = api_version; + v1alpha1_validating_admission_policy_binding_local_var->kind = kind; + v1alpha1_validating_admission_policy_binding_local_var->metadata = metadata; + v1alpha1_validating_admission_policy_binding_local_var->spec = spec; + + return v1alpha1_validating_admission_policy_binding_local_var; +} + + +void v1alpha1_validating_admission_policy_binding_free(v1alpha1_validating_admission_policy_binding_t *v1alpha1_validating_admission_policy_binding) { + if(NULL == v1alpha1_validating_admission_policy_binding){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_validating_admission_policy_binding->api_version) { + free(v1alpha1_validating_admission_policy_binding->api_version); + v1alpha1_validating_admission_policy_binding->api_version = NULL; + } + if (v1alpha1_validating_admission_policy_binding->kind) { + free(v1alpha1_validating_admission_policy_binding->kind); + v1alpha1_validating_admission_policy_binding->kind = NULL; + } + if (v1alpha1_validating_admission_policy_binding->metadata) { + v1_object_meta_free(v1alpha1_validating_admission_policy_binding->metadata); + v1alpha1_validating_admission_policy_binding->metadata = NULL; + } + if (v1alpha1_validating_admission_policy_binding->spec) { + v1alpha1_validating_admission_policy_binding_spec_free(v1alpha1_validating_admission_policy_binding->spec); + v1alpha1_validating_admission_policy_binding->spec = NULL; + } + free(v1alpha1_validating_admission_policy_binding); +} + +cJSON *v1alpha1_validating_admission_policy_binding_convertToJSON(v1alpha1_validating_admission_policy_binding_t *v1alpha1_validating_admission_policy_binding) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_validating_admission_policy_binding->api_version + if(v1alpha1_validating_admission_policy_binding->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_validating_admission_policy_binding->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_validating_admission_policy_binding->kind + if(v1alpha1_validating_admission_policy_binding->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_validating_admission_policy_binding->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_validating_admission_policy_binding->metadata + if(v1alpha1_validating_admission_policy_binding->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1alpha1_validating_admission_policy_binding->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_validating_admission_policy_binding->spec + if(v1alpha1_validating_admission_policy_binding->spec) { + cJSON *spec_local_JSON = v1alpha1_validating_admission_policy_binding_spec_convertToJSON(v1alpha1_validating_admission_policy_binding->spec); + if(spec_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "spec", spec_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_validating_admission_policy_binding_t *v1alpha1_validating_admission_policy_binding_parseFromJSON(cJSON *v1alpha1_validating_admission_policy_bindingJSON){ + + v1alpha1_validating_admission_policy_binding_t *v1alpha1_validating_admission_policy_binding_local_var = NULL; + + // define the local variable for v1alpha1_validating_admission_policy_binding->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1alpha1_validating_admission_policy_binding->spec + v1alpha1_validating_admission_policy_binding_spec_t *spec_local_nonprim = NULL; + + // v1alpha1_validating_admission_policy_binding->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_bindingJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_validating_admission_policy_binding->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_bindingJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_validating_admission_policy_binding->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_bindingJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1alpha1_validating_admission_policy_binding->spec + cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_bindingJSON, "spec"); + if (spec) { + spec_local_nonprim = v1alpha1_validating_admission_policy_binding_spec_parseFromJSON(spec); //nonprimitive + } + + + v1alpha1_validating_admission_policy_binding_local_var = v1alpha1_validating_admission_policy_binding_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL, + spec ? spec_local_nonprim : NULL + ); + + return v1alpha1_validating_admission_policy_binding_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (spec_local_nonprim) { + v1alpha1_validating_admission_policy_binding_spec_free(spec_local_nonprim); + spec_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_validating_admission_policy_binding.h b/kubernetes/model/v1alpha1_validating_admission_policy_binding.h new file mode 100644 index 00000000..4ac6050d --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy_binding.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_validating_admission_policy_binding.h + * + * ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. + */ + +#ifndef _v1alpha1_validating_admission_policy_binding_H_ +#define _v1alpha1_validating_admission_policy_binding_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_validating_admission_policy_binding_t v1alpha1_validating_admission_policy_binding_t; + +#include "v1_object_meta.h" +#include "v1alpha1_validating_admission_policy_binding_spec.h" + + + +typedef struct v1alpha1_validating_admission_policy_binding_t { + char *api_version; // string + char *kind; // string + struct v1_object_meta_t *metadata; //model + struct v1alpha1_validating_admission_policy_binding_spec_t *spec; //model + +} v1alpha1_validating_admission_policy_binding_t; + +v1alpha1_validating_admission_policy_binding_t *v1alpha1_validating_admission_policy_binding_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_validating_admission_policy_binding_spec_t *spec +); + +void v1alpha1_validating_admission_policy_binding_free(v1alpha1_validating_admission_policy_binding_t *v1alpha1_validating_admission_policy_binding); + +v1alpha1_validating_admission_policy_binding_t *v1alpha1_validating_admission_policy_binding_parseFromJSON(cJSON *v1alpha1_validating_admission_policy_bindingJSON); + +cJSON *v1alpha1_validating_admission_policy_binding_convertToJSON(v1alpha1_validating_admission_policy_binding_t *v1alpha1_validating_admission_policy_binding); + +#endif /* _v1alpha1_validating_admission_policy_binding_H_ */ + diff --git a/kubernetes/model/v1alpha1_validating_admission_policy_binding_list.c b/kubernetes/model/v1alpha1_validating_admission_policy_binding_list.c new file mode 100644 index 00000000..5a4dc110 --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy_binding_list.c @@ -0,0 +1,193 @@ +#include +#include +#include +#include "v1alpha1_validating_admission_policy_binding_list.h" + + + +v1alpha1_validating_admission_policy_binding_list_t *v1alpha1_validating_admission_policy_binding_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata + ) { + v1alpha1_validating_admission_policy_binding_list_t *v1alpha1_validating_admission_policy_binding_list_local_var = malloc(sizeof(v1alpha1_validating_admission_policy_binding_list_t)); + if (!v1alpha1_validating_admission_policy_binding_list_local_var) { + return NULL; + } + v1alpha1_validating_admission_policy_binding_list_local_var->api_version = api_version; + v1alpha1_validating_admission_policy_binding_list_local_var->items = items; + v1alpha1_validating_admission_policy_binding_list_local_var->kind = kind; + v1alpha1_validating_admission_policy_binding_list_local_var->metadata = metadata; + + return v1alpha1_validating_admission_policy_binding_list_local_var; +} + + +void v1alpha1_validating_admission_policy_binding_list_free(v1alpha1_validating_admission_policy_binding_list_t *v1alpha1_validating_admission_policy_binding_list) { + if(NULL == v1alpha1_validating_admission_policy_binding_list){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_validating_admission_policy_binding_list->api_version) { + free(v1alpha1_validating_admission_policy_binding_list->api_version); + v1alpha1_validating_admission_policy_binding_list->api_version = NULL; + } + if (v1alpha1_validating_admission_policy_binding_list->items) { + list_ForEach(listEntry, v1alpha1_validating_admission_policy_binding_list->items) { + v1alpha1_validating_admission_policy_binding_free(listEntry->data); + } + list_freeList(v1alpha1_validating_admission_policy_binding_list->items); + v1alpha1_validating_admission_policy_binding_list->items = NULL; + } + if (v1alpha1_validating_admission_policy_binding_list->kind) { + free(v1alpha1_validating_admission_policy_binding_list->kind); + v1alpha1_validating_admission_policy_binding_list->kind = NULL; + } + if (v1alpha1_validating_admission_policy_binding_list->metadata) { + v1_list_meta_free(v1alpha1_validating_admission_policy_binding_list->metadata); + v1alpha1_validating_admission_policy_binding_list->metadata = NULL; + } + free(v1alpha1_validating_admission_policy_binding_list); +} + +cJSON *v1alpha1_validating_admission_policy_binding_list_convertToJSON(v1alpha1_validating_admission_policy_binding_list_t *v1alpha1_validating_admission_policy_binding_list) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_validating_admission_policy_binding_list->api_version + if(v1alpha1_validating_admission_policy_binding_list->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_validating_admission_policy_binding_list->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_validating_admission_policy_binding_list->items + if(v1alpha1_validating_admission_policy_binding_list->items) { + cJSON *items = cJSON_AddArrayToObject(item, "items"); + if(items == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *itemsListEntry; + if (v1alpha1_validating_admission_policy_binding_list->items) { + list_ForEach(itemsListEntry, v1alpha1_validating_admission_policy_binding_list->items) { + cJSON *itemLocal = v1alpha1_validating_admission_policy_binding_convertToJSON(itemsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(items, itemLocal); + } + } + } + + + // v1alpha1_validating_admission_policy_binding_list->kind + if(v1alpha1_validating_admission_policy_binding_list->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_validating_admission_policy_binding_list->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_validating_admission_policy_binding_list->metadata + if(v1alpha1_validating_admission_policy_binding_list->metadata) { + cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1alpha1_validating_admission_policy_binding_list->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_validating_admission_policy_binding_list_t *v1alpha1_validating_admission_policy_binding_list_parseFromJSON(cJSON *v1alpha1_validating_admission_policy_binding_listJSON){ + + v1alpha1_validating_admission_policy_binding_list_t *v1alpha1_validating_admission_policy_binding_list_local_var = NULL; + + // define the local list for v1alpha1_validating_admission_policy_binding_list->items + list_t *itemsList = NULL; + + // define the local variable for v1alpha1_validating_admission_policy_binding_list->metadata + v1_list_meta_t *metadata_local_nonprim = NULL; + + // v1alpha1_validating_admission_policy_binding_list->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_binding_listJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_validating_admission_policy_binding_list->items + cJSON *items = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_binding_listJSON, "items"); + if (items) { + cJSON *items_local_nonprimitive = NULL; + if(!cJSON_IsArray(items)){ + goto end; //nonprimitive container + } + + itemsList = list_createList(); + + cJSON_ArrayForEach(items_local_nonprimitive,items ) + { + if(!cJSON_IsObject(items_local_nonprimitive)){ + goto end; + } + v1alpha1_validating_admission_policy_binding_t *itemsItem = v1alpha1_validating_admission_policy_binding_parseFromJSON(items_local_nonprimitive); + + list_addElement(itemsList, itemsItem); + } + } + + // v1alpha1_validating_admission_policy_binding_list->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_binding_listJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_validating_admission_policy_binding_list->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_binding_listJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive + } + + + v1alpha1_validating_admission_policy_binding_list_local_var = v1alpha1_validating_admission_policy_binding_list_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + items ? itemsList : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL + ); + + return v1alpha1_validating_admission_policy_binding_list_local_var; +end: + if (itemsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, itemsList) { + v1alpha1_validating_admission_policy_binding_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(itemsList); + itemsList = NULL; + } + if (metadata_local_nonprim) { + v1_list_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_validating_admission_policy_binding_list.h b/kubernetes/model/v1alpha1_validating_admission_policy_binding_list.h new file mode 100644 index 00000000..527aa2b5 --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy_binding_list.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_validating_admission_policy_binding_list.h + * + * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. + */ + +#ifndef _v1alpha1_validating_admission_policy_binding_list_H_ +#define _v1alpha1_validating_admission_policy_binding_list_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_validating_admission_policy_binding_list_t v1alpha1_validating_admission_policy_binding_list_t; + +#include "v1_list_meta.h" +#include "v1alpha1_validating_admission_policy_binding.h" + + + +typedef struct v1alpha1_validating_admission_policy_binding_list_t { + char *api_version; // string + list_t *items; //nonprimitive container + char *kind; // string + struct v1_list_meta_t *metadata; //model + +} v1alpha1_validating_admission_policy_binding_list_t; + +v1alpha1_validating_admission_policy_binding_list_t *v1alpha1_validating_admission_policy_binding_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata +); + +void v1alpha1_validating_admission_policy_binding_list_free(v1alpha1_validating_admission_policy_binding_list_t *v1alpha1_validating_admission_policy_binding_list); + +v1alpha1_validating_admission_policy_binding_list_t *v1alpha1_validating_admission_policy_binding_list_parseFromJSON(cJSON *v1alpha1_validating_admission_policy_binding_listJSON); + +cJSON *v1alpha1_validating_admission_policy_binding_list_convertToJSON(v1alpha1_validating_admission_policy_binding_list_t *v1alpha1_validating_admission_policy_binding_list); + +#endif /* _v1alpha1_validating_admission_policy_binding_list_H_ */ + diff --git a/kubernetes/model/v1alpha1_validating_admission_policy_binding_spec.c b/kubernetes/model/v1alpha1_validating_admission_policy_binding_spec.c new file mode 100644 index 00000000..144d0287 --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy_binding_spec.c @@ -0,0 +1,139 @@ +#include +#include +#include +#include "v1alpha1_validating_admission_policy_binding_spec.h" + + + +v1alpha1_validating_admission_policy_binding_spec_t *v1alpha1_validating_admission_policy_binding_spec_create( + v1alpha1_match_resources_t *match_resources, + v1alpha1_param_ref_t *param_ref, + char *policy_name + ) { + v1alpha1_validating_admission_policy_binding_spec_t *v1alpha1_validating_admission_policy_binding_spec_local_var = malloc(sizeof(v1alpha1_validating_admission_policy_binding_spec_t)); + if (!v1alpha1_validating_admission_policy_binding_spec_local_var) { + return NULL; + } + v1alpha1_validating_admission_policy_binding_spec_local_var->match_resources = match_resources; + v1alpha1_validating_admission_policy_binding_spec_local_var->param_ref = param_ref; + v1alpha1_validating_admission_policy_binding_spec_local_var->policy_name = policy_name; + + return v1alpha1_validating_admission_policy_binding_spec_local_var; +} + + +void v1alpha1_validating_admission_policy_binding_spec_free(v1alpha1_validating_admission_policy_binding_spec_t *v1alpha1_validating_admission_policy_binding_spec) { + if(NULL == v1alpha1_validating_admission_policy_binding_spec){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_validating_admission_policy_binding_spec->match_resources) { + v1alpha1_match_resources_free(v1alpha1_validating_admission_policy_binding_spec->match_resources); + v1alpha1_validating_admission_policy_binding_spec->match_resources = NULL; + } + if (v1alpha1_validating_admission_policy_binding_spec->param_ref) { + v1alpha1_param_ref_free(v1alpha1_validating_admission_policy_binding_spec->param_ref); + v1alpha1_validating_admission_policy_binding_spec->param_ref = NULL; + } + if (v1alpha1_validating_admission_policy_binding_spec->policy_name) { + free(v1alpha1_validating_admission_policy_binding_spec->policy_name); + v1alpha1_validating_admission_policy_binding_spec->policy_name = NULL; + } + free(v1alpha1_validating_admission_policy_binding_spec); +} + +cJSON *v1alpha1_validating_admission_policy_binding_spec_convertToJSON(v1alpha1_validating_admission_policy_binding_spec_t *v1alpha1_validating_admission_policy_binding_spec) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_validating_admission_policy_binding_spec->match_resources + if(v1alpha1_validating_admission_policy_binding_spec->match_resources) { + cJSON *match_resources_local_JSON = v1alpha1_match_resources_convertToJSON(v1alpha1_validating_admission_policy_binding_spec->match_resources); + if(match_resources_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "matchResources", match_resources_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_validating_admission_policy_binding_spec->param_ref + if(v1alpha1_validating_admission_policy_binding_spec->param_ref) { + cJSON *param_ref_local_JSON = v1alpha1_param_ref_convertToJSON(v1alpha1_validating_admission_policy_binding_spec->param_ref); + if(param_ref_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "paramRef", param_ref_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_validating_admission_policy_binding_spec->policy_name + if(v1alpha1_validating_admission_policy_binding_spec->policy_name) { + if(cJSON_AddStringToObject(item, "policyName", v1alpha1_validating_admission_policy_binding_spec->policy_name) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_validating_admission_policy_binding_spec_t *v1alpha1_validating_admission_policy_binding_spec_parseFromJSON(cJSON *v1alpha1_validating_admission_policy_binding_specJSON){ + + v1alpha1_validating_admission_policy_binding_spec_t *v1alpha1_validating_admission_policy_binding_spec_local_var = NULL; + + // define the local variable for v1alpha1_validating_admission_policy_binding_spec->match_resources + v1alpha1_match_resources_t *match_resources_local_nonprim = NULL; + + // define the local variable for v1alpha1_validating_admission_policy_binding_spec->param_ref + v1alpha1_param_ref_t *param_ref_local_nonprim = NULL; + + // v1alpha1_validating_admission_policy_binding_spec->match_resources + cJSON *match_resources = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_binding_specJSON, "matchResources"); + if (match_resources) { + match_resources_local_nonprim = v1alpha1_match_resources_parseFromJSON(match_resources); //nonprimitive + } + + // v1alpha1_validating_admission_policy_binding_spec->param_ref + cJSON *param_ref = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_binding_specJSON, "paramRef"); + if (param_ref) { + param_ref_local_nonprim = v1alpha1_param_ref_parseFromJSON(param_ref); //nonprimitive + } + + // v1alpha1_validating_admission_policy_binding_spec->policy_name + cJSON *policy_name = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_binding_specJSON, "policyName"); + if (policy_name) { + if(!cJSON_IsString(policy_name) && !cJSON_IsNull(policy_name)) + { + goto end; //String + } + } + + + v1alpha1_validating_admission_policy_binding_spec_local_var = v1alpha1_validating_admission_policy_binding_spec_create ( + match_resources ? match_resources_local_nonprim : NULL, + param_ref ? param_ref_local_nonprim : NULL, + policy_name && !cJSON_IsNull(policy_name) ? strdup(policy_name->valuestring) : NULL + ); + + return v1alpha1_validating_admission_policy_binding_spec_local_var; +end: + if (match_resources_local_nonprim) { + v1alpha1_match_resources_free(match_resources_local_nonprim); + match_resources_local_nonprim = NULL; + } + if (param_ref_local_nonprim) { + v1alpha1_param_ref_free(param_ref_local_nonprim); + param_ref_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_validating_admission_policy_binding_spec.h b/kubernetes/model/v1alpha1_validating_admission_policy_binding_spec.h new file mode 100644 index 00000000..bbba7c91 --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy_binding_spec.h @@ -0,0 +1,43 @@ +/* + * v1alpha1_validating_admission_policy_binding_spec.h + * + * ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. + */ + +#ifndef _v1alpha1_validating_admission_policy_binding_spec_H_ +#define _v1alpha1_validating_admission_policy_binding_spec_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_validating_admission_policy_binding_spec_t v1alpha1_validating_admission_policy_binding_spec_t; + +#include "v1alpha1_match_resources.h" +#include "v1alpha1_param_ref.h" + + + +typedef struct v1alpha1_validating_admission_policy_binding_spec_t { + struct v1alpha1_match_resources_t *match_resources; //model + struct v1alpha1_param_ref_t *param_ref; //model + char *policy_name; // string + +} v1alpha1_validating_admission_policy_binding_spec_t; + +v1alpha1_validating_admission_policy_binding_spec_t *v1alpha1_validating_admission_policy_binding_spec_create( + v1alpha1_match_resources_t *match_resources, + v1alpha1_param_ref_t *param_ref, + char *policy_name +); + +void v1alpha1_validating_admission_policy_binding_spec_free(v1alpha1_validating_admission_policy_binding_spec_t *v1alpha1_validating_admission_policy_binding_spec); + +v1alpha1_validating_admission_policy_binding_spec_t *v1alpha1_validating_admission_policy_binding_spec_parseFromJSON(cJSON *v1alpha1_validating_admission_policy_binding_specJSON); + +cJSON *v1alpha1_validating_admission_policy_binding_spec_convertToJSON(v1alpha1_validating_admission_policy_binding_spec_t *v1alpha1_validating_admission_policy_binding_spec); + +#endif /* _v1alpha1_validating_admission_policy_binding_spec_H_ */ + diff --git a/kubernetes/model/v1alpha1_validating_admission_policy_list.c b/kubernetes/model/v1alpha1_validating_admission_policy_list.c new file mode 100644 index 00000000..27f584c3 --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy_list.c @@ -0,0 +1,193 @@ +#include +#include +#include +#include "v1alpha1_validating_admission_policy_list.h" + + + +v1alpha1_validating_admission_policy_list_t *v1alpha1_validating_admission_policy_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata + ) { + v1alpha1_validating_admission_policy_list_t *v1alpha1_validating_admission_policy_list_local_var = malloc(sizeof(v1alpha1_validating_admission_policy_list_t)); + if (!v1alpha1_validating_admission_policy_list_local_var) { + return NULL; + } + v1alpha1_validating_admission_policy_list_local_var->api_version = api_version; + v1alpha1_validating_admission_policy_list_local_var->items = items; + v1alpha1_validating_admission_policy_list_local_var->kind = kind; + v1alpha1_validating_admission_policy_list_local_var->metadata = metadata; + + return v1alpha1_validating_admission_policy_list_local_var; +} + + +void v1alpha1_validating_admission_policy_list_free(v1alpha1_validating_admission_policy_list_t *v1alpha1_validating_admission_policy_list) { + if(NULL == v1alpha1_validating_admission_policy_list){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_validating_admission_policy_list->api_version) { + free(v1alpha1_validating_admission_policy_list->api_version); + v1alpha1_validating_admission_policy_list->api_version = NULL; + } + if (v1alpha1_validating_admission_policy_list->items) { + list_ForEach(listEntry, v1alpha1_validating_admission_policy_list->items) { + v1alpha1_validating_admission_policy_free(listEntry->data); + } + list_freeList(v1alpha1_validating_admission_policy_list->items); + v1alpha1_validating_admission_policy_list->items = NULL; + } + if (v1alpha1_validating_admission_policy_list->kind) { + free(v1alpha1_validating_admission_policy_list->kind); + v1alpha1_validating_admission_policy_list->kind = NULL; + } + if (v1alpha1_validating_admission_policy_list->metadata) { + v1_list_meta_free(v1alpha1_validating_admission_policy_list->metadata); + v1alpha1_validating_admission_policy_list->metadata = NULL; + } + free(v1alpha1_validating_admission_policy_list); +} + +cJSON *v1alpha1_validating_admission_policy_list_convertToJSON(v1alpha1_validating_admission_policy_list_t *v1alpha1_validating_admission_policy_list) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_validating_admission_policy_list->api_version + if(v1alpha1_validating_admission_policy_list->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_validating_admission_policy_list->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_validating_admission_policy_list->items + if(v1alpha1_validating_admission_policy_list->items) { + cJSON *items = cJSON_AddArrayToObject(item, "items"); + if(items == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *itemsListEntry; + if (v1alpha1_validating_admission_policy_list->items) { + list_ForEach(itemsListEntry, v1alpha1_validating_admission_policy_list->items) { + cJSON *itemLocal = v1alpha1_validating_admission_policy_convertToJSON(itemsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(items, itemLocal); + } + } + } + + + // v1alpha1_validating_admission_policy_list->kind + if(v1alpha1_validating_admission_policy_list->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_validating_admission_policy_list->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_validating_admission_policy_list->metadata + if(v1alpha1_validating_admission_policy_list->metadata) { + cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1alpha1_validating_admission_policy_list->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_validating_admission_policy_list_t *v1alpha1_validating_admission_policy_list_parseFromJSON(cJSON *v1alpha1_validating_admission_policy_listJSON){ + + v1alpha1_validating_admission_policy_list_t *v1alpha1_validating_admission_policy_list_local_var = NULL; + + // define the local list for v1alpha1_validating_admission_policy_list->items + list_t *itemsList = NULL; + + // define the local variable for v1alpha1_validating_admission_policy_list->metadata + v1_list_meta_t *metadata_local_nonprim = NULL; + + // v1alpha1_validating_admission_policy_list->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_listJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_validating_admission_policy_list->items + cJSON *items = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_listJSON, "items"); + if (items) { + cJSON *items_local_nonprimitive = NULL; + if(!cJSON_IsArray(items)){ + goto end; //nonprimitive container + } + + itemsList = list_createList(); + + cJSON_ArrayForEach(items_local_nonprimitive,items ) + { + if(!cJSON_IsObject(items_local_nonprimitive)){ + goto end; + } + v1alpha1_validating_admission_policy_t *itemsItem = v1alpha1_validating_admission_policy_parseFromJSON(items_local_nonprimitive); + + list_addElement(itemsList, itemsItem); + } + } + + // v1alpha1_validating_admission_policy_list->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_listJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_validating_admission_policy_list->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_listJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive + } + + + v1alpha1_validating_admission_policy_list_local_var = v1alpha1_validating_admission_policy_list_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + items ? itemsList : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL + ); + + return v1alpha1_validating_admission_policy_list_local_var; +end: + if (itemsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, itemsList) { + v1alpha1_validating_admission_policy_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(itemsList); + itemsList = NULL; + } + if (metadata_local_nonprim) { + v1_list_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_validating_admission_policy_list.h b/kubernetes/model/v1alpha1_validating_admission_policy_list.h new file mode 100644 index 00000000..fef55fcd --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy_list.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_validating_admission_policy_list.h + * + * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. + */ + +#ifndef _v1alpha1_validating_admission_policy_list_H_ +#define _v1alpha1_validating_admission_policy_list_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_validating_admission_policy_list_t v1alpha1_validating_admission_policy_list_t; + +#include "v1_list_meta.h" +#include "v1alpha1_validating_admission_policy.h" + + + +typedef struct v1alpha1_validating_admission_policy_list_t { + char *api_version; // string + list_t *items; //nonprimitive container + char *kind; // string + struct v1_list_meta_t *metadata; //model + +} v1alpha1_validating_admission_policy_list_t; + +v1alpha1_validating_admission_policy_list_t *v1alpha1_validating_admission_policy_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata +); + +void v1alpha1_validating_admission_policy_list_free(v1alpha1_validating_admission_policy_list_t *v1alpha1_validating_admission_policy_list); + +v1alpha1_validating_admission_policy_list_t *v1alpha1_validating_admission_policy_list_parseFromJSON(cJSON *v1alpha1_validating_admission_policy_listJSON); + +cJSON *v1alpha1_validating_admission_policy_list_convertToJSON(v1alpha1_validating_admission_policy_list_t *v1alpha1_validating_admission_policy_list); + +#endif /* _v1alpha1_validating_admission_policy_list_H_ */ + diff --git a/kubernetes/model/v1alpha1_validating_admission_policy_spec.c b/kubernetes/model/v1alpha1_validating_admission_policy_spec.c new file mode 100644 index 00000000..11e0fe17 --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy_spec.c @@ -0,0 +1,206 @@ +#include +#include +#include +#include "v1alpha1_validating_admission_policy_spec.h" + + + +v1alpha1_validating_admission_policy_spec_t *v1alpha1_validating_admission_policy_spec_create( + char *failure_policy, + v1alpha1_match_resources_t *match_constraints, + v1alpha1_param_kind_t *param_kind, + list_t *validations + ) { + v1alpha1_validating_admission_policy_spec_t *v1alpha1_validating_admission_policy_spec_local_var = malloc(sizeof(v1alpha1_validating_admission_policy_spec_t)); + if (!v1alpha1_validating_admission_policy_spec_local_var) { + return NULL; + } + v1alpha1_validating_admission_policy_spec_local_var->failure_policy = failure_policy; + v1alpha1_validating_admission_policy_spec_local_var->match_constraints = match_constraints; + v1alpha1_validating_admission_policy_spec_local_var->param_kind = param_kind; + v1alpha1_validating_admission_policy_spec_local_var->validations = validations; + + return v1alpha1_validating_admission_policy_spec_local_var; +} + + +void v1alpha1_validating_admission_policy_spec_free(v1alpha1_validating_admission_policy_spec_t *v1alpha1_validating_admission_policy_spec) { + if(NULL == v1alpha1_validating_admission_policy_spec){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_validating_admission_policy_spec->failure_policy) { + free(v1alpha1_validating_admission_policy_spec->failure_policy); + v1alpha1_validating_admission_policy_spec->failure_policy = NULL; + } + if (v1alpha1_validating_admission_policy_spec->match_constraints) { + v1alpha1_match_resources_free(v1alpha1_validating_admission_policy_spec->match_constraints); + v1alpha1_validating_admission_policy_spec->match_constraints = NULL; + } + if (v1alpha1_validating_admission_policy_spec->param_kind) { + v1alpha1_param_kind_free(v1alpha1_validating_admission_policy_spec->param_kind); + v1alpha1_validating_admission_policy_spec->param_kind = NULL; + } + if (v1alpha1_validating_admission_policy_spec->validations) { + list_ForEach(listEntry, v1alpha1_validating_admission_policy_spec->validations) { + v1alpha1_validation_free(listEntry->data); + } + list_freeList(v1alpha1_validating_admission_policy_spec->validations); + v1alpha1_validating_admission_policy_spec->validations = NULL; + } + free(v1alpha1_validating_admission_policy_spec); +} + +cJSON *v1alpha1_validating_admission_policy_spec_convertToJSON(v1alpha1_validating_admission_policy_spec_t *v1alpha1_validating_admission_policy_spec) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_validating_admission_policy_spec->failure_policy + if(v1alpha1_validating_admission_policy_spec->failure_policy) { + if(cJSON_AddStringToObject(item, "failurePolicy", v1alpha1_validating_admission_policy_spec->failure_policy) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_validating_admission_policy_spec->match_constraints + if(v1alpha1_validating_admission_policy_spec->match_constraints) { + cJSON *match_constraints_local_JSON = v1alpha1_match_resources_convertToJSON(v1alpha1_validating_admission_policy_spec->match_constraints); + if(match_constraints_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "matchConstraints", match_constraints_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_validating_admission_policy_spec->param_kind + if(v1alpha1_validating_admission_policy_spec->param_kind) { + cJSON *param_kind_local_JSON = v1alpha1_param_kind_convertToJSON(v1alpha1_validating_admission_policy_spec->param_kind); + if(param_kind_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "paramKind", param_kind_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_validating_admission_policy_spec->validations + if (!v1alpha1_validating_admission_policy_spec->validations) { + goto fail; + } + cJSON *validations = cJSON_AddArrayToObject(item, "validations"); + if(validations == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *validationsListEntry; + if (v1alpha1_validating_admission_policy_spec->validations) { + list_ForEach(validationsListEntry, v1alpha1_validating_admission_policy_spec->validations) { + cJSON *itemLocal = v1alpha1_validation_convertToJSON(validationsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(validations, itemLocal); + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_validating_admission_policy_spec_t *v1alpha1_validating_admission_policy_spec_parseFromJSON(cJSON *v1alpha1_validating_admission_policy_specJSON){ + + v1alpha1_validating_admission_policy_spec_t *v1alpha1_validating_admission_policy_spec_local_var = NULL; + + // define the local variable for v1alpha1_validating_admission_policy_spec->match_constraints + v1alpha1_match_resources_t *match_constraints_local_nonprim = NULL; + + // define the local variable for v1alpha1_validating_admission_policy_spec->param_kind + v1alpha1_param_kind_t *param_kind_local_nonprim = NULL; + + // define the local list for v1alpha1_validating_admission_policy_spec->validations + list_t *validationsList = NULL; + + // v1alpha1_validating_admission_policy_spec->failure_policy + cJSON *failure_policy = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_specJSON, "failurePolicy"); + if (failure_policy) { + if(!cJSON_IsString(failure_policy) && !cJSON_IsNull(failure_policy)) + { + goto end; //String + } + } + + // v1alpha1_validating_admission_policy_spec->match_constraints + cJSON *match_constraints = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_specJSON, "matchConstraints"); + if (match_constraints) { + match_constraints_local_nonprim = v1alpha1_match_resources_parseFromJSON(match_constraints); //nonprimitive + } + + // v1alpha1_validating_admission_policy_spec->param_kind + cJSON *param_kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_specJSON, "paramKind"); + if (param_kind) { + param_kind_local_nonprim = v1alpha1_param_kind_parseFromJSON(param_kind); //nonprimitive + } + + // v1alpha1_validating_admission_policy_spec->validations + cJSON *validations = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_specJSON, "validations"); + if (!validations) { + goto end; + } + + + cJSON *validations_local_nonprimitive = NULL; + if(!cJSON_IsArray(validations)){ + goto end; //nonprimitive container + } + + validationsList = list_createList(); + + cJSON_ArrayForEach(validations_local_nonprimitive,validations ) + { + if(!cJSON_IsObject(validations_local_nonprimitive)){ + goto end; + } + v1alpha1_validation_t *validationsItem = v1alpha1_validation_parseFromJSON(validations_local_nonprimitive); + + list_addElement(validationsList, validationsItem); + } + + + v1alpha1_validating_admission_policy_spec_local_var = v1alpha1_validating_admission_policy_spec_create ( + failure_policy && !cJSON_IsNull(failure_policy) ? strdup(failure_policy->valuestring) : NULL, + match_constraints ? match_constraints_local_nonprim : NULL, + param_kind ? param_kind_local_nonprim : NULL, + validationsList + ); + + return v1alpha1_validating_admission_policy_spec_local_var; +end: + if (match_constraints_local_nonprim) { + v1alpha1_match_resources_free(match_constraints_local_nonprim); + match_constraints_local_nonprim = NULL; + } + if (param_kind_local_nonprim) { + v1alpha1_param_kind_free(param_kind_local_nonprim); + param_kind_local_nonprim = NULL; + } + if (validationsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, validationsList) { + v1alpha1_validation_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(validationsList); + validationsList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_validating_admission_policy_spec.h b/kubernetes/model/v1alpha1_validating_admission_policy_spec.h new file mode 100644 index 00000000..9f642368 --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy_spec.h @@ -0,0 +1,46 @@ +/* + * v1alpha1_validating_admission_policy_spec.h + * + * ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. + */ + +#ifndef _v1alpha1_validating_admission_policy_spec_H_ +#define _v1alpha1_validating_admission_policy_spec_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_validating_admission_policy_spec_t v1alpha1_validating_admission_policy_spec_t; + +#include "v1alpha1_match_resources.h" +#include "v1alpha1_param_kind.h" +#include "v1alpha1_validation.h" + + + +typedef struct v1alpha1_validating_admission_policy_spec_t { + char *failure_policy; // string + struct v1alpha1_match_resources_t *match_constraints; //model + struct v1alpha1_param_kind_t *param_kind; //model + list_t *validations; //nonprimitive container + +} v1alpha1_validating_admission_policy_spec_t; + +v1alpha1_validating_admission_policy_spec_t *v1alpha1_validating_admission_policy_spec_create( + char *failure_policy, + v1alpha1_match_resources_t *match_constraints, + v1alpha1_param_kind_t *param_kind, + list_t *validations +); + +void v1alpha1_validating_admission_policy_spec_free(v1alpha1_validating_admission_policy_spec_t *v1alpha1_validating_admission_policy_spec); + +v1alpha1_validating_admission_policy_spec_t *v1alpha1_validating_admission_policy_spec_parseFromJSON(cJSON *v1alpha1_validating_admission_policy_specJSON); + +cJSON *v1alpha1_validating_admission_policy_spec_convertToJSON(v1alpha1_validating_admission_policy_spec_t *v1alpha1_validating_admission_policy_spec); + +#endif /* _v1alpha1_validating_admission_policy_spec_H_ */ + diff --git a/kubernetes/model/v1alpha1_validation.c b/kubernetes/model/v1alpha1_validation.c new file mode 100644 index 00000000..7a72e8db --- /dev/null +++ b/kubernetes/model/v1alpha1_validation.c @@ -0,0 +1,125 @@ +#include +#include +#include +#include "v1alpha1_validation.h" + + + +v1alpha1_validation_t *v1alpha1_validation_create( + char *expression, + char *message, + char *reason + ) { + v1alpha1_validation_t *v1alpha1_validation_local_var = malloc(sizeof(v1alpha1_validation_t)); + if (!v1alpha1_validation_local_var) { + return NULL; + } + v1alpha1_validation_local_var->expression = expression; + v1alpha1_validation_local_var->message = message; + v1alpha1_validation_local_var->reason = reason; + + return v1alpha1_validation_local_var; +} + + +void v1alpha1_validation_free(v1alpha1_validation_t *v1alpha1_validation) { + if(NULL == v1alpha1_validation){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_validation->expression) { + free(v1alpha1_validation->expression); + v1alpha1_validation->expression = NULL; + } + if (v1alpha1_validation->message) { + free(v1alpha1_validation->message); + v1alpha1_validation->message = NULL; + } + if (v1alpha1_validation->reason) { + free(v1alpha1_validation->reason); + v1alpha1_validation->reason = NULL; + } + free(v1alpha1_validation); +} + +cJSON *v1alpha1_validation_convertToJSON(v1alpha1_validation_t *v1alpha1_validation) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_validation->expression + if (!v1alpha1_validation->expression) { + goto fail; + } + if(cJSON_AddStringToObject(item, "expression", v1alpha1_validation->expression) == NULL) { + goto fail; //String + } + + + // v1alpha1_validation->message + if(v1alpha1_validation->message) { + if(cJSON_AddStringToObject(item, "message", v1alpha1_validation->message) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_validation->reason + if(v1alpha1_validation->reason) { + if(cJSON_AddStringToObject(item, "reason", v1alpha1_validation->reason) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_validation_t *v1alpha1_validation_parseFromJSON(cJSON *v1alpha1_validationJSON){ + + v1alpha1_validation_t *v1alpha1_validation_local_var = NULL; + + // v1alpha1_validation->expression + cJSON *expression = cJSON_GetObjectItemCaseSensitive(v1alpha1_validationJSON, "expression"); + if (!expression) { + goto end; + } + + + if(!cJSON_IsString(expression)) + { + goto end; //String + } + + // v1alpha1_validation->message + cJSON *message = cJSON_GetObjectItemCaseSensitive(v1alpha1_validationJSON, "message"); + if (message) { + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) + { + goto end; //String + } + } + + // v1alpha1_validation->reason + cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1alpha1_validationJSON, "reason"); + if (reason) { + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) + { + goto end; //String + } + } + + + v1alpha1_validation_local_var = v1alpha1_validation_create ( + strdup(expression->valuestring), + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL + ); + + return v1alpha1_validation_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_validation.h b/kubernetes/model/v1alpha1_validation.h new file mode 100644 index 00000000..84ee74c8 --- /dev/null +++ b/kubernetes/model/v1alpha1_validation.h @@ -0,0 +1,41 @@ +/* + * v1alpha1_validation.h + * + * Validation specifies the CEL expression which is used to apply the validation. + */ + +#ifndef _v1alpha1_validation_H_ +#define _v1alpha1_validation_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_validation_t v1alpha1_validation_t; + + + + +typedef struct v1alpha1_validation_t { + char *expression; // string + char *message; // string + char *reason; // string + +} v1alpha1_validation_t; + +v1alpha1_validation_t *v1alpha1_validation_create( + char *expression, + char *message, + char *reason +); + +void v1alpha1_validation_free(v1alpha1_validation_t *v1alpha1_validation); + +v1alpha1_validation_t *v1alpha1_validation_parseFromJSON(cJSON *v1alpha1_validationJSON); + +cJSON *v1alpha1_validation_convertToJSON(v1alpha1_validation_t *v1alpha1_validation); + +#endif /* _v1alpha1_validation_H_ */ + diff --git a/kubernetes/model/v1beta1_flow_distinguisher_method.c b/kubernetes/model/v1beta1_flow_distinguisher_method.c deleted file mode 100644 index c7023d25..00000000 --- a/kubernetes/model/v1beta1_flow_distinguisher_method.c +++ /dev/null @@ -1,77 +0,0 @@ -#include -#include -#include -#include "v1beta1_flow_distinguisher_method.h" - - - -v1beta1_flow_distinguisher_method_t *v1beta1_flow_distinguisher_method_create( - char *type - ) { - v1beta1_flow_distinguisher_method_t *v1beta1_flow_distinguisher_method_local_var = malloc(sizeof(v1beta1_flow_distinguisher_method_t)); - if (!v1beta1_flow_distinguisher_method_local_var) { - return NULL; - } - v1beta1_flow_distinguisher_method_local_var->type = type; - - return v1beta1_flow_distinguisher_method_local_var; -} - - -void v1beta1_flow_distinguisher_method_free(v1beta1_flow_distinguisher_method_t *v1beta1_flow_distinguisher_method) { - if(NULL == v1beta1_flow_distinguisher_method){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_flow_distinguisher_method->type) { - free(v1beta1_flow_distinguisher_method->type); - v1beta1_flow_distinguisher_method->type = NULL; - } - free(v1beta1_flow_distinguisher_method); -} - -cJSON *v1beta1_flow_distinguisher_method_convertToJSON(v1beta1_flow_distinguisher_method_t *v1beta1_flow_distinguisher_method) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_flow_distinguisher_method->type - if (!v1beta1_flow_distinguisher_method->type) { - goto fail; - } - if(cJSON_AddStringToObject(item, "type", v1beta1_flow_distinguisher_method->type) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_flow_distinguisher_method_t *v1beta1_flow_distinguisher_method_parseFromJSON(cJSON *v1beta1_flow_distinguisher_methodJSON){ - - v1beta1_flow_distinguisher_method_t *v1beta1_flow_distinguisher_method_local_var = NULL; - - // v1beta1_flow_distinguisher_method->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_distinguisher_methodJSON, "type"); - if (!type) { - goto end; - } - - - if(!cJSON_IsString(type)) - { - goto end; //String - } - - - v1beta1_flow_distinguisher_method_local_var = v1beta1_flow_distinguisher_method_create ( - strdup(type->valuestring) - ); - - return v1beta1_flow_distinguisher_method_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_flow_distinguisher_method.h b/kubernetes/model/v1beta1_flow_distinguisher_method.h deleted file mode 100644 index 79edcc99..00000000 --- a/kubernetes/model/v1beta1_flow_distinguisher_method.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * v1beta1_flow_distinguisher_method.h - * - * FlowDistinguisherMethod specifies the method of a flow distinguisher. - */ - -#ifndef _v1beta1_flow_distinguisher_method_H_ -#define _v1beta1_flow_distinguisher_method_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_flow_distinguisher_method_t v1beta1_flow_distinguisher_method_t; - - - - -typedef struct v1beta1_flow_distinguisher_method_t { - char *type; // string - -} v1beta1_flow_distinguisher_method_t; - -v1beta1_flow_distinguisher_method_t *v1beta1_flow_distinguisher_method_create( - char *type -); - -void v1beta1_flow_distinguisher_method_free(v1beta1_flow_distinguisher_method_t *v1beta1_flow_distinguisher_method); - -v1beta1_flow_distinguisher_method_t *v1beta1_flow_distinguisher_method_parseFromJSON(cJSON *v1beta1_flow_distinguisher_methodJSON); - -cJSON *v1beta1_flow_distinguisher_method_convertToJSON(v1beta1_flow_distinguisher_method_t *v1beta1_flow_distinguisher_method); - -#endif /* _v1beta1_flow_distinguisher_method_H_ */ - diff --git a/kubernetes/model/v1beta1_flow_schema.c b/kubernetes/model/v1beta1_flow_schema.c deleted file mode 100644 index de8c0d78..00000000 --- a/kubernetes/model/v1beta1_flow_schema.c +++ /dev/null @@ -1,196 +0,0 @@ -#include -#include -#include -#include "v1beta1_flow_schema.h" - - - -v1beta1_flow_schema_t *v1beta1_flow_schema_create( - char *api_version, - char *kind, - v1_object_meta_t *metadata, - v1beta1_flow_schema_spec_t *spec, - v1beta1_flow_schema_status_t *status - ) { - v1beta1_flow_schema_t *v1beta1_flow_schema_local_var = malloc(sizeof(v1beta1_flow_schema_t)); - if (!v1beta1_flow_schema_local_var) { - return NULL; - } - v1beta1_flow_schema_local_var->api_version = api_version; - v1beta1_flow_schema_local_var->kind = kind; - v1beta1_flow_schema_local_var->metadata = metadata; - v1beta1_flow_schema_local_var->spec = spec; - v1beta1_flow_schema_local_var->status = status; - - return v1beta1_flow_schema_local_var; -} - - -void v1beta1_flow_schema_free(v1beta1_flow_schema_t *v1beta1_flow_schema) { - if(NULL == v1beta1_flow_schema){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_flow_schema->api_version) { - free(v1beta1_flow_schema->api_version); - v1beta1_flow_schema->api_version = NULL; - } - if (v1beta1_flow_schema->kind) { - free(v1beta1_flow_schema->kind); - v1beta1_flow_schema->kind = NULL; - } - if (v1beta1_flow_schema->metadata) { - v1_object_meta_free(v1beta1_flow_schema->metadata); - v1beta1_flow_schema->metadata = NULL; - } - if (v1beta1_flow_schema->spec) { - v1beta1_flow_schema_spec_free(v1beta1_flow_schema->spec); - v1beta1_flow_schema->spec = NULL; - } - if (v1beta1_flow_schema->status) { - v1beta1_flow_schema_status_free(v1beta1_flow_schema->status); - v1beta1_flow_schema->status = NULL; - } - free(v1beta1_flow_schema); -} - -cJSON *v1beta1_flow_schema_convertToJSON(v1beta1_flow_schema_t *v1beta1_flow_schema) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_flow_schema->api_version - if(v1beta1_flow_schema->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v1beta1_flow_schema->api_version) == NULL) { - goto fail; //String - } - } - - - // v1beta1_flow_schema->kind - if(v1beta1_flow_schema->kind) { - if(cJSON_AddStringToObject(item, "kind", v1beta1_flow_schema->kind) == NULL) { - goto fail; //String - } - } - - - // v1beta1_flow_schema->metadata - if(v1beta1_flow_schema->metadata) { - cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1beta1_flow_schema->metadata); - if(metadata_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_flow_schema->spec - if(v1beta1_flow_schema->spec) { - cJSON *spec_local_JSON = v1beta1_flow_schema_spec_convertToJSON(v1beta1_flow_schema->spec); - if(spec_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "spec", spec_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_flow_schema->status - if(v1beta1_flow_schema->status) { - cJSON *status_local_JSON = v1beta1_flow_schema_status_convertToJSON(v1beta1_flow_schema->status); - if(status_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "status", status_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_flow_schema_t *v1beta1_flow_schema_parseFromJSON(cJSON *v1beta1_flow_schemaJSON){ - - v1beta1_flow_schema_t *v1beta1_flow_schema_local_var = NULL; - - // define the local variable for v1beta1_flow_schema->metadata - v1_object_meta_t *metadata_local_nonprim = NULL; - - // define the local variable for v1beta1_flow_schema->spec - v1beta1_flow_schema_spec_t *spec_local_nonprim = NULL; - - // define the local variable for v1beta1_flow_schema->status - v1beta1_flow_schema_status_t *status_local_nonprim = NULL; - - // v1beta1_flow_schema->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schemaJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) - { - goto end; //String - } - } - - // v1beta1_flow_schema->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schemaJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) - { - goto end; //String - } - } - - // v1beta1_flow_schema->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schemaJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive - } - - // v1beta1_flow_schema->spec - cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schemaJSON, "spec"); - if (spec) { - spec_local_nonprim = v1beta1_flow_schema_spec_parseFromJSON(spec); //nonprimitive - } - - // v1beta1_flow_schema->status - cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schemaJSON, "status"); - if (status) { - status_local_nonprim = v1beta1_flow_schema_status_parseFromJSON(status); //nonprimitive - } - - - v1beta1_flow_schema_local_var = v1beta1_flow_schema_create ( - api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, - kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL, - spec ? spec_local_nonprim : NULL, - status ? status_local_nonprim : NULL - ); - - return v1beta1_flow_schema_local_var; -end: - if (metadata_local_nonprim) { - v1_object_meta_free(metadata_local_nonprim); - metadata_local_nonprim = NULL; - } - if (spec_local_nonprim) { - v1beta1_flow_schema_spec_free(spec_local_nonprim); - spec_local_nonprim = NULL; - } - if (status_local_nonprim) { - v1beta1_flow_schema_status_free(status_local_nonprim); - status_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_flow_schema.h b/kubernetes/model/v1beta1_flow_schema.h deleted file mode 100644 index 3035afcd..00000000 --- a/kubernetes/model/v1beta1_flow_schema.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * v1beta1_flow_schema.h - * - * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\". - */ - -#ifndef _v1beta1_flow_schema_H_ -#define _v1beta1_flow_schema_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_flow_schema_t v1beta1_flow_schema_t; - -#include "v1_object_meta.h" -#include "v1beta1_flow_schema_spec.h" -#include "v1beta1_flow_schema_status.h" - - - -typedef struct v1beta1_flow_schema_t { - char *api_version; // string - char *kind; // string - struct v1_object_meta_t *metadata; //model - struct v1beta1_flow_schema_spec_t *spec; //model - struct v1beta1_flow_schema_status_t *status; //model - -} v1beta1_flow_schema_t; - -v1beta1_flow_schema_t *v1beta1_flow_schema_create( - char *api_version, - char *kind, - v1_object_meta_t *metadata, - v1beta1_flow_schema_spec_t *spec, - v1beta1_flow_schema_status_t *status -); - -void v1beta1_flow_schema_free(v1beta1_flow_schema_t *v1beta1_flow_schema); - -v1beta1_flow_schema_t *v1beta1_flow_schema_parseFromJSON(cJSON *v1beta1_flow_schemaJSON); - -cJSON *v1beta1_flow_schema_convertToJSON(v1beta1_flow_schema_t *v1beta1_flow_schema); - -#endif /* _v1beta1_flow_schema_H_ */ - diff --git a/kubernetes/model/v1beta1_flow_schema_condition.c b/kubernetes/model/v1beta1_flow_schema_condition.c deleted file mode 100644 index ebe189b5..00000000 --- a/kubernetes/model/v1beta1_flow_schema_condition.c +++ /dev/null @@ -1,169 +0,0 @@ -#include -#include -#include -#include "v1beta1_flow_schema_condition.h" - - - -v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition_create( - char *last_transition_time, - char *message, - char *reason, - char *status, - char *type - ) { - v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition_local_var = malloc(sizeof(v1beta1_flow_schema_condition_t)); - if (!v1beta1_flow_schema_condition_local_var) { - return NULL; - } - v1beta1_flow_schema_condition_local_var->last_transition_time = last_transition_time; - v1beta1_flow_schema_condition_local_var->message = message; - v1beta1_flow_schema_condition_local_var->reason = reason; - v1beta1_flow_schema_condition_local_var->status = status; - v1beta1_flow_schema_condition_local_var->type = type; - - return v1beta1_flow_schema_condition_local_var; -} - - -void v1beta1_flow_schema_condition_free(v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition) { - if(NULL == v1beta1_flow_schema_condition){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_flow_schema_condition->last_transition_time) { - free(v1beta1_flow_schema_condition->last_transition_time); - v1beta1_flow_schema_condition->last_transition_time = NULL; - } - if (v1beta1_flow_schema_condition->message) { - free(v1beta1_flow_schema_condition->message); - v1beta1_flow_schema_condition->message = NULL; - } - if (v1beta1_flow_schema_condition->reason) { - free(v1beta1_flow_schema_condition->reason); - v1beta1_flow_schema_condition->reason = NULL; - } - if (v1beta1_flow_schema_condition->status) { - free(v1beta1_flow_schema_condition->status); - v1beta1_flow_schema_condition->status = NULL; - } - if (v1beta1_flow_schema_condition->type) { - free(v1beta1_flow_schema_condition->type); - v1beta1_flow_schema_condition->type = NULL; - } - free(v1beta1_flow_schema_condition); -} - -cJSON *v1beta1_flow_schema_condition_convertToJSON(v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_flow_schema_condition->last_transition_time - if(v1beta1_flow_schema_condition->last_transition_time) { - if(cJSON_AddStringToObject(item, "lastTransitionTime", v1beta1_flow_schema_condition->last_transition_time) == NULL) { - goto fail; //Date-Time - } - } - - - // v1beta1_flow_schema_condition->message - if(v1beta1_flow_schema_condition->message) { - if(cJSON_AddStringToObject(item, "message", v1beta1_flow_schema_condition->message) == NULL) { - goto fail; //String - } - } - - - // v1beta1_flow_schema_condition->reason - if(v1beta1_flow_schema_condition->reason) { - if(cJSON_AddStringToObject(item, "reason", v1beta1_flow_schema_condition->reason) == NULL) { - goto fail; //String - } - } - - - // v1beta1_flow_schema_condition->status - if(v1beta1_flow_schema_condition->status) { - if(cJSON_AddStringToObject(item, "status", v1beta1_flow_schema_condition->status) == NULL) { - goto fail; //String - } - } - - - // v1beta1_flow_schema_condition->type - if(v1beta1_flow_schema_condition->type) { - if(cJSON_AddStringToObject(item, "type", v1beta1_flow_schema_condition->type) == NULL) { - goto fail; //String - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition_parseFromJSON(cJSON *v1beta1_flow_schema_conditionJSON){ - - v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition_local_var = NULL; - - // v1beta1_flow_schema_condition->last_transition_time - cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_conditionJSON, "lastTransitionTime"); - if (last_transition_time) { - if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) - { - goto end; //DateTime - } - } - - // v1beta1_flow_schema_condition->message - cJSON *message = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_conditionJSON, "message"); - if (message) { - if(!cJSON_IsString(message) && !cJSON_IsNull(message)) - { - goto end; //String - } - } - - // v1beta1_flow_schema_condition->reason - cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_conditionJSON, "reason"); - if (reason) { - if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) - { - goto end; //String - } - } - - // v1beta1_flow_schema_condition->status - cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_conditionJSON, "status"); - if (status) { - if(!cJSON_IsString(status) && !cJSON_IsNull(status)) - { - goto end; //String - } - } - - // v1beta1_flow_schema_condition->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_conditionJSON, "type"); - if (type) { - if(!cJSON_IsString(type) && !cJSON_IsNull(type)) - { - goto end; //String - } - } - - - v1beta1_flow_schema_condition_local_var = v1beta1_flow_schema_condition_create ( - last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, - reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, - status && !cJSON_IsNull(status) ? strdup(status->valuestring) : NULL, - type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL - ); - - return v1beta1_flow_schema_condition_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_flow_schema_condition.h b/kubernetes/model/v1beta1_flow_schema_condition.h deleted file mode 100644 index 58d66d23..00000000 --- a/kubernetes/model/v1beta1_flow_schema_condition.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v1beta1_flow_schema_condition.h - * - * FlowSchemaCondition describes conditions for a FlowSchema. - */ - -#ifndef _v1beta1_flow_schema_condition_H_ -#define _v1beta1_flow_schema_condition_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_flow_schema_condition_t v1beta1_flow_schema_condition_t; - - - - -typedef struct v1beta1_flow_schema_condition_t { - char *last_transition_time; //date time - char *message; // string - char *reason; // string - char *status; // string - char *type; // string - -} v1beta1_flow_schema_condition_t; - -v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition_create( - char *last_transition_time, - char *message, - char *reason, - char *status, - char *type -); - -void v1beta1_flow_schema_condition_free(v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition); - -v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition_parseFromJSON(cJSON *v1beta1_flow_schema_conditionJSON); - -cJSON *v1beta1_flow_schema_condition_convertToJSON(v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition); - -#endif /* _v1beta1_flow_schema_condition_H_ */ - diff --git a/kubernetes/model/v1beta1_flow_schema_list.c b/kubernetes/model/v1beta1_flow_schema_list.c deleted file mode 100644 index 3ef6da2c..00000000 --- a/kubernetes/model/v1beta1_flow_schema_list.c +++ /dev/null @@ -1,197 +0,0 @@ -#include -#include -#include -#include "v1beta1_flow_schema_list.h" - - - -v1beta1_flow_schema_list_t *v1beta1_flow_schema_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata - ) { - v1beta1_flow_schema_list_t *v1beta1_flow_schema_list_local_var = malloc(sizeof(v1beta1_flow_schema_list_t)); - if (!v1beta1_flow_schema_list_local_var) { - return NULL; - } - v1beta1_flow_schema_list_local_var->api_version = api_version; - v1beta1_flow_schema_list_local_var->items = items; - v1beta1_flow_schema_list_local_var->kind = kind; - v1beta1_flow_schema_list_local_var->metadata = metadata; - - return v1beta1_flow_schema_list_local_var; -} - - -void v1beta1_flow_schema_list_free(v1beta1_flow_schema_list_t *v1beta1_flow_schema_list) { - if(NULL == v1beta1_flow_schema_list){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_flow_schema_list->api_version) { - free(v1beta1_flow_schema_list->api_version); - v1beta1_flow_schema_list->api_version = NULL; - } - if (v1beta1_flow_schema_list->items) { - list_ForEach(listEntry, v1beta1_flow_schema_list->items) { - v1beta1_flow_schema_free(listEntry->data); - } - list_freeList(v1beta1_flow_schema_list->items); - v1beta1_flow_schema_list->items = NULL; - } - if (v1beta1_flow_schema_list->kind) { - free(v1beta1_flow_schema_list->kind); - v1beta1_flow_schema_list->kind = NULL; - } - if (v1beta1_flow_schema_list->metadata) { - v1_list_meta_free(v1beta1_flow_schema_list->metadata); - v1beta1_flow_schema_list->metadata = NULL; - } - free(v1beta1_flow_schema_list); -} - -cJSON *v1beta1_flow_schema_list_convertToJSON(v1beta1_flow_schema_list_t *v1beta1_flow_schema_list) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_flow_schema_list->api_version - if(v1beta1_flow_schema_list->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v1beta1_flow_schema_list->api_version) == NULL) { - goto fail; //String - } - } - - - // v1beta1_flow_schema_list->items - if (!v1beta1_flow_schema_list->items) { - goto fail; - } - cJSON *items = cJSON_AddArrayToObject(item, "items"); - if(items == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *itemsListEntry; - if (v1beta1_flow_schema_list->items) { - list_ForEach(itemsListEntry, v1beta1_flow_schema_list->items) { - cJSON *itemLocal = v1beta1_flow_schema_convertToJSON(itemsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(items, itemLocal); - } - } - - - // v1beta1_flow_schema_list->kind - if(v1beta1_flow_schema_list->kind) { - if(cJSON_AddStringToObject(item, "kind", v1beta1_flow_schema_list->kind) == NULL) { - goto fail; //String - } - } - - - // v1beta1_flow_schema_list->metadata - if(v1beta1_flow_schema_list->metadata) { - cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1beta1_flow_schema_list->metadata); - if(metadata_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_flow_schema_list_t *v1beta1_flow_schema_list_parseFromJSON(cJSON *v1beta1_flow_schema_listJSON){ - - v1beta1_flow_schema_list_t *v1beta1_flow_schema_list_local_var = NULL; - - // define the local list for v1beta1_flow_schema_list->items - list_t *itemsList = NULL; - - // define the local variable for v1beta1_flow_schema_list->metadata - v1_list_meta_t *metadata_local_nonprim = NULL; - - // v1beta1_flow_schema_list->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_listJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) - { - goto end; //String - } - } - - // v1beta1_flow_schema_list->items - cJSON *items = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_listJSON, "items"); - if (!items) { - goto end; - } - - - cJSON *items_local_nonprimitive = NULL; - if(!cJSON_IsArray(items)){ - goto end; //nonprimitive container - } - - itemsList = list_createList(); - - cJSON_ArrayForEach(items_local_nonprimitive,items ) - { - if(!cJSON_IsObject(items_local_nonprimitive)){ - goto end; - } - v1beta1_flow_schema_t *itemsItem = v1beta1_flow_schema_parseFromJSON(items_local_nonprimitive); - - list_addElement(itemsList, itemsItem); - } - - // v1beta1_flow_schema_list->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_listJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) - { - goto end; //String - } - } - - // v1beta1_flow_schema_list->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_listJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive - } - - - v1beta1_flow_schema_list_local_var = v1beta1_flow_schema_list_create ( - api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, - itemsList, - kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL - ); - - return v1beta1_flow_schema_list_local_var; -end: - if (itemsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, itemsList) { - v1beta1_flow_schema_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(itemsList); - itemsList = NULL; - } - if (metadata_local_nonprim) { - v1_list_meta_free(metadata_local_nonprim); - metadata_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_flow_schema_list.h b/kubernetes/model/v1beta1_flow_schema_list.h deleted file mode 100644 index 0f35b8f3..00000000 --- a/kubernetes/model/v1beta1_flow_schema_list.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v1beta1_flow_schema_list.h - * - * FlowSchemaList is a list of FlowSchema objects. - */ - -#ifndef _v1beta1_flow_schema_list_H_ -#define _v1beta1_flow_schema_list_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_flow_schema_list_t v1beta1_flow_schema_list_t; - -#include "v1_list_meta.h" -#include "v1beta1_flow_schema.h" - - - -typedef struct v1beta1_flow_schema_list_t { - char *api_version; // string - list_t *items; //nonprimitive container - char *kind; // string - struct v1_list_meta_t *metadata; //model - -} v1beta1_flow_schema_list_t; - -v1beta1_flow_schema_list_t *v1beta1_flow_schema_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata -); - -void v1beta1_flow_schema_list_free(v1beta1_flow_schema_list_t *v1beta1_flow_schema_list); - -v1beta1_flow_schema_list_t *v1beta1_flow_schema_list_parseFromJSON(cJSON *v1beta1_flow_schema_listJSON); - -cJSON *v1beta1_flow_schema_list_convertToJSON(v1beta1_flow_schema_list_t *v1beta1_flow_schema_list); - -#endif /* _v1beta1_flow_schema_list_H_ */ - diff --git a/kubernetes/model/v1beta1_flow_schema_spec.c b/kubernetes/model/v1beta1_flow_schema_spec.c deleted file mode 100644 index 53eda004..00000000 --- a/kubernetes/model/v1beta1_flow_schema_spec.c +++ /dev/null @@ -1,202 +0,0 @@ -#include -#include -#include -#include "v1beta1_flow_schema_spec.h" - - - -v1beta1_flow_schema_spec_t *v1beta1_flow_schema_spec_create( - v1beta1_flow_distinguisher_method_t *distinguisher_method, - int matching_precedence, - v1beta1_priority_level_configuration_reference_t *priority_level_configuration, - list_t *rules - ) { - v1beta1_flow_schema_spec_t *v1beta1_flow_schema_spec_local_var = malloc(sizeof(v1beta1_flow_schema_spec_t)); - if (!v1beta1_flow_schema_spec_local_var) { - return NULL; - } - v1beta1_flow_schema_spec_local_var->distinguisher_method = distinguisher_method; - v1beta1_flow_schema_spec_local_var->matching_precedence = matching_precedence; - v1beta1_flow_schema_spec_local_var->priority_level_configuration = priority_level_configuration; - v1beta1_flow_schema_spec_local_var->rules = rules; - - return v1beta1_flow_schema_spec_local_var; -} - - -void v1beta1_flow_schema_spec_free(v1beta1_flow_schema_spec_t *v1beta1_flow_schema_spec) { - if(NULL == v1beta1_flow_schema_spec){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_flow_schema_spec->distinguisher_method) { - v1beta1_flow_distinguisher_method_free(v1beta1_flow_schema_spec->distinguisher_method); - v1beta1_flow_schema_spec->distinguisher_method = NULL; - } - if (v1beta1_flow_schema_spec->priority_level_configuration) { - v1beta1_priority_level_configuration_reference_free(v1beta1_flow_schema_spec->priority_level_configuration); - v1beta1_flow_schema_spec->priority_level_configuration = NULL; - } - if (v1beta1_flow_schema_spec->rules) { - list_ForEach(listEntry, v1beta1_flow_schema_spec->rules) { - v1beta1_policy_rules_with_subjects_free(listEntry->data); - } - list_freeList(v1beta1_flow_schema_spec->rules); - v1beta1_flow_schema_spec->rules = NULL; - } - free(v1beta1_flow_schema_spec); -} - -cJSON *v1beta1_flow_schema_spec_convertToJSON(v1beta1_flow_schema_spec_t *v1beta1_flow_schema_spec) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_flow_schema_spec->distinguisher_method - if(v1beta1_flow_schema_spec->distinguisher_method) { - cJSON *distinguisher_method_local_JSON = v1beta1_flow_distinguisher_method_convertToJSON(v1beta1_flow_schema_spec->distinguisher_method); - if(distinguisher_method_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "distinguisherMethod", distinguisher_method_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_flow_schema_spec->matching_precedence - if(v1beta1_flow_schema_spec->matching_precedence) { - if(cJSON_AddNumberToObject(item, "matchingPrecedence", v1beta1_flow_schema_spec->matching_precedence) == NULL) { - goto fail; //Numeric - } - } - - - // v1beta1_flow_schema_spec->priority_level_configuration - if (!v1beta1_flow_schema_spec->priority_level_configuration) { - goto fail; - } - cJSON *priority_level_configuration_local_JSON = v1beta1_priority_level_configuration_reference_convertToJSON(v1beta1_flow_schema_spec->priority_level_configuration); - if(priority_level_configuration_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "priorityLevelConfiguration", priority_level_configuration_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v1beta1_flow_schema_spec->rules - if(v1beta1_flow_schema_spec->rules) { - cJSON *rules = cJSON_AddArrayToObject(item, "rules"); - if(rules == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *rulesListEntry; - if (v1beta1_flow_schema_spec->rules) { - list_ForEach(rulesListEntry, v1beta1_flow_schema_spec->rules) { - cJSON *itemLocal = v1beta1_policy_rules_with_subjects_convertToJSON(rulesListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(rules, itemLocal); - } - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_flow_schema_spec_t *v1beta1_flow_schema_spec_parseFromJSON(cJSON *v1beta1_flow_schema_specJSON){ - - v1beta1_flow_schema_spec_t *v1beta1_flow_schema_spec_local_var = NULL; - - // define the local variable for v1beta1_flow_schema_spec->distinguisher_method - v1beta1_flow_distinguisher_method_t *distinguisher_method_local_nonprim = NULL; - - // define the local variable for v1beta1_flow_schema_spec->priority_level_configuration - v1beta1_priority_level_configuration_reference_t *priority_level_configuration_local_nonprim = NULL; - - // define the local list for v1beta1_flow_schema_spec->rules - list_t *rulesList = NULL; - - // v1beta1_flow_schema_spec->distinguisher_method - cJSON *distinguisher_method = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_specJSON, "distinguisherMethod"); - if (distinguisher_method) { - distinguisher_method_local_nonprim = v1beta1_flow_distinguisher_method_parseFromJSON(distinguisher_method); //nonprimitive - } - - // v1beta1_flow_schema_spec->matching_precedence - cJSON *matching_precedence = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_specJSON, "matchingPrecedence"); - if (matching_precedence) { - if(!cJSON_IsNumber(matching_precedence)) - { - goto end; //Numeric - } - } - - // v1beta1_flow_schema_spec->priority_level_configuration - cJSON *priority_level_configuration = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_specJSON, "priorityLevelConfiguration"); - if (!priority_level_configuration) { - goto end; - } - - - priority_level_configuration_local_nonprim = v1beta1_priority_level_configuration_reference_parseFromJSON(priority_level_configuration); //nonprimitive - - // v1beta1_flow_schema_spec->rules - cJSON *rules = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_specJSON, "rules"); - if (rules) { - cJSON *rules_local_nonprimitive = NULL; - if(!cJSON_IsArray(rules)){ - goto end; //nonprimitive container - } - - rulesList = list_createList(); - - cJSON_ArrayForEach(rules_local_nonprimitive,rules ) - { - if(!cJSON_IsObject(rules_local_nonprimitive)){ - goto end; - } - v1beta1_policy_rules_with_subjects_t *rulesItem = v1beta1_policy_rules_with_subjects_parseFromJSON(rules_local_nonprimitive); - - list_addElement(rulesList, rulesItem); - } - } - - - v1beta1_flow_schema_spec_local_var = v1beta1_flow_schema_spec_create ( - distinguisher_method ? distinguisher_method_local_nonprim : NULL, - matching_precedence ? matching_precedence->valuedouble : 0, - priority_level_configuration_local_nonprim, - rules ? rulesList : NULL - ); - - return v1beta1_flow_schema_spec_local_var; -end: - if (distinguisher_method_local_nonprim) { - v1beta1_flow_distinguisher_method_free(distinguisher_method_local_nonprim); - distinguisher_method_local_nonprim = NULL; - } - if (priority_level_configuration_local_nonprim) { - v1beta1_priority_level_configuration_reference_free(priority_level_configuration_local_nonprim); - priority_level_configuration_local_nonprim = NULL; - } - if (rulesList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, rulesList) { - v1beta1_policy_rules_with_subjects_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(rulesList); - rulesList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_flow_schema_spec.h b/kubernetes/model/v1beta1_flow_schema_spec.h deleted file mode 100644 index 967fbe88..00000000 --- a/kubernetes/model/v1beta1_flow_schema_spec.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * v1beta1_flow_schema_spec.h - * - * FlowSchemaSpec describes how the FlowSchema's specification looks like. - */ - -#ifndef _v1beta1_flow_schema_spec_H_ -#define _v1beta1_flow_schema_spec_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_flow_schema_spec_t v1beta1_flow_schema_spec_t; - -#include "v1beta1_flow_distinguisher_method.h" -#include "v1beta1_policy_rules_with_subjects.h" -#include "v1beta1_priority_level_configuration_reference.h" - - - -typedef struct v1beta1_flow_schema_spec_t { - struct v1beta1_flow_distinguisher_method_t *distinguisher_method; //model - int matching_precedence; //numeric - struct v1beta1_priority_level_configuration_reference_t *priority_level_configuration; //model - list_t *rules; //nonprimitive container - -} v1beta1_flow_schema_spec_t; - -v1beta1_flow_schema_spec_t *v1beta1_flow_schema_spec_create( - v1beta1_flow_distinguisher_method_t *distinguisher_method, - int matching_precedence, - v1beta1_priority_level_configuration_reference_t *priority_level_configuration, - list_t *rules -); - -void v1beta1_flow_schema_spec_free(v1beta1_flow_schema_spec_t *v1beta1_flow_schema_spec); - -v1beta1_flow_schema_spec_t *v1beta1_flow_schema_spec_parseFromJSON(cJSON *v1beta1_flow_schema_specJSON); - -cJSON *v1beta1_flow_schema_spec_convertToJSON(v1beta1_flow_schema_spec_t *v1beta1_flow_schema_spec); - -#endif /* _v1beta1_flow_schema_spec_H_ */ - diff --git a/kubernetes/model/v1beta1_flow_schema_status.c b/kubernetes/model/v1beta1_flow_schema_status.c deleted file mode 100644 index e4c6cd04..00000000 --- a/kubernetes/model/v1beta1_flow_schema_status.c +++ /dev/null @@ -1,112 +0,0 @@ -#include -#include -#include -#include "v1beta1_flow_schema_status.h" - - - -v1beta1_flow_schema_status_t *v1beta1_flow_schema_status_create( - list_t *conditions - ) { - v1beta1_flow_schema_status_t *v1beta1_flow_schema_status_local_var = malloc(sizeof(v1beta1_flow_schema_status_t)); - if (!v1beta1_flow_schema_status_local_var) { - return NULL; - } - v1beta1_flow_schema_status_local_var->conditions = conditions; - - return v1beta1_flow_schema_status_local_var; -} - - -void v1beta1_flow_schema_status_free(v1beta1_flow_schema_status_t *v1beta1_flow_schema_status) { - if(NULL == v1beta1_flow_schema_status){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_flow_schema_status->conditions) { - list_ForEach(listEntry, v1beta1_flow_schema_status->conditions) { - v1beta1_flow_schema_condition_free(listEntry->data); - } - list_freeList(v1beta1_flow_schema_status->conditions); - v1beta1_flow_schema_status->conditions = NULL; - } - free(v1beta1_flow_schema_status); -} - -cJSON *v1beta1_flow_schema_status_convertToJSON(v1beta1_flow_schema_status_t *v1beta1_flow_schema_status) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_flow_schema_status->conditions - if(v1beta1_flow_schema_status->conditions) { - cJSON *conditions = cJSON_AddArrayToObject(item, "conditions"); - if(conditions == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *conditionsListEntry; - if (v1beta1_flow_schema_status->conditions) { - list_ForEach(conditionsListEntry, v1beta1_flow_schema_status->conditions) { - cJSON *itemLocal = v1beta1_flow_schema_condition_convertToJSON(conditionsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(conditions, itemLocal); - } - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_flow_schema_status_t *v1beta1_flow_schema_status_parseFromJSON(cJSON *v1beta1_flow_schema_statusJSON){ - - v1beta1_flow_schema_status_t *v1beta1_flow_schema_status_local_var = NULL; - - // define the local list for v1beta1_flow_schema_status->conditions - list_t *conditionsList = NULL; - - // v1beta1_flow_schema_status->conditions - cJSON *conditions = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_statusJSON, "conditions"); - if (conditions) { - cJSON *conditions_local_nonprimitive = NULL; - if(!cJSON_IsArray(conditions)){ - goto end; //nonprimitive container - } - - conditionsList = list_createList(); - - cJSON_ArrayForEach(conditions_local_nonprimitive,conditions ) - { - if(!cJSON_IsObject(conditions_local_nonprimitive)){ - goto end; - } - v1beta1_flow_schema_condition_t *conditionsItem = v1beta1_flow_schema_condition_parseFromJSON(conditions_local_nonprimitive); - - list_addElement(conditionsList, conditionsItem); - } - } - - - v1beta1_flow_schema_status_local_var = v1beta1_flow_schema_status_create ( - conditions ? conditionsList : NULL - ); - - return v1beta1_flow_schema_status_local_var; -end: - if (conditionsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, conditionsList) { - v1beta1_flow_schema_condition_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(conditionsList); - conditionsList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_flow_schema_status.h b/kubernetes/model/v1beta1_flow_schema_status.h deleted file mode 100644 index c6725bd8..00000000 --- a/kubernetes/model/v1beta1_flow_schema_status.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * v1beta1_flow_schema_status.h - * - * FlowSchemaStatus represents the current state of a FlowSchema. - */ - -#ifndef _v1beta1_flow_schema_status_H_ -#define _v1beta1_flow_schema_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_flow_schema_status_t v1beta1_flow_schema_status_t; - -#include "v1beta1_flow_schema_condition.h" - - - -typedef struct v1beta1_flow_schema_status_t { - list_t *conditions; //nonprimitive container - -} v1beta1_flow_schema_status_t; - -v1beta1_flow_schema_status_t *v1beta1_flow_schema_status_create( - list_t *conditions -); - -void v1beta1_flow_schema_status_free(v1beta1_flow_schema_status_t *v1beta1_flow_schema_status); - -v1beta1_flow_schema_status_t *v1beta1_flow_schema_status_parseFromJSON(cJSON *v1beta1_flow_schema_statusJSON); - -cJSON *v1beta1_flow_schema_status_convertToJSON(v1beta1_flow_schema_status_t *v1beta1_flow_schema_status); - -#endif /* _v1beta1_flow_schema_status_H_ */ - diff --git a/kubernetes/model/v1beta1_group_subject.c b/kubernetes/model/v1beta1_group_subject.c deleted file mode 100644 index deaf2f26..00000000 --- a/kubernetes/model/v1beta1_group_subject.c +++ /dev/null @@ -1,77 +0,0 @@ -#include -#include -#include -#include "v1beta1_group_subject.h" - - - -v1beta1_group_subject_t *v1beta1_group_subject_create( - char *name - ) { - v1beta1_group_subject_t *v1beta1_group_subject_local_var = malloc(sizeof(v1beta1_group_subject_t)); - if (!v1beta1_group_subject_local_var) { - return NULL; - } - v1beta1_group_subject_local_var->name = name; - - return v1beta1_group_subject_local_var; -} - - -void v1beta1_group_subject_free(v1beta1_group_subject_t *v1beta1_group_subject) { - if(NULL == v1beta1_group_subject){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_group_subject->name) { - free(v1beta1_group_subject->name); - v1beta1_group_subject->name = NULL; - } - free(v1beta1_group_subject); -} - -cJSON *v1beta1_group_subject_convertToJSON(v1beta1_group_subject_t *v1beta1_group_subject) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_group_subject->name - if (!v1beta1_group_subject->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v1beta1_group_subject->name) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_group_subject_t *v1beta1_group_subject_parseFromJSON(cJSON *v1beta1_group_subjectJSON){ - - v1beta1_group_subject_t *v1beta1_group_subject_local_var = NULL; - - // v1beta1_group_subject->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v1beta1_group_subjectJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - - v1beta1_group_subject_local_var = v1beta1_group_subject_create ( - strdup(name->valuestring) - ); - - return v1beta1_group_subject_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_group_subject.h b/kubernetes/model/v1beta1_group_subject.h deleted file mode 100644 index 40738e18..00000000 --- a/kubernetes/model/v1beta1_group_subject.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * v1beta1_group_subject.h - * - * GroupSubject holds detailed information for group-kind subject. - */ - -#ifndef _v1beta1_group_subject_H_ -#define _v1beta1_group_subject_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_group_subject_t v1beta1_group_subject_t; - - - - -typedef struct v1beta1_group_subject_t { - char *name; // string - -} v1beta1_group_subject_t; - -v1beta1_group_subject_t *v1beta1_group_subject_create( - char *name -); - -void v1beta1_group_subject_free(v1beta1_group_subject_t *v1beta1_group_subject); - -v1beta1_group_subject_t *v1beta1_group_subject_parseFromJSON(cJSON *v1beta1_group_subjectJSON); - -cJSON *v1beta1_group_subject_convertToJSON(v1beta1_group_subject_t *v1beta1_group_subject); - -#endif /* _v1beta1_group_subject_H_ */ - diff --git a/kubernetes/model/v1beta1_limit_response.c b/kubernetes/model/v1beta1_limit_response.c deleted file mode 100644 index e4356d6b..00000000 --- a/kubernetes/model/v1beta1_limit_response.c +++ /dev/null @@ -1,110 +0,0 @@ -#include -#include -#include -#include "v1beta1_limit_response.h" - - - -v1beta1_limit_response_t *v1beta1_limit_response_create( - v1beta1_queuing_configuration_t *queuing, - char *type - ) { - v1beta1_limit_response_t *v1beta1_limit_response_local_var = malloc(sizeof(v1beta1_limit_response_t)); - if (!v1beta1_limit_response_local_var) { - return NULL; - } - v1beta1_limit_response_local_var->queuing = queuing; - v1beta1_limit_response_local_var->type = type; - - return v1beta1_limit_response_local_var; -} - - -void v1beta1_limit_response_free(v1beta1_limit_response_t *v1beta1_limit_response) { - if(NULL == v1beta1_limit_response){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_limit_response->queuing) { - v1beta1_queuing_configuration_free(v1beta1_limit_response->queuing); - v1beta1_limit_response->queuing = NULL; - } - if (v1beta1_limit_response->type) { - free(v1beta1_limit_response->type); - v1beta1_limit_response->type = NULL; - } - free(v1beta1_limit_response); -} - -cJSON *v1beta1_limit_response_convertToJSON(v1beta1_limit_response_t *v1beta1_limit_response) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_limit_response->queuing - if(v1beta1_limit_response->queuing) { - cJSON *queuing_local_JSON = v1beta1_queuing_configuration_convertToJSON(v1beta1_limit_response->queuing); - if(queuing_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "queuing", queuing_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_limit_response->type - if (!v1beta1_limit_response->type) { - goto fail; - } - if(cJSON_AddStringToObject(item, "type", v1beta1_limit_response->type) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_limit_response_t *v1beta1_limit_response_parseFromJSON(cJSON *v1beta1_limit_responseJSON){ - - v1beta1_limit_response_t *v1beta1_limit_response_local_var = NULL; - - // define the local variable for v1beta1_limit_response->queuing - v1beta1_queuing_configuration_t *queuing_local_nonprim = NULL; - - // v1beta1_limit_response->queuing - cJSON *queuing = cJSON_GetObjectItemCaseSensitive(v1beta1_limit_responseJSON, "queuing"); - if (queuing) { - queuing_local_nonprim = v1beta1_queuing_configuration_parseFromJSON(queuing); //nonprimitive - } - - // v1beta1_limit_response->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta1_limit_responseJSON, "type"); - if (!type) { - goto end; - } - - - if(!cJSON_IsString(type)) - { - goto end; //String - } - - - v1beta1_limit_response_local_var = v1beta1_limit_response_create ( - queuing ? queuing_local_nonprim : NULL, - strdup(type->valuestring) - ); - - return v1beta1_limit_response_local_var; -end: - if (queuing_local_nonprim) { - v1beta1_queuing_configuration_free(queuing_local_nonprim); - queuing_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_limit_response.h b/kubernetes/model/v1beta1_limit_response.h deleted file mode 100644 index 7c95fe47..00000000 --- a/kubernetes/model/v1beta1_limit_response.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * v1beta1_limit_response.h - * - * LimitResponse defines how to handle requests that can not be executed right now. - */ - -#ifndef _v1beta1_limit_response_H_ -#define _v1beta1_limit_response_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_limit_response_t v1beta1_limit_response_t; - -#include "v1beta1_queuing_configuration.h" - - - -typedef struct v1beta1_limit_response_t { - struct v1beta1_queuing_configuration_t *queuing; //model - char *type; // string - -} v1beta1_limit_response_t; - -v1beta1_limit_response_t *v1beta1_limit_response_create( - v1beta1_queuing_configuration_t *queuing, - char *type -); - -void v1beta1_limit_response_free(v1beta1_limit_response_t *v1beta1_limit_response); - -v1beta1_limit_response_t *v1beta1_limit_response_parseFromJSON(cJSON *v1beta1_limit_responseJSON); - -cJSON *v1beta1_limit_response_convertToJSON(v1beta1_limit_response_t *v1beta1_limit_response); - -#endif /* _v1beta1_limit_response_H_ */ - diff --git a/kubernetes/model/v1beta1_limited_priority_level_configuration.c b/kubernetes/model/v1beta1_limited_priority_level_configuration.c deleted file mode 100644 index c6f4e0fc..00000000 --- a/kubernetes/model/v1beta1_limited_priority_level_configuration.c +++ /dev/null @@ -1,102 +0,0 @@ -#include -#include -#include -#include "v1beta1_limited_priority_level_configuration.h" - - - -v1beta1_limited_priority_level_configuration_t *v1beta1_limited_priority_level_configuration_create( - int assured_concurrency_shares, - v1beta1_limit_response_t *limit_response - ) { - v1beta1_limited_priority_level_configuration_t *v1beta1_limited_priority_level_configuration_local_var = malloc(sizeof(v1beta1_limited_priority_level_configuration_t)); - if (!v1beta1_limited_priority_level_configuration_local_var) { - return NULL; - } - v1beta1_limited_priority_level_configuration_local_var->assured_concurrency_shares = assured_concurrency_shares; - v1beta1_limited_priority_level_configuration_local_var->limit_response = limit_response; - - return v1beta1_limited_priority_level_configuration_local_var; -} - - -void v1beta1_limited_priority_level_configuration_free(v1beta1_limited_priority_level_configuration_t *v1beta1_limited_priority_level_configuration) { - if(NULL == v1beta1_limited_priority_level_configuration){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_limited_priority_level_configuration->limit_response) { - v1beta1_limit_response_free(v1beta1_limited_priority_level_configuration->limit_response); - v1beta1_limited_priority_level_configuration->limit_response = NULL; - } - free(v1beta1_limited_priority_level_configuration); -} - -cJSON *v1beta1_limited_priority_level_configuration_convertToJSON(v1beta1_limited_priority_level_configuration_t *v1beta1_limited_priority_level_configuration) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_limited_priority_level_configuration->assured_concurrency_shares - if(v1beta1_limited_priority_level_configuration->assured_concurrency_shares) { - if(cJSON_AddNumberToObject(item, "assuredConcurrencyShares", v1beta1_limited_priority_level_configuration->assured_concurrency_shares) == NULL) { - goto fail; //Numeric - } - } - - - // v1beta1_limited_priority_level_configuration->limit_response - if(v1beta1_limited_priority_level_configuration->limit_response) { - cJSON *limit_response_local_JSON = v1beta1_limit_response_convertToJSON(v1beta1_limited_priority_level_configuration->limit_response); - if(limit_response_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "limitResponse", limit_response_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_limited_priority_level_configuration_t *v1beta1_limited_priority_level_configuration_parseFromJSON(cJSON *v1beta1_limited_priority_level_configurationJSON){ - - v1beta1_limited_priority_level_configuration_t *v1beta1_limited_priority_level_configuration_local_var = NULL; - - // define the local variable for v1beta1_limited_priority_level_configuration->limit_response - v1beta1_limit_response_t *limit_response_local_nonprim = NULL; - - // v1beta1_limited_priority_level_configuration->assured_concurrency_shares - cJSON *assured_concurrency_shares = cJSON_GetObjectItemCaseSensitive(v1beta1_limited_priority_level_configurationJSON, "assuredConcurrencyShares"); - if (assured_concurrency_shares) { - if(!cJSON_IsNumber(assured_concurrency_shares)) - { - goto end; //Numeric - } - } - - // v1beta1_limited_priority_level_configuration->limit_response - cJSON *limit_response = cJSON_GetObjectItemCaseSensitive(v1beta1_limited_priority_level_configurationJSON, "limitResponse"); - if (limit_response) { - limit_response_local_nonprim = v1beta1_limit_response_parseFromJSON(limit_response); //nonprimitive - } - - - v1beta1_limited_priority_level_configuration_local_var = v1beta1_limited_priority_level_configuration_create ( - assured_concurrency_shares ? assured_concurrency_shares->valuedouble : 0, - limit_response ? limit_response_local_nonprim : NULL - ); - - return v1beta1_limited_priority_level_configuration_local_var; -end: - if (limit_response_local_nonprim) { - v1beta1_limit_response_free(limit_response_local_nonprim); - limit_response_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_limited_priority_level_configuration.h b/kubernetes/model/v1beta1_limited_priority_level_configuration.h deleted file mode 100644 index f5a4b594..00000000 --- a/kubernetes/model/v1beta1_limited_priority_level_configuration.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * v1beta1_limited_priority_level_configuration.h - * - * LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: - How are requests for this priority level limited? - What should be done with requests that exceed the limit? - */ - -#ifndef _v1beta1_limited_priority_level_configuration_H_ -#define _v1beta1_limited_priority_level_configuration_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_limited_priority_level_configuration_t v1beta1_limited_priority_level_configuration_t; - -#include "v1beta1_limit_response.h" - - - -typedef struct v1beta1_limited_priority_level_configuration_t { - int assured_concurrency_shares; //numeric - struct v1beta1_limit_response_t *limit_response; //model - -} v1beta1_limited_priority_level_configuration_t; - -v1beta1_limited_priority_level_configuration_t *v1beta1_limited_priority_level_configuration_create( - int assured_concurrency_shares, - v1beta1_limit_response_t *limit_response -); - -void v1beta1_limited_priority_level_configuration_free(v1beta1_limited_priority_level_configuration_t *v1beta1_limited_priority_level_configuration); - -v1beta1_limited_priority_level_configuration_t *v1beta1_limited_priority_level_configuration_parseFromJSON(cJSON *v1beta1_limited_priority_level_configurationJSON); - -cJSON *v1beta1_limited_priority_level_configuration_convertToJSON(v1beta1_limited_priority_level_configuration_t *v1beta1_limited_priority_level_configuration); - -#endif /* _v1beta1_limited_priority_level_configuration_H_ */ - diff --git a/kubernetes/model/v1beta1_non_resource_policy_rule.h b/kubernetes/model/v1beta1_non_resource_policy_rule.h deleted file mode 100644 index bc3064fd..00000000 --- a/kubernetes/model/v1beta1_non_resource_policy_rule.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * v1beta1_non_resource_policy_rule.h - * - * NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. - */ - -#ifndef _v1beta1_non_resource_policy_rule_H_ -#define _v1beta1_non_resource_policy_rule_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_non_resource_policy_rule_t v1beta1_non_resource_policy_rule_t; - - - - -typedef struct v1beta1_non_resource_policy_rule_t { - list_t *non_resource_urls; //primitive container - list_t *verbs; //primitive container - -} v1beta1_non_resource_policy_rule_t; - -v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule_create( - list_t *non_resource_urls, - list_t *verbs -); - -void v1beta1_non_resource_policy_rule_free(v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule); - -v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule_parseFromJSON(cJSON *v1beta1_non_resource_policy_ruleJSON); - -cJSON *v1beta1_non_resource_policy_rule_convertToJSON(v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule); - -#endif /* _v1beta1_non_resource_policy_rule_H_ */ - diff --git a/kubernetes/model/v1beta1_policy_rules_with_subjects.h b/kubernetes/model/v1beta1_policy_rules_with_subjects.h deleted file mode 100644 index 48f2ec12..00000000 --- a/kubernetes/model/v1beta1_policy_rules_with_subjects.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * v1beta1_policy_rules_with_subjects.h - * - * PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request. - */ - -#ifndef _v1beta1_policy_rules_with_subjects_H_ -#define _v1beta1_policy_rules_with_subjects_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_policy_rules_with_subjects_t v1beta1_policy_rules_with_subjects_t; - -#include "v1beta1_non_resource_policy_rule.h" -#include "v1beta1_resource_policy_rule.h" -#include "v1beta1_subject.h" - - - -typedef struct v1beta1_policy_rules_with_subjects_t { - list_t *non_resource_rules; //nonprimitive container - list_t *resource_rules; //nonprimitive container - list_t *subjects; //nonprimitive container - -} v1beta1_policy_rules_with_subjects_t; - -v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects_create( - list_t *non_resource_rules, - list_t *resource_rules, - list_t *subjects -); - -void v1beta1_policy_rules_with_subjects_free(v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects); - -v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects_parseFromJSON(cJSON *v1beta1_policy_rules_with_subjectsJSON); - -cJSON *v1beta1_policy_rules_with_subjects_convertToJSON(v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects); - -#endif /* _v1beta1_policy_rules_with_subjects_H_ */ - diff --git a/kubernetes/model/v1beta1_priority_level_configuration.c b/kubernetes/model/v1beta1_priority_level_configuration.c deleted file mode 100644 index 2521e246..00000000 --- a/kubernetes/model/v1beta1_priority_level_configuration.c +++ /dev/null @@ -1,196 +0,0 @@ -#include -#include -#include -#include "v1beta1_priority_level_configuration.h" - - - -v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration_create( - char *api_version, - char *kind, - v1_object_meta_t *metadata, - v1beta1_priority_level_configuration_spec_t *spec, - v1beta1_priority_level_configuration_status_t *status - ) { - v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration_local_var = malloc(sizeof(v1beta1_priority_level_configuration_t)); - if (!v1beta1_priority_level_configuration_local_var) { - return NULL; - } - v1beta1_priority_level_configuration_local_var->api_version = api_version; - v1beta1_priority_level_configuration_local_var->kind = kind; - v1beta1_priority_level_configuration_local_var->metadata = metadata; - v1beta1_priority_level_configuration_local_var->spec = spec; - v1beta1_priority_level_configuration_local_var->status = status; - - return v1beta1_priority_level_configuration_local_var; -} - - -void v1beta1_priority_level_configuration_free(v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration) { - if(NULL == v1beta1_priority_level_configuration){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_priority_level_configuration->api_version) { - free(v1beta1_priority_level_configuration->api_version); - v1beta1_priority_level_configuration->api_version = NULL; - } - if (v1beta1_priority_level_configuration->kind) { - free(v1beta1_priority_level_configuration->kind); - v1beta1_priority_level_configuration->kind = NULL; - } - if (v1beta1_priority_level_configuration->metadata) { - v1_object_meta_free(v1beta1_priority_level_configuration->metadata); - v1beta1_priority_level_configuration->metadata = NULL; - } - if (v1beta1_priority_level_configuration->spec) { - v1beta1_priority_level_configuration_spec_free(v1beta1_priority_level_configuration->spec); - v1beta1_priority_level_configuration->spec = NULL; - } - if (v1beta1_priority_level_configuration->status) { - v1beta1_priority_level_configuration_status_free(v1beta1_priority_level_configuration->status); - v1beta1_priority_level_configuration->status = NULL; - } - free(v1beta1_priority_level_configuration); -} - -cJSON *v1beta1_priority_level_configuration_convertToJSON(v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_priority_level_configuration->api_version - if(v1beta1_priority_level_configuration->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v1beta1_priority_level_configuration->api_version) == NULL) { - goto fail; //String - } - } - - - // v1beta1_priority_level_configuration->kind - if(v1beta1_priority_level_configuration->kind) { - if(cJSON_AddStringToObject(item, "kind", v1beta1_priority_level_configuration->kind) == NULL) { - goto fail; //String - } - } - - - // v1beta1_priority_level_configuration->metadata - if(v1beta1_priority_level_configuration->metadata) { - cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1beta1_priority_level_configuration->metadata); - if(metadata_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_priority_level_configuration->spec - if(v1beta1_priority_level_configuration->spec) { - cJSON *spec_local_JSON = v1beta1_priority_level_configuration_spec_convertToJSON(v1beta1_priority_level_configuration->spec); - if(spec_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "spec", spec_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_priority_level_configuration->status - if(v1beta1_priority_level_configuration->status) { - cJSON *status_local_JSON = v1beta1_priority_level_configuration_status_convertToJSON(v1beta1_priority_level_configuration->status); - if(status_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "status", status_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration_parseFromJSON(cJSON *v1beta1_priority_level_configurationJSON){ - - v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration_local_var = NULL; - - // define the local variable for v1beta1_priority_level_configuration->metadata - v1_object_meta_t *metadata_local_nonprim = NULL; - - // define the local variable for v1beta1_priority_level_configuration->spec - v1beta1_priority_level_configuration_spec_t *spec_local_nonprim = NULL; - - // define the local variable for v1beta1_priority_level_configuration->status - v1beta1_priority_level_configuration_status_t *status_local_nonprim = NULL; - - // v1beta1_priority_level_configuration->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configurationJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) - { - goto end; //String - } - } - - // v1beta1_priority_level_configuration->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configurationJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) - { - goto end; //String - } - } - - // v1beta1_priority_level_configuration->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configurationJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive - } - - // v1beta1_priority_level_configuration->spec - cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configurationJSON, "spec"); - if (spec) { - spec_local_nonprim = v1beta1_priority_level_configuration_spec_parseFromJSON(spec); //nonprimitive - } - - // v1beta1_priority_level_configuration->status - cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configurationJSON, "status"); - if (status) { - status_local_nonprim = v1beta1_priority_level_configuration_status_parseFromJSON(status); //nonprimitive - } - - - v1beta1_priority_level_configuration_local_var = v1beta1_priority_level_configuration_create ( - api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, - kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL, - spec ? spec_local_nonprim : NULL, - status ? status_local_nonprim : NULL - ); - - return v1beta1_priority_level_configuration_local_var; -end: - if (metadata_local_nonprim) { - v1_object_meta_free(metadata_local_nonprim); - metadata_local_nonprim = NULL; - } - if (spec_local_nonprim) { - v1beta1_priority_level_configuration_spec_free(spec_local_nonprim); - spec_local_nonprim = NULL; - } - if (status_local_nonprim) { - v1beta1_priority_level_configuration_status_free(status_local_nonprim); - status_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_priority_level_configuration.h b/kubernetes/model/v1beta1_priority_level_configuration.h deleted file mode 100644 index 78696747..00000000 --- a/kubernetes/model/v1beta1_priority_level_configuration.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * v1beta1_priority_level_configuration.h - * - * PriorityLevelConfiguration represents the configuration of a priority level. - */ - -#ifndef _v1beta1_priority_level_configuration_H_ -#define _v1beta1_priority_level_configuration_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_priority_level_configuration_t v1beta1_priority_level_configuration_t; - -#include "v1_object_meta.h" -#include "v1beta1_priority_level_configuration_spec.h" -#include "v1beta1_priority_level_configuration_status.h" - - - -typedef struct v1beta1_priority_level_configuration_t { - char *api_version; // string - char *kind; // string - struct v1_object_meta_t *metadata; //model - struct v1beta1_priority_level_configuration_spec_t *spec; //model - struct v1beta1_priority_level_configuration_status_t *status; //model - -} v1beta1_priority_level_configuration_t; - -v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration_create( - char *api_version, - char *kind, - v1_object_meta_t *metadata, - v1beta1_priority_level_configuration_spec_t *spec, - v1beta1_priority_level_configuration_status_t *status -); - -void v1beta1_priority_level_configuration_free(v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration); - -v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration_parseFromJSON(cJSON *v1beta1_priority_level_configurationJSON); - -cJSON *v1beta1_priority_level_configuration_convertToJSON(v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration); - -#endif /* _v1beta1_priority_level_configuration_H_ */ - diff --git a/kubernetes/model/v1beta1_priority_level_configuration_condition.c b/kubernetes/model/v1beta1_priority_level_configuration_condition.c deleted file mode 100644 index 150db5d4..00000000 --- a/kubernetes/model/v1beta1_priority_level_configuration_condition.c +++ /dev/null @@ -1,169 +0,0 @@ -#include -#include -#include -#include "v1beta1_priority_level_configuration_condition.h" - - - -v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configuration_condition_create( - char *last_transition_time, - char *message, - char *reason, - char *status, - char *type - ) { - v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configuration_condition_local_var = malloc(sizeof(v1beta1_priority_level_configuration_condition_t)); - if (!v1beta1_priority_level_configuration_condition_local_var) { - return NULL; - } - v1beta1_priority_level_configuration_condition_local_var->last_transition_time = last_transition_time; - v1beta1_priority_level_configuration_condition_local_var->message = message; - v1beta1_priority_level_configuration_condition_local_var->reason = reason; - v1beta1_priority_level_configuration_condition_local_var->status = status; - v1beta1_priority_level_configuration_condition_local_var->type = type; - - return v1beta1_priority_level_configuration_condition_local_var; -} - - -void v1beta1_priority_level_configuration_condition_free(v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configuration_condition) { - if(NULL == v1beta1_priority_level_configuration_condition){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_priority_level_configuration_condition->last_transition_time) { - free(v1beta1_priority_level_configuration_condition->last_transition_time); - v1beta1_priority_level_configuration_condition->last_transition_time = NULL; - } - if (v1beta1_priority_level_configuration_condition->message) { - free(v1beta1_priority_level_configuration_condition->message); - v1beta1_priority_level_configuration_condition->message = NULL; - } - if (v1beta1_priority_level_configuration_condition->reason) { - free(v1beta1_priority_level_configuration_condition->reason); - v1beta1_priority_level_configuration_condition->reason = NULL; - } - if (v1beta1_priority_level_configuration_condition->status) { - free(v1beta1_priority_level_configuration_condition->status); - v1beta1_priority_level_configuration_condition->status = NULL; - } - if (v1beta1_priority_level_configuration_condition->type) { - free(v1beta1_priority_level_configuration_condition->type); - v1beta1_priority_level_configuration_condition->type = NULL; - } - free(v1beta1_priority_level_configuration_condition); -} - -cJSON *v1beta1_priority_level_configuration_condition_convertToJSON(v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configuration_condition) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_priority_level_configuration_condition->last_transition_time - if(v1beta1_priority_level_configuration_condition->last_transition_time) { - if(cJSON_AddStringToObject(item, "lastTransitionTime", v1beta1_priority_level_configuration_condition->last_transition_time) == NULL) { - goto fail; //Date-Time - } - } - - - // v1beta1_priority_level_configuration_condition->message - if(v1beta1_priority_level_configuration_condition->message) { - if(cJSON_AddStringToObject(item, "message", v1beta1_priority_level_configuration_condition->message) == NULL) { - goto fail; //String - } - } - - - // v1beta1_priority_level_configuration_condition->reason - if(v1beta1_priority_level_configuration_condition->reason) { - if(cJSON_AddStringToObject(item, "reason", v1beta1_priority_level_configuration_condition->reason) == NULL) { - goto fail; //String - } - } - - - // v1beta1_priority_level_configuration_condition->status - if(v1beta1_priority_level_configuration_condition->status) { - if(cJSON_AddStringToObject(item, "status", v1beta1_priority_level_configuration_condition->status) == NULL) { - goto fail; //String - } - } - - - // v1beta1_priority_level_configuration_condition->type - if(v1beta1_priority_level_configuration_condition->type) { - if(cJSON_AddStringToObject(item, "type", v1beta1_priority_level_configuration_condition->type) == NULL) { - goto fail; //String - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configuration_condition_parseFromJSON(cJSON *v1beta1_priority_level_configuration_conditionJSON){ - - v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configuration_condition_local_var = NULL; - - // v1beta1_priority_level_configuration_condition->last_transition_time - cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_conditionJSON, "lastTransitionTime"); - if (last_transition_time) { - if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) - { - goto end; //DateTime - } - } - - // v1beta1_priority_level_configuration_condition->message - cJSON *message = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_conditionJSON, "message"); - if (message) { - if(!cJSON_IsString(message) && !cJSON_IsNull(message)) - { - goto end; //String - } - } - - // v1beta1_priority_level_configuration_condition->reason - cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_conditionJSON, "reason"); - if (reason) { - if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) - { - goto end; //String - } - } - - // v1beta1_priority_level_configuration_condition->status - cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_conditionJSON, "status"); - if (status) { - if(!cJSON_IsString(status) && !cJSON_IsNull(status)) - { - goto end; //String - } - } - - // v1beta1_priority_level_configuration_condition->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_conditionJSON, "type"); - if (type) { - if(!cJSON_IsString(type) && !cJSON_IsNull(type)) - { - goto end; //String - } - } - - - v1beta1_priority_level_configuration_condition_local_var = v1beta1_priority_level_configuration_condition_create ( - last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, - reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, - status && !cJSON_IsNull(status) ? strdup(status->valuestring) : NULL, - type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL - ); - - return v1beta1_priority_level_configuration_condition_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_priority_level_configuration_condition.h b/kubernetes/model/v1beta1_priority_level_configuration_condition.h deleted file mode 100644 index 67e5bc5f..00000000 --- a/kubernetes/model/v1beta1_priority_level_configuration_condition.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v1beta1_priority_level_configuration_condition.h - * - * PriorityLevelConfigurationCondition defines the condition of priority level. - */ - -#ifndef _v1beta1_priority_level_configuration_condition_H_ -#define _v1beta1_priority_level_configuration_condition_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_priority_level_configuration_condition_t v1beta1_priority_level_configuration_condition_t; - - - - -typedef struct v1beta1_priority_level_configuration_condition_t { - char *last_transition_time; //date time - char *message; // string - char *reason; // string - char *status; // string - char *type; // string - -} v1beta1_priority_level_configuration_condition_t; - -v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configuration_condition_create( - char *last_transition_time, - char *message, - char *reason, - char *status, - char *type -); - -void v1beta1_priority_level_configuration_condition_free(v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configuration_condition); - -v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configuration_condition_parseFromJSON(cJSON *v1beta1_priority_level_configuration_conditionJSON); - -cJSON *v1beta1_priority_level_configuration_condition_convertToJSON(v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configuration_condition); - -#endif /* _v1beta1_priority_level_configuration_condition_H_ */ - diff --git a/kubernetes/model/v1beta1_priority_level_configuration_list.c b/kubernetes/model/v1beta1_priority_level_configuration_list.c deleted file mode 100644 index 1e36f959..00000000 --- a/kubernetes/model/v1beta1_priority_level_configuration_list.c +++ /dev/null @@ -1,197 +0,0 @@ -#include -#include -#include -#include "v1beta1_priority_level_configuration_list.h" - - - -v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuration_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata - ) { - v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuration_list_local_var = malloc(sizeof(v1beta1_priority_level_configuration_list_t)); - if (!v1beta1_priority_level_configuration_list_local_var) { - return NULL; - } - v1beta1_priority_level_configuration_list_local_var->api_version = api_version; - v1beta1_priority_level_configuration_list_local_var->items = items; - v1beta1_priority_level_configuration_list_local_var->kind = kind; - v1beta1_priority_level_configuration_list_local_var->metadata = metadata; - - return v1beta1_priority_level_configuration_list_local_var; -} - - -void v1beta1_priority_level_configuration_list_free(v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuration_list) { - if(NULL == v1beta1_priority_level_configuration_list){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_priority_level_configuration_list->api_version) { - free(v1beta1_priority_level_configuration_list->api_version); - v1beta1_priority_level_configuration_list->api_version = NULL; - } - if (v1beta1_priority_level_configuration_list->items) { - list_ForEach(listEntry, v1beta1_priority_level_configuration_list->items) { - v1beta1_priority_level_configuration_free(listEntry->data); - } - list_freeList(v1beta1_priority_level_configuration_list->items); - v1beta1_priority_level_configuration_list->items = NULL; - } - if (v1beta1_priority_level_configuration_list->kind) { - free(v1beta1_priority_level_configuration_list->kind); - v1beta1_priority_level_configuration_list->kind = NULL; - } - if (v1beta1_priority_level_configuration_list->metadata) { - v1_list_meta_free(v1beta1_priority_level_configuration_list->metadata); - v1beta1_priority_level_configuration_list->metadata = NULL; - } - free(v1beta1_priority_level_configuration_list); -} - -cJSON *v1beta1_priority_level_configuration_list_convertToJSON(v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuration_list) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_priority_level_configuration_list->api_version - if(v1beta1_priority_level_configuration_list->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v1beta1_priority_level_configuration_list->api_version) == NULL) { - goto fail; //String - } - } - - - // v1beta1_priority_level_configuration_list->items - if (!v1beta1_priority_level_configuration_list->items) { - goto fail; - } - cJSON *items = cJSON_AddArrayToObject(item, "items"); - if(items == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *itemsListEntry; - if (v1beta1_priority_level_configuration_list->items) { - list_ForEach(itemsListEntry, v1beta1_priority_level_configuration_list->items) { - cJSON *itemLocal = v1beta1_priority_level_configuration_convertToJSON(itemsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(items, itemLocal); - } - } - - - // v1beta1_priority_level_configuration_list->kind - if(v1beta1_priority_level_configuration_list->kind) { - if(cJSON_AddStringToObject(item, "kind", v1beta1_priority_level_configuration_list->kind) == NULL) { - goto fail; //String - } - } - - - // v1beta1_priority_level_configuration_list->metadata - if(v1beta1_priority_level_configuration_list->metadata) { - cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1beta1_priority_level_configuration_list->metadata); - if(metadata_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuration_list_parseFromJSON(cJSON *v1beta1_priority_level_configuration_listJSON){ - - v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuration_list_local_var = NULL; - - // define the local list for v1beta1_priority_level_configuration_list->items - list_t *itemsList = NULL; - - // define the local variable for v1beta1_priority_level_configuration_list->metadata - v1_list_meta_t *metadata_local_nonprim = NULL; - - // v1beta1_priority_level_configuration_list->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_listJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) - { - goto end; //String - } - } - - // v1beta1_priority_level_configuration_list->items - cJSON *items = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_listJSON, "items"); - if (!items) { - goto end; - } - - - cJSON *items_local_nonprimitive = NULL; - if(!cJSON_IsArray(items)){ - goto end; //nonprimitive container - } - - itemsList = list_createList(); - - cJSON_ArrayForEach(items_local_nonprimitive,items ) - { - if(!cJSON_IsObject(items_local_nonprimitive)){ - goto end; - } - v1beta1_priority_level_configuration_t *itemsItem = v1beta1_priority_level_configuration_parseFromJSON(items_local_nonprimitive); - - list_addElement(itemsList, itemsItem); - } - - // v1beta1_priority_level_configuration_list->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_listJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) - { - goto end; //String - } - } - - // v1beta1_priority_level_configuration_list->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_listJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive - } - - - v1beta1_priority_level_configuration_list_local_var = v1beta1_priority_level_configuration_list_create ( - api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, - itemsList, - kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL - ); - - return v1beta1_priority_level_configuration_list_local_var; -end: - if (itemsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, itemsList) { - v1beta1_priority_level_configuration_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(itemsList); - itemsList = NULL; - } - if (metadata_local_nonprim) { - v1_list_meta_free(metadata_local_nonprim); - metadata_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_priority_level_configuration_list.h b/kubernetes/model/v1beta1_priority_level_configuration_list.h deleted file mode 100644 index b0a6fe47..00000000 --- a/kubernetes/model/v1beta1_priority_level_configuration_list.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v1beta1_priority_level_configuration_list.h - * - * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. - */ - -#ifndef _v1beta1_priority_level_configuration_list_H_ -#define _v1beta1_priority_level_configuration_list_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_priority_level_configuration_list_t v1beta1_priority_level_configuration_list_t; - -#include "v1_list_meta.h" -#include "v1beta1_priority_level_configuration.h" - - - -typedef struct v1beta1_priority_level_configuration_list_t { - char *api_version; // string - list_t *items; //nonprimitive container - char *kind; // string - struct v1_list_meta_t *metadata; //model - -} v1beta1_priority_level_configuration_list_t; - -v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuration_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata -); - -void v1beta1_priority_level_configuration_list_free(v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuration_list); - -v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuration_list_parseFromJSON(cJSON *v1beta1_priority_level_configuration_listJSON); - -cJSON *v1beta1_priority_level_configuration_list_convertToJSON(v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuration_list); - -#endif /* _v1beta1_priority_level_configuration_list_H_ */ - diff --git a/kubernetes/model/v1beta1_priority_level_configuration_reference.c b/kubernetes/model/v1beta1_priority_level_configuration_reference.c deleted file mode 100644 index 966f5fe6..00000000 --- a/kubernetes/model/v1beta1_priority_level_configuration_reference.c +++ /dev/null @@ -1,77 +0,0 @@ -#include -#include -#include -#include "v1beta1_priority_level_configuration_reference.h" - - - -v1beta1_priority_level_configuration_reference_t *v1beta1_priority_level_configuration_reference_create( - char *name - ) { - v1beta1_priority_level_configuration_reference_t *v1beta1_priority_level_configuration_reference_local_var = malloc(sizeof(v1beta1_priority_level_configuration_reference_t)); - if (!v1beta1_priority_level_configuration_reference_local_var) { - return NULL; - } - v1beta1_priority_level_configuration_reference_local_var->name = name; - - return v1beta1_priority_level_configuration_reference_local_var; -} - - -void v1beta1_priority_level_configuration_reference_free(v1beta1_priority_level_configuration_reference_t *v1beta1_priority_level_configuration_reference) { - if(NULL == v1beta1_priority_level_configuration_reference){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_priority_level_configuration_reference->name) { - free(v1beta1_priority_level_configuration_reference->name); - v1beta1_priority_level_configuration_reference->name = NULL; - } - free(v1beta1_priority_level_configuration_reference); -} - -cJSON *v1beta1_priority_level_configuration_reference_convertToJSON(v1beta1_priority_level_configuration_reference_t *v1beta1_priority_level_configuration_reference) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_priority_level_configuration_reference->name - if (!v1beta1_priority_level_configuration_reference->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v1beta1_priority_level_configuration_reference->name) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_priority_level_configuration_reference_t *v1beta1_priority_level_configuration_reference_parseFromJSON(cJSON *v1beta1_priority_level_configuration_referenceJSON){ - - v1beta1_priority_level_configuration_reference_t *v1beta1_priority_level_configuration_reference_local_var = NULL; - - // v1beta1_priority_level_configuration_reference->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_referenceJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - - v1beta1_priority_level_configuration_reference_local_var = v1beta1_priority_level_configuration_reference_create ( - strdup(name->valuestring) - ); - - return v1beta1_priority_level_configuration_reference_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_priority_level_configuration_reference.h b/kubernetes/model/v1beta1_priority_level_configuration_reference.h deleted file mode 100644 index 9af575d1..00000000 --- a/kubernetes/model/v1beta1_priority_level_configuration_reference.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * v1beta1_priority_level_configuration_reference.h - * - * PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used. - */ - -#ifndef _v1beta1_priority_level_configuration_reference_H_ -#define _v1beta1_priority_level_configuration_reference_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_priority_level_configuration_reference_t v1beta1_priority_level_configuration_reference_t; - - - - -typedef struct v1beta1_priority_level_configuration_reference_t { - char *name; // string - -} v1beta1_priority_level_configuration_reference_t; - -v1beta1_priority_level_configuration_reference_t *v1beta1_priority_level_configuration_reference_create( - char *name -); - -void v1beta1_priority_level_configuration_reference_free(v1beta1_priority_level_configuration_reference_t *v1beta1_priority_level_configuration_reference); - -v1beta1_priority_level_configuration_reference_t *v1beta1_priority_level_configuration_reference_parseFromJSON(cJSON *v1beta1_priority_level_configuration_referenceJSON); - -cJSON *v1beta1_priority_level_configuration_reference_convertToJSON(v1beta1_priority_level_configuration_reference_t *v1beta1_priority_level_configuration_reference); - -#endif /* _v1beta1_priority_level_configuration_reference_H_ */ - diff --git a/kubernetes/model/v1beta1_priority_level_configuration_spec.c b/kubernetes/model/v1beta1_priority_level_configuration_spec.c deleted file mode 100644 index fcaad560..00000000 --- a/kubernetes/model/v1beta1_priority_level_configuration_spec.c +++ /dev/null @@ -1,110 +0,0 @@ -#include -#include -#include -#include "v1beta1_priority_level_configuration_spec.h" - - - -v1beta1_priority_level_configuration_spec_t *v1beta1_priority_level_configuration_spec_create( - v1beta1_limited_priority_level_configuration_t *limited, - char *type - ) { - v1beta1_priority_level_configuration_spec_t *v1beta1_priority_level_configuration_spec_local_var = malloc(sizeof(v1beta1_priority_level_configuration_spec_t)); - if (!v1beta1_priority_level_configuration_spec_local_var) { - return NULL; - } - v1beta1_priority_level_configuration_spec_local_var->limited = limited; - v1beta1_priority_level_configuration_spec_local_var->type = type; - - return v1beta1_priority_level_configuration_spec_local_var; -} - - -void v1beta1_priority_level_configuration_spec_free(v1beta1_priority_level_configuration_spec_t *v1beta1_priority_level_configuration_spec) { - if(NULL == v1beta1_priority_level_configuration_spec){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_priority_level_configuration_spec->limited) { - v1beta1_limited_priority_level_configuration_free(v1beta1_priority_level_configuration_spec->limited); - v1beta1_priority_level_configuration_spec->limited = NULL; - } - if (v1beta1_priority_level_configuration_spec->type) { - free(v1beta1_priority_level_configuration_spec->type); - v1beta1_priority_level_configuration_spec->type = NULL; - } - free(v1beta1_priority_level_configuration_spec); -} - -cJSON *v1beta1_priority_level_configuration_spec_convertToJSON(v1beta1_priority_level_configuration_spec_t *v1beta1_priority_level_configuration_spec) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_priority_level_configuration_spec->limited - if(v1beta1_priority_level_configuration_spec->limited) { - cJSON *limited_local_JSON = v1beta1_limited_priority_level_configuration_convertToJSON(v1beta1_priority_level_configuration_spec->limited); - if(limited_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "limited", limited_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_priority_level_configuration_spec->type - if (!v1beta1_priority_level_configuration_spec->type) { - goto fail; - } - if(cJSON_AddStringToObject(item, "type", v1beta1_priority_level_configuration_spec->type) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_priority_level_configuration_spec_t *v1beta1_priority_level_configuration_spec_parseFromJSON(cJSON *v1beta1_priority_level_configuration_specJSON){ - - v1beta1_priority_level_configuration_spec_t *v1beta1_priority_level_configuration_spec_local_var = NULL; - - // define the local variable for v1beta1_priority_level_configuration_spec->limited - v1beta1_limited_priority_level_configuration_t *limited_local_nonprim = NULL; - - // v1beta1_priority_level_configuration_spec->limited - cJSON *limited = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_specJSON, "limited"); - if (limited) { - limited_local_nonprim = v1beta1_limited_priority_level_configuration_parseFromJSON(limited); //nonprimitive - } - - // v1beta1_priority_level_configuration_spec->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_specJSON, "type"); - if (!type) { - goto end; - } - - - if(!cJSON_IsString(type)) - { - goto end; //String - } - - - v1beta1_priority_level_configuration_spec_local_var = v1beta1_priority_level_configuration_spec_create ( - limited ? limited_local_nonprim : NULL, - strdup(type->valuestring) - ); - - return v1beta1_priority_level_configuration_spec_local_var; -end: - if (limited_local_nonprim) { - v1beta1_limited_priority_level_configuration_free(limited_local_nonprim); - limited_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_priority_level_configuration_spec.h b/kubernetes/model/v1beta1_priority_level_configuration_spec.h deleted file mode 100644 index 9339bba8..00000000 --- a/kubernetes/model/v1beta1_priority_level_configuration_spec.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * v1beta1_priority_level_configuration_spec.h - * - * PriorityLevelConfigurationSpec specifies the configuration of a priority level. - */ - -#ifndef _v1beta1_priority_level_configuration_spec_H_ -#define _v1beta1_priority_level_configuration_spec_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_priority_level_configuration_spec_t v1beta1_priority_level_configuration_spec_t; - -#include "v1beta1_limited_priority_level_configuration.h" - - - -typedef struct v1beta1_priority_level_configuration_spec_t { - struct v1beta1_limited_priority_level_configuration_t *limited; //model - char *type; // string - -} v1beta1_priority_level_configuration_spec_t; - -v1beta1_priority_level_configuration_spec_t *v1beta1_priority_level_configuration_spec_create( - v1beta1_limited_priority_level_configuration_t *limited, - char *type -); - -void v1beta1_priority_level_configuration_spec_free(v1beta1_priority_level_configuration_spec_t *v1beta1_priority_level_configuration_spec); - -v1beta1_priority_level_configuration_spec_t *v1beta1_priority_level_configuration_spec_parseFromJSON(cJSON *v1beta1_priority_level_configuration_specJSON); - -cJSON *v1beta1_priority_level_configuration_spec_convertToJSON(v1beta1_priority_level_configuration_spec_t *v1beta1_priority_level_configuration_spec); - -#endif /* _v1beta1_priority_level_configuration_spec_H_ */ - diff --git a/kubernetes/model/v1beta1_priority_level_configuration_status.c b/kubernetes/model/v1beta1_priority_level_configuration_status.c deleted file mode 100644 index b9cb34f2..00000000 --- a/kubernetes/model/v1beta1_priority_level_configuration_status.c +++ /dev/null @@ -1,112 +0,0 @@ -#include -#include -#include -#include "v1beta1_priority_level_configuration_status.h" - - - -v1beta1_priority_level_configuration_status_t *v1beta1_priority_level_configuration_status_create( - list_t *conditions - ) { - v1beta1_priority_level_configuration_status_t *v1beta1_priority_level_configuration_status_local_var = malloc(sizeof(v1beta1_priority_level_configuration_status_t)); - if (!v1beta1_priority_level_configuration_status_local_var) { - return NULL; - } - v1beta1_priority_level_configuration_status_local_var->conditions = conditions; - - return v1beta1_priority_level_configuration_status_local_var; -} - - -void v1beta1_priority_level_configuration_status_free(v1beta1_priority_level_configuration_status_t *v1beta1_priority_level_configuration_status) { - if(NULL == v1beta1_priority_level_configuration_status){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_priority_level_configuration_status->conditions) { - list_ForEach(listEntry, v1beta1_priority_level_configuration_status->conditions) { - v1beta1_priority_level_configuration_condition_free(listEntry->data); - } - list_freeList(v1beta1_priority_level_configuration_status->conditions); - v1beta1_priority_level_configuration_status->conditions = NULL; - } - free(v1beta1_priority_level_configuration_status); -} - -cJSON *v1beta1_priority_level_configuration_status_convertToJSON(v1beta1_priority_level_configuration_status_t *v1beta1_priority_level_configuration_status) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_priority_level_configuration_status->conditions - if(v1beta1_priority_level_configuration_status->conditions) { - cJSON *conditions = cJSON_AddArrayToObject(item, "conditions"); - if(conditions == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *conditionsListEntry; - if (v1beta1_priority_level_configuration_status->conditions) { - list_ForEach(conditionsListEntry, v1beta1_priority_level_configuration_status->conditions) { - cJSON *itemLocal = v1beta1_priority_level_configuration_condition_convertToJSON(conditionsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(conditions, itemLocal); - } - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_priority_level_configuration_status_t *v1beta1_priority_level_configuration_status_parseFromJSON(cJSON *v1beta1_priority_level_configuration_statusJSON){ - - v1beta1_priority_level_configuration_status_t *v1beta1_priority_level_configuration_status_local_var = NULL; - - // define the local list for v1beta1_priority_level_configuration_status->conditions - list_t *conditionsList = NULL; - - // v1beta1_priority_level_configuration_status->conditions - cJSON *conditions = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_statusJSON, "conditions"); - if (conditions) { - cJSON *conditions_local_nonprimitive = NULL; - if(!cJSON_IsArray(conditions)){ - goto end; //nonprimitive container - } - - conditionsList = list_createList(); - - cJSON_ArrayForEach(conditions_local_nonprimitive,conditions ) - { - if(!cJSON_IsObject(conditions_local_nonprimitive)){ - goto end; - } - v1beta1_priority_level_configuration_condition_t *conditionsItem = v1beta1_priority_level_configuration_condition_parseFromJSON(conditions_local_nonprimitive); - - list_addElement(conditionsList, conditionsItem); - } - } - - - v1beta1_priority_level_configuration_status_local_var = v1beta1_priority_level_configuration_status_create ( - conditions ? conditionsList : NULL - ); - - return v1beta1_priority_level_configuration_status_local_var; -end: - if (conditionsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, conditionsList) { - v1beta1_priority_level_configuration_condition_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(conditionsList); - conditionsList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_priority_level_configuration_status.h b/kubernetes/model/v1beta1_priority_level_configuration_status.h deleted file mode 100644 index 54aed888..00000000 --- a/kubernetes/model/v1beta1_priority_level_configuration_status.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * v1beta1_priority_level_configuration_status.h - * - * PriorityLevelConfigurationStatus represents the current state of a \"request-priority\". - */ - -#ifndef _v1beta1_priority_level_configuration_status_H_ -#define _v1beta1_priority_level_configuration_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_priority_level_configuration_status_t v1beta1_priority_level_configuration_status_t; - -#include "v1beta1_priority_level_configuration_condition.h" - - - -typedef struct v1beta1_priority_level_configuration_status_t { - list_t *conditions; //nonprimitive container - -} v1beta1_priority_level_configuration_status_t; - -v1beta1_priority_level_configuration_status_t *v1beta1_priority_level_configuration_status_create( - list_t *conditions -); - -void v1beta1_priority_level_configuration_status_free(v1beta1_priority_level_configuration_status_t *v1beta1_priority_level_configuration_status); - -v1beta1_priority_level_configuration_status_t *v1beta1_priority_level_configuration_status_parseFromJSON(cJSON *v1beta1_priority_level_configuration_statusJSON); - -cJSON *v1beta1_priority_level_configuration_status_convertToJSON(v1beta1_priority_level_configuration_status_t *v1beta1_priority_level_configuration_status); - -#endif /* _v1beta1_priority_level_configuration_status_H_ */ - diff --git a/kubernetes/model/v1beta1_queuing_configuration.c b/kubernetes/model/v1beta1_queuing_configuration.c deleted file mode 100644 index 46118d4b..00000000 --- a/kubernetes/model/v1beta1_queuing_configuration.c +++ /dev/null @@ -1,109 +0,0 @@ -#include -#include -#include -#include "v1beta1_queuing_configuration.h" - - - -v1beta1_queuing_configuration_t *v1beta1_queuing_configuration_create( - int hand_size, - int queue_length_limit, - int queues - ) { - v1beta1_queuing_configuration_t *v1beta1_queuing_configuration_local_var = malloc(sizeof(v1beta1_queuing_configuration_t)); - if (!v1beta1_queuing_configuration_local_var) { - return NULL; - } - v1beta1_queuing_configuration_local_var->hand_size = hand_size; - v1beta1_queuing_configuration_local_var->queue_length_limit = queue_length_limit; - v1beta1_queuing_configuration_local_var->queues = queues; - - return v1beta1_queuing_configuration_local_var; -} - - -void v1beta1_queuing_configuration_free(v1beta1_queuing_configuration_t *v1beta1_queuing_configuration) { - if(NULL == v1beta1_queuing_configuration){ - return ; - } - listEntry_t *listEntry; - free(v1beta1_queuing_configuration); -} - -cJSON *v1beta1_queuing_configuration_convertToJSON(v1beta1_queuing_configuration_t *v1beta1_queuing_configuration) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_queuing_configuration->hand_size - if(v1beta1_queuing_configuration->hand_size) { - if(cJSON_AddNumberToObject(item, "handSize", v1beta1_queuing_configuration->hand_size) == NULL) { - goto fail; //Numeric - } - } - - - // v1beta1_queuing_configuration->queue_length_limit - if(v1beta1_queuing_configuration->queue_length_limit) { - if(cJSON_AddNumberToObject(item, "queueLengthLimit", v1beta1_queuing_configuration->queue_length_limit) == NULL) { - goto fail; //Numeric - } - } - - - // v1beta1_queuing_configuration->queues - if(v1beta1_queuing_configuration->queues) { - if(cJSON_AddNumberToObject(item, "queues", v1beta1_queuing_configuration->queues) == NULL) { - goto fail; //Numeric - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_queuing_configuration_t *v1beta1_queuing_configuration_parseFromJSON(cJSON *v1beta1_queuing_configurationJSON){ - - v1beta1_queuing_configuration_t *v1beta1_queuing_configuration_local_var = NULL; - - // v1beta1_queuing_configuration->hand_size - cJSON *hand_size = cJSON_GetObjectItemCaseSensitive(v1beta1_queuing_configurationJSON, "handSize"); - if (hand_size) { - if(!cJSON_IsNumber(hand_size)) - { - goto end; //Numeric - } - } - - // v1beta1_queuing_configuration->queue_length_limit - cJSON *queue_length_limit = cJSON_GetObjectItemCaseSensitive(v1beta1_queuing_configurationJSON, "queueLengthLimit"); - if (queue_length_limit) { - if(!cJSON_IsNumber(queue_length_limit)) - { - goto end; //Numeric - } - } - - // v1beta1_queuing_configuration->queues - cJSON *queues = cJSON_GetObjectItemCaseSensitive(v1beta1_queuing_configurationJSON, "queues"); - if (queues) { - if(!cJSON_IsNumber(queues)) - { - goto end; //Numeric - } - } - - - v1beta1_queuing_configuration_local_var = v1beta1_queuing_configuration_create ( - hand_size ? hand_size->valuedouble : 0, - queue_length_limit ? queue_length_limit->valuedouble : 0, - queues ? queues->valuedouble : 0 - ); - - return v1beta1_queuing_configuration_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_queuing_configuration.h b/kubernetes/model/v1beta1_queuing_configuration.h deleted file mode 100644 index 5a994c4f..00000000 --- a/kubernetes/model/v1beta1_queuing_configuration.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v1beta1_queuing_configuration.h - * - * QueuingConfiguration holds the configuration parameters for queuing - */ - -#ifndef _v1beta1_queuing_configuration_H_ -#define _v1beta1_queuing_configuration_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_queuing_configuration_t v1beta1_queuing_configuration_t; - - - - -typedef struct v1beta1_queuing_configuration_t { - int hand_size; //numeric - int queue_length_limit; //numeric - int queues; //numeric - -} v1beta1_queuing_configuration_t; - -v1beta1_queuing_configuration_t *v1beta1_queuing_configuration_create( - int hand_size, - int queue_length_limit, - int queues -); - -void v1beta1_queuing_configuration_free(v1beta1_queuing_configuration_t *v1beta1_queuing_configuration); - -v1beta1_queuing_configuration_t *v1beta1_queuing_configuration_parseFromJSON(cJSON *v1beta1_queuing_configurationJSON); - -cJSON *v1beta1_queuing_configuration_convertToJSON(v1beta1_queuing_configuration_t *v1beta1_queuing_configuration); - -#endif /* _v1beta1_queuing_configuration_H_ */ - diff --git a/kubernetes/model/v1beta1_service_account_subject.c b/kubernetes/model/v1beta1_service_account_subject.c deleted file mode 100644 index 669d93b0..00000000 --- a/kubernetes/model/v1beta1_service_account_subject.c +++ /dev/null @@ -1,105 +0,0 @@ -#include -#include -#include -#include "v1beta1_service_account_subject.h" - - - -v1beta1_service_account_subject_t *v1beta1_service_account_subject_create( - char *name, - char *_namespace - ) { - v1beta1_service_account_subject_t *v1beta1_service_account_subject_local_var = malloc(sizeof(v1beta1_service_account_subject_t)); - if (!v1beta1_service_account_subject_local_var) { - return NULL; - } - v1beta1_service_account_subject_local_var->name = name; - v1beta1_service_account_subject_local_var->_namespace = _namespace; - - return v1beta1_service_account_subject_local_var; -} - - -void v1beta1_service_account_subject_free(v1beta1_service_account_subject_t *v1beta1_service_account_subject) { - if(NULL == v1beta1_service_account_subject){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_service_account_subject->name) { - free(v1beta1_service_account_subject->name); - v1beta1_service_account_subject->name = NULL; - } - if (v1beta1_service_account_subject->_namespace) { - free(v1beta1_service_account_subject->_namespace); - v1beta1_service_account_subject->_namespace = NULL; - } - free(v1beta1_service_account_subject); -} - -cJSON *v1beta1_service_account_subject_convertToJSON(v1beta1_service_account_subject_t *v1beta1_service_account_subject) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_service_account_subject->name - if (!v1beta1_service_account_subject->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v1beta1_service_account_subject->name) == NULL) { - goto fail; //String - } - - - // v1beta1_service_account_subject->_namespace - if (!v1beta1_service_account_subject->_namespace) { - goto fail; - } - if(cJSON_AddStringToObject(item, "namespace", v1beta1_service_account_subject->_namespace) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_service_account_subject_t *v1beta1_service_account_subject_parseFromJSON(cJSON *v1beta1_service_account_subjectJSON){ - - v1beta1_service_account_subject_t *v1beta1_service_account_subject_local_var = NULL; - - // v1beta1_service_account_subject->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v1beta1_service_account_subjectJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - // v1beta1_service_account_subject->_namespace - cJSON *_namespace = cJSON_GetObjectItemCaseSensitive(v1beta1_service_account_subjectJSON, "namespace"); - if (!_namespace) { - goto end; - } - - - if(!cJSON_IsString(_namespace)) - { - goto end; //String - } - - - v1beta1_service_account_subject_local_var = v1beta1_service_account_subject_create ( - strdup(name->valuestring), - strdup(_namespace->valuestring) - ); - - return v1beta1_service_account_subject_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_service_account_subject.h b/kubernetes/model/v1beta1_service_account_subject.h deleted file mode 100644 index f49755a5..00000000 --- a/kubernetes/model/v1beta1_service_account_subject.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * v1beta1_service_account_subject.h - * - * ServiceAccountSubject holds detailed information for service-account-kind subject. - */ - -#ifndef _v1beta1_service_account_subject_H_ -#define _v1beta1_service_account_subject_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_service_account_subject_t v1beta1_service_account_subject_t; - - - - -typedef struct v1beta1_service_account_subject_t { - char *name; // string - char *_namespace; // string - -} v1beta1_service_account_subject_t; - -v1beta1_service_account_subject_t *v1beta1_service_account_subject_create( - char *name, - char *_namespace -); - -void v1beta1_service_account_subject_free(v1beta1_service_account_subject_t *v1beta1_service_account_subject); - -v1beta1_service_account_subject_t *v1beta1_service_account_subject_parseFromJSON(cJSON *v1beta1_service_account_subjectJSON); - -cJSON *v1beta1_service_account_subject_convertToJSON(v1beta1_service_account_subject_t *v1beta1_service_account_subject); - -#endif /* _v1beta1_service_account_subject_H_ */ - diff --git a/kubernetes/model/v1beta1_subject.c b/kubernetes/model/v1beta1_subject.c deleted file mode 100644 index ba62269e..00000000 --- a/kubernetes/model/v1beta1_subject.c +++ /dev/null @@ -1,176 +0,0 @@ -#include -#include -#include -#include "v1beta1_subject.h" - - - -v1beta1_subject_t *v1beta1_subject_create( - v1beta1_group_subject_t *group, - char *kind, - v1beta1_service_account_subject_t *service_account, - v1beta1_user_subject_t *user - ) { - v1beta1_subject_t *v1beta1_subject_local_var = malloc(sizeof(v1beta1_subject_t)); - if (!v1beta1_subject_local_var) { - return NULL; - } - v1beta1_subject_local_var->group = group; - v1beta1_subject_local_var->kind = kind; - v1beta1_subject_local_var->service_account = service_account; - v1beta1_subject_local_var->user = user; - - return v1beta1_subject_local_var; -} - - -void v1beta1_subject_free(v1beta1_subject_t *v1beta1_subject) { - if(NULL == v1beta1_subject){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_subject->group) { - v1beta1_group_subject_free(v1beta1_subject->group); - v1beta1_subject->group = NULL; - } - if (v1beta1_subject->kind) { - free(v1beta1_subject->kind); - v1beta1_subject->kind = NULL; - } - if (v1beta1_subject->service_account) { - v1beta1_service_account_subject_free(v1beta1_subject->service_account); - v1beta1_subject->service_account = NULL; - } - if (v1beta1_subject->user) { - v1beta1_user_subject_free(v1beta1_subject->user); - v1beta1_subject->user = NULL; - } - free(v1beta1_subject); -} - -cJSON *v1beta1_subject_convertToJSON(v1beta1_subject_t *v1beta1_subject) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_subject->group - if(v1beta1_subject->group) { - cJSON *group_local_JSON = v1beta1_group_subject_convertToJSON(v1beta1_subject->group); - if(group_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "group", group_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_subject->kind - if (!v1beta1_subject->kind) { - goto fail; - } - if(cJSON_AddStringToObject(item, "kind", v1beta1_subject->kind) == NULL) { - goto fail; //String - } - - - // v1beta1_subject->service_account - if(v1beta1_subject->service_account) { - cJSON *service_account_local_JSON = v1beta1_service_account_subject_convertToJSON(v1beta1_subject->service_account); - if(service_account_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "serviceAccount", service_account_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_subject->user - if(v1beta1_subject->user) { - cJSON *user_local_JSON = v1beta1_user_subject_convertToJSON(v1beta1_subject->user); - if(user_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "user", user_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_subject_t *v1beta1_subject_parseFromJSON(cJSON *v1beta1_subjectJSON){ - - v1beta1_subject_t *v1beta1_subject_local_var = NULL; - - // define the local variable for v1beta1_subject->group - v1beta1_group_subject_t *group_local_nonprim = NULL; - - // define the local variable for v1beta1_subject->service_account - v1beta1_service_account_subject_t *service_account_local_nonprim = NULL; - - // define the local variable for v1beta1_subject->user - v1beta1_user_subject_t *user_local_nonprim = NULL; - - // v1beta1_subject->group - cJSON *group = cJSON_GetObjectItemCaseSensitive(v1beta1_subjectJSON, "group"); - if (group) { - group_local_nonprim = v1beta1_group_subject_parseFromJSON(group); //nonprimitive - } - - // v1beta1_subject->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_subjectJSON, "kind"); - if (!kind) { - goto end; - } - - - if(!cJSON_IsString(kind)) - { - goto end; //String - } - - // v1beta1_subject->service_account - cJSON *service_account = cJSON_GetObjectItemCaseSensitive(v1beta1_subjectJSON, "serviceAccount"); - if (service_account) { - service_account_local_nonprim = v1beta1_service_account_subject_parseFromJSON(service_account); //nonprimitive - } - - // v1beta1_subject->user - cJSON *user = cJSON_GetObjectItemCaseSensitive(v1beta1_subjectJSON, "user"); - if (user) { - user_local_nonprim = v1beta1_user_subject_parseFromJSON(user); //nonprimitive - } - - - v1beta1_subject_local_var = v1beta1_subject_create ( - group ? group_local_nonprim : NULL, - strdup(kind->valuestring), - service_account ? service_account_local_nonprim : NULL, - user ? user_local_nonprim : NULL - ); - - return v1beta1_subject_local_var; -end: - if (group_local_nonprim) { - v1beta1_group_subject_free(group_local_nonprim); - group_local_nonprim = NULL; - } - if (service_account_local_nonprim) { - v1beta1_service_account_subject_free(service_account_local_nonprim); - service_account_local_nonprim = NULL; - } - if (user_local_nonprim) { - v1beta1_user_subject_free(user_local_nonprim); - user_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_subject.h b/kubernetes/model/v1beta1_subject.h deleted file mode 100644 index b33271e6..00000000 --- a/kubernetes/model/v1beta1_subject.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * v1beta1_subject.h - * - * Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account. - */ - -#ifndef _v1beta1_subject_H_ -#define _v1beta1_subject_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_subject_t v1beta1_subject_t; - -#include "v1beta1_group_subject.h" -#include "v1beta1_service_account_subject.h" -#include "v1beta1_user_subject.h" - - - -typedef struct v1beta1_subject_t { - struct v1beta1_group_subject_t *group; //model - char *kind; // string - struct v1beta1_service_account_subject_t *service_account; //model - struct v1beta1_user_subject_t *user; //model - -} v1beta1_subject_t; - -v1beta1_subject_t *v1beta1_subject_create( - v1beta1_group_subject_t *group, - char *kind, - v1beta1_service_account_subject_t *service_account, - v1beta1_user_subject_t *user -); - -void v1beta1_subject_free(v1beta1_subject_t *v1beta1_subject); - -v1beta1_subject_t *v1beta1_subject_parseFromJSON(cJSON *v1beta1_subjectJSON); - -cJSON *v1beta1_subject_convertToJSON(v1beta1_subject_t *v1beta1_subject); - -#endif /* _v1beta1_subject_H_ */ - diff --git a/kubernetes/model/v1beta1_user_subject.c b/kubernetes/model/v1beta1_user_subject.c deleted file mode 100644 index 58fc26e9..00000000 --- a/kubernetes/model/v1beta1_user_subject.c +++ /dev/null @@ -1,77 +0,0 @@ -#include -#include -#include -#include "v1beta1_user_subject.h" - - - -v1beta1_user_subject_t *v1beta1_user_subject_create( - char *name - ) { - v1beta1_user_subject_t *v1beta1_user_subject_local_var = malloc(sizeof(v1beta1_user_subject_t)); - if (!v1beta1_user_subject_local_var) { - return NULL; - } - v1beta1_user_subject_local_var->name = name; - - return v1beta1_user_subject_local_var; -} - - -void v1beta1_user_subject_free(v1beta1_user_subject_t *v1beta1_user_subject) { - if(NULL == v1beta1_user_subject){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_user_subject->name) { - free(v1beta1_user_subject->name); - v1beta1_user_subject->name = NULL; - } - free(v1beta1_user_subject); -} - -cJSON *v1beta1_user_subject_convertToJSON(v1beta1_user_subject_t *v1beta1_user_subject) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_user_subject->name - if (!v1beta1_user_subject->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v1beta1_user_subject->name) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_user_subject_t *v1beta1_user_subject_parseFromJSON(cJSON *v1beta1_user_subjectJSON){ - - v1beta1_user_subject_t *v1beta1_user_subject_local_var = NULL; - - // v1beta1_user_subject->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v1beta1_user_subjectJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - - v1beta1_user_subject_local_var = v1beta1_user_subject_create ( - strdup(name->valuestring) - ); - - return v1beta1_user_subject_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_user_subject.h b/kubernetes/model/v1beta1_user_subject.h deleted file mode 100644 index 02ba4af3..00000000 --- a/kubernetes/model/v1beta1_user_subject.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * v1beta1_user_subject.h - * - * UserSubject holds detailed information for user-kind subject. - */ - -#ifndef _v1beta1_user_subject_H_ -#define _v1beta1_user_subject_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_user_subject_t v1beta1_user_subject_t; - - - - -typedef struct v1beta1_user_subject_t { - char *name; // string - -} v1beta1_user_subject_t; - -v1beta1_user_subject_t *v1beta1_user_subject_create( - char *name -); - -void v1beta1_user_subject_free(v1beta1_user_subject_t *v1beta1_user_subject); - -v1beta1_user_subject_t *v1beta1_user_subject_parseFromJSON(cJSON *v1beta1_user_subjectJSON); - -cJSON *v1beta1_user_subject_convertToJSON(v1beta1_user_subject_t *v1beta1_user_subject); - -#endif /* _v1beta1_user_subject_H_ */ - diff --git a/kubernetes/model/v1beta2_limited_priority_level_configuration.c b/kubernetes/model/v1beta2_limited_priority_level_configuration.c index 22bdad30..1b8ccc85 100644 --- a/kubernetes/model/v1beta2_limited_priority_level_configuration.c +++ b/kubernetes/model/v1beta2_limited_priority_level_configuration.c @@ -7,6 +7,8 @@ v1beta2_limited_priority_level_configuration_t *v1beta2_limited_priority_level_configuration_create( int assured_concurrency_shares, + int borrowing_limit_percent, + int lendable_percent, v1beta2_limit_response_t *limit_response ) { v1beta2_limited_priority_level_configuration_t *v1beta2_limited_priority_level_configuration_local_var = malloc(sizeof(v1beta2_limited_priority_level_configuration_t)); @@ -14,6 +16,8 @@ v1beta2_limited_priority_level_configuration_t *v1beta2_limited_priority_level_c return NULL; } v1beta2_limited_priority_level_configuration_local_var->assured_concurrency_shares = assured_concurrency_shares; + v1beta2_limited_priority_level_configuration_local_var->borrowing_limit_percent = borrowing_limit_percent; + v1beta2_limited_priority_level_configuration_local_var->lendable_percent = lendable_percent; v1beta2_limited_priority_level_configuration_local_var->limit_response = limit_response; return v1beta2_limited_priority_level_configuration_local_var; @@ -43,6 +47,22 @@ cJSON *v1beta2_limited_priority_level_configuration_convertToJSON(v1beta2_limite } + // v1beta2_limited_priority_level_configuration->borrowing_limit_percent + if(v1beta2_limited_priority_level_configuration->borrowing_limit_percent) { + if(cJSON_AddNumberToObject(item, "borrowingLimitPercent", v1beta2_limited_priority_level_configuration->borrowing_limit_percent) == NULL) { + goto fail; //Numeric + } + } + + + // v1beta2_limited_priority_level_configuration->lendable_percent + if(v1beta2_limited_priority_level_configuration->lendable_percent) { + if(cJSON_AddNumberToObject(item, "lendablePercent", v1beta2_limited_priority_level_configuration->lendable_percent) == NULL) { + goto fail; //Numeric + } + } + + // v1beta2_limited_priority_level_configuration->limit_response if(v1beta2_limited_priority_level_configuration->limit_response) { cJSON *limit_response_local_JSON = v1beta2_limit_response_convertToJSON(v1beta2_limited_priority_level_configuration->limit_response); @@ -79,6 +99,24 @@ v1beta2_limited_priority_level_configuration_t *v1beta2_limited_priority_level_c } } + // v1beta2_limited_priority_level_configuration->borrowing_limit_percent + cJSON *borrowing_limit_percent = cJSON_GetObjectItemCaseSensitive(v1beta2_limited_priority_level_configurationJSON, "borrowingLimitPercent"); + if (borrowing_limit_percent) { + if(!cJSON_IsNumber(borrowing_limit_percent)) + { + goto end; //Numeric + } + } + + // v1beta2_limited_priority_level_configuration->lendable_percent + cJSON *lendable_percent = cJSON_GetObjectItemCaseSensitive(v1beta2_limited_priority_level_configurationJSON, "lendablePercent"); + if (lendable_percent) { + if(!cJSON_IsNumber(lendable_percent)) + { + goto end; //Numeric + } + } + // v1beta2_limited_priority_level_configuration->limit_response cJSON *limit_response = cJSON_GetObjectItemCaseSensitive(v1beta2_limited_priority_level_configurationJSON, "limitResponse"); if (limit_response) { @@ -88,6 +126,8 @@ v1beta2_limited_priority_level_configuration_t *v1beta2_limited_priority_level_c v1beta2_limited_priority_level_configuration_local_var = v1beta2_limited_priority_level_configuration_create ( assured_concurrency_shares ? assured_concurrency_shares->valuedouble : 0, + borrowing_limit_percent ? borrowing_limit_percent->valuedouble : 0, + lendable_percent ? lendable_percent->valuedouble : 0, limit_response ? limit_response_local_nonprim : NULL ); diff --git a/kubernetes/model/v1beta2_limited_priority_level_configuration.h b/kubernetes/model/v1beta2_limited_priority_level_configuration.h index 31d1bde6..1ca91ba1 100644 --- a/kubernetes/model/v1beta2_limited_priority_level_configuration.h +++ b/kubernetes/model/v1beta2_limited_priority_level_configuration.h @@ -21,12 +21,16 @@ typedef struct v1beta2_limited_priority_level_configuration_t v1beta2_limited_pr typedef struct v1beta2_limited_priority_level_configuration_t { int assured_concurrency_shares; //numeric + int borrowing_limit_percent; //numeric + int lendable_percent; //numeric struct v1beta2_limit_response_t *limit_response; //model } v1beta2_limited_priority_level_configuration_t; v1beta2_limited_priority_level_configuration_t *v1beta2_limited_priority_level_configuration_create( int assured_concurrency_shares, + int borrowing_limit_percent, + int lendable_percent, v1beta2_limit_response_t *limit_response ); diff --git a/kubernetes/model/v1beta3_flow_distinguisher_method.c b/kubernetes/model/v1beta3_flow_distinguisher_method.c new file mode 100644 index 00000000..f4923714 --- /dev/null +++ b/kubernetes/model/v1beta3_flow_distinguisher_method.c @@ -0,0 +1,77 @@ +#include +#include +#include +#include "v1beta3_flow_distinguisher_method.h" + + + +v1beta3_flow_distinguisher_method_t *v1beta3_flow_distinguisher_method_create( + char *type + ) { + v1beta3_flow_distinguisher_method_t *v1beta3_flow_distinguisher_method_local_var = malloc(sizeof(v1beta3_flow_distinguisher_method_t)); + if (!v1beta3_flow_distinguisher_method_local_var) { + return NULL; + } + v1beta3_flow_distinguisher_method_local_var->type = type; + + return v1beta3_flow_distinguisher_method_local_var; +} + + +void v1beta3_flow_distinguisher_method_free(v1beta3_flow_distinguisher_method_t *v1beta3_flow_distinguisher_method) { + if(NULL == v1beta3_flow_distinguisher_method){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_flow_distinguisher_method->type) { + free(v1beta3_flow_distinguisher_method->type); + v1beta3_flow_distinguisher_method->type = NULL; + } + free(v1beta3_flow_distinguisher_method); +} + +cJSON *v1beta3_flow_distinguisher_method_convertToJSON(v1beta3_flow_distinguisher_method_t *v1beta3_flow_distinguisher_method) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_flow_distinguisher_method->type + if (!v1beta3_flow_distinguisher_method->type) { + goto fail; + } + if(cJSON_AddStringToObject(item, "type", v1beta3_flow_distinguisher_method->type) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_flow_distinguisher_method_t *v1beta3_flow_distinguisher_method_parseFromJSON(cJSON *v1beta3_flow_distinguisher_methodJSON){ + + v1beta3_flow_distinguisher_method_t *v1beta3_flow_distinguisher_method_local_var = NULL; + + // v1beta3_flow_distinguisher_method->type + cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_distinguisher_methodJSON, "type"); + if (!type) { + goto end; + } + + + if(!cJSON_IsString(type)) + { + goto end; //String + } + + + v1beta3_flow_distinguisher_method_local_var = v1beta3_flow_distinguisher_method_create ( + strdup(type->valuestring) + ); + + return v1beta3_flow_distinguisher_method_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1beta3_flow_distinguisher_method.h b/kubernetes/model/v1beta3_flow_distinguisher_method.h new file mode 100644 index 00000000..0abb026c --- /dev/null +++ b/kubernetes/model/v1beta3_flow_distinguisher_method.h @@ -0,0 +1,37 @@ +/* + * v1beta3_flow_distinguisher_method.h + * + * FlowDistinguisherMethod specifies the method of a flow distinguisher. + */ + +#ifndef _v1beta3_flow_distinguisher_method_H_ +#define _v1beta3_flow_distinguisher_method_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_flow_distinguisher_method_t v1beta3_flow_distinguisher_method_t; + + + + +typedef struct v1beta3_flow_distinguisher_method_t { + char *type; // string + +} v1beta3_flow_distinguisher_method_t; + +v1beta3_flow_distinguisher_method_t *v1beta3_flow_distinguisher_method_create( + char *type +); + +void v1beta3_flow_distinguisher_method_free(v1beta3_flow_distinguisher_method_t *v1beta3_flow_distinguisher_method); + +v1beta3_flow_distinguisher_method_t *v1beta3_flow_distinguisher_method_parseFromJSON(cJSON *v1beta3_flow_distinguisher_methodJSON); + +cJSON *v1beta3_flow_distinguisher_method_convertToJSON(v1beta3_flow_distinguisher_method_t *v1beta3_flow_distinguisher_method); + +#endif /* _v1beta3_flow_distinguisher_method_H_ */ + diff --git a/kubernetes/model/v1beta3_flow_schema.c b/kubernetes/model/v1beta3_flow_schema.c new file mode 100644 index 00000000..4e00747b --- /dev/null +++ b/kubernetes/model/v1beta3_flow_schema.c @@ -0,0 +1,196 @@ +#include +#include +#include +#include "v1beta3_flow_schema.h" + + + +v1beta3_flow_schema_t *v1beta3_flow_schema_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1beta3_flow_schema_spec_t *spec, + v1beta3_flow_schema_status_t *status + ) { + v1beta3_flow_schema_t *v1beta3_flow_schema_local_var = malloc(sizeof(v1beta3_flow_schema_t)); + if (!v1beta3_flow_schema_local_var) { + return NULL; + } + v1beta3_flow_schema_local_var->api_version = api_version; + v1beta3_flow_schema_local_var->kind = kind; + v1beta3_flow_schema_local_var->metadata = metadata; + v1beta3_flow_schema_local_var->spec = spec; + v1beta3_flow_schema_local_var->status = status; + + return v1beta3_flow_schema_local_var; +} + + +void v1beta3_flow_schema_free(v1beta3_flow_schema_t *v1beta3_flow_schema) { + if(NULL == v1beta3_flow_schema){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_flow_schema->api_version) { + free(v1beta3_flow_schema->api_version); + v1beta3_flow_schema->api_version = NULL; + } + if (v1beta3_flow_schema->kind) { + free(v1beta3_flow_schema->kind); + v1beta3_flow_schema->kind = NULL; + } + if (v1beta3_flow_schema->metadata) { + v1_object_meta_free(v1beta3_flow_schema->metadata); + v1beta3_flow_schema->metadata = NULL; + } + if (v1beta3_flow_schema->spec) { + v1beta3_flow_schema_spec_free(v1beta3_flow_schema->spec); + v1beta3_flow_schema->spec = NULL; + } + if (v1beta3_flow_schema->status) { + v1beta3_flow_schema_status_free(v1beta3_flow_schema->status); + v1beta3_flow_schema->status = NULL; + } + free(v1beta3_flow_schema); +} + +cJSON *v1beta3_flow_schema_convertToJSON(v1beta3_flow_schema_t *v1beta3_flow_schema) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_flow_schema->api_version + if(v1beta3_flow_schema->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1beta3_flow_schema->api_version) == NULL) { + goto fail; //String + } + } + + + // v1beta3_flow_schema->kind + if(v1beta3_flow_schema->kind) { + if(cJSON_AddStringToObject(item, "kind", v1beta3_flow_schema->kind) == NULL) { + goto fail; //String + } + } + + + // v1beta3_flow_schema->metadata + if(v1beta3_flow_schema->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1beta3_flow_schema->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1beta3_flow_schema->spec + if(v1beta3_flow_schema->spec) { + cJSON *spec_local_JSON = v1beta3_flow_schema_spec_convertToJSON(v1beta3_flow_schema->spec); + if(spec_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "spec", spec_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1beta3_flow_schema->status + if(v1beta3_flow_schema->status) { + cJSON *status_local_JSON = v1beta3_flow_schema_status_convertToJSON(v1beta3_flow_schema->status); + if(status_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "status", status_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_flow_schema_t *v1beta3_flow_schema_parseFromJSON(cJSON *v1beta3_flow_schemaJSON){ + + v1beta3_flow_schema_t *v1beta3_flow_schema_local_var = NULL; + + // define the local variable for v1beta3_flow_schema->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1beta3_flow_schema->spec + v1beta3_flow_schema_spec_t *spec_local_nonprim = NULL; + + // define the local variable for v1beta3_flow_schema->status + v1beta3_flow_schema_status_t *status_local_nonprim = NULL; + + // v1beta3_flow_schema->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schemaJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1beta3_flow_schema->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schemaJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1beta3_flow_schema->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schemaJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1beta3_flow_schema->spec + cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schemaJSON, "spec"); + if (spec) { + spec_local_nonprim = v1beta3_flow_schema_spec_parseFromJSON(spec); //nonprimitive + } + + // v1beta3_flow_schema->status + cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schemaJSON, "status"); + if (status) { + status_local_nonprim = v1beta3_flow_schema_status_parseFromJSON(status); //nonprimitive + } + + + v1beta3_flow_schema_local_var = v1beta3_flow_schema_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL, + spec ? spec_local_nonprim : NULL, + status ? status_local_nonprim : NULL + ); + + return v1beta3_flow_schema_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (spec_local_nonprim) { + v1beta3_flow_schema_spec_free(spec_local_nonprim); + spec_local_nonprim = NULL; + } + if (status_local_nonprim) { + v1beta3_flow_schema_status_free(status_local_nonprim); + status_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_flow_schema.h b/kubernetes/model/v1beta3_flow_schema.h new file mode 100644 index 00000000..b8200966 --- /dev/null +++ b/kubernetes/model/v1beta3_flow_schema.h @@ -0,0 +1,48 @@ +/* + * v1beta3_flow_schema.h + * + * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\". + */ + +#ifndef _v1beta3_flow_schema_H_ +#define _v1beta3_flow_schema_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_flow_schema_t v1beta3_flow_schema_t; + +#include "v1_object_meta.h" +#include "v1beta3_flow_schema_spec.h" +#include "v1beta3_flow_schema_status.h" + + + +typedef struct v1beta3_flow_schema_t { + char *api_version; // string + char *kind; // string + struct v1_object_meta_t *metadata; //model + struct v1beta3_flow_schema_spec_t *spec; //model + struct v1beta3_flow_schema_status_t *status; //model + +} v1beta3_flow_schema_t; + +v1beta3_flow_schema_t *v1beta3_flow_schema_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1beta3_flow_schema_spec_t *spec, + v1beta3_flow_schema_status_t *status +); + +void v1beta3_flow_schema_free(v1beta3_flow_schema_t *v1beta3_flow_schema); + +v1beta3_flow_schema_t *v1beta3_flow_schema_parseFromJSON(cJSON *v1beta3_flow_schemaJSON); + +cJSON *v1beta3_flow_schema_convertToJSON(v1beta3_flow_schema_t *v1beta3_flow_schema); + +#endif /* _v1beta3_flow_schema_H_ */ + diff --git a/kubernetes/model/v1beta3_flow_schema_condition.c b/kubernetes/model/v1beta3_flow_schema_condition.c new file mode 100644 index 00000000..c42cb652 --- /dev/null +++ b/kubernetes/model/v1beta3_flow_schema_condition.c @@ -0,0 +1,169 @@ +#include +#include +#include +#include "v1beta3_flow_schema_condition.h" + + + +v1beta3_flow_schema_condition_t *v1beta3_flow_schema_condition_create( + char *last_transition_time, + char *message, + char *reason, + char *status, + char *type + ) { + v1beta3_flow_schema_condition_t *v1beta3_flow_schema_condition_local_var = malloc(sizeof(v1beta3_flow_schema_condition_t)); + if (!v1beta3_flow_schema_condition_local_var) { + return NULL; + } + v1beta3_flow_schema_condition_local_var->last_transition_time = last_transition_time; + v1beta3_flow_schema_condition_local_var->message = message; + v1beta3_flow_schema_condition_local_var->reason = reason; + v1beta3_flow_schema_condition_local_var->status = status; + v1beta3_flow_schema_condition_local_var->type = type; + + return v1beta3_flow_schema_condition_local_var; +} + + +void v1beta3_flow_schema_condition_free(v1beta3_flow_schema_condition_t *v1beta3_flow_schema_condition) { + if(NULL == v1beta3_flow_schema_condition){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_flow_schema_condition->last_transition_time) { + free(v1beta3_flow_schema_condition->last_transition_time); + v1beta3_flow_schema_condition->last_transition_time = NULL; + } + if (v1beta3_flow_schema_condition->message) { + free(v1beta3_flow_schema_condition->message); + v1beta3_flow_schema_condition->message = NULL; + } + if (v1beta3_flow_schema_condition->reason) { + free(v1beta3_flow_schema_condition->reason); + v1beta3_flow_schema_condition->reason = NULL; + } + if (v1beta3_flow_schema_condition->status) { + free(v1beta3_flow_schema_condition->status); + v1beta3_flow_schema_condition->status = NULL; + } + if (v1beta3_flow_schema_condition->type) { + free(v1beta3_flow_schema_condition->type); + v1beta3_flow_schema_condition->type = NULL; + } + free(v1beta3_flow_schema_condition); +} + +cJSON *v1beta3_flow_schema_condition_convertToJSON(v1beta3_flow_schema_condition_t *v1beta3_flow_schema_condition) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_flow_schema_condition->last_transition_time + if(v1beta3_flow_schema_condition->last_transition_time) { + if(cJSON_AddStringToObject(item, "lastTransitionTime", v1beta3_flow_schema_condition->last_transition_time) == NULL) { + goto fail; //Date-Time + } + } + + + // v1beta3_flow_schema_condition->message + if(v1beta3_flow_schema_condition->message) { + if(cJSON_AddStringToObject(item, "message", v1beta3_flow_schema_condition->message) == NULL) { + goto fail; //String + } + } + + + // v1beta3_flow_schema_condition->reason + if(v1beta3_flow_schema_condition->reason) { + if(cJSON_AddStringToObject(item, "reason", v1beta3_flow_schema_condition->reason) == NULL) { + goto fail; //String + } + } + + + // v1beta3_flow_schema_condition->status + if(v1beta3_flow_schema_condition->status) { + if(cJSON_AddStringToObject(item, "status", v1beta3_flow_schema_condition->status) == NULL) { + goto fail; //String + } + } + + + // v1beta3_flow_schema_condition->type + if(v1beta3_flow_schema_condition->type) { + if(cJSON_AddStringToObject(item, "type", v1beta3_flow_schema_condition->type) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_flow_schema_condition_t *v1beta3_flow_schema_condition_parseFromJSON(cJSON *v1beta3_flow_schema_conditionJSON){ + + v1beta3_flow_schema_condition_t *v1beta3_flow_schema_condition_local_var = NULL; + + // v1beta3_flow_schema_condition->last_transition_time + cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_conditionJSON, "lastTransitionTime"); + if (last_transition_time) { + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) + { + goto end; //DateTime + } + } + + // v1beta3_flow_schema_condition->message + cJSON *message = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_conditionJSON, "message"); + if (message) { + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) + { + goto end; //String + } + } + + // v1beta3_flow_schema_condition->reason + cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_conditionJSON, "reason"); + if (reason) { + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) + { + goto end; //String + } + } + + // v1beta3_flow_schema_condition->status + cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_conditionJSON, "status"); + if (status) { + if(!cJSON_IsString(status) && !cJSON_IsNull(status)) + { + goto end; //String + } + } + + // v1beta3_flow_schema_condition->type + cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_conditionJSON, "type"); + if (type) { + if(!cJSON_IsString(type) && !cJSON_IsNull(type)) + { + goto end; //String + } + } + + + v1beta3_flow_schema_condition_local_var = v1beta3_flow_schema_condition_create ( + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, + status && !cJSON_IsNull(status) ? strdup(status->valuestring) : NULL, + type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL + ); + + return v1beta3_flow_schema_condition_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1beta3_flow_schema_condition.h b/kubernetes/model/v1beta3_flow_schema_condition.h new file mode 100644 index 00000000..35da31ce --- /dev/null +++ b/kubernetes/model/v1beta3_flow_schema_condition.h @@ -0,0 +1,45 @@ +/* + * v1beta3_flow_schema_condition.h + * + * FlowSchemaCondition describes conditions for a FlowSchema. + */ + +#ifndef _v1beta3_flow_schema_condition_H_ +#define _v1beta3_flow_schema_condition_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_flow_schema_condition_t v1beta3_flow_schema_condition_t; + + + + +typedef struct v1beta3_flow_schema_condition_t { + char *last_transition_time; //date time + char *message; // string + char *reason; // string + char *status; // string + char *type; // string + +} v1beta3_flow_schema_condition_t; + +v1beta3_flow_schema_condition_t *v1beta3_flow_schema_condition_create( + char *last_transition_time, + char *message, + char *reason, + char *status, + char *type +); + +void v1beta3_flow_schema_condition_free(v1beta3_flow_schema_condition_t *v1beta3_flow_schema_condition); + +v1beta3_flow_schema_condition_t *v1beta3_flow_schema_condition_parseFromJSON(cJSON *v1beta3_flow_schema_conditionJSON); + +cJSON *v1beta3_flow_schema_condition_convertToJSON(v1beta3_flow_schema_condition_t *v1beta3_flow_schema_condition); + +#endif /* _v1beta3_flow_schema_condition_H_ */ + diff --git a/kubernetes/model/v1beta3_flow_schema_list.c b/kubernetes/model/v1beta3_flow_schema_list.c new file mode 100644 index 00000000..70569ab3 --- /dev/null +++ b/kubernetes/model/v1beta3_flow_schema_list.c @@ -0,0 +1,197 @@ +#include +#include +#include +#include "v1beta3_flow_schema_list.h" + + + +v1beta3_flow_schema_list_t *v1beta3_flow_schema_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata + ) { + v1beta3_flow_schema_list_t *v1beta3_flow_schema_list_local_var = malloc(sizeof(v1beta3_flow_schema_list_t)); + if (!v1beta3_flow_schema_list_local_var) { + return NULL; + } + v1beta3_flow_schema_list_local_var->api_version = api_version; + v1beta3_flow_schema_list_local_var->items = items; + v1beta3_flow_schema_list_local_var->kind = kind; + v1beta3_flow_schema_list_local_var->metadata = metadata; + + return v1beta3_flow_schema_list_local_var; +} + + +void v1beta3_flow_schema_list_free(v1beta3_flow_schema_list_t *v1beta3_flow_schema_list) { + if(NULL == v1beta3_flow_schema_list){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_flow_schema_list->api_version) { + free(v1beta3_flow_schema_list->api_version); + v1beta3_flow_schema_list->api_version = NULL; + } + if (v1beta3_flow_schema_list->items) { + list_ForEach(listEntry, v1beta3_flow_schema_list->items) { + v1beta3_flow_schema_free(listEntry->data); + } + list_freeList(v1beta3_flow_schema_list->items); + v1beta3_flow_schema_list->items = NULL; + } + if (v1beta3_flow_schema_list->kind) { + free(v1beta3_flow_schema_list->kind); + v1beta3_flow_schema_list->kind = NULL; + } + if (v1beta3_flow_schema_list->metadata) { + v1_list_meta_free(v1beta3_flow_schema_list->metadata); + v1beta3_flow_schema_list->metadata = NULL; + } + free(v1beta3_flow_schema_list); +} + +cJSON *v1beta3_flow_schema_list_convertToJSON(v1beta3_flow_schema_list_t *v1beta3_flow_schema_list) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_flow_schema_list->api_version + if(v1beta3_flow_schema_list->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1beta3_flow_schema_list->api_version) == NULL) { + goto fail; //String + } + } + + + // v1beta3_flow_schema_list->items + if (!v1beta3_flow_schema_list->items) { + goto fail; + } + cJSON *items = cJSON_AddArrayToObject(item, "items"); + if(items == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *itemsListEntry; + if (v1beta3_flow_schema_list->items) { + list_ForEach(itemsListEntry, v1beta3_flow_schema_list->items) { + cJSON *itemLocal = v1beta3_flow_schema_convertToJSON(itemsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(items, itemLocal); + } + } + + + // v1beta3_flow_schema_list->kind + if(v1beta3_flow_schema_list->kind) { + if(cJSON_AddStringToObject(item, "kind", v1beta3_flow_schema_list->kind) == NULL) { + goto fail; //String + } + } + + + // v1beta3_flow_schema_list->metadata + if(v1beta3_flow_schema_list->metadata) { + cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1beta3_flow_schema_list->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_flow_schema_list_t *v1beta3_flow_schema_list_parseFromJSON(cJSON *v1beta3_flow_schema_listJSON){ + + v1beta3_flow_schema_list_t *v1beta3_flow_schema_list_local_var = NULL; + + // define the local list for v1beta3_flow_schema_list->items + list_t *itemsList = NULL; + + // define the local variable for v1beta3_flow_schema_list->metadata + v1_list_meta_t *metadata_local_nonprim = NULL; + + // v1beta3_flow_schema_list->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_listJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1beta3_flow_schema_list->items + cJSON *items = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_listJSON, "items"); + if (!items) { + goto end; + } + + + cJSON *items_local_nonprimitive = NULL; + if(!cJSON_IsArray(items)){ + goto end; //nonprimitive container + } + + itemsList = list_createList(); + + cJSON_ArrayForEach(items_local_nonprimitive,items ) + { + if(!cJSON_IsObject(items_local_nonprimitive)){ + goto end; + } + v1beta3_flow_schema_t *itemsItem = v1beta3_flow_schema_parseFromJSON(items_local_nonprimitive); + + list_addElement(itemsList, itemsItem); + } + + // v1beta3_flow_schema_list->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_listJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1beta3_flow_schema_list->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_listJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive + } + + + v1beta3_flow_schema_list_local_var = v1beta3_flow_schema_list_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + itemsList, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL + ); + + return v1beta3_flow_schema_list_local_var; +end: + if (itemsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, itemsList) { + v1beta3_flow_schema_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(itemsList); + itemsList = NULL; + } + if (metadata_local_nonprim) { + v1_list_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_flow_schema_list.h b/kubernetes/model/v1beta3_flow_schema_list.h new file mode 100644 index 00000000..4ecb0bbc --- /dev/null +++ b/kubernetes/model/v1beta3_flow_schema_list.h @@ -0,0 +1,45 @@ +/* + * v1beta3_flow_schema_list.h + * + * FlowSchemaList is a list of FlowSchema objects. + */ + +#ifndef _v1beta3_flow_schema_list_H_ +#define _v1beta3_flow_schema_list_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_flow_schema_list_t v1beta3_flow_schema_list_t; + +#include "v1_list_meta.h" +#include "v1beta3_flow_schema.h" + + + +typedef struct v1beta3_flow_schema_list_t { + char *api_version; // string + list_t *items; //nonprimitive container + char *kind; // string + struct v1_list_meta_t *metadata; //model + +} v1beta3_flow_schema_list_t; + +v1beta3_flow_schema_list_t *v1beta3_flow_schema_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata +); + +void v1beta3_flow_schema_list_free(v1beta3_flow_schema_list_t *v1beta3_flow_schema_list); + +v1beta3_flow_schema_list_t *v1beta3_flow_schema_list_parseFromJSON(cJSON *v1beta3_flow_schema_listJSON); + +cJSON *v1beta3_flow_schema_list_convertToJSON(v1beta3_flow_schema_list_t *v1beta3_flow_schema_list); + +#endif /* _v1beta3_flow_schema_list_H_ */ + diff --git a/kubernetes/model/v1beta3_flow_schema_spec.c b/kubernetes/model/v1beta3_flow_schema_spec.c new file mode 100644 index 00000000..70e72d59 --- /dev/null +++ b/kubernetes/model/v1beta3_flow_schema_spec.c @@ -0,0 +1,202 @@ +#include +#include +#include +#include "v1beta3_flow_schema_spec.h" + + + +v1beta3_flow_schema_spec_t *v1beta3_flow_schema_spec_create( + v1beta3_flow_distinguisher_method_t *distinguisher_method, + int matching_precedence, + v1beta3_priority_level_configuration_reference_t *priority_level_configuration, + list_t *rules + ) { + v1beta3_flow_schema_spec_t *v1beta3_flow_schema_spec_local_var = malloc(sizeof(v1beta3_flow_schema_spec_t)); + if (!v1beta3_flow_schema_spec_local_var) { + return NULL; + } + v1beta3_flow_schema_spec_local_var->distinguisher_method = distinguisher_method; + v1beta3_flow_schema_spec_local_var->matching_precedence = matching_precedence; + v1beta3_flow_schema_spec_local_var->priority_level_configuration = priority_level_configuration; + v1beta3_flow_schema_spec_local_var->rules = rules; + + return v1beta3_flow_schema_spec_local_var; +} + + +void v1beta3_flow_schema_spec_free(v1beta3_flow_schema_spec_t *v1beta3_flow_schema_spec) { + if(NULL == v1beta3_flow_schema_spec){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_flow_schema_spec->distinguisher_method) { + v1beta3_flow_distinguisher_method_free(v1beta3_flow_schema_spec->distinguisher_method); + v1beta3_flow_schema_spec->distinguisher_method = NULL; + } + if (v1beta3_flow_schema_spec->priority_level_configuration) { + v1beta3_priority_level_configuration_reference_free(v1beta3_flow_schema_spec->priority_level_configuration); + v1beta3_flow_schema_spec->priority_level_configuration = NULL; + } + if (v1beta3_flow_schema_spec->rules) { + list_ForEach(listEntry, v1beta3_flow_schema_spec->rules) { + v1beta3_policy_rules_with_subjects_free(listEntry->data); + } + list_freeList(v1beta3_flow_schema_spec->rules); + v1beta3_flow_schema_spec->rules = NULL; + } + free(v1beta3_flow_schema_spec); +} + +cJSON *v1beta3_flow_schema_spec_convertToJSON(v1beta3_flow_schema_spec_t *v1beta3_flow_schema_spec) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_flow_schema_spec->distinguisher_method + if(v1beta3_flow_schema_spec->distinguisher_method) { + cJSON *distinguisher_method_local_JSON = v1beta3_flow_distinguisher_method_convertToJSON(v1beta3_flow_schema_spec->distinguisher_method); + if(distinguisher_method_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "distinguisherMethod", distinguisher_method_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1beta3_flow_schema_spec->matching_precedence + if(v1beta3_flow_schema_spec->matching_precedence) { + if(cJSON_AddNumberToObject(item, "matchingPrecedence", v1beta3_flow_schema_spec->matching_precedence) == NULL) { + goto fail; //Numeric + } + } + + + // v1beta3_flow_schema_spec->priority_level_configuration + if (!v1beta3_flow_schema_spec->priority_level_configuration) { + goto fail; + } + cJSON *priority_level_configuration_local_JSON = v1beta3_priority_level_configuration_reference_convertToJSON(v1beta3_flow_schema_spec->priority_level_configuration); + if(priority_level_configuration_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "priorityLevelConfiguration", priority_level_configuration_local_JSON); + if(item->child == NULL) { + goto fail; + } + + + // v1beta3_flow_schema_spec->rules + if(v1beta3_flow_schema_spec->rules) { + cJSON *rules = cJSON_AddArrayToObject(item, "rules"); + if(rules == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *rulesListEntry; + if (v1beta3_flow_schema_spec->rules) { + list_ForEach(rulesListEntry, v1beta3_flow_schema_spec->rules) { + cJSON *itemLocal = v1beta3_policy_rules_with_subjects_convertToJSON(rulesListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(rules, itemLocal); + } + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_flow_schema_spec_t *v1beta3_flow_schema_spec_parseFromJSON(cJSON *v1beta3_flow_schema_specJSON){ + + v1beta3_flow_schema_spec_t *v1beta3_flow_schema_spec_local_var = NULL; + + // define the local variable for v1beta3_flow_schema_spec->distinguisher_method + v1beta3_flow_distinguisher_method_t *distinguisher_method_local_nonprim = NULL; + + // define the local variable for v1beta3_flow_schema_spec->priority_level_configuration + v1beta3_priority_level_configuration_reference_t *priority_level_configuration_local_nonprim = NULL; + + // define the local list for v1beta3_flow_schema_spec->rules + list_t *rulesList = NULL; + + // v1beta3_flow_schema_spec->distinguisher_method + cJSON *distinguisher_method = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_specJSON, "distinguisherMethod"); + if (distinguisher_method) { + distinguisher_method_local_nonprim = v1beta3_flow_distinguisher_method_parseFromJSON(distinguisher_method); //nonprimitive + } + + // v1beta3_flow_schema_spec->matching_precedence + cJSON *matching_precedence = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_specJSON, "matchingPrecedence"); + if (matching_precedence) { + if(!cJSON_IsNumber(matching_precedence)) + { + goto end; //Numeric + } + } + + // v1beta3_flow_schema_spec->priority_level_configuration + cJSON *priority_level_configuration = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_specJSON, "priorityLevelConfiguration"); + if (!priority_level_configuration) { + goto end; + } + + + priority_level_configuration_local_nonprim = v1beta3_priority_level_configuration_reference_parseFromJSON(priority_level_configuration); //nonprimitive + + // v1beta3_flow_schema_spec->rules + cJSON *rules = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_specJSON, "rules"); + if (rules) { + cJSON *rules_local_nonprimitive = NULL; + if(!cJSON_IsArray(rules)){ + goto end; //nonprimitive container + } + + rulesList = list_createList(); + + cJSON_ArrayForEach(rules_local_nonprimitive,rules ) + { + if(!cJSON_IsObject(rules_local_nonprimitive)){ + goto end; + } + v1beta3_policy_rules_with_subjects_t *rulesItem = v1beta3_policy_rules_with_subjects_parseFromJSON(rules_local_nonprimitive); + + list_addElement(rulesList, rulesItem); + } + } + + + v1beta3_flow_schema_spec_local_var = v1beta3_flow_schema_spec_create ( + distinguisher_method ? distinguisher_method_local_nonprim : NULL, + matching_precedence ? matching_precedence->valuedouble : 0, + priority_level_configuration_local_nonprim, + rules ? rulesList : NULL + ); + + return v1beta3_flow_schema_spec_local_var; +end: + if (distinguisher_method_local_nonprim) { + v1beta3_flow_distinguisher_method_free(distinguisher_method_local_nonprim); + distinguisher_method_local_nonprim = NULL; + } + if (priority_level_configuration_local_nonprim) { + v1beta3_priority_level_configuration_reference_free(priority_level_configuration_local_nonprim); + priority_level_configuration_local_nonprim = NULL; + } + if (rulesList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, rulesList) { + v1beta3_policy_rules_with_subjects_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(rulesList); + rulesList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_flow_schema_spec.h b/kubernetes/model/v1beta3_flow_schema_spec.h new file mode 100644 index 00000000..aa1d8714 --- /dev/null +++ b/kubernetes/model/v1beta3_flow_schema_spec.h @@ -0,0 +1,46 @@ +/* + * v1beta3_flow_schema_spec.h + * + * FlowSchemaSpec describes how the FlowSchema's specification looks like. + */ + +#ifndef _v1beta3_flow_schema_spec_H_ +#define _v1beta3_flow_schema_spec_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_flow_schema_spec_t v1beta3_flow_schema_spec_t; + +#include "v1beta3_flow_distinguisher_method.h" +#include "v1beta3_policy_rules_with_subjects.h" +#include "v1beta3_priority_level_configuration_reference.h" + + + +typedef struct v1beta3_flow_schema_spec_t { + struct v1beta3_flow_distinguisher_method_t *distinguisher_method; //model + int matching_precedence; //numeric + struct v1beta3_priority_level_configuration_reference_t *priority_level_configuration; //model + list_t *rules; //nonprimitive container + +} v1beta3_flow_schema_spec_t; + +v1beta3_flow_schema_spec_t *v1beta3_flow_schema_spec_create( + v1beta3_flow_distinguisher_method_t *distinguisher_method, + int matching_precedence, + v1beta3_priority_level_configuration_reference_t *priority_level_configuration, + list_t *rules +); + +void v1beta3_flow_schema_spec_free(v1beta3_flow_schema_spec_t *v1beta3_flow_schema_spec); + +v1beta3_flow_schema_spec_t *v1beta3_flow_schema_spec_parseFromJSON(cJSON *v1beta3_flow_schema_specJSON); + +cJSON *v1beta3_flow_schema_spec_convertToJSON(v1beta3_flow_schema_spec_t *v1beta3_flow_schema_spec); + +#endif /* _v1beta3_flow_schema_spec_H_ */ + diff --git a/kubernetes/model/v1beta3_flow_schema_status.c b/kubernetes/model/v1beta3_flow_schema_status.c new file mode 100644 index 00000000..0df50929 --- /dev/null +++ b/kubernetes/model/v1beta3_flow_schema_status.c @@ -0,0 +1,112 @@ +#include +#include +#include +#include "v1beta3_flow_schema_status.h" + + + +v1beta3_flow_schema_status_t *v1beta3_flow_schema_status_create( + list_t *conditions + ) { + v1beta3_flow_schema_status_t *v1beta3_flow_schema_status_local_var = malloc(sizeof(v1beta3_flow_schema_status_t)); + if (!v1beta3_flow_schema_status_local_var) { + return NULL; + } + v1beta3_flow_schema_status_local_var->conditions = conditions; + + return v1beta3_flow_schema_status_local_var; +} + + +void v1beta3_flow_schema_status_free(v1beta3_flow_schema_status_t *v1beta3_flow_schema_status) { + if(NULL == v1beta3_flow_schema_status){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_flow_schema_status->conditions) { + list_ForEach(listEntry, v1beta3_flow_schema_status->conditions) { + v1beta3_flow_schema_condition_free(listEntry->data); + } + list_freeList(v1beta3_flow_schema_status->conditions); + v1beta3_flow_schema_status->conditions = NULL; + } + free(v1beta3_flow_schema_status); +} + +cJSON *v1beta3_flow_schema_status_convertToJSON(v1beta3_flow_schema_status_t *v1beta3_flow_schema_status) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_flow_schema_status->conditions + if(v1beta3_flow_schema_status->conditions) { + cJSON *conditions = cJSON_AddArrayToObject(item, "conditions"); + if(conditions == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *conditionsListEntry; + if (v1beta3_flow_schema_status->conditions) { + list_ForEach(conditionsListEntry, v1beta3_flow_schema_status->conditions) { + cJSON *itemLocal = v1beta3_flow_schema_condition_convertToJSON(conditionsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(conditions, itemLocal); + } + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_flow_schema_status_t *v1beta3_flow_schema_status_parseFromJSON(cJSON *v1beta3_flow_schema_statusJSON){ + + v1beta3_flow_schema_status_t *v1beta3_flow_schema_status_local_var = NULL; + + // define the local list for v1beta3_flow_schema_status->conditions + list_t *conditionsList = NULL; + + // v1beta3_flow_schema_status->conditions + cJSON *conditions = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_statusJSON, "conditions"); + if (conditions) { + cJSON *conditions_local_nonprimitive = NULL; + if(!cJSON_IsArray(conditions)){ + goto end; //nonprimitive container + } + + conditionsList = list_createList(); + + cJSON_ArrayForEach(conditions_local_nonprimitive,conditions ) + { + if(!cJSON_IsObject(conditions_local_nonprimitive)){ + goto end; + } + v1beta3_flow_schema_condition_t *conditionsItem = v1beta3_flow_schema_condition_parseFromJSON(conditions_local_nonprimitive); + + list_addElement(conditionsList, conditionsItem); + } + } + + + v1beta3_flow_schema_status_local_var = v1beta3_flow_schema_status_create ( + conditions ? conditionsList : NULL + ); + + return v1beta3_flow_schema_status_local_var; +end: + if (conditionsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, conditionsList) { + v1beta3_flow_schema_condition_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(conditionsList); + conditionsList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_flow_schema_status.h b/kubernetes/model/v1beta3_flow_schema_status.h new file mode 100644 index 00000000..3f6cd7ab --- /dev/null +++ b/kubernetes/model/v1beta3_flow_schema_status.h @@ -0,0 +1,38 @@ +/* + * v1beta3_flow_schema_status.h + * + * FlowSchemaStatus represents the current state of a FlowSchema. + */ + +#ifndef _v1beta3_flow_schema_status_H_ +#define _v1beta3_flow_schema_status_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_flow_schema_status_t v1beta3_flow_schema_status_t; + +#include "v1beta3_flow_schema_condition.h" + + + +typedef struct v1beta3_flow_schema_status_t { + list_t *conditions; //nonprimitive container + +} v1beta3_flow_schema_status_t; + +v1beta3_flow_schema_status_t *v1beta3_flow_schema_status_create( + list_t *conditions +); + +void v1beta3_flow_schema_status_free(v1beta3_flow_schema_status_t *v1beta3_flow_schema_status); + +v1beta3_flow_schema_status_t *v1beta3_flow_schema_status_parseFromJSON(cJSON *v1beta3_flow_schema_statusJSON); + +cJSON *v1beta3_flow_schema_status_convertToJSON(v1beta3_flow_schema_status_t *v1beta3_flow_schema_status); + +#endif /* _v1beta3_flow_schema_status_H_ */ + diff --git a/kubernetes/model/v1beta3_group_subject.c b/kubernetes/model/v1beta3_group_subject.c new file mode 100644 index 00000000..a877be7e --- /dev/null +++ b/kubernetes/model/v1beta3_group_subject.c @@ -0,0 +1,77 @@ +#include +#include +#include +#include "v1beta3_group_subject.h" + + + +v1beta3_group_subject_t *v1beta3_group_subject_create( + char *name + ) { + v1beta3_group_subject_t *v1beta3_group_subject_local_var = malloc(sizeof(v1beta3_group_subject_t)); + if (!v1beta3_group_subject_local_var) { + return NULL; + } + v1beta3_group_subject_local_var->name = name; + + return v1beta3_group_subject_local_var; +} + + +void v1beta3_group_subject_free(v1beta3_group_subject_t *v1beta3_group_subject) { + if(NULL == v1beta3_group_subject){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_group_subject->name) { + free(v1beta3_group_subject->name); + v1beta3_group_subject->name = NULL; + } + free(v1beta3_group_subject); +} + +cJSON *v1beta3_group_subject_convertToJSON(v1beta3_group_subject_t *v1beta3_group_subject) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_group_subject->name + if (!v1beta3_group_subject->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1beta3_group_subject->name) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_group_subject_t *v1beta3_group_subject_parseFromJSON(cJSON *v1beta3_group_subjectJSON){ + + v1beta3_group_subject_t *v1beta3_group_subject_local_var = NULL; + + // v1beta3_group_subject->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1beta3_group_subjectJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + + v1beta3_group_subject_local_var = v1beta3_group_subject_create ( + strdup(name->valuestring) + ); + + return v1beta3_group_subject_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1beta3_group_subject.h b/kubernetes/model/v1beta3_group_subject.h new file mode 100644 index 00000000..1fd87d1c --- /dev/null +++ b/kubernetes/model/v1beta3_group_subject.h @@ -0,0 +1,37 @@ +/* + * v1beta3_group_subject.h + * + * GroupSubject holds detailed information for group-kind subject. + */ + +#ifndef _v1beta3_group_subject_H_ +#define _v1beta3_group_subject_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_group_subject_t v1beta3_group_subject_t; + + + + +typedef struct v1beta3_group_subject_t { + char *name; // string + +} v1beta3_group_subject_t; + +v1beta3_group_subject_t *v1beta3_group_subject_create( + char *name +); + +void v1beta3_group_subject_free(v1beta3_group_subject_t *v1beta3_group_subject); + +v1beta3_group_subject_t *v1beta3_group_subject_parseFromJSON(cJSON *v1beta3_group_subjectJSON); + +cJSON *v1beta3_group_subject_convertToJSON(v1beta3_group_subject_t *v1beta3_group_subject); + +#endif /* _v1beta3_group_subject_H_ */ + diff --git a/kubernetes/model/v1beta3_limit_response.c b/kubernetes/model/v1beta3_limit_response.c new file mode 100644 index 00000000..f2020916 --- /dev/null +++ b/kubernetes/model/v1beta3_limit_response.c @@ -0,0 +1,110 @@ +#include +#include +#include +#include "v1beta3_limit_response.h" + + + +v1beta3_limit_response_t *v1beta3_limit_response_create( + v1beta3_queuing_configuration_t *queuing, + char *type + ) { + v1beta3_limit_response_t *v1beta3_limit_response_local_var = malloc(sizeof(v1beta3_limit_response_t)); + if (!v1beta3_limit_response_local_var) { + return NULL; + } + v1beta3_limit_response_local_var->queuing = queuing; + v1beta3_limit_response_local_var->type = type; + + return v1beta3_limit_response_local_var; +} + + +void v1beta3_limit_response_free(v1beta3_limit_response_t *v1beta3_limit_response) { + if(NULL == v1beta3_limit_response){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_limit_response->queuing) { + v1beta3_queuing_configuration_free(v1beta3_limit_response->queuing); + v1beta3_limit_response->queuing = NULL; + } + if (v1beta3_limit_response->type) { + free(v1beta3_limit_response->type); + v1beta3_limit_response->type = NULL; + } + free(v1beta3_limit_response); +} + +cJSON *v1beta3_limit_response_convertToJSON(v1beta3_limit_response_t *v1beta3_limit_response) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_limit_response->queuing + if(v1beta3_limit_response->queuing) { + cJSON *queuing_local_JSON = v1beta3_queuing_configuration_convertToJSON(v1beta3_limit_response->queuing); + if(queuing_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "queuing", queuing_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1beta3_limit_response->type + if (!v1beta3_limit_response->type) { + goto fail; + } + if(cJSON_AddStringToObject(item, "type", v1beta3_limit_response->type) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_limit_response_t *v1beta3_limit_response_parseFromJSON(cJSON *v1beta3_limit_responseJSON){ + + v1beta3_limit_response_t *v1beta3_limit_response_local_var = NULL; + + // define the local variable for v1beta3_limit_response->queuing + v1beta3_queuing_configuration_t *queuing_local_nonprim = NULL; + + // v1beta3_limit_response->queuing + cJSON *queuing = cJSON_GetObjectItemCaseSensitive(v1beta3_limit_responseJSON, "queuing"); + if (queuing) { + queuing_local_nonprim = v1beta3_queuing_configuration_parseFromJSON(queuing); //nonprimitive + } + + // v1beta3_limit_response->type + cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta3_limit_responseJSON, "type"); + if (!type) { + goto end; + } + + + if(!cJSON_IsString(type)) + { + goto end; //String + } + + + v1beta3_limit_response_local_var = v1beta3_limit_response_create ( + queuing ? queuing_local_nonprim : NULL, + strdup(type->valuestring) + ); + + return v1beta3_limit_response_local_var; +end: + if (queuing_local_nonprim) { + v1beta3_queuing_configuration_free(queuing_local_nonprim); + queuing_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_limit_response.h b/kubernetes/model/v1beta3_limit_response.h new file mode 100644 index 00000000..6a3e3b8e --- /dev/null +++ b/kubernetes/model/v1beta3_limit_response.h @@ -0,0 +1,40 @@ +/* + * v1beta3_limit_response.h + * + * LimitResponse defines how to handle requests that can not be executed right now. + */ + +#ifndef _v1beta3_limit_response_H_ +#define _v1beta3_limit_response_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_limit_response_t v1beta3_limit_response_t; + +#include "v1beta3_queuing_configuration.h" + + + +typedef struct v1beta3_limit_response_t { + struct v1beta3_queuing_configuration_t *queuing; //model + char *type; // string + +} v1beta3_limit_response_t; + +v1beta3_limit_response_t *v1beta3_limit_response_create( + v1beta3_queuing_configuration_t *queuing, + char *type +); + +void v1beta3_limit_response_free(v1beta3_limit_response_t *v1beta3_limit_response); + +v1beta3_limit_response_t *v1beta3_limit_response_parseFromJSON(cJSON *v1beta3_limit_responseJSON); + +cJSON *v1beta3_limit_response_convertToJSON(v1beta3_limit_response_t *v1beta3_limit_response); + +#endif /* _v1beta3_limit_response_H_ */ + diff --git a/kubernetes/model/v1beta3_limited_priority_level_configuration.c b/kubernetes/model/v1beta3_limited_priority_level_configuration.c new file mode 100644 index 00000000..f1701c81 --- /dev/null +++ b/kubernetes/model/v1beta3_limited_priority_level_configuration.c @@ -0,0 +1,142 @@ +#include +#include +#include +#include "v1beta3_limited_priority_level_configuration.h" + + + +v1beta3_limited_priority_level_configuration_t *v1beta3_limited_priority_level_configuration_create( + int borrowing_limit_percent, + int lendable_percent, + v1beta3_limit_response_t *limit_response, + int nominal_concurrency_shares + ) { + v1beta3_limited_priority_level_configuration_t *v1beta3_limited_priority_level_configuration_local_var = malloc(sizeof(v1beta3_limited_priority_level_configuration_t)); + if (!v1beta3_limited_priority_level_configuration_local_var) { + return NULL; + } + v1beta3_limited_priority_level_configuration_local_var->borrowing_limit_percent = borrowing_limit_percent; + v1beta3_limited_priority_level_configuration_local_var->lendable_percent = lendable_percent; + v1beta3_limited_priority_level_configuration_local_var->limit_response = limit_response; + v1beta3_limited_priority_level_configuration_local_var->nominal_concurrency_shares = nominal_concurrency_shares; + + return v1beta3_limited_priority_level_configuration_local_var; +} + + +void v1beta3_limited_priority_level_configuration_free(v1beta3_limited_priority_level_configuration_t *v1beta3_limited_priority_level_configuration) { + if(NULL == v1beta3_limited_priority_level_configuration){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_limited_priority_level_configuration->limit_response) { + v1beta3_limit_response_free(v1beta3_limited_priority_level_configuration->limit_response); + v1beta3_limited_priority_level_configuration->limit_response = NULL; + } + free(v1beta3_limited_priority_level_configuration); +} + +cJSON *v1beta3_limited_priority_level_configuration_convertToJSON(v1beta3_limited_priority_level_configuration_t *v1beta3_limited_priority_level_configuration) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_limited_priority_level_configuration->borrowing_limit_percent + if(v1beta3_limited_priority_level_configuration->borrowing_limit_percent) { + if(cJSON_AddNumberToObject(item, "borrowingLimitPercent", v1beta3_limited_priority_level_configuration->borrowing_limit_percent) == NULL) { + goto fail; //Numeric + } + } + + + // v1beta3_limited_priority_level_configuration->lendable_percent + if(v1beta3_limited_priority_level_configuration->lendable_percent) { + if(cJSON_AddNumberToObject(item, "lendablePercent", v1beta3_limited_priority_level_configuration->lendable_percent) == NULL) { + goto fail; //Numeric + } + } + + + // v1beta3_limited_priority_level_configuration->limit_response + if(v1beta3_limited_priority_level_configuration->limit_response) { + cJSON *limit_response_local_JSON = v1beta3_limit_response_convertToJSON(v1beta3_limited_priority_level_configuration->limit_response); + if(limit_response_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "limitResponse", limit_response_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1beta3_limited_priority_level_configuration->nominal_concurrency_shares + if(v1beta3_limited_priority_level_configuration->nominal_concurrency_shares) { + if(cJSON_AddNumberToObject(item, "nominalConcurrencyShares", v1beta3_limited_priority_level_configuration->nominal_concurrency_shares) == NULL) { + goto fail; //Numeric + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_limited_priority_level_configuration_t *v1beta3_limited_priority_level_configuration_parseFromJSON(cJSON *v1beta3_limited_priority_level_configurationJSON){ + + v1beta3_limited_priority_level_configuration_t *v1beta3_limited_priority_level_configuration_local_var = NULL; + + // define the local variable for v1beta3_limited_priority_level_configuration->limit_response + v1beta3_limit_response_t *limit_response_local_nonprim = NULL; + + // v1beta3_limited_priority_level_configuration->borrowing_limit_percent + cJSON *borrowing_limit_percent = cJSON_GetObjectItemCaseSensitive(v1beta3_limited_priority_level_configurationJSON, "borrowingLimitPercent"); + if (borrowing_limit_percent) { + if(!cJSON_IsNumber(borrowing_limit_percent)) + { + goto end; //Numeric + } + } + + // v1beta3_limited_priority_level_configuration->lendable_percent + cJSON *lendable_percent = cJSON_GetObjectItemCaseSensitive(v1beta3_limited_priority_level_configurationJSON, "lendablePercent"); + if (lendable_percent) { + if(!cJSON_IsNumber(lendable_percent)) + { + goto end; //Numeric + } + } + + // v1beta3_limited_priority_level_configuration->limit_response + cJSON *limit_response = cJSON_GetObjectItemCaseSensitive(v1beta3_limited_priority_level_configurationJSON, "limitResponse"); + if (limit_response) { + limit_response_local_nonprim = v1beta3_limit_response_parseFromJSON(limit_response); //nonprimitive + } + + // v1beta3_limited_priority_level_configuration->nominal_concurrency_shares + cJSON *nominal_concurrency_shares = cJSON_GetObjectItemCaseSensitive(v1beta3_limited_priority_level_configurationJSON, "nominalConcurrencyShares"); + if (nominal_concurrency_shares) { + if(!cJSON_IsNumber(nominal_concurrency_shares)) + { + goto end; //Numeric + } + } + + + v1beta3_limited_priority_level_configuration_local_var = v1beta3_limited_priority_level_configuration_create ( + borrowing_limit_percent ? borrowing_limit_percent->valuedouble : 0, + lendable_percent ? lendable_percent->valuedouble : 0, + limit_response ? limit_response_local_nonprim : NULL, + nominal_concurrency_shares ? nominal_concurrency_shares->valuedouble : 0 + ); + + return v1beta3_limited_priority_level_configuration_local_var; +end: + if (limit_response_local_nonprim) { + v1beta3_limit_response_free(limit_response_local_nonprim); + limit_response_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_limited_priority_level_configuration.h b/kubernetes/model/v1beta3_limited_priority_level_configuration.h new file mode 100644 index 00000000..5ae3f652 --- /dev/null +++ b/kubernetes/model/v1beta3_limited_priority_level_configuration.h @@ -0,0 +1,44 @@ +/* + * v1beta3_limited_priority_level_configuration.h + * + * LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: - How are requests for this priority level limited? - What should be done with requests that exceed the limit? + */ + +#ifndef _v1beta3_limited_priority_level_configuration_H_ +#define _v1beta3_limited_priority_level_configuration_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_limited_priority_level_configuration_t v1beta3_limited_priority_level_configuration_t; + +#include "v1beta3_limit_response.h" + + + +typedef struct v1beta3_limited_priority_level_configuration_t { + int borrowing_limit_percent; //numeric + int lendable_percent; //numeric + struct v1beta3_limit_response_t *limit_response; //model + int nominal_concurrency_shares; //numeric + +} v1beta3_limited_priority_level_configuration_t; + +v1beta3_limited_priority_level_configuration_t *v1beta3_limited_priority_level_configuration_create( + int borrowing_limit_percent, + int lendable_percent, + v1beta3_limit_response_t *limit_response, + int nominal_concurrency_shares +); + +void v1beta3_limited_priority_level_configuration_free(v1beta3_limited_priority_level_configuration_t *v1beta3_limited_priority_level_configuration); + +v1beta3_limited_priority_level_configuration_t *v1beta3_limited_priority_level_configuration_parseFromJSON(cJSON *v1beta3_limited_priority_level_configurationJSON); + +cJSON *v1beta3_limited_priority_level_configuration_convertToJSON(v1beta3_limited_priority_level_configuration_t *v1beta3_limited_priority_level_configuration); + +#endif /* _v1beta3_limited_priority_level_configuration_H_ */ + diff --git a/kubernetes/model/v1beta1_non_resource_policy_rule.c b/kubernetes/model/v1beta3_non_resource_policy_rule.c similarity index 57% rename from kubernetes/model/v1beta1_non_resource_policy_rule.c rename to kubernetes/model/v1beta3_non_resource_policy_rule.c index 47ad3957..5366f118 100644 --- a/kubernetes/model/v1beta1_non_resource_policy_rule.c +++ b/kubernetes/model/v1beta3_non_resource_policy_rule.c @@ -1,52 +1,52 @@ #include #include #include -#include "v1beta1_non_resource_policy_rule.h" +#include "v1beta3_non_resource_policy_rule.h" -v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule_create( +v1beta3_non_resource_policy_rule_t *v1beta3_non_resource_policy_rule_create( list_t *non_resource_urls, list_t *verbs ) { - v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule_local_var = malloc(sizeof(v1beta1_non_resource_policy_rule_t)); - if (!v1beta1_non_resource_policy_rule_local_var) { + v1beta3_non_resource_policy_rule_t *v1beta3_non_resource_policy_rule_local_var = malloc(sizeof(v1beta3_non_resource_policy_rule_t)); + if (!v1beta3_non_resource_policy_rule_local_var) { return NULL; } - v1beta1_non_resource_policy_rule_local_var->non_resource_urls = non_resource_urls; - v1beta1_non_resource_policy_rule_local_var->verbs = verbs; + v1beta3_non_resource_policy_rule_local_var->non_resource_urls = non_resource_urls; + v1beta3_non_resource_policy_rule_local_var->verbs = verbs; - return v1beta1_non_resource_policy_rule_local_var; + return v1beta3_non_resource_policy_rule_local_var; } -void v1beta1_non_resource_policy_rule_free(v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule) { - if(NULL == v1beta1_non_resource_policy_rule){ +void v1beta3_non_resource_policy_rule_free(v1beta3_non_resource_policy_rule_t *v1beta3_non_resource_policy_rule) { + if(NULL == v1beta3_non_resource_policy_rule){ return ; } listEntry_t *listEntry; - if (v1beta1_non_resource_policy_rule->non_resource_urls) { - list_ForEach(listEntry, v1beta1_non_resource_policy_rule->non_resource_urls) { + if (v1beta3_non_resource_policy_rule->non_resource_urls) { + list_ForEach(listEntry, v1beta3_non_resource_policy_rule->non_resource_urls) { free(listEntry->data); } - list_freeList(v1beta1_non_resource_policy_rule->non_resource_urls); - v1beta1_non_resource_policy_rule->non_resource_urls = NULL; + list_freeList(v1beta3_non_resource_policy_rule->non_resource_urls); + v1beta3_non_resource_policy_rule->non_resource_urls = NULL; } - if (v1beta1_non_resource_policy_rule->verbs) { - list_ForEach(listEntry, v1beta1_non_resource_policy_rule->verbs) { + if (v1beta3_non_resource_policy_rule->verbs) { + list_ForEach(listEntry, v1beta3_non_resource_policy_rule->verbs) { free(listEntry->data); } - list_freeList(v1beta1_non_resource_policy_rule->verbs); - v1beta1_non_resource_policy_rule->verbs = NULL; + list_freeList(v1beta3_non_resource_policy_rule->verbs); + v1beta3_non_resource_policy_rule->verbs = NULL; } - free(v1beta1_non_resource_policy_rule); + free(v1beta3_non_resource_policy_rule); } -cJSON *v1beta1_non_resource_policy_rule_convertToJSON(v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule) { +cJSON *v1beta3_non_resource_policy_rule_convertToJSON(v1beta3_non_resource_policy_rule_t *v1beta3_non_resource_policy_rule) { cJSON *item = cJSON_CreateObject(); - // v1beta1_non_resource_policy_rule->non_resource_urls - if (!v1beta1_non_resource_policy_rule->non_resource_urls) { + // v1beta3_non_resource_policy_rule->non_resource_urls + if (!v1beta3_non_resource_policy_rule->non_resource_urls) { goto fail; } cJSON *non_resource_urls = cJSON_AddArrayToObject(item, "nonResourceURLs"); @@ -55,7 +55,7 @@ cJSON *v1beta1_non_resource_policy_rule_convertToJSON(v1beta1_non_resource_polic } listEntry_t *non_resource_urlsListEntry; - list_ForEach(non_resource_urlsListEntry, v1beta1_non_resource_policy_rule->non_resource_urls) { + list_ForEach(non_resource_urlsListEntry, v1beta3_non_resource_policy_rule->non_resource_urls) { if(cJSON_AddStringToObject(non_resource_urls, "", (char*)non_resource_urlsListEntry->data) == NULL) { goto fail; @@ -63,8 +63,8 @@ cJSON *v1beta1_non_resource_policy_rule_convertToJSON(v1beta1_non_resource_polic } - // v1beta1_non_resource_policy_rule->verbs - if (!v1beta1_non_resource_policy_rule->verbs) { + // v1beta3_non_resource_policy_rule->verbs + if (!v1beta3_non_resource_policy_rule->verbs) { goto fail; } cJSON *verbs = cJSON_AddArrayToObject(item, "verbs"); @@ -73,7 +73,7 @@ cJSON *v1beta1_non_resource_policy_rule_convertToJSON(v1beta1_non_resource_polic } listEntry_t *verbsListEntry; - list_ForEach(verbsListEntry, v1beta1_non_resource_policy_rule->verbs) { + list_ForEach(verbsListEntry, v1beta3_non_resource_policy_rule->verbs) { if(cJSON_AddStringToObject(verbs, "", (char*)verbsListEntry->data) == NULL) { goto fail; @@ -88,18 +88,18 @@ cJSON *v1beta1_non_resource_policy_rule_convertToJSON(v1beta1_non_resource_polic return NULL; } -v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule_parseFromJSON(cJSON *v1beta1_non_resource_policy_ruleJSON){ +v1beta3_non_resource_policy_rule_t *v1beta3_non_resource_policy_rule_parseFromJSON(cJSON *v1beta3_non_resource_policy_ruleJSON){ - v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule_local_var = NULL; + v1beta3_non_resource_policy_rule_t *v1beta3_non_resource_policy_rule_local_var = NULL; - // define the local list for v1beta1_non_resource_policy_rule->non_resource_urls + // define the local list for v1beta3_non_resource_policy_rule->non_resource_urls list_t *non_resource_urlsList = NULL; - // define the local list for v1beta1_non_resource_policy_rule->verbs + // define the local list for v1beta3_non_resource_policy_rule->verbs list_t *verbsList = NULL; - // v1beta1_non_resource_policy_rule->non_resource_urls - cJSON *non_resource_urls = cJSON_GetObjectItemCaseSensitive(v1beta1_non_resource_policy_ruleJSON, "nonResourceURLs"); + // v1beta3_non_resource_policy_rule->non_resource_urls + cJSON *non_resource_urls = cJSON_GetObjectItemCaseSensitive(v1beta3_non_resource_policy_ruleJSON, "nonResourceURLs"); if (!non_resource_urls) { goto end; } @@ -120,8 +120,8 @@ v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule_parseFromJS list_addElement(non_resource_urlsList , strdup(non_resource_urls_local->valuestring)); } - // v1beta1_non_resource_policy_rule->verbs - cJSON *verbs = cJSON_GetObjectItemCaseSensitive(v1beta1_non_resource_policy_ruleJSON, "verbs"); + // v1beta3_non_resource_policy_rule->verbs + cJSON *verbs = cJSON_GetObjectItemCaseSensitive(v1beta3_non_resource_policy_ruleJSON, "verbs"); if (!verbs) { goto end; } @@ -143,12 +143,12 @@ v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule_parseFromJS } - v1beta1_non_resource_policy_rule_local_var = v1beta1_non_resource_policy_rule_create ( + v1beta3_non_resource_policy_rule_local_var = v1beta3_non_resource_policy_rule_create ( non_resource_urlsList, verbsList ); - return v1beta1_non_resource_policy_rule_local_var; + return v1beta3_non_resource_policy_rule_local_var; end: if (non_resource_urlsList) { listEntry_t *listEntry = NULL; diff --git a/kubernetes/model/v1beta3_non_resource_policy_rule.h b/kubernetes/model/v1beta3_non_resource_policy_rule.h new file mode 100644 index 00000000..7ed6327e --- /dev/null +++ b/kubernetes/model/v1beta3_non_resource_policy_rule.h @@ -0,0 +1,39 @@ +/* + * v1beta3_non_resource_policy_rule.h + * + * NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. + */ + +#ifndef _v1beta3_non_resource_policy_rule_H_ +#define _v1beta3_non_resource_policy_rule_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_non_resource_policy_rule_t v1beta3_non_resource_policy_rule_t; + + + + +typedef struct v1beta3_non_resource_policy_rule_t { + list_t *non_resource_urls; //primitive container + list_t *verbs; //primitive container + +} v1beta3_non_resource_policy_rule_t; + +v1beta3_non_resource_policy_rule_t *v1beta3_non_resource_policy_rule_create( + list_t *non_resource_urls, + list_t *verbs +); + +void v1beta3_non_resource_policy_rule_free(v1beta3_non_resource_policy_rule_t *v1beta3_non_resource_policy_rule); + +v1beta3_non_resource_policy_rule_t *v1beta3_non_resource_policy_rule_parseFromJSON(cJSON *v1beta3_non_resource_policy_ruleJSON); + +cJSON *v1beta3_non_resource_policy_rule_convertToJSON(v1beta3_non_resource_policy_rule_t *v1beta3_non_resource_policy_rule); + +#endif /* _v1beta3_non_resource_policy_rule_H_ */ + diff --git a/kubernetes/model/v1beta1_policy_rules_with_subjects.c b/kubernetes/model/v1beta3_policy_rules_with_subjects.c similarity index 52% rename from kubernetes/model/v1beta1_policy_rules_with_subjects.c rename to kubernetes/model/v1beta3_policy_rules_with_subjects.c index ad26ee24..dbd8b7a3 100644 --- a/kubernetes/model/v1beta1_policy_rules_with_subjects.c +++ b/kubernetes/model/v1beta3_policy_rules_with_subjects.c @@ -1,70 +1,70 @@ #include #include #include -#include "v1beta1_policy_rules_with_subjects.h" +#include "v1beta3_policy_rules_with_subjects.h" -v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects_create( +v1beta3_policy_rules_with_subjects_t *v1beta3_policy_rules_with_subjects_create( list_t *non_resource_rules, list_t *resource_rules, list_t *subjects ) { - v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects_local_var = malloc(sizeof(v1beta1_policy_rules_with_subjects_t)); - if (!v1beta1_policy_rules_with_subjects_local_var) { + v1beta3_policy_rules_with_subjects_t *v1beta3_policy_rules_with_subjects_local_var = malloc(sizeof(v1beta3_policy_rules_with_subjects_t)); + if (!v1beta3_policy_rules_with_subjects_local_var) { return NULL; } - v1beta1_policy_rules_with_subjects_local_var->non_resource_rules = non_resource_rules; - v1beta1_policy_rules_with_subjects_local_var->resource_rules = resource_rules; - v1beta1_policy_rules_with_subjects_local_var->subjects = subjects; + v1beta3_policy_rules_with_subjects_local_var->non_resource_rules = non_resource_rules; + v1beta3_policy_rules_with_subjects_local_var->resource_rules = resource_rules; + v1beta3_policy_rules_with_subjects_local_var->subjects = subjects; - return v1beta1_policy_rules_with_subjects_local_var; + return v1beta3_policy_rules_with_subjects_local_var; } -void v1beta1_policy_rules_with_subjects_free(v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects) { - if(NULL == v1beta1_policy_rules_with_subjects){ +void v1beta3_policy_rules_with_subjects_free(v1beta3_policy_rules_with_subjects_t *v1beta3_policy_rules_with_subjects) { + if(NULL == v1beta3_policy_rules_with_subjects){ return ; } listEntry_t *listEntry; - if (v1beta1_policy_rules_with_subjects->non_resource_rules) { - list_ForEach(listEntry, v1beta1_policy_rules_with_subjects->non_resource_rules) { - v1beta1_non_resource_policy_rule_free(listEntry->data); + if (v1beta3_policy_rules_with_subjects->non_resource_rules) { + list_ForEach(listEntry, v1beta3_policy_rules_with_subjects->non_resource_rules) { + v1beta3_non_resource_policy_rule_free(listEntry->data); } - list_freeList(v1beta1_policy_rules_with_subjects->non_resource_rules); - v1beta1_policy_rules_with_subjects->non_resource_rules = NULL; + list_freeList(v1beta3_policy_rules_with_subjects->non_resource_rules); + v1beta3_policy_rules_with_subjects->non_resource_rules = NULL; } - if (v1beta1_policy_rules_with_subjects->resource_rules) { - list_ForEach(listEntry, v1beta1_policy_rules_with_subjects->resource_rules) { - v1beta1_resource_policy_rule_free(listEntry->data); + if (v1beta3_policy_rules_with_subjects->resource_rules) { + list_ForEach(listEntry, v1beta3_policy_rules_with_subjects->resource_rules) { + v1beta3_resource_policy_rule_free(listEntry->data); } - list_freeList(v1beta1_policy_rules_with_subjects->resource_rules); - v1beta1_policy_rules_with_subjects->resource_rules = NULL; + list_freeList(v1beta3_policy_rules_with_subjects->resource_rules); + v1beta3_policy_rules_with_subjects->resource_rules = NULL; } - if (v1beta1_policy_rules_with_subjects->subjects) { - list_ForEach(listEntry, v1beta1_policy_rules_with_subjects->subjects) { - v1beta1_subject_free(listEntry->data); + if (v1beta3_policy_rules_with_subjects->subjects) { + list_ForEach(listEntry, v1beta3_policy_rules_with_subjects->subjects) { + v1beta3_subject_free(listEntry->data); } - list_freeList(v1beta1_policy_rules_with_subjects->subjects); - v1beta1_policy_rules_with_subjects->subjects = NULL; + list_freeList(v1beta3_policy_rules_with_subjects->subjects); + v1beta3_policy_rules_with_subjects->subjects = NULL; } - free(v1beta1_policy_rules_with_subjects); + free(v1beta3_policy_rules_with_subjects); } -cJSON *v1beta1_policy_rules_with_subjects_convertToJSON(v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects) { +cJSON *v1beta3_policy_rules_with_subjects_convertToJSON(v1beta3_policy_rules_with_subjects_t *v1beta3_policy_rules_with_subjects) { cJSON *item = cJSON_CreateObject(); - // v1beta1_policy_rules_with_subjects->non_resource_rules - if(v1beta1_policy_rules_with_subjects->non_resource_rules) { + // v1beta3_policy_rules_with_subjects->non_resource_rules + if(v1beta3_policy_rules_with_subjects->non_resource_rules) { cJSON *non_resource_rules = cJSON_AddArrayToObject(item, "nonResourceRules"); if(non_resource_rules == NULL) { goto fail; //nonprimitive container } listEntry_t *non_resource_rulesListEntry; - if (v1beta1_policy_rules_with_subjects->non_resource_rules) { - list_ForEach(non_resource_rulesListEntry, v1beta1_policy_rules_with_subjects->non_resource_rules) { - cJSON *itemLocal = v1beta1_non_resource_policy_rule_convertToJSON(non_resource_rulesListEntry->data); + if (v1beta3_policy_rules_with_subjects->non_resource_rules) { + list_ForEach(non_resource_rulesListEntry, v1beta3_policy_rules_with_subjects->non_resource_rules) { + cJSON *itemLocal = v1beta3_non_resource_policy_rule_convertToJSON(non_resource_rulesListEntry->data); if(itemLocal == NULL) { goto fail; } @@ -74,17 +74,17 @@ cJSON *v1beta1_policy_rules_with_subjects_convertToJSON(v1beta1_policy_rules_wit } - // v1beta1_policy_rules_with_subjects->resource_rules - if(v1beta1_policy_rules_with_subjects->resource_rules) { + // v1beta3_policy_rules_with_subjects->resource_rules + if(v1beta3_policy_rules_with_subjects->resource_rules) { cJSON *resource_rules = cJSON_AddArrayToObject(item, "resourceRules"); if(resource_rules == NULL) { goto fail; //nonprimitive container } listEntry_t *resource_rulesListEntry; - if (v1beta1_policy_rules_with_subjects->resource_rules) { - list_ForEach(resource_rulesListEntry, v1beta1_policy_rules_with_subjects->resource_rules) { - cJSON *itemLocal = v1beta1_resource_policy_rule_convertToJSON(resource_rulesListEntry->data); + if (v1beta3_policy_rules_with_subjects->resource_rules) { + list_ForEach(resource_rulesListEntry, v1beta3_policy_rules_with_subjects->resource_rules) { + cJSON *itemLocal = v1beta3_resource_policy_rule_convertToJSON(resource_rulesListEntry->data); if(itemLocal == NULL) { goto fail; } @@ -94,8 +94,8 @@ cJSON *v1beta1_policy_rules_with_subjects_convertToJSON(v1beta1_policy_rules_wit } - // v1beta1_policy_rules_with_subjects->subjects - if (!v1beta1_policy_rules_with_subjects->subjects) { + // v1beta3_policy_rules_with_subjects->subjects + if (!v1beta3_policy_rules_with_subjects->subjects) { goto fail; } cJSON *subjects = cJSON_AddArrayToObject(item, "subjects"); @@ -104,9 +104,9 @@ cJSON *v1beta1_policy_rules_with_subjects_convertToJSON(v1beta1_policy_rules_wit } listEntry_t *subjectsListEntry; - if (v1beta1_policy_rules_with_subjects->subjects) { - list_ForEach(subjectsListEntry, v1beta1_policy_rules_with_subjects->subjects) { - cJSON *itemLocal = v1beta1_subject_convertToJSON(subjectsListEntry->data); + if (v1beta3_policy_rules_with_subjects->subjects) { + list_ForEach(subjectsListEntry, v1beta3_policy_rules_with_subjects->subjects) { + cJSON *itemLocal = v1beta3_subject_convertToJSON(subjectsListEntry->data); if(itemLocal == NULL) { goto fail; } @@ -122,21 +122,21 @@ cJSON *v1beta1_policy_rules_with_subjects_convertToJSON(v1beta1_policy_rules_wit return NULL; } -v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects_parseFromJSON(cJSON *v1beta1_policy_rules_with_subjectsJSON){ +v1beta3_policy_rules_with_subjects_t *v1beta3_policy_rules_with_subjects_parseFromJSON(cJSON *v1beta3_policy_rules_with_subjectsJSON){ - v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects_local_var = NULL; + v1beta3_policy_rules_with_subjects_t *v1beta3_policy_rules_with_subjects_local_var = NULL; - // define the local list for v1beta1_policy_rules_with_subjects->non_resource_rules + // define the local list for v1beta3_policy_rules_with_subjects->non_resource_rules list_t *non_resource_rulesList = NULL; - // define the local list for v1beta1_policy_rules_with_subjects->resource_rules + // define the local list for v1beta3_policy_rules_with_subjects->resource_rules list_t *resource_rulesList = NULL; - // define the local list for v1beta1_policy_rules_with_subjects->subjects + // define the local list for v1beta3_policy_rules_with_subjects->subjects list_t *subjectsList = NULL; - // v1beta1_policy_rules_with_subjects->non_resource_rules - cJSON *non_resource_rules = cJSON_GetObjectItemCaseSensitive(v1beta1_policy_rules_with_subjectsJSON, "nonResourceRules"); + // v1beta3_policy_rules_with_subjects->non_resource_rules + cJSON *non_resource_rules = cJSON_GetObjectItemCaseSensitive(v1beta3_policy_rules_with_subjectsJSON, "nonResourceRules"); if (non_resource_rules) { cJSON *non_resource_rules_local_nonprimitive = NULL; if(!cJSON_IsArray(non_resource_rules)){ @@ -150,14 +150,14 @@ v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects_parseFr if(!cJSON_IsObject(non_resource_rules_local_nonprimitive)){ goto end; } - v1beta1_non_resource_policy_rule_t *non_resource_rulesItem = v1beta1_non_resource_policy_rule_parseFromJSON(non_resource_rules_local_nonprimitive); + v1beta3_non_resource_policy_rule_t *non_resource_rulesItem = v1beta3_non_resource_policy_rule_parseFromJSON(non_resource_rules_local_nonprimitive); list_addElement(non_resource_rulesList, non_resource_rulesItem); } } - // v1beta1_policy_rules_with_subjects->resource_rules - cJSON *resource_rules = cJSON_GetObjectItemCaseSensitive(v1beta1_policy_rules_with_subjectsJSON, "resourceRules"); + // v1beta3_policy_rules_with_subjects->resource_rules + cJSON *resource_rules = cJSON_GetObjectItemCaseSensitive(v1beta3_policy_rules_with_subjectsJSON, "resourceRules"); if (resource_rules) { cJSON *resource_rules_local_nonprimitive = NULL; if(!cJSON_IsArray(resource_rules)){ @@ -171,14 +171,14 @@ v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects_parseFr if(!cJSON_IsObject(resource_rules_local_nonprimitive)){ goto end; } - v1beta1_resource_policy_rule_t *resource_rulesItem = v1beta1_resource_policy_rule_parseFromJSON(resource_rules_local_nonprimitive); + v1beta3_resource_policy_rule_t *resource_rulesItem = v1beta3_resource_policy_rule_parseFromJSON(resource_rules_local_nonprimitive); list_addElement(resource_rulesList, resource_rulesItem); } } - // v1beta1_policy_rules_with_subjects->subjects - cJSON *subjects = cJSON_GetObjectItemCaseSensitive(v1beta1_policy_rules_with_subjectsJSON, "subjects"); + // v1beta3_policy_rules_with_subjects->subjects + cJSON *subjects = cJSON_GetObjectItemCaseSensitive(v1beta3_policy_rules_with_subjectsJSON, "subjects"); if (!subjects) { goto end; } @@ -196,24 +196,24 @@ v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects_parseFr if(!cJSON_IsObject(subjects_local_nonprimitive)){ goto end; } - v1beta1_subject_t *subjectsItem = v1beta1_subject_parseFromJSON(subjects_local_nonprimitive); + v1beta3_subject_t *subjectsItem = v1beta3_subject_parseFromJSON(subjects_local_nonprimitive); list_addElement(subjectsList, subjectsItem); } - v1beta1_policy_rules_with_subjects_local_var = v1beta1_policy_rules_with_subjects_create ( + v1beta3_policy_rules_with_subjects_local_var = v1beta3_policy_rules_with_subjects_create ( non_resource_rules ? non_resource_rulesList : NULL, resource_rules ? resource_rulesList : NULL, subjectsList ); - return v1beta1_policy_rules_with_subjects_local_var; + return v1beta3_policy_rules_with_subjects_local_var; end: if (non_resource_rulesList) { listEntry_t *listEntry = NULL; list_ForEach(listEntry, non_resource_rulesList) { - v1beta1_non_resource_policy_rule_free(listEntry->data); + v1beta3_non_resource_policy_rule_free(listEntry->data); listEntry->data = NULL; } list_freeList(non_resource_rulesList); @@ -222,7 +222,7 @@ v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects_parseFr if (resource_rulesList) { listEntry_t *listEntry = NULL; list_ForEach(listEntry, resource_rulesList) { - v1beta1_resource_policy_rule_free(listEntry->data); + v1beta3_resource_policy_rule_free(listEntry->data); listEntry->data = NULL; } list_freeList(resource_rulesList); @@ -231,7 +231,7 @@ v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects_parseFr if (subjectsList) { listEntry_t *listEntry = NULL; list_ForEach(listEntry, subjectsList) { - v1beta1_subject_free(listEntry->data); + v1beta3_subject_free(listEntry->data); listEntry->data = NULL; } list_freeList(subjectsList); diff --git a/kubernetes/model/v1beta3_policy_rules_with_subjects.h b/kubernetes/model/v1beta3_policy_rules_with_subjects.h new file mode 100644 index 00000000..d9fd811a --- /dev/null +++ b/kubernetes/model/v1beta3_policy_rules_with_subjects.h @@ -0,0 +1,44 @@ +/* + * v1beta3_policy_rules_with_subjects.h + * + * PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request. + */ + +#ifndef _v1beta3_policy_rules_with_subjects_H_ +#define _v1beta3_policy_rules_with_subjects_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_policy_rules_with_subjects_t v1beta3_policy_rules_with_subjects_t; + +#include "v1beta3_non_resource_policy_rule.h" +#include "v1beta3_resource_policy_rule.h" +#include "v1beta3_subject.h" + + + +typedef struct v1beta3_policy_rules_with_subjects_t { + list_t *non_resource_rules; //nonprimitive container + list_t *resource_rules; //nonprimitive container + list_t *subjects; //nonprimitive container + +} v1beta3_policy_rules_with_subjects_t; + +v1beta3_policy_rules_with_subjects_t *v1beta3_policy_rules_with_subjects_create( + list_t *non_resource_rules, + list_t *resource_rules, + list_t *subjects +); + +void v1beta3_policy_rules_with_subjects_free(v1beta3_policy_rules_with_subjects_t *v1beta3_policy_rules_with_subjects); + +v1beta3_policy_rules_with_subjects_t *v1beta3_policy_rules_with_subjects_parseFromJSON(cJSON *v1beta3_policy_rules_with_subjectsJSON); + +cJSON *v1beta3_policy_rules_with_subjects_convertToJSON(v1beta3_policy_rules_with_subjects_t *v1beta3_policy_rules_with_subjects); + +#endif /* _v1beta3_policy_rules_with_subjects_H_ */ + diff --git a/kubernetes/model/v1beta3_priority_level_configuration.c b/kubernetes/model/v1beta3_priority_level_configuration.c new file mode 100644 index 00000000..1429a866 --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration.c @@ -0,0 +1,196 @@ +#include +#include +#include +#include "v1beta3_priority_level_configuration.h" + + + +v1beta3_priority_level_configuration_t *v1beta3_priority_level_configuration_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1beta3_priority_level_configuration_spec_t *spec, + v1beta3_priority_level_configuration_status_t *status + ) { + v1beta3_priority_level_configuration_t *v1beta3_priority_level_configuration_local_var = malloc(sizeof(v1beta3_priority_level_configuration_t)); + if (!v1beta3_priority_level_configuration_local_var) { + return NULL; + } + v1beta3_priority_level_configuration_local_var->api_version = api_version; + v1beta3_priority_level_configuration_local_var->kind = kind; + v1beta3_priority_level_configuration_local_var->metadata = metadata; + v1beta3_priority_level_configuration_local_var->spec = spec; + v1beta3_priority_level_configuration_local_var->status = status; + + return v1beta3_priority_level_configuration_local_var; +} + + +void v1beta3_priority_level_configuration_free(v1beta3_priority_level_configuration_t *v1beta3_priority_level_configuration) { + if(NULL == v1beta3_priority_level_configuration){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_priority_level_configuration->api_version) { + free(v1beta3_priority_level_configuration->api_version); + v1beta3_priority_level_configuration->api_version = NULL; + } + if (v1beta3_priority_level_configuration->kind) { + free(v1beta3_priority_level_configuration->kind); + v1beta3_priority_level_configuration->kind = NULL; + } + if (v1beta3_priority_level_configuration->metadata) { + v1_object_meta_free(v1beta3_priority_level_configuration->metadata); + v1beta3_priority_level_configuration->metadata = NULL; + } + if (v1beta3_priority_level_configuration->spec) { + v1beta3_priority_level_configuration_spec_free(v1beta3_priority_level_configuration->spec); + v1beta3_priority_level_configuration->spec = NULL; + } + if (v1beta3_priority_level_configuration->status) { + v1beta3_priority_level_configuration_status_free(v1beta3_priority_level_configuration->status); + v1beta3_priority_level_configuration->status = NULL; + } + free(v1beta3_priority_level_configuration); +} + +cJSON *v1beta3_priority_level_configuration_convertToJSON(v1beta3_priority_level_configuration_t *v1beta3_priority_level_configuration) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_priority_level_configuration->api_version + if(v1beta3_priority_level_configuration->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1beta3_priority_level_configuration->api_version) == NULL) { + goto fail; //String + } + } + + + // v1beta3_priority_level_configuration->kind + if(v1beta3_priority_level_configuration->kind) { + if(cJSON_AddStringToObject(item, "kind", v1beta3_priority_level_configuration->kind) == NULL) { + goto fail; //String + } + } + + + // v1beta3_priority_level_configuration->metadata + if(v1beta3_priority_level_configuration->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1beta3_priority_level_configuration->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1beta3_priority_level_configuration->spec + if(v1beta3_priority_level_configuration->spec) { + cJSON *spec_local_JSON = v1beta3_priority_level_configuration_spec_convertToJSON(v1beta3_priority_level_configuration->spec); + if(spec_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "spec", spec_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1beta3_priority_level_configuration->status + if(v1beta3_priority_level_configuration->status) { + cJSON *status_local_JSON = v1beta3_priority_level_configuration_status_convertToJSON(v1beta3_priority_level_configuration->status); + if(status_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "status", status_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_priority_level_configuration_t *v1beta3_priority_level_configuration_parseFromJSON(cJSON *v1beta3_priority_level_configurationJSON){ + + v1beta3_priority_level_configuration_t *v1beta3_priority_level_configuration_local_var = NULL; + + // define the local variable for v1beta3_priority_level_configuration->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1beta3_priority_level_configuration->spec + v1beta3_priority_level_configuration_spec_t *spec_local_nonprim = NULL; + + // define the local variable for v1beta3_priority_level_configuration->status + v1beta3_priority_level_configuration_status_t *status_local_nonprim = NULL; + + // v1beta3_priority_level_configuration->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configurationJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1beta3_priority_level_configuration->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configurationJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1beta3_priority_level_configuration->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configurationJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1beta3_priority_level_configuration->spec + cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configurationJSON, "spec"); + if (spec) { + spec_local_nonprim = v1beta3_priority_level_configuration_spec_parseFromJSON(spec); //nonprimitive + } + + // v1beta3_priority_level_configuration->status + cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configurationJSON, "status"); + if (status) { + status_local_nonprim = v1beta3_priority_level_configuration_status_parseFromJSON(status); //nonprimitive + } + + + v1beta3_priority_level_configuration_local_var = v1beta3_priority_level_configuration_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL, + spec ? spec_local_nonprim : NULL, + status ? status_local_nonprim : NULL + ); + + return v1beta3_priority_level_configuration_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (spec_local_nonprim) { + v1beta3_priority_level_configuration_spec_free(spec_local_nonprim); + spec_local_nonprim = NULL; + } + if (status_local_nonprim) { + v1beta3_priority_level_configuration_status_free(status_local_nonprim); + status_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_priority_level_configuration.h b/kubernetes/model/v1beta3_priority_level_configuration.h new file mode 100644 index 00000000..6890420c --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration.h @@ -0,0 +1,48 @@ +/* + * v1beta3_priority_level_configuration.h + * + * PriorityLevelConfiguration represents the configuration of a priority level. + */ + +#ifndef _v1beta3_priority_level_configuration_H_ +#define _v1beta3_priority_level_configuration_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_priority_level_configuration_t v1beta3_priority_level_configuration_t; + +#include "v1_object_meta.h" +#include "v1beta3_priority_level_configuration_spec.h" +#include "v1beta3_priority_level_configuration_status.h" + + + +typedef struct v1beta3_priority_level_configuration_t { + char *api_version; // string + char *kind; // string + struct v1_object_meta_t *metadata; //model + struct v1beta3_priority_level_configuration_spec_t *spec; //model + struct v1beta3_priority_level_configuration_status_t *status; //model + +} v1beta3_priority_level_configuration_t; + +v1beta3_priority_level_configuration_t *v1beta3_priority_level_configuration_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1beta3_priority_level_configuration_spec_t *spec, + v1beta3_priority_level_configuration_status_t *status +); + +void v1beta3_priority_level_configuration_free(v1beta3_priority_level_configuration_t *v1beta3_priority_level_configuration); + +v1beta3_priority_level_configuration_t *v1beta3_priority_level_configuration_parseFromJSON(cJSON *v1beta3_priority_level_configurationJSON); + +cJSON *v1beta3_priority_level_configuration_convertToJSON(v1beta3_priority_level_configuration_t *v1beta3_priority_level_configuration); + +#endif /* _v1beta3_priority_level_configuration_H_ */ + diff --git a/kubernetes/model/v1beta3_priority_level_configuration_condition.c b/kubernetes/model/v1beta3_priority_level_configuration_condition.c new file mode 100644 index 00000000..1b2c62eb --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration_condition.c @@ -0,0 +1,169 @@ +#include +#include +#include +#include "v1beta3_priority_level_configuration_condition.h" + + + +v1beta3_priority_level_configuration_condition_t *v1beta3_priority_level_configuration_condition_create( + char *last_transition_time, + char *message, + char *reason, + char *status, + char *type + ) { + v1beta3_priority_level_configuration_condition_t *v1beta3_priority_level_configuration_condition_local_var = malloc(sizeof(v1beta3_priority_level_configuration_condition_t)); + if (!v1beta3_priority_level_configuration_condition_local_var) { + return NULL; + } + v1beta3_priority_level_configuration_condition_local_var->last_transition_time = last_transition_time; + v1beta3_priority_level_configuration_condition_local_var->message = message; + v1beta3_priority_level_configuration_condition_local_var->reason = reason; + v1beta3_priority_level_configuration_condition_local_var->status = status; + v1beta3_priority_level_configuration_condition_local_var->type = type; + + return v1beta3_priority_level_configuration_condition_local_var; +} + + +void v1beta3_priority_level_configuration_condition_free(v1beta3_priority_level_configuration_condition_t *v1beta3_priority_level_configuration_condition) { + if(NULL == v1beta3_priority_level_configuration_condition){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_priority_level_configuration_condition->last_transition_time) { + free(v1beta3_priority_level_configuration_condition->last_transition_time); + v1beta3_priority_level_configuration_condition->last_transition_time = NULL; + } + if (v1beta3_priority_level_configuration_condition->message) { + free(v1beta3_priority_level_configuration_condition->message); + v1beta3_priority_level_configuration_condition->message = NULL; + } + if (v1beta3_priority_level_configuration_condition->reason) { + free(v1beta3_priority_level_configuration_condition->reason); + v1beta3_priority_level_configuration_condition->reason = NULL; + } + if (v1beta3_priority_level_configuration_condition->status) { + free(v1beta3_priority_level_configuration_condition->status); + v1beta3_priority_level_configuration_condition->status = NULL; + } + if (v1beta3_priority_level_configuration_condition->type) { + free(v1beta3_priority_level_configuration_condition->type); + v1beta3_priority_level_configuration_condition->type = NULL; + } + free(v1beta3_priority_level_configuration_condition); +} + +cJSON *v1beta3_priority_level_configuration_condition_convertToJSON(v1beta3_priority_level_configuration_condition_t *v1beta3_priority_level_configuration_condition) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_priority_level_configuration_condition->last_transition_time + if(v1beta3_priority_level_configuration_condition->last_transition_time) { + if(cJSON_AddStringToObject(item, "lastTransitionTime", v1beta3_priority_level_configuration_condition->last_transition_time) == NULL) { + goto fail; //Date-Time + } + } + + + // v1beta3_priority_level_configuration_condition->message + if(v1beta3_priority_level_configuration_condition->message) { + if(cJSON_AddStringToObject(item, "message", v1beta3_priority_level_configuration_condition->message) == NULL) { + goto fail; //String + } + } + + + // v1beta3_priority_level_configuration_condition->reason + if(v1beta3_priority_level_configuration_condition->reason) { + if(cJSON_AddStringToObject(item, "reason", v1beta3_priority_level_configuration_condition->reason) == NULL) { + goto fail; //String + } + } + + + // v1beta3_priority_level_configuration_condition->status + if(v1beta3_priority_level_configuration_condition->status) { + if(cJSON_AddStringToObject(item, "status", v1beta3_priority_level_configuration_condition->status) == NULL) { + goto fail; //String + } + } + + + // v1beta3_priority_level_configuration_condition->type + if(v1beta3_priority_level_configuration_condition->type) { + if(cJSON_AddStringToObject(item, "type", v1beta3_priority_level_configuration_condition->type) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_priority_level_configuration_condition_t *v1beta3_priority_level_configuration_condition_parseFromJSON(cJSON *v1beta3_priority_level_configuration_conditionJSON){ + + v1beta3_priority_level_configuration_condition_t *v1beta3_priority_level_configuration_condition_local_var = NULL; + + // v1beta3_priority_level_configuration_condition->last_transition_time + cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_conditionJSON, "lastTransitionTime"); + if (last_transition_time) { + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) + { + goto end; //DateTime + } + } + + // v1beta3_priority_level_configuration_condition->message + cJSON *message = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_conditionJSON, "message"); + if (message) { + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) + { + goto end; //String + } + } + + // v1beta3_priority_level_configuration_condition->reason + cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_conditionJSON, "reason"); + if (reason) { + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) + { + goto end; //String + } + } + + // v1beta3_priority_level_configuration_condition->status + cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_conditionJSON, "status"); + if (status) { + if(!cJSON_IsString(status) && !cJSON_IsNull(status)) + { + goto end; //String + } + } + + // v1beta3_priority_level_configuration_condition->type + cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_conditionJSON, "type"); + if (type) { + if(!cJSON_IsString(type) && !cJSON_IsNull(type)) + { + goto end; //String + } + } + + + v1beta3_priority_level_configuration_condition_local_var = v1beta3_priority_level_configuration_condition_create ( + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, + status && !cJSON_IsNull(status) ? strdup(status->valuestring) : NULL, + type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL + ); + + return v1beta3_priority_level_configuration_condition_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1beta3_priority_level_configuration_condition.h b/kubernetes/model/v1beta3_priority_level_configuration_condition.h new file mode 100644 index 00000000..ae63f55a --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration_condition.h @@ -0,0 +1,45 @@ +/* + * v1beta3_priority_level_configuration_condition.h + * + * PriorityLevelConfigurationCondition defines the condition of priority level. + */ + +#ifndef _v1beta3_priority_level_configuration_condition_H_ +#define _v1beta3_priority_level_configuration_condition_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_priority_level_configuration_condition_t v1beta3_priority_level_configuration_condition_t; + + + + +typedef struct v1beta3_priority_level_configuration_condition_t { + char *last_transition_time; //date time + char *message; // string + char *reason; // string + char *status; // string + char *type; // string + +} v1beta3_priority_level_configuration_condition_t; + +v1beta3_priority_level_configuration_condition_t *v1beta3_priority_level_configuration_condition_create( + char *last_transition_time, + char *message, + char *reason, + char *status, + char *type +); + +void v1beta3_priority_level_configuration_condition_free(v1beta3_priority_level_configuration_condition_t *v1beta3_priority_level_configuration_condition); + +v1beta3_priority_level_configuration_condition_t *v1beta3_priority_level_configuration_condition_parseFromJSON(cJSON *v1beta3_priority_level_configuration_conditionJSON); + +cJSON *v1beta3_priority_level_configuration_condition_convertToJSON(v1beta3_priority_level_configuration_condition_t *v1beta3_priority_level_configuration_condition); + +#endif /* _v1beta3_priority_level_configuration_condition_H_ */ + diff --git a/kubernetes/model/v1beta3_priority_level_configuration_list.c b/kubernetes/model/v1beta3_priority_level_configuration_list.c new file mode 100644 index 00000000..4f4c86a2 --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration_list.c @@ -0,0 +1,197 @@ +#include +#include +#include +#include "v1beta3_priority_level_configuration_list.h" + + + +v1beta3_priority_level_configuration_list_t *v1beta3_priority_level_configuration_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata + ) { + v1beta3_priority_level_configuration_list_t *v1beta3_priority_level_configuration_list_local_var = malloc(sizeof(v1beta3_priority_level_configuration_list_t)); + if (!v1beta3_priority_level_configuration_list_local_var) { + return NULL; + } + v1beta3_priority_level_configuration_list_local_var->api_version = api_version; + v1beta3_priority_level_configuration_list_local_var->items = items; + v1beta3_priority_level_configuration_list_local_var->kind = kind; + v1beta3_priority_level_configuration_list_local_var->metadata = metadata; + + return v1beta3_priority_level_configuration_list_local_var; +} + + +void v1beta3_priority_level_configuration_list_free(v1beta3_priority_level_configuration_list_t *v1beta3_priority_level_configuration_list) { + if(NULL == v1beta3_priority_level_configuration_list){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_priority_level_configuration_list->api_version) { + free(v1beta3_priority_level_configuration_list->api_version); + v1beta3_priority_level_configuration_list->api_version = NULL; + } + if (v1beta3_priority_level_configuration_list->items) { + list_ForEach(listEntry, v1beta3_priority_level_configuration_list->items) { + v1beta3_priority_level_configuration_free(listEntry->data); + } + list_freeList(v1beta3_priority_level_configuration_list->items); + v1beta3_priority_level_configuration_list->items = NULL; + } + if (v1beta3_priority_level_configuration_list->kind) { + free(v1beta3_priority_level_configuration_list->kind); + v1beta3_priority_level_configuration_list->kind = NULL; + } + if (v1beta3_priority_level_configuration_list->metadata) { + v1_list_meta_free(v1beta3_priority_level_configuration_list->metadata); + v1beta3_priority_level_configuration_list->metadata = NULL; + } + free(v1beta3_priority_level_configuration_list); +} + +cJSON *v1beta3_priority_level_configuration_list_convertToJSON(v1beta3_priority_level_configuration_list_t *v1beta3_priority_level_configuration_list) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_priority_level_configuration_list->api_version + if(v1beta3_priority_level_configuration_list->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1beta3_priority_level_configuration_list->api_version) == NULL) { + goto fail; //String + } + } + + + // v1beta3_priority_level_configuration_list->items + if (!v1beta3_priority_level_configuration_list->items) { + goto fail; + } + cJSON *items = cJSON_AddArrayToObject(item, "items"); + if(items == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *itemsListEntry; + if (v1beta3_priority_level_configuration_list->items) { + list_ForEach(itemsListEntry, v1beta3_priority_level_configuration_list->items) { + cJSON *itemLocal = v1beta3_priority_level_configuration_convertToJSON(itemsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(items, itemLocal); + } + } + + + // v1beta3_priority_level_configuration_list->kind + if(v1beta3_priority_level_configuration_list->kind) { + if(cJSON_AddStringToObject(item, "kind", v1beta3_priority_level_configuration_list->kind) == NULL) { + goto fail; //String + } + } + + + // v1beta3_priority_level_configuration_list->metadata + if(v1beta3_priority_level_configuration_list->metadata) { + cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1beta3_priority_level_configuration_list->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_priority_level_configuration_list_t *v1beta3_priority_level_configuration_list_parseFromJSON(cJSON *v1beta3_priority_level_configuration_listJSON){ + + v1beta3_priority_level_configuration_list_t *v1beta3_priority_level_configuration_list_local_var = NULL; + + // define the local list for v1beta3_priority_level_configuration_list->items + list_t *itemsList = NULL; + + // define the local variable for v1beta3_priority_level_configuration_list->metadata + v1_list_meta_t *metadata_local_nonprim = NULL; + + // v1beta3_priority_level_configuration_list->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_listJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1beta3_priority_level_configuration_list->items + cJSON *items = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_listJSON, "items"); + if (!items) { + goto end; + } + + + cJSON *items_local_nonprimitive = NULL; + if(!cJSON_IsArray(items)){ + goto end; //nonprimitive container + } + + itemsList = list_createList(); + + cJSON_ArrayForEach(items_local_nonprimitive,items ) + { + if(!cJSON_IsObject(items_local_nonprimitive)){ + goto end; + } + v1beta3_priority_level_configuration_t *itemsItem = v1beta3_priority_level_configuration_parseFromJSON(items_local_nonprimitive); + + list_addElement(itemsList, itemsItem); + } + + // v1beta3_priority_level_configuration_list->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_listJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1beta3_priority_level_configuration_list->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_listJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive + } + + + v1beta3_priority_level_configuration_list_local_var = v1beta3_priority_level_configuration_list_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + itemsList, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL + ); + + return v1beta3_priority_level_configuration_list_local_var; +end: + if (itemsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, itemsList) { + v1beta3_priority_level_configuration_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(itemsList); + itemsList = NULL; + } + if (metadata_local_nonprim) { + v1_list_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_priority_level_configuration_list.h b/kubernetes/model/v1beta3_priority_level_configuration_list.h new file mode 100644 index 00000000..4e3a28a1 --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration_list.h @@ -0,0 +1,45 @@ +/* + * v1beta3_priority_level_configuration_list.h + * + * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + */ + +#ifndef _v1beta3_priority_level_configuration_list_H_ +#define _v1beta3_priority_level_configuration_list_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_priority_level_configuration_list_t v1beta3_priority_level_configuration_list_t; + +#include "v1_list_meta.h" +#include "v1beta3_priority_level_configuration.h" + + + +typedef struct v1beta3_priority_level_configuration_list_t { + char *api_version; // string + list_t *items; //nonprimitive container + char *kind; // string + struct v1_list_meta_t *metadata; //model + +} v1beta3_priority_level_configuration_list_t; + +v1beta3_priority_level_configuration_list_t *v1beta3_priority_level_configuration_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata +); + +void v1beta3_priority_level_configuration_list_free(v1beta3_priority_level_configuration_list_t *v1beta3_priority_level_configuration_list); + +v1beta3_priority_level_configuration_list_t *v1beta3_priority_level_configuration_list_parseFromJSON(cJSON *v1beta3_priority_level_configuration_listJSON); + +cJSON *v1beta3_priority_level_configuration_list_convertToJSON(v1beta3_priority_level_configuration_list_t *v1beta3_priority_level_configuration_list); + +#endif /* _v1beta3_priority_level_configuration_list_H_ */ + diff --git a/kubernetes/model/v1beta3_priority_level_configuration_reference.c b/kubernetes/model/v1beta3_priority_level_configuration_reference.c new file mode 100644 index 00000000..6323ee8c --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration_reference.c @@ -0,0 +1,77 @@ +#include +#include +#include +#include "v1beta3_priority_level_configuration_reference.h" + + + +v1beta3_priority_level_configuration_reference_t *v1beta3_priority_level_configuration_reference_create( + char *name + ) { + v1beta3_priority_level_configuration_reference_t *v1beta3_priority_level_configuration_reference_local_var = malloc(sizeof(v1beta3_priority_level_configuration_reference_t)); + if (!v1beta3_priority_level_configuration_reference_local_var) { + return NULL; + } + v1beta3_priority_level_configuration_reference_local_var->name = name; + + return v1beta3_priority_level_configuration_reference_local_var; +} + + +void v1beta3_priority_level_configuration_reference_free(v1beta3_priority_level_configuration_reference_t *v1beta3_priority_level_configuration_reference) { + if(NULL == v1beta3_priority_level_configuration_reference){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_priority_level_configuration_reference->name) { + free(v1beta3_priority_level_configuration_reference->name); + v1beta3_priority_level_configuration_reference->name = NULL; + } + free(v1beta3_priority_level_configuration_reference); +} + +cJSON *v1beta3_priority_level_configuration_reference_convertToJSON(v1beta3_priority_level_configuration_reference_t *v1beta3_priority_level_configuration_reference) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_priority_level_configuration_reference->name + if (!v1beta3_priority_level_configuration_reference->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1beta3_priority_level_configuration_reference->name) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_priority_level_configuration_reference_t *v1beta3_priority_level_configuration_reference_parseFromJSON(cJSON *v1beta3_priority_level_configuration_referenceJSON){ + + v1beta3_priority_level_configuration_reference_t *v1beta3_priority_level_configuration_reference_local_var = NULL; + + // v1beta3_priority_level_configuration_reference->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_referenceJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + + v1beta3_priority_level_configuration_reference_local_var = v1beta3_priority_level_configuration_reference_create ( + strdup(name->valuestring) + ); + + return v1beta3_priority_level_configuration_reference_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1beta3_priority_level_configuration_reference.h b/kubernetes/model/v1beta3_priority_level_configuration_reference.h new file mode 100644 index 00000000..599c95f8 --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration_reference.h @@ -0,0 +1,37 @@ +/* + * v1beta3_priority_level_configuration_reference.h + * + * PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used. + */ + +#ifndef _v1beta3_priority_level_configuration_reference_H_ +#define _v1beta3_priority_level_configuration_reference_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_priority_level_configuration_reference_t v1beta3_priority_level_configuration_reference_t; + + + + +typedef struct v1beta3_priority_level_configuration_reference_t { + char *name; // string + +} v1beta3_priority_level_configuration_reference_t; + +v1beta3_priority_level_configuration_reference_t *v1beta3_priority_level_configuration_reference_create( + char *name +); + +void v1beta3_priority_level_configuration_reference_free(v1beta3_priority_level_configuration_reference_t *v1beta3_priority_level_configuration_reference); + +v1beta3_priority_level_configuration_reference_t *v1beta3_priority_level_configuration_reference_parseFromJSON(cJSON *v1beta3_priority_level_configuration_referenceJSON); + +cJSON *v1beta3_priority_level_configuration_reference_convertToJSON(v1beta3_priority_level_configuration_reference_t *v1beta3_priority_level_configuration_reference); + +#endif /* _v1beta3_priority_level_configuration_reference_H_ */ + diff --git a/kubernetes/model/v1beta3_priority_level_configuration_spec.c b/kubernetes/model/v1beta3_priority_level_configuration_spec.c new file mode 100644 index 00000000..86eb6137 --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration_spec.c @@ -0,0 +1,110 @@ +#include +#include +#include +#include "v1beta3_priority_level_configuration_spec.h" + + + +v1beta3_priority_level_configuration_spec_t *v1beta3_priority_level_configuration_spec_create( + v1beta3_limited_priority_level_configuration_t *limited, + char *type + ) { + v1beta3_priority_level_configuration_spec_t *v1beta3_priority_level_configuration_spec_local_var = malloc(sizeof(v1beta3_priority_level_configuration_spec_t)); + if (!v1beta3_priority_level_configuration_spec_local_var) { + return NULL; + } + v1beta3_priority_level_configuration_spec_local_var->limited = limited; + v1beta3_priority_level_configuration_spec_local_var->type = type; + + return v1beta3_priority_level_configuration_spec_local_var; +} + + +void v1beta3_priority_level_configuration_spec_free(v1beta3_priority_level_configuration_spec_t *v1beta3_priority_level_configuration_spec) { + if(NULL == v1beta3_priority_level_configuration_spec){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_priority_level_configuration_spec->limited) { + v1beta3_limited_priority_level_configuration_free(v1beta3_priority_level_configuration_spec->limited); + v1beta3_priority_level_configuration_spec->limited = NULL; + } + if (v1beta3_priority_level_configuration_spec->type) { + free(v1beta3_priority_level_configuration_spec->type); + v1beta3_priority_level_configuration_spec->type = NULL; + } + free(v1beta3_priority_level_configuration_spec); +} + +cJSON *v1beta3_priority_level_configuration_spec_convertToJSON(v1beta3_priority_level_configuration_spec_t *v1beta3_priority_level_configuration_spec) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_priority_level_configuration_spec->limited + if(v1beta3_priority_level_configuration_spec->limited) { + cJSON *limited_local_JSON = v1beta3_limited_priority_level_configuration_convertToJSON(v1beta3_priority_level_configuration_spec->limited); + if(limited_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "limited", limited_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1beta3_priority_level_configuration_spec->type + if (!v1beta3_priority_level_configuration_spec->type) { + goto fail; + } + if(cJSON_AddStringToObject(item, "type", v1beta3_priority_level_configuration_spec->type) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_priority_level_configuration_spec_t *v1beta3_priority_level_configuration_spec_parseFromJSON(cJSON *v1beta3_priority_level_configuration_specJSON){ + + v1beta3_priority_level_configuration_spec_t *v1beta3_priority_level_configuration_spec_local_var = NULL; + + // define the local variable for v1beta3_priority_level_configuration_spec->limited + v1beta3_limited_priority_level_configuration_t *limited_local_nonprim = NULL; + + // v1beta3_priority_level_configuration_spec->limited + cJSON *limited = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_specJSON, "limited"); + if (limited) { + limited_local_nonprim = v1beta3_limited_priority_level_configuration_parseFromJSON(limited); //nonprimitive + } + + // v1beta3_priority_level_configuration_spec->type + cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_specJSON, "type"); + if (!type) { + goto end; + } + + + if(!cJSON_IsString(type)) + { + goto end; //String + } + + + v1beta3_priority_level_configuration_spec_local_var = v1beta3_priority_level_configuration_spec_create ( + limited ? limited_local_nonprim : NULL, + strdup(type->valuestring) + ); + + return v1beta3_priority_level_configuration_spec_local_var; +end: + if (limited_local_nonprim) { + v1beta3_limited_priority_level_configuration_free(limited_local_nonprim); + limited_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_priority_level_configuration_spec.h b/kubernetes/model/v1beta3_priority_level_configuration_spec.h new file mode 100644 index 00000000..56f8915e --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration_spec.h @@ -0,0 +1,40 @@ +/* + * v1beta3_priority_level_configuration_spec.h + * + * PriorityLevelConfigurationSpec specifies the configuration of a priority level. + */ + +#ifndef _v1beta3_priority_level_configuration_spec_H_ +#define _v1beta3_priority_level_configuration_spec_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_priority_level_configuration_spec_t v1beta3_priority_level_configuration_spec_t; + +#include "v1beta3_limited_priority_level_configuration.h" + + + +typedef struct v1beta3_priority_level_configuration_spec_t { + struct v1beta3_limited_priority_level_configuration_t *limited; //model + char *type; // string + +} v1beta3_priority_level_configuration_spec_t; + +v1beta3_priority_level_configuration_spec_t *v1beta3_priority_level_configuration_spec_create( + v1beta3_limited_priority_level_configuration_t *limited, + char *type +); + +void v1beta3_priority_level_configuration_spec_free(v1beta3_priority_level_configuration_spec_t *v1beta3_priority_level_configuration_spec); + +v1beta3_priority_level_configuration_spec_t *v1beta3_priority_level_configuration_spec_parseFromJSON(cJSON *v1beta3_priority_level_configuration_specJSON); + +cJSON *v1beta3_priority_level_configuration_spec_convertToJSON(v1beta3_priority_level_configuration_spec_t *v1beta3_priority_level_configuration_spec); + +#endif /* _v1beta3_priority_level_configuration_spec_H_ */ + diff --git a/kubernetes/model/v1beta3_priority_level_configuration_status.c b/kubernetes/model/v1beta3_priority_level_configuration_status.c new file mode 100644 index 00000000..9fe6a263 --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration_status.c @@ -0,0 +1,112 @@ +#include +#include +#include +#include "v1beta3_priority_level_configuration_status.h" + + + +v1beta3_priority_level_configuration_status_t *v1beta3_priority_level_configuration_status_create( + list_t *conditions + ) { + v1beta3_priority_level_configuration_status_t *v1beta3_priority_level_configuration_status_local_var = malloc(sizeof(v1beta3_priority_level_configuration_status_t)); + if (!v1beta3_priority_level_configuration_status_local_var) { + return NULL; + } + v1beta3_priority_level_configuration_status_local_var->conditions = conditions; + + return v1beta3_priority_level_configuration_status_local_var; +} + + +void v1beta3_priority_level_configuration_status_free(v1beta3_priority_level_configuration_status_t *v1beta3_priority_level_configuration_status) { + if(NULL == v1beta3_priority_level_configuration_status){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_priority_level_configuration_status->conditions) { + list_ForEach(listEntry, v1beta3_priority_level_configuration_status->conditions) { + v1beta3_priority_level_configuration_condition_free(listEntry->data); + } + list_freeList(v1beta3_priority_level_configuration_status->conditions); + v1beta3_priority_level_configuration_status->conditions = NULL; + } + free(v1beta3_priority_level_configuration_status); +} + +cJSON *v1beta3_priority_level_configuration_status_convertToJSON(v1beta3_priority_level_configuration_status_t *v1beta3_priority_level_configuration_status) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_priority_level_configuration_status->conditions + if(v1beta3_priority_level_configuration_status->conditions) { + cJSON *conditions = cJSON_AddArrayToObject(item, "conditions"); + if(conditions == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *conditionsListEntry; + if (v1beta3_priority_level_configuration_status->conditions) { + list_ForEach(conditionsListEntry, v1beta3_priority_level_configuration_status->conditions) { + cJSON *itemLocal = v1beta3_priority_level_configuration_condition_convertToJSON(conditionsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(conditions, itemLocal); + } + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_priority_level_configuration_status_t *v1beta3_priority_level_configuration_status_parseFromJSON(cJSON *v1beta3_priority_level_configuration_statusJSON){ + + v1beta3_priority_level_configuration_status_t *v1beta3_priority_level_configuration_status_local_var = NULL; + + // define the local list for v1beta3_priority_level_configuration_status->conditions + list_t *conditionsList = NULL; + + // v1beta3_priority_level_configuration_status->conditions + cJSON *conditions = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_statusJSON, "conditions"); + if (conditions) { + cJSON *conditions_local_nonprimitive = NULL; + if(!cJSON_IsArray(conditions)){ + goto end; //nonprimitive container + } + + conditionsList = list_createList(); + + cJSON_ArrayForEach(conditions_local_nonprimitive,conditions ) + { + if(!cJSON_IsObject(conditions_local_nonprimitive)){ + goto end; + } + v1beta3_priority_level_configuration_condition_t *conditionsItem = v1beta3_priority_level_configuration_condition_parseFromJSON(conditions_local_nonprimitive); + + list_addElement(conditionsList, conditionsItem); + } + } + + + v1beta3_priority_level_configuration_status_local_var = v1beta3_priority_level_configuration_status_create ( + conditions ? conditionsList : NULL + ); + + return v1beta3_priority_level_configuration_status_local_var; +end: + if (conditionsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, conditionsList) { + v1beta3_priority_level_configuration_condition_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(conditionsList); + conditionsList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_priority_level_configuration_status.h b/kubernetes/model/v1beta3_priority_level_configuration_status.h new file mode 100644 index 00000000..5e231e96 --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration_status.h @@ -0,0 +1,38 @@ +/* + * v1beta3_priority_level_configuration_status.h + * + * PriorityLevelConfigurationStatus represents the current state of a \"request-priority\". + */ + +#ifndef _v1beta3_priority_level_configuration_status_H_ +#define _v1beta3_priority_level_configuration_status_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_priority_level_configuration_status_t v1beta3_priority_level_configuration_status_t; + +#include "v1beta3_priority_level_configuration_condition.h" + + + +typedef struct v1beta3_priority_level_configuration_status_t { + list_t *conditions; //nonprimitive container + +} v1beta3_priority_level_configuration_status_t; + +v1beta3_priority_level_configuration_status_t *v1beta3_priority_level_configuration_status_create( + list_t *conditions +); + +void v1beta3_priority_level_configuration_status_free(v1beta3_priority_level_configuration_status_t *v1beta3_priority_level_configuration_status); + +v1beta3_priority_level_configuration_status_t *v1beta3_priority_level_configuration_status_parseFromJSON(cJSON *v1beta3_priority_level_configuration_statusJSON); + +cJSON *v1beta3_priority_level_configuration_status_convertToJSON(v1beta3_priority_level_configuration_status_t *v1beta3_priority_level_configuration_status); + +#endif /* _v1beta3_priority_level_configuration_status_H_ */ + diff --git a/kubernetes/model/v1beta3_queuing_configuration.c b/kubernetes/model/v1beta3_queuing_configuration.c new file mode 100644 index 00000000..187835ce --- /dev/null +++ b/kubernetes/model/v1beta3_queuing_configuration.c @@ -0,0 +1,109 @@ +#include +#include +#include +#include "v1beta3_queuing_configuration.h" + + + +v1beta3_queuing_configuration_t *v1beta3_queuing_configuration_create( + int hand_size, + int queue_length_limit, + int queues + ) { + v1beta3_queuing_configuration_t *v1beta3_queuing_configuration_local_var = malloc(sizeof(v1beta3_queuing_configuration_t)); + if (!v1beta3_queuing_configuration_local_var) { + return NULL; + } + v1beta3_queuing_configuration_local_var->hand_size = hand_size; + v1beta3_queuing_configuration_local_var->queue_length_limit = queue_length_limit; + v1beta3_queuing_configuration_local_var->queues = queues; + + return v1beta3_queuing_configuration_local_var; +} + + +void v1beta3_queuing_configuration_free(v1beta3_queuing_configuration_t *v1beta3_queuing_configuration) { + if(NULL == v1beta3_queuing_configuration){ + return ; + } + listEntry_t *listEntry; + free(v1beta3_queuing_configuration); +} + +cJSON *v1beta3_queuing_configuration_convertToJSON(v1beta3_queuing_configuration_t *v1beta3_queuing_configuration) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_queuing_configuration->hand_size + if(v1beta3_queuing_configuration->hand_size) { + if(cJSON_AddNumberToObject(item, "handSize", v1beta3_queuing_configuration->hand_size) == NULL) { + goto fail; //Numeric + } + } + + + // v1beta3_queuing_configuration->queue_length_limit + if(v1beta3_queuing_configuration->queue_length_limit) { + if(cJSON_AddNumberToObject(item, "queueLengthLimit", v1beta3_queuing_configuration->queue_length_limit) == NULL) { + goto fail; //Numeric + } + } + + + // v1beta3_queuing_configuration->queues + if(v1beta3_queuing_configuration->queues) { + if(cJSON_AddNumberToObject(item, "queues", v1beta3_queuing_configuration->queues) == NULL) { + goto fail; //Numeric + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_queuing_configuration_t *v1beta3_queuing_configuration_parseFromJSON(cJSON *v1beta3_queuing_configurationJSON){ + + v1beta3_queuing_configuration_t *v1beta3_queuing_configuration_local_var = NULL; + + // v1beta3_queuing_configuration->hand_size + cJSON *hand_size = cJSON_GetObjectItemCaseSensitive(v1beta3_queuing_configurationJSON, "handSize"); + if (hand_size) { + if(!cJSON_IsNumber(hand_size)) + { + goto end; //Numeric + } + } + + // v1beta3_queuing_configuration->queue_length_limit + cJSON *queue_length_limit = cJSON_GetObjectItemCaseSensitive(v1beta3_queuing_configurationJSON, "queueLengthLimit"); + if (queue_length_limit) { + if(!cJSON_IsNumber(queue_length_limit)) + { + goto end; //Numeric + } + } + + // v1beta3_queuing_configuration->queues + cJSON *queues = cJSON_GetObjectItemCaseSensitive(v1beta3_queuing_configurationJSON, "queues"); + if (queues) { + if(!cJSON_IsNumber(queues)) + { + goto end; //Numeric + } + } + + + v1beta3_queuing_configuration_local_var = v1beta3_queuing_configuration_create ( + hand_size ? hand_size->valuedouble : 0, + queue_length_limit ? queue_length_limit->valuedouble : 0, + queues ? queues->valuedouble : 0 + ); + + return v1beta3_queuing_configuration_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1beta3_queuing_configuration.h b/kubernetes/model/v1beta3_queuing_configuration.h new file mode 100644 index 00000000..925146ff --- /dev/null +++ b/kubernetes/model/v1beta3_queuing_configuration.h @@ -0,0 +1,41 @@ +/* + * v1beta3_queuing_configuration.h + * + * QueuingConfiguration holds the configuration parameters for queuing + */ + +#ifndef _v1beta3_queuing_configuration_H_ +#define _v1beta3_queuing_configuration_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_queuing_configuration_t v1beta3_queuing_configuration_t; + + + + +typedef struct v1beta3_queuing_configuration_t { + int hand_size; //numeric + int queue_length_limit; //numeric + int queues; //numeric + +} v1beta3_queuing_configuration_t; + +v1beta3_queuing_configuration_t *v1beta3_queuing_configuration_create( + int hand_size, + int queue_length_limit, + int queues +); + +void v1beta3_queuing_configuration_free(v1beta3_queuing_configuration_t *v1beta3_queuing_configuration); + +v1beta3_queuing_configuration_t *v1beta3_queuing_configuration_parseFromJSON(cJSON *v1beta3_queuing_configurationJSON); + +cJSON *v1beta3_queuing_configuration_convertToJSON(v1beta3_queuing_configuration_t *v1beta3_queuing_configuration); + +#endif /* _v1beta3_queuing_configuration_H_ */ + diff --git a/kubernetes/model/v1beta1_resource_policy_rule.c b/kubernetes/model/v1beta3_resource_policy_rule.c similarity index 59% rename from kubernetes/model/v1beta1_resource_policy_rule.c rename to kubernetes/model/v1beta3_resource_policy_rule.c index 681eb16f..d1868dcd 100644 --- a/kubernetes/model/v1beta1_resource_policy_rule.c +++ b/kubernetes/model/v1beta3_resource_policy_rule.c @@ -1,72 +1,72 @@ #include #include #include -#include "v1beta1_resource_policy_rule.h" +#include "v1beta3_resource_policy_rule.h" -v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_create( +v1beta3_resource_policy_rule_t *v1beta3_resource_policy_rule_create( list_t *api_groups, int cluster_scope, list_t *namespaces, list_t *resources, list_t *verbs ) { - v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_local_var = malloc(sizeof(v1beta1_resource_policy_rule_t)); - if (!v1beta1_resource_policy_rule_local_var) { + v1beta3_resource_policy_rule_t *v1beta3_resource_policy_rule_local_var = malloc(sizeof(v1beta3_resource_policy_rule_t)); + if (!v1beta3_resource_policy_rule_local_var) { return NULL; } - v1beta1_resource_policy_rule_local_var->api_groups = api_groups; - v1beta1_resource_policy_rule_local_var->cluster_scope = cluster_scope; - v1beta1_resource_policy_rule_local_var->namespaces = namespaces; - v1beta1_resource_policy_rule_local_var->resources = resources; - v1beta1_resource_policy_rule_local_var->verbs = verbs; + v1beta3_resource_policy_rule_local_var->api_groups = api_groups; + v1beta3_resource_policy_rule_local_var->cluster_scope = cluster_scope; + v1beta3_resource_policy_rule_local_var->namespaces = namespaces; + v1beta3_resource_policy_rule_local_var->resources = resources; + v1beta3_resource_policy_rule_local_var->verbs = verbs; - return v1beta1_resource_policy_rule_local_var; + return v1beta3_resource_policy_rule_local_var; } -void v1beta1_resource_policy_rule_free(v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule) { - if(NULL == v1beta1_resource_policy_rule){ +void v1beta3_resource_policy_rule_free(v1beta3_resource_policy_rule_t *v1beta3_resource_policy_rule) { + if(NULL == v1beta3_resource_policy_rule){ return ; } listEntry_t *listEntry; - if (v1beta1_resource_policy_rule->api_groups) { - list_ForEach(listEntry, v1beta1_resource_policy_rule->api_groups) { + if (v1beta3_resource_policy_rule->api_groups) { + list_ForEach(listEntry, v1beta3_resource_policy_rule->api_groups) { free(listEntry->data); } - list_freeList(v1beta1_resource_policy_rule->api_groups); - v1beta1_resource_policy_rule->api_groups = NULL; + list_freeList(v1beta3_resource_policy_rule->api_groups); + v1beta3_resource_policy_rule->api_groups = NULL; } - if (v1beta1_resource_policy_rule->namespaces) { - list_ForEach(listEntry, v1beta1_resource_policy_rule->namespaces) { + if (v1beta3_resource_policy_rule->namespaces) { + list_ForEach(listEntry, v1beta3_resource_policy_rule->namespaces) { free(listEntry->data); } - list_freeList(v1beta1_resource_policy_rule->namespaces); - v1beta1_resource_policy_rule->namespaces = NULL; + list_freeList(v1beta3_resource_policy_rule->namespaces); + v1beta3_resource_policy_rule->namespaces = NULL; } - if (v1beta1_resource_policy_rule->resources) { - list_ForEach(listEntry, v1beta1_resource_policy_rule->resources) { + if (v1beta3_resource_policy_rule->resources) { + list_ForEach(listEntry, v1beta3_resource_policy_rule->resources) { free(listEntry->data); } - list_freeList(v1beta1_resource_policy_rule->resources); - v1beta1_resource_policy_rule->resources = NULL; + list_freeList(v1beta3_resource_policy_rule->resources); + v1beta3_resource_policy_rule->resources = NULL; } - if (v1beta1_resource_policy_rule->verbs) { - list_ForEach(listEntry, v1beta1_resource_policy_rule->verbs) { + if (v1beta3_resource_policy_rule->verbs) { + list_ForEach(listEntry, v1beta3_resource_policy_rule->verbs) { free(listEntry->data); } - list_freeList(v1beta1_resource_policy_rule->verbs); - v1beta1_resource_policy_rule->verbs = NULL; + list_freeList(v1beta3_resource_policy_rule->verbs); + v1beta3_resource_policy_rule->verbs = NULL; } - free(v1beta1_resource_policy_rule); + free(v1beta3_resource_policy_rule); } -cJSON *v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule) { +cJSON *v1beta3_resource_policy_rule_convertToJSON(v1beta3_resource_policy_rule_t *v1beta3_resource_policy_rule) { cJSON *item = cJSON_CreateObject(); - // v1beta1_resource_policy_rule->api_groups - if (!v1beta1_resource_policy_rule->api_groups) { + // v1beta3_resource_policy_rule->api_groups + if (!v1beta3_resource_policy_rule->api_groups) { goto fail; } cJSON *api_groups = cJSON_AddArrayToObject(item, "apiGroups"); @@ -75,7 +75,7 @@ cJSON *v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_t } listEntry_t *api_groupsListEntry; - list_ForEach(api_groupsListEntry, v1beta1_resource_policy_rule->api_groups) { + list_ForEach(api_groupsListEntry, v1beta3_resource_policy_rule->api_groups) { if(cJSON_AddStringToObject(api_groups, "", (char*)api_groupsListEntry->data) == NULL) { goto fail; @@ -83,23 +83,23 @@ cJSON *v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_t } - // v1beta1_resource_policy_rule->cluster_scope - if(v1beta1_resource_policy_rule->cluster_scope) { - if(cJSON_AddBoolToObject(item, "clusterScope", v1beta1_resource_policy_rule->cluster_scope) == NULL) { + // v1beta3_resource_policy_rule->cluster_scope + if(v1beta3_resource_policy_rule->cluster_scope) { + if(cJSON_AddBoolToObject(item, "clusterScope", v1beta3_resource_policy_rule->cluster_scope) == NULL) { goto fail; //Bool } } - // v1beta1_resource_policy_rule->namespaces - if(v1beta1_resource_policy_rule->namespaces) { + // v1beta3_resource_policy_rule->namespaces + if(v1beta3_resource_policy_rule->namespaces) { cJSON *namespaces = cJSON_AddArrayToObject(item, "namespaces"); if(namespaces == NULL) { goto fail; //primitive container } listEntry_t *namespacesListEntry; - list_ForEach(namespacesListEntry, v1beta1_resource_policy_rule->namespaces) { + list_ForEach(namespacesListEntry, v1beta3_resource_policy_rule->namespaces) { if(cJSON_AddStringToObject(namespaces, "", (char*)namespacesListEntry->data) == NULL) { goto fail; @@ -108,8 +108,8 @@ cJSON *v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_t } - // v1beta1_resource_policy_rule->resources - if (!v1beta1_resource_policy_rule->resources) { + // v1beta3_resource_policy_rule->resources + if (!v1beta3_resource_policy_rule->resources) { goto fail; } cJSON *resources = cJSON_AddArrayToObject(item, "resources"); @@ -118,7 +118,7 @@ cJSON *v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_t } listEntry_t *resourcesListEntry; - list_ForEach(resourcesListEntry, v1beta1_resource_policy_rule->resources) { + list_ForEach(resourcesListEntry, v1beta3_resource_policy_rule->resources) { if(cJSON_AddStringToObject(resources, "", (char*)resourcesListEntry->data) == NULL) { goto fail; @@ -126,8 +126,8 @@ cJSON *v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_t } - // v1beta1_resource_policy_rule->verbs - if (!v1beta1_resource_policy_rule->verbs) { + // v1beta3_resource_policy_rule->verbs + if (!v1beta3_resource_policy_rule->verbs) { goto fail; } cJSON *verbs = cJSON_AddArrayToObject(item, "verbs"); @@ -136,7 +136,7 @@ cJSON *v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_t } listEntry_t *verbsListEntry; - list_ForEach(verbsListEntry, v1beta1_resource_policy_rule->verbs) { + list_ForEach(verbsListEntry, v1beta3_resource_policy_rule->verbs) { if(cJSON_AddStringToObject(verbs, "", (char*)verbsListEntry->data) == NULL) { goto fail; @@ -151,24 +151,24 @@ cJSON *v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_t return NULL; } -v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_parseFromJSON(cJSON *v1beta1_resource_policy_ruleJSON){ +v1beta3_resource_policy_rule_t *v1beta3_resource_policy_rule_parseFromJSON(cJSON *v1beta3_resource_policy_ruleJSON){ - v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_local_var = NULL; + v1beta3_resource_policy_rule_t *v1beta3_resource_policy_rule_local_var = NULL; - // define the local list for v1beta1_resource_policy_rule->api_groups + // define the local list for v1beta3_resource_policy_rule->api_groups list_t *api_groupsList = NULL; - // define the local list for v1beta1_resource_policy_rule->namespaces + // define the local list for v1beta3_resource_policy_rule->namespaces list_t *namespacesList = NULL; - // define the local list for v1beta1_resource_policy_rule->resources + // define the local list for v1beta3_resource_policy_rule->resources list_t *resourcesList = NULL; - // define the local list for v1beta1_resource_policy_rule->verbs + // define the local list for v1beta3_resource_policy_rule->verbs list_t *verbsList = NULL; - // v1beta1_resource_policy_rule->api_groups - cJSON *api_groups = cJSON_GetObjectItemCaseSensitive(v1beta1_resource_policy_ruleJSON, "apiGroups"); + // v1beta3_resource_policy_rule->api_groups + cJSON *api_groups = cJSON_GetObjectItemCaseSensitive(v1beta3_resource_policy_ruleJSON, "apiGroups"); if (!api_groups) { goto end; } @@ -189,8 +189,8 @@ v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_parseFromJSON(cJSON list_addElement(api_groupsList , strdup(api_groups_local->valuestring)); } - // v1beta1_resource_policy_rule->cluster_scope - cJSON *cluster_scope = cJSON_GetObjectItemCaseSensitive(v1beta1_resource_policy_ruleJSON, "clusterScope"); + // v1beta3_resource_policy_rule->cluster_scope + cJSON *cluster_scope = cJSON_GetObjectItemCaseSensitive(v1beta3_resource_policy_ruleJSON, "clusterScope"); if (cluster_scope) { if(!cJSON_IsBool(cluster_scope)) { @@ -198,8 +198,8 @@ v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_parseFromJSON(cJSON } } - // v1beta1_resource_policy_rule->namespaces - cJSON *namespaces = cJSON_GetObjectItemCaseSensitive(v1beta1_resource_policy_ruleJSON, "namespaces"); + // v1beta3_resource_policy_rule->namespaces + cJSON *namespaces = cJSON_GetObjectItemCaseSensitive(v1beta3_resource_policy_ruleJSON, "namespaces"); if (namespaces) { cJSON *namespaces_local = NULL; if(!cJSON_IsArray(namespaces)) { @@ -217,8 +217,8 @@ v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_parseFromJSON(cJSON } } - // v1beta1_resource_policy_rule->resources - cJSON *resources = cJSON_GetObjectItemCaseSensitive(v1beta1_resource_policy_ruleJSON, "resources"); + // v1beta3_resource_policy_rule->resources + cJSON *resources = cJSON_GetObjectItemCaseSensitive(v1beta3_resource_policy_ruleJSON, "resources"); if (!resources) { goto end; } @@ -239,8 +239,8 @@ v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_parseFromJSON(cJSON list_addElement(resourcesList , strdup(resources_local->valuestring)); } - // v1beta1_resource_policy_rule->verbs - cJSON *verbs = cJSON_GetObjectItemCaseSensitive(v1beta1_resource_policy_ruleJSON, "verbs"); + // v1beta3_resource_policy_rule->verbs + cJSON *verbs = cJSON_GetObjectItemCaseSensitive(v1beta3_resource_policy_ruleJSON, "verbs"); if (!verbs) { goto end; } @@ -262,7 +262,7 @@ v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_parseFromJSON(cJSON } - v1beta1_resource_policy_rule_local_var = v1beta1_resource_policy_rule_create ( + v1beta3_resource_policy_rule_local_var = v1beta3_resource_policy_rule_create ( api_groupsList, cluster_scope ? cluster_scope->valueint : 0, namespaces ? namespacesList : NULL, @@ -270,7 +270,7 @@ v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_parseFromJSON(cJSON verbsList ); - return v1beta1_resource_policy_rule_local_var; + return v1beta3_resource_policy_rule_local_var; end: if (api_groupsList) { listEntry_t *listEntry = NULL; diff --git a/kubernetes/model/v1beta1_resource_policy_rule.h b/kubernetes/model/v1beta3_resource_policy_rule.h similarity index 61% rename from kubernetes/model/v1beta1_resource_policy_rule.h rename to kubernetes/model/v1beta3_resource_policy_rule.h index 0ee2f77a..926941f7 100644 --- a/kubernetes/model/v1beta1_resource_policy_rule.h +++ b/kubernetes/model/v1beta3_resource_policy_rule.h @@ -1,11 +1,11 @@ /* - * v1beta1_resource_policy_rule.h + * v1beta3_resource_policy_rule.h * * ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace. */ -#ifndef _v1beta1_resource_policy_rule_H_ -#define _v1beta1_resource_policy_rule_H_ +#ifndef _v1beta3_resource_policy_rule_H_ +#define _v1beta3_resource_policy_rule_H_ #include #include "../external/cJSON.h" @@ -13,21 +13,21 @@ #include "../include/keyValuePair.h" #include "../include/binary.h" -typedef struct v1beta1_resource_policy_rule_t v1beta1_resource_policy_rule_t; +typedef struct v1beta3_resource_policy_rule_t v1beta3_resource_policy_rule_t; -typedef struct v1beta1_resource_policy_rule_t { +typedef struct v1beta3_resource_policy_rule_t { list_t *api_groups; //primitive container int cluster_scope; //boolean list_t *namespaces; //primitive container list_t *resources; //primitive container list_t *verbs; //primitive container -} v1beta1_resource_policy_rule_t; +} v1beta3_resource_policy_rule_t; -v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_create( +v1beta3_resource_policy_rule_t *v1beta3_resource_policy_rule_create( list_t *api_groups, int cluster_scope, list_t *namespaces, @@ -35,11 +35,11 @@ v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_create( list_t *verbs ); -void v1beta1_resource_policy_rule_free(v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule); +void v1beta3_resource_policy_rule_free(v1beta3_resource_policy_rule_t *v1beta3_resource_policy_rule); -v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_parseFromJSON(cJSON *v1beta1_resource_policy_ruleJSON); +v1beta3_resource_policy_rule_t *v1beta3_resource_policy_rule_parseFromJSON(cJSON *v1beta3_resource_policy_ruleJSON); -cJSON *v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule); +cJSON *v1beta3_resource_policy_rule_convertToJSON(v1beta3_resource_policy_rule_t *v1beta3_resource_policy_rule); -#endif /* _v1beta1_resource_policy_rule_H_ */ +#endif /* _v1beta3_resource_policy_rule_H_ */ diff --git a/kubernetes/model/v1beta3_service_account_subject.c b/kubernetes/model/v1beta3_service_account_subject.c new file mode 100644 index 00000000..92b8318e --- /dev/null +++ b/kubernetes/model/v1beta3_service_account_subject.c @@ -0,0 +1,105 @@ +#include +#include +#include +#include "v1beta3_service_account_subject.h" + + + +v1beta3_service_account_subject_t *v1beta3_service_account_subject_create( + char *name, + char *_namespace + ) { + v1beta3_service_account_subject_t *v1beta3_service_account_subject_local_var = malloc(sizeof(v1beta3_service_account_subject_t)); + if (!v1beta3_service_account_subject_local_var) { + return NULL; + } + v1beta3_service_account_subject_local_var->name = name; + v1beta3_service_account_subject_local_var->_namespace = _namespace; + + return v1beta3_service_account_subject_local_var; +} + + +void v1beta3_service_account_subject_free(v1beta3_service_account_subject_t *v1beta3_service_account_subject) { + if(NULL == v1beta3_service_account_subject){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_service_account_subject->name) { + free(v1beta3_service_account_subject->name); + v1beta3_service_account_subject->name = NULL; + } + if (v1beta3_service_account_subject->_namespace) { + free(v1beta3_service_account_subject->_namespace); + v1beta3_service_account_subject->_namespace = NULL; + } + free(v1beta3_service_account_subject); +} + +cJSON *v1beta3_service_account_subject_convertToJSON(v1beta3_service_account_subject_t *v1beta3_service_account_subject) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_service_account_subject->name + if (!v1beta3_service_account_subject->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1beta3_service_account_subject->name) == NULL) { + goto fail; //String + } + + + // v1beta3_service_account_subject->_namespace + if (!v1beta3_service_account_subject->_namespace) { + goto fail; + } + if(cJSON_AddStringToObject(item, "namespace", v1beta3_service_account_subject->_namespace) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_service_account_subject_t *v1beta3_service_account_subject_parseFromJSON(cJSON *v1beta3_service_account_subjectJSON){ + + v1beta3_service_account_subject_t *v1beta3_service_account_subject_local_var = NULL; + + // v1beta3_service_account_subject->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1beta3_service_account_subjectJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + // v1beta3_service_account_subject->_namespace + cJSON *_namespace = cJSON_GetObjectItemCaseSensitive(v1beta3_service_account_subjectJSON, "namespace"); + if (!_namespace) { + goto end; + } + + + if(!cJSON_IsString(_namespace)) + { + goto end; //String + } + + + v1beta3_service_account_subject_local_var = v1beta3_service_account_subject_create ( + strdup(name->valuestring), + strdup(_namespace->valuestring) + ); + + return v1beta3_service_account_subject_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1beta3_service_account_subject.h b/kubernetes/model/v1beta3_service_account_subject.h new file mode 100644 index 00000000..b0804530 --- /dev/null +++ b/kubernetes/model/v1beta3_service_account_subject.h @@ -0,0 +1,39 @@ +/* + * v1beta3_service_account_subject.h + * + * ServiceAccountSubject holds detailed information for service-account-kind subject. + */ + +#ifndef _v1beta3_service_account_subject_H_ +#define _v1beta3_service_account_subject_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_service_account_subject_t v1beta3_service_account_subject_t; + + + + +typedef struct v1beta3_service_account_subject_t { + char *name; // string + char *_namespace; // string + +} v1beta3_service_account_subject_t; + +v1beta3_service_account_subject_t *v1beta3_service_account_subject_create( + char *name, + char *_namespace +); + +void v1beta3_service_account_subject_free(v1beta3_service_account_subject_t *v1beta3_service_account_subject); + +v1beta3_service_account_subject_t *v1beta3_service_account_subject_parseFromJSON(cJSON *v1beta3_service_account_subjectJSON); + +cJSON *v1beta3_service_account_subject_convertToJSON(v1beta3_service_account_subject_t *v1beta3_service_account_subject); + +#endif /* _v1beta3_service_account_subject_H_ */ + diff --git a/kubernetes/model/v1beta3_subject.c b/kubernetes/model/v1beta3_subject.c new file mode 100644 index 00000000..3fb2f915 --- /dev/null +++ b/kubernetes/model/v1beta3_subject.c @@ -0,0 +1,176 @@ +#include +#include +#include +#include "v1beta3_subject.h" + + + +v1beta3_subject_t *v1beta3_subject_create( + v1beta3_group_subject_t *group, + char *kind, + v1beta3_service_account_subject_t *service_account, + v1beta3_user_subject_t *user + ) { + v1beta3_subject_t *v1beta3_subject_local_var = malloc(sizeof(v1beta3_subject_t)); + if (!v1beta3_subject_local_var) { + return NULL; + } + v1beta3_subject_local_var->group = group; + v1beta3_subject_local_var->kind = kind; + v1beta3_subject_local_var->service_account = service_account; + v1beta3_subject_local_var->user = user; + + return v1beta3_subject_local_var; +} + + +void v1beta3_subject_free(v1beta3_subject_t *v1beta3_subject) { + if(NULL == v1beta3_subject){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_subject->group) { + v1beta3_group_subject_free(v1beta3_subject->group); + v1beta3_subject->group = NULL; + } + if (v1beta3_subject->kind) { + free(v1beta3_subject->kind); + v1beta3_subject->kind = NULL; + } + if (v1beta3_subject->service_account) { + v1beta3_service_account_subject_free(v1beta3_subject->service_account); + v1beta3_subject->service_account = NULL; + } + if (v1beta3_subject->user) { + v1beta3_user_subject_free(v1beta3_subject->user); + v1beta3_subject->user = NULL; + } + free(v1beta3_subject); +} + +cJSON *v1beta3_subject_convertToJSON(v1beta3_subject_t *v1beta3_subject) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_subject->group + if(v1beta3_subject->group) { + cJSON *group_local_JSON = v1beta3_group_subject_convertToJSON(v1beta3_subject->group); + if(group_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "group", group_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1beta3_subject->kind + if (!v1beta3_subject->kind) { + goto fail; + } + if(cJSON_AddStringToObject(item, "kind", v1beta3_subject->kind) == NULL) { + goto fail; //String + } + + + // v1beta3_subject->service_account + if(v1beta3_subject->service_account) { + cJSON *service_account_local_JSON = v1beta3_service_account_subject_convertToJSON(v1beta3_subject->service_account); + if(service_account_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "serviceAccount", service_account_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1beta3_subject->user + if(v1beta3_subject->user) { + cJSON *user_local_JSON = v1beta3_user_subject_convertToJSON(v1beta3_subject->user); + if(user_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "user", user_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_subject_t *v1beta3_subject_parseFromJSON(cJSON *v1beta3_subjectJSON){ + + v1beta3_subject_t *v1beta3_subject_local_var = NULL; + + // define the local variable for v1beta3_subject->group + v1beta3_group_subject_t *group_local_nonprim = NULL; + + // define the local variable for v1beta3_subject->service_account + v1beta3_service_account_subject_t *service_account_local_nonprim = NULL; + + // define the local variable for v1beta3_subject->user + v1beta3_user_subject_t *user_local_nonprim = NULL; + + // v1beta3_subject->group + cJSON *group = cJSON_GetObjectItemCaseSensitive(v1beta3_subjectJSON, "group"); + if (group) { + group_local_nonprim = v1beta3_group_subject_parseFromJSON(group); //nonprimitive + } + + // v1beta3_subject->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta3_subjectJSON, "kind"); + if (!kind) { + goto end; + } + + + if(!cJSON_IsString(kind)) + { + goto end; //String + } + + // v1beta3_subject->service_account + cJSON *service_account = cJSON_GetObjectItemCaseSensitive(v1beta3_subjectJSON, "serviceAccount"); + if (service_account) { + service_account_local_nonprim = v1beta3_service_account_subject_parseFromJSON(service_account); //nonprimitive + } + + // v1beta3_subject->user + cJSON *user = cJSON_GetObjectItemCaseSensitive(v1beta3_subjectJSON, "user"); + if (user) { + user_local_nonprim = v1beta3_user_subject_parseFromJSON(user); //nonprimitive + } + + + v1beta3_subject_local_var = v1beta3_subject_create ( + group ? group_local_nonprim : NULL, + strdup(kind->valuestring), + service_account ? service_account_local_nonprim : NULL, + user ? user_local_nonprim : NULL + ); + + return v1beta3_subject_local_var; +end: + if (group_local_nonprim) { + v1beta3_group_subject_free(group_local_nonprim); + group_local_nonprim = NULL; + } + if (service_account_local_nonprim) { + v1beta3_service_account_subject_free(service_account_local_nonprim); + service_account_local_nonprim = NULL; + } + if (user_local_nonprim) { + v1beta3_user_subject_free(user_local_nonprim); + user_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_subject.h b/kubernetes/model/v1beta3_subject.h new file mode 100644 index 00000000..dacf0691 --- /dev/null +++ b/kubernetes/model/v1beta3_subject.h @@ -0,0 +1,46 @@ +/* + * v1beta3_subject.h + * + * Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account. + */ + +#ifndef _v1beta3_subject_H_ +#define _v1beta3_subject_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_subject_t v1beta3_subject_t; + +#include "v1beta3_group_subject.h" +#include "v1beta3_service_account_subject.h" +#include "v1beta3_user_subject.h" + + + +typedef struct v1beta3_subject_t { + struct v1beta3_group_subject_t *group; //model + char *kind; // string + struct v1beta3_service_account_subject_t *service_account; //model + struct v1beta3_user_subject_t *user; //model + +} v1beta3_subject_t; + +v1beta3_subject_t *v1beta3_subject_create( + v1beta3_group_subject_t *group, + char *kind, + v1beta3_service_account_subject_t *service_account, + v1beta3_user_subject_t *user +); + +void v1beta3_subject_free(v1beta3_subject_t *v1beta3_subject); + +v1beta3_subject_t *v1beta3_subject_parseFromJSON(cJSON *v1beta3_subjectJSON); + +cJSON *v1beta3_subject_convertToJSON(v1beta3_subject_t *v1beta3_subject); + +#endif /* _v1beta3_subject_H_ */ + diff --git a/kubernetes/model/v1beta3_user_subject.c b/kubernetes/model/v1beta3_user_subject.c new file mode 100644 index 00000000..bccf7d7a --- /dev/null +++ b/kubernetes/model/v1beta3_user_subject.c @@ -0,0 +1,77 @@ +#include +#include +#include +#include "v1beta3_user_subject.h" + + + +v1beta3_user_subject_t *v1beta3_user_subject_create( + char *name + ) { + v1beta3_user_subject_t *v1beta3_user_subject_local_var = malloc(sizeof(v1beta3_user_subject_t)); + if (!v1beta3_user_subject_local_var) { + return NULL; + } + v1beta3_user_subject_local_var->name = name; + + return v1beta3_user_subject_local_var; +} + + +void v1beta3_user_subject_free(v1beta3_user_subject_t *v1beta3_user_subject) { + if(NULL == v1beta3_user_subject){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_user_subject->name) { + free(v1beta3_user_subject->name); + v1beta3_user_subject->name = NULL; + } + free(v1beta3_user_subject); +} + +cJSON *v1beta3_user_subject_convertToJSON(v1beta3_user_subject_t *v1beta3_user_subject) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_user_subject->name + if (!v1beta3_user_subject->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1beta3_user_subject->name) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_user_subject_t *v1beta3_user_subject_parseFromJSON(cJSON *v1beta3_user_subjectJSON){ + + v1beta3_user_subject_t *v1beta3_user_subject_local_var = NULL; + + // v1beta3_user_subject->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1beta3_user_subjectJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + + v1beta3_user_subject_local_var = v1beta3_user_subject_create ( + strdup(name->valuestring) + ); + + return v1beta3_user_subject_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1beta3_user_subject.h b/kubernetes/model/v1beta3_user_subject.h new file mode 100644 index 00000000..5150900a --- /dev/null +++ b/kubernetes/model/v1beta3_user_subject.h @@ -0,0 +1,37 @@ +/* + * v1beta3_user_subject.h + * + * UserSubject holds detailed information for user-kind subject. + */ + +#ifndef _v1beta3_user_subject_H_ +#define _v1beta3_user_subject_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_user_subject_t v1beta3_user_subject_t; + + + + +typedef struct v1beta3_user_subject_t { + char *name; // string + +} v1beta3_user_subject_t; + +v1beta3_user_subject_t *v1beta3_user_subject_create( + char *name +); + +void v1beta3_user_subject_free(v1beta3_user_subject_t *v1beta3_user_subject); + +v1beta3_user_subject_t *v1beta3_user_subject_parseFromJSON(cJSON *v1beta3_user_subjectJSON); + +cJSON *v1beta3_user_subject_convertToJSON(v1beta3_user_subject_t *v1beta3_user_subject); + +#endif /* _v1beta3_user_subject_H_ */ + diff --git a/kubernetes/model/v2beta2_container_resource_metric_source.c b/kubernetes/model/v2beta2_container_resource_metric_source.c deleted file mode 100644 index bd605297..00000000 --- a/kubernetes/model/v2beta2_container_resource_metric_source.c +++ /dev/null @@ -1,142 +0,0 @@ -#include -#include -#include -#include "v2beta2_container_resource_metric_source.h" - - - -v2beta2_container_resource_metric_source_t *v2beta2_container_resource_metric_source_create( - char *container, - char *name, - v2beta2_metric_target_t *target - ) { - v2beta2_container_resource_metric_source_t *v2beta2_container_resource_metric_source_local_var = malloc(sizeof(v2beta2_container_resource_metric_source_t)); - if (!v2beta2_container_resource_metric_source_local_var) { - return NULL; - } - v2beta2_container_resource_metric_source_local_var->container = container; - v2beta2_container_resource_metric_source_local_var->name = name; - v2beta2_container_resource_metric_source_local_var->target = target; - - return v2beta2_container_resource_metric_source_local_var; -} - - -void v2beta2_container_resource_metric_source_free(v2beta2_container_resource_metric_source_t *v2beta2_container_resource_metric_source) { - if(NULL == v2beta2_container_resource_metric_source){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_container_resource_metric_source->container) { - free(v2beta2_container_resource_metric_source->container); - v2beta2_container_resource_metric_source->container = NULL; - } - if (v2beta2_container_resource_metric_source->name) { - free(v2beta2_container_resource_metric_source->name); - v2beta2_container_resource_metric_source->name = NULL; - } - if (v2beta2_container_resource_metric_source->target) { - v2beta2_metric_target_free(v2beta2_container_resource_metric_source->target); - v2beta2_container_resource_metric_source->target = NULL; - } - free(v2beta2_container_resource_metric_source); -} - -cJSON *v2beta2_container_resource_metric_source_convertToJSON(v2beta2_container_resource_metric_source_t *v2beta2_container_resource_metric_source) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_container_resource_metric_source->container - if (!v2beta2_container_resource_metric_source->container) { - goto fail; - } - if(cJSON_AddStringToObject(item, "container", v2beta2_container_resource_metric_source->container) == NULL) { - goto fail; //String - } - - - // v2beta2_container_resource_metric_source->name - if (!v2beta2_container_resource_metric_source->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v2beta2_container_resource_metric_source->name) == NULL) { - goto fail; //String - } - - - // v2beta2_container_resource_metric_source->target - if (!v2beta2_container_resource_metric_source->target) { - goto fail; - } - cJSON *target_local_JSON = v2beta2_metric_target_convertToJSON(v2beta2_container_resource_metric_source->target); - if(target_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "target", target_local_JSON); - if(item->child == NULL) { - goto fail; - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_container_resource_metric_source_t *v2beta2_container_resource_metric_source_parseFromJSON(cJSON *v2beta2_container_resource_metric_sourceJSON){ - - v2beta2_container_resource_metric_source_t *v2beta2_container_resource_metric_source_local_var = NULL; - - // define the local variable for v2beta2_container_resource_metric_source->target - v2beta2_metric_target_t *target_local_nonprim = NULL; - - // v2beta2_container_resource_metric_source->container - cJSON *container = cJSON_GetObjectItemCaseSensitive(v2beta2_container_resource_metric_sourceJSON, "container"); - if (!container) { - goto end; - } - - - if(!cJSON_IsString(container)) - { - goto end; //String - } - - // v2beta2_container_resource_metric_source->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v2beta2_container_resource_metric_sourceJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - // v2beta2_container_resource_metric_source->target - cJSON *target = cJSON_GetObjectItemCaseSensitive(v2beta2_container_resource_metric_sourceJSON, "target"); - if (!target) { - goto end; - } - - - target_local_nonprim = v2beta2_metric_target_parseFromJSON(target); //nonprimitive - - - v2beta2_container_resource_metric_source_local_var = v2beta2_container_resource_metric_source_create ( - strdup(container->valuestring), - strdup(name->valuestring), - target_local_nonprim - ); - - return v2beta2_container_resource_metric_source_local_var; -end: - if (target_local_nonprim) { - v2beta2_metric_target_free(target_local_nonprim); - target_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_container_resource_metric_source.h b/kubernetes/model/v2beta2_container_resource_metric_source.h deleted file mode 100644 index 98736a99..00000000 --- a/kubernetes/model/v2beta2_container_resource_metric_source.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * v2beta2_container_resource_metric_source.h - * - * ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set. - */ - -#ifndef _v2beta2_container_resource_metric_source_H_ -#define _v2beta2_container_resource_metric_source_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_container_resource_metric_source_t v2beta2_container_resource_metric_source_t; - -#include "v2beta2_metric_target.h" - - - -typedef struct v2beta2_container_resource_metric_source_t { - char *container; // string - char *name; // string - struct v2beta2_metric_target_t *target; //model - -} v2beta2_container_resource_metric_source_t; - -v2beta2_container_resource_metric_source_t *v2beta2_container_resource_metric_source_create( - char *container, - char *name, - v2beta2_metric_target_t *target -); - -void v2beta2_container_resource_metric_source_free(v2beta2_container_resource_metric_source_t *v2beta2_container_resource_metric_source); - -v2beta2_container_resource_metric_source_t *v2beta2_container_resource_metric_source_parseFromJSON(cJSON *v2beta2_container_resource_metric_sourceJSON); - -cJSON *v2beta2_container_resource_metric_source_convertToJSON(v2beta2_container_resource_metric_source_t *v2beta2_container_resource_metric_source); - -#endif /* _v2beta2_container_resource_metric_source_H_ */ - diff --git a/kubernetes/model/v2beta2_container_resource_metric_status.c b/kubernetes/model/v2beta2_container_resource_metric_status.c deleted file mode 100644 index 912e3df4..00000000 --- a/kubernetes/model/v2beta2_container_resource_metric_status.c +++ /dev/null @@ -1,142 +0,0 @@ -#include -#include -#include -#include "v2beta2_container_resource_metric_status.h" - - - -v2beta2_container_resource_metric_status_t *v2beta2_container_resource_metric_status_create( - char *container, - v2beta2_metric_value_status_t *current, - char *name - ) { - v2beta2_container_resource_metric_status_t *v2beta2_container_resource_metric_status_local_var = malloc(sizeof(v2beta2_container_resource_metric_status_t)); - if (!v2beta2_container_resource_metric_status_local_var) { - return NULL; - } - v2beta2_container_resource_metric_status_local_var->container = container; - v2beta2_container_resource_metric_status_local_var->current = current; - v2beta2_container_resource_metric_status_local_var->name = name; - - return v2beta2_container_resource_metric_status_local_var; -} - - -void v2beta2_container_resource_metric_status_free(v2beta2_container_resource_metric_status_t *v2beta2_container_resource_metric_status) { - if(NULL == v2beta2_container_resource_metric_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_container_resource_metric_status->container) { - free(v2beta2_container_resource_metric_status->container); - v2beta2_container_resource_metric_status->container = NULL; - } - if (v2beta2_container_resource_metric_status->current) { - v2beta2_metric_value_status_free(v2beta2_container_resource_metric_status->current); - v2beta2_container_resource_metric_status->current = NULL; - } - if (v2beta2_container_resource_metric_status->name) { - free(v2beta2_container_resource_metric_status->name); - v2beta2_container_resource_metric_status->name = NULL; - } - free(v2beta2_container_resource_metric_status); -} - -cJSON *v2beta2_container_resource_metric_status_convertToJSON(v2beta2_container_resource_metric_status_t *v2beta2_container_resource_metric_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_container_resource_metric_status->container - if (!v2beta2_container_resource_metric_status->container) { - goto fail; - } - if(cJSON_AddStringToObject(item, "container", v2beta2_container_resource_metric_status->container) == NULL) { - goto fail; //String - } - - - // v2beta2_container_resource_metric_status->current - if (!v2beta2_container_resource_metric_status->current) { - goto fail; - } - cJSON *current_local_JSON = v2beta2_metric_value_status_convertToJSON(v2beta2_container_resource_metric_status->current); - if(current_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "current", current_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v2beta2_container_resource_metric_status->name - if (!v2beta2_container_resource_metric_status->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v2beta2_container_resource_metric_status->name) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_container_resource_metric_status_t *v2beta2_container_resource_metric_status_parseFromJSON(cJSON *v2beta2_container_resource_metric_statusJSON){ - - v2beta2_container_resource_metric_status_t *v2beta2_container_resource_metric_status_local_var = NULL; - - // define the local variable for v2beta2_container_resource_metric_status->current - v2beta2_metric_value_status_t *current_local_nonprim = NULL; - - // v2beta2_container_resource_metric_status->container - cJSON *container = cJSON_GetObjectItemCaseSensitive(v2beta2_container_resource_metric_statusJSON, "container"); - if (!container) { - goto end; - } - - - if(!cJSON_IsString(container)) - { - goto end; //String - } - - // v2beta2_container_resource_metric_status->current - cJSON *current = cJSON_GetObjectItemCaseSensitive(v2beta2_container_resource_metric_statusJSON, "current"); - if (!current) { - goto end; - } - - - current_local_nonprim = v2beta2_metric_value_status_parseFromJSON(current); //nonprimitive - - // v2beta2_container_resource_metric_status->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v2beta2_container_resource_metric_statusJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - - v2beta2_container_resource_metric_status_local_var = v2beta2_container_resource_metric_status_create ( - strdup(container->valuestring), - current_local_nonprim, - strdup(name->valuestring) - ); - - return v2beta2_container_resource_metric_status_local_var; -end: - if (current_local_nonprim) { - v2beta2_metric_value_status_free(current_local_nonprim); - current_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_container_resource_metric_status.h b/kubernetes/model/v2beta2_container_resource_metric_status.h deleted file mode 100644 index b94f7c52..00000000 --- a/kubernetes/model/v2beta2_container_resource_metric_status.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * v2beta2_container_resource_metric_status.h - * - * ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. - */ - -#ifndef _v2beta2_container_resource_metric_status_H_ -#define _v2beta2_container_resource_metric_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_container_resource_metric_status_t v2beta2_container_resource_metric_status_t; - -#include "v2beta2_metric_value_status.h" - - - -typedef struct v2beta2_container_resource_metric_status_t { - char *container; // string - struct v2beta2_metric_value_status_t *current; //model - char *name; // string - -} v2beta2_container_resource_metric_status_t; - -v2beta2_container_resource_metric_status_t *v2beta2_container_resource_metric_status_create( - char *container, - v2beta2_metric_value_status_t *current, - char *name -); - -void v2beta2_container_resource_metric_status_free(v2beta2_container_resource_metric_status_t *v2beta2_container_resource_metric_status); - -v2beta2_container_resource_metric_status_t *v2beta2_container_resource_metric_status_parseFromJSON(cJSON *v2beta2_container_resource_metric_statusJSON); - -cJSON *v2beta2_container_resource_metric_status_convertToJSON(v2beta2_container_resource_metric_status_t *v2beta2_container_resource_metric_status); - -#endif /* _v2beta2_container_resource_metric_status_H_ */ - diff --git a/kubernetes/model/v2beta2_cross_version_object_reference.c b/kubernetes/model/v2beta2_cross_version_object_reference.c deleted file mode 100644 index eb71e28c..00000000 --- a/kubernetes/model/v2beta2_cross_version_object_reference.c +++ /dev/null @@ -1,129 +0,0 @@ -#include -#include -#include -#include "v2beta2_cross_version_object_reference.h" - - - -v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference_create( - char *api_version, - char *kind, - char *name - ) { - v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference_local_var = malloc(sizeof(v2beta2_cross_version_object_reference_t)); - if (!v2beta2_cross_version_object_reference_local_var) { - return NULL; - } - v2beta2_cross_version_object_reference_local_var->api_version = api_version; - v2beta2_cross_version_object_reference_local_var->kind = kind; - v2beta2_cross_version_object_reference_local_var->name = name; - - return v2beta2_cross_version_object_reference_local_var; -} - - -void v2beta2_cross_version_object_reference_free(v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference) { - if(NULL == v2beta2_cross_version_object_reference){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_cross_version_object_reference->api_version) { - free(v2beta2_cross_version_object_reference->api_version); - v2beta2_cross_version_object_reference->api_version = NULL; - } - if (v2beta2_cross_version_object_reference->kind) { - free(v2beta2_cross_version_object_reference->kind); - v2beta2_cross_version_object_reference->kind = NULL; - } - if (v2beta2_cross_version_object_reference->name) { - free(v2beta2_cross_version_object_reference->name); - v2beta2_cross_version_object_reference->name = NULL; - } - free(v2beta2_cross_version_object_reference); -} - -cJSON *v2beta2_cross_version_object_reference_convertToJSON(v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_cross_version_object_reference->api_version - if(v2beta2_cross_version_object_reference->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v2beta2_cross_version_object_reference->api_version) == NULL) { - goto fail; //String - } - } - - - // v2beta2_cross_version_object_reference->kind - if (!v2beta2_cross_version_object_reference->kind) { - goto fail; - } - if(cJSON_AddStringToObject(item, "kind", v2beta2_cross_version_object_reference->kind) == NULL) { - goto fail; //String - } - - - // v2beta2_cross_version_object_reference->name - if (!v2beta2_cross_version_object_reference->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v2beta2_cross_version_object_reference->name) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference_parseFromJSON(cJSON *v2beta2_cross_version_object_referenceJSON){ - - v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference_local_var = NULL; - - // v2beta2_cross_version_object_reference->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v2beta2_cross_version_object_referenceJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) - { - goto end; //String - } - } - - // v2beta2_cross_version_object_reference->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v2beta2_cross_version_object_referenceJSON, "kind"); - if (!kind) { - goto end; - } - - - if(!cJSON_IsString(kind)) - { - goto end; //String - } - - // v2beta2_cross_version_object_reference->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v2beta2_cross_version_object_referenceJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - - v2beta2_cross_version_object_reference_local_var = v2beta2_cross_version_object_reference_create ( - api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, - strdup(kind->valuestring), - strdup(name->valuestring) - ); - - return v2beta2_cross_version_object_reference_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v2beta2_cross_version_object_reference.h b/kubernetes/model/v2beta2_cross_version_object_reference.h deleted file mode 100644 index 3b02d616..00000000 --- a/kubernetes/model/v2beta2_cross_version_object_reference.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v2beta2_cross_version_object_reference.h - * - * CrossVersionObjectReference contains enough information to let you identify the referred resource. - */ - -#ifndef _v2beta2_cross_version_object_reference_H_ -#define _v2beta2_cross_version_object_reference_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_cross_version_object_reference_t v2beta2_cross_version_object_reference_t; - - - - -typedef struct v2beta2_cross_version_object_reference_t { - char *api_version; // string - char *kind; // string - char *name; // string - -} v2beta2_cross_version_object_reference_t; - -v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference_create( - char *api_version, - char *kind, - char *name -); - -void v2beta2_cross_version_object_reference_free(v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference); - -v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference_parseFromJSON(cJSON *v2beta2_cross_version_object_referenceJSON); - -cJSON *v2beta2_cross_version_object_reference_convertToJSON(v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference); - -#endif /* _v2beta2_cross_version_object_reference_H_ */ - diff --git a/kubernetes/model/v2beta2_external_metric_source.c b/kubernetes/model/v2beta2_external_metric_source.c deleted file mode 100644 index ead37f6f..00000000 --- a/kubernetes/model/v2beta2_external_metric_source.c +++ /dev/null @@ -1,123 +0,0 @@ -#include -#include -#include -#include "v2beta2_external_metric_source.h" - - - -v2beta2_external_metric_source_t *v2beta2_external_metric_source_create( - v2beta2_metric_identifier_t *metric, - v2beta2_metric_target_t *target - ) { - v2beta2_external_metric_source_t *v2beta2_external_metric_source_local_var = malloc(sizeof(v2beta2_external_metric_source_t)); - if (!v2beta2_external_metric_source_local_var) { - return NULL; - } - v2beta2_external_metric_source_local_var->metric = metric; - v2beta2_external_metric_source_local_var->target = target; - - return v2beta2_external_metric_source_local_var; -} - - -void v2beta2_external_metric_source_free(v2beta2_external_metric_source_t *v2beta2_external_metric_source) { - if(NULL == v2beta2_external_metric_source){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_external_metric_source->metric) { - v2beta2_metric_identifier_free(v2beta2_external_metric_source->metric); - v2beta2_external_metric_source->metric = NULL; - } - if (v2beta2_external_metric_source->target) { - v2beta2_metric_target_free(v2beta2_external_metric_source->target); - v2beta2_external_metric_source->target = NULL; - } - free(v2beta2_external_metric_source); -} - -cJSON *v2beta2_external_metric_source_convertToJSON(v2beta2_external_metric_source_t *v2beta2_external_metric_source) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_external_metric_source->metric - if (!v2beta2_external_metric_source->metric) { - goto fail; - } - cJSON *metric_local_JSON = v2beta2_metric_identifier_convertToJSON(v2beta2_external_metric_source->metric); - if(metric_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metric", metric_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v2beta2_external_metric_source->target - if (!v2beta2_external_metric_source->target) { - goto fail; - } - cJSON *target_local_JSON = v2beta2_metric_target_convertToJSON(v2beta2_external_metric_source->target); - if(target_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "target", target_local_JSON); - if(item->child == NULL) { - goto fail; - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_external_metric_source_t *v2beta2_external_metric_source_parseFromJSON(cJSON *v2beta2_external_metric_sourceJSON){ - - v2beta2_external_metric_source_t *v2beta2_external_metric_source_local_var = NULL; - - // define the local variable for v2beta2_external_metric_source->metric - v2beta2_metric_identifier_t *metric_local_nonprim = NULL; - - // define the local variable for v2beta2_external_metric_source->target - v2beta2_metric_target_t *target_local_nonprim = NULL; - - // v2beta2_external_metric_source->metric - cJSON *metric = cJSON_GetObjectItemCaseSensitive(v2beta2_external_metric_sourceJSON, "metric"); - if (!metric) { - goto end; - } - - - metric_local_nonprim = v2beta2_metric_identifier_parseFromJSON(metric); //nonprimitive - - // v2beta2_external_metric_source->target - cJSON *target = cJSON_GetObjectItemCaseSensitive(v2beta2_external_metric_sourceJSON, "target"); - if (!target) { - goto end; - } - - - target_local_nonprim = v2beta2_metric_target_parseFromJSON(target); //nonprimitive - - - v2beta2_external_metric_source_local_var = v2beta2_external_metric_source_create ( - metric_local_nonprim, - target_local_nonprim - ); - - return v2beta2_external_metric_source_local_var; -end: - if (metric_local_nonprim) { - v2beta2_metric_identifier_free(metric_local_nonprim); - metric_local_nonprim = NULL; - } - if (target_local_nonprim) { - v2beta2_metric_target_free(target_local_nonprim); - target_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_external_metric_source.h b/kubernetes/model/v2beta2_external_metric_source.h deleted file mode 100644 index 3162cfb4..00000000 --- a/kubernetes/model/v2beta2_external_metric_source.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v2beta2_external_metric_source.h - * - * ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). - */ - -#ifndef _v2beta2_external_metric_source_H_ -#define _v2beta2_external_metric_source_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_external_metric_source_t v2beta2_external_metric_source_t; - -#include "v2beta2_metric_identifier.h" -#include "v2beta2_metric_target.h" - - - -typedef struct v2beta2_external_metric_source_t { - struct v2beta2_metric_identifier_t *metric; //model - struct v2beta2_metric_target_t *target; //model - -} v2beta2_external_metric_source_t; - -v2beta2_external_metric_source_t *v2beta2_external_metric_source_create( - v2beta2_metric_identifier_t *metric, - v2beta2_metric_target_t *target -); - -void v2beta2_external_metric_source_free(v2beta2_external_metric_source_t *v2beta2_external_metric_source); - -v2beta2_external_metric_source_t *v2beta2_external_metric_source_parseFromJSON(cJSON *v2beta2_external_metric_sourceJSON); - -cJSON *v2beta2_external_metric_source_convertToJSON(v2beta2_external_metric_source_t *v2beta2_external_metric_source); - -#endif /* _v2beta2_external_metric_source_H_ */ - diff --git a/kubernetes/model/v2beta2_external_metric_status.c b/kubernetes/model/v2beta2_external_metric_status.c deleted file mode 100644 index 6bc1687b..00000000 --- a/kubernetes/model/v2beta2_external_metric_status.c +++ /dev/null @@ -1,123 +0,0 @@ -#include -#include -#include -#include "v2beta2_external_metric_status.h" - - - -v2beta2_external_metric_status_t *v2beta2_external_metric_status_create( - v2beta2_metric_value_status_t *current, - v2beta2_metric_identifier_t *metric - ) { - v2beta2_external_metric_status_t *v2beta2_external_metric_status_local_var = malloc(sizeof(v2beta2_external_metric_status_t)); - if (!v2beta2_external_metric_status_local_var) { - return NULL; - } - v2beta2_external_metric_status_local_var->current = current; - v2beta2_external_metric_status_local_var->metric = metric; - - return v2beta2_external_metric_status_local_var; -} - - -void v2beta2_external_metric_status_free(v2beta2_external_metric_status_t *v2beta2_external_metric_status) { - if(NULL == v2beta2_external_metric_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_external_metric_status->current) { - v2beta2_metric_value_status_free(v2beta2_external_metric_status->current); - v2beta2_external_metric_status->current = NULL; - } - if (v2beta2_external_metric_status->metric) { - v2beta2_metric_identifier_free(v2beta2_external_metric_status->metric); - v2beta2_external_metric_status->metric = NULL; - } - free(v2beta2_external_metric_status); -} - -cJSON *v2beta2_external_metric_status_convertToJSON(v2beta2_external_metric_status_t *v2beta2_external_metric_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_external_metric_status->current - if (!v2beta2_external_metric_status->current) { - goto fail; - } - cJSON *current_local_JSON = v2beta2_metric_value_status_convertToJSON(v2beta2_external_metric_status->current); - if(current_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "current", current_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v2beta2_external_metric_status->metric - if (!v2beta2_external_metric_status->metric) { - goto fail; - } - cJSON *metric_local_JSON = v2beta2_metric_identifier_convertToJSON(v2beta2_external_metric_status->metric); - if(metric_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metric", metric_local_JSON); - if(item->child == NULL) { - goto fail; - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_external_metric_status_t *v2beta2_external_metric_status_parseFromJSON(cJSON *v2beta2_external_metric_statusJSON){ - - v2beta2_external_metric_status_t *v2beta2_external_metric_status_local_var = NULL; - - // define the local variable for v2beta2_external_metric_status->current - v2beta2_metric_value_status_t *current_local_nonprim = NULL; - - // define the local variable for v2beta2_external_metric_status->metric - v2beta2_metric_identifier_t *metric_local_nonprim = NULL; - - // v2beta2_external_metric_status->current - cJSON *current = cJSON_GetObjectItemCaseSensitive(v2beta2_external_metric_statusJSON, "current"); - if (!current) { - goto end; - } - - - current_local_nonprim = v2beta2_metric_value_status_parseFromJSON(current); //nonprimitive - - // v2beta2_external_metric_status->metric - cJSON *metric = cJSON_GetObjectItemCaseSensitive(v2beta2_external_metric_statusJSON, "metric"); - if (!metric) { - goto end; - } - - - metric_local_nonprim = v2beta2_metric_identifier_parseFromJSON(metric); //nonprimitive - - - v2beta2_external_metric_status_local_var = v2beta2_external_metric_status_create ( - current_local_nonprim, - metric_local_nonprim - ); - - return v2beta2_external_metric_status_local_var; -end: - if (current_local_nonprim) { - v2beta2_metric_value_status_free(current_local_nonprim); - current_local_nonprim = NULL; - } - if (metric_local_nonprim) { - v2beta2_metric_identifier_free(metric_local_nonprim); - metric_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_external_metric_status.h b/kubernetes/model/v2beta2_external_metric_status.h deleted file mode 100644 index 7964f2dc..00000000 --- a/kubernetes/model/v2beta2_external_metric_status.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v2beta2_external_metric_status.h - * - * ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object. - */ - -#ifndef _v2beta2_external_metric_status_H_ -#define _v2beta2_external_metric_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_external_metric_status_t v2beta2_external_metric_status_t; - -#include "v2beta2_metric_identifier.h" -#include "v2beta2_metric_value_status.h" - - - -typedef struct v2beta2_external_metric_status_t { - struct v2beta2_metric_value_status_t *current; //model - struct v2beta2_metric_identifier_t *metric; //model - -} v2beta2_external_metric_status_t; - -v2beta2_external_metric_status_t *v2beta2_external_metric_status_create( - v2beta2_metric_value_status_t *current, - v2beta2_metric_identifier_t *metric -); - -void v2beta2_external_metric_status_free(v2beta2_external_metric_status_t *v2beta2_external_metric_status); - -v2beta2_external_metric_status_t *v2beta2_external_metric_status_parseFromJSON(cJSON *v2beta2_external_metric_statusJSON); - -cJSON *v2beta2_external_metric_status_convertToJSON(v2beta2_external_metric_status_t *v2beta2_external_metric_status); - -#endif /* _v2beta2_external_metric_status_H_ */ - diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler.c b/kubernetes/model/v2beta2_horizontal_pod_autoscaler.c deleted file mode 100644 index 56157de3..00000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler.c +++ /dev/null @@ -1,196 +0,0 @@ -#include -#include -#include -#include "v2beta2_horizontal_pod_autoscaler.h" - - - -v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler_create( - char *api_version, - char *kind, - v1_object_meta_t *metadata, - v2beta2_horizontal_pod_autoscaler_spec_t *spec, - v2beta2_horizontal_pod_autoscaler_status_t *status - ) { - v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler_local_var = malloc(sizeof(v2beta2_horizontal_pod_autoscaler_t)); - if (!v2beta2_horizontal_pod_autoscaler_local_var) { - return NULL; - } - v2beta2_horizontal_pod_autoscaler_local_var->api_version = api_version; - v2beta2_horizontal_pod_autoscaler_local_var->kind = kind; - v2beta2_horizontal_pod_autoscaler_local_var->metadata = metadata; - v2beta2_horizontal_pod_autoscaler_local_var->spec = spec; - v2beta2_horizontal_pod_autoscaler_local_var->status = status; - - return v2beta2_horizontal_pod_autoscaler_local_var; -} - - -void v2beta2_horizontal_pod_autoscaler_free(v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler) { - if(NULL == v2beta2_horizontal_pod_autoscaler){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_horizontal_pod_autoscaler->api_version) { - free(v2beta2_horizontal_pod_autoscaler->api_version); - v2beta2_horizontal_pod_autoscaler->api_version = NULL; - } - if (v2beta2_horizontal_pod_autoscaler->kind) { - free(v2beta2_horizontal_pod_autoscaler->kind); - v2beta2_horizontal_pod_autoscaler->kind = NULL; - } - if (v2beta2_horizontal_pod_autoscaler->metadata) { - v1_object_meta_free(v2beta2_horizontal_pod_autoscaler->metadata); - v2beta2_horizontal_pod_autoscaler->metadata = NULL; - } - if (v2beta2_horizontal_pod_autoscaler->spec) { - v2beta2_horizontal_pod_autoscaler_spec_free(v2beta2_horizontal_pod_autoscaler->spec); - v2beta2_horizontal_pod_autoscaler->spec = NULL; - } - if (v2beta2_horizontal_pod_autoscaler->status) { - v2beta2_horizontal_pod_autoscaler_status_free(v2beta2_horizontal_pod_autoscaler->status); - v2beta2_horizontal_pod_autoscaler->status = NULL; - } - free(v2beta2_horizontal_pod_autoscaler); -} - -cJSON *v2beta2_horizontal_pod_autoscaler_convertToJSON(v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_horizontal_pod_autoscaler->api_version - if(v2beta2_horizontal_pod_autoscaler->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v2beta2_horizontal_pod_autoscaler->api_version) == NULL) { - goto fail; //String - } - } - - - // v2beta2_horizontal_pod_autoscaler->kind - if(v2beta2_horizontal_pod_autoscaler->kind) { - if(cJSON_AddStringToObject(item, "kind", v2beta2_horizontal_pod_autoscaler->kind) == NULL) { - goto fail; //String - } - } - - - // v2beta2_horizontal_pod_autoscaler->metadata - if(v2beta2_horizontal_pod_autoscaler->metadata) { - cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v2beta2_horizontal_pod_autoscaler->metadata); - if(metadata_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_horizontal_pod_autoscaler->spec - if(v2beta2_horizontal_pod_autoscaler->spec) { - cJSON *spec_local_JSON = v2beta2_horizontal_pod_autoscaler_spec_convertToJSON(v2beta2_horizontal_pod_autoscaler->spec); - if(spec_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "spec", spec_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_horizontal_pod_autoscaler->status - if(v2beta2_horizontal_pod_autoscaler->status) { - cJSON *status_local_JSON = v2beta2_horizontal_pod_autoscaler_status_convertToJSON(v2beta2_horizontal_pod_autoscaler->status); - if(status_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "status", status_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscalerJSON){ - - v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler_local_var = NULL; - - // define the local variable for v2beta2_horizontal_pod_autoscaler->metadata - v1_object_meta_t *metadata_local_nonprim = NULL; - - // define the local variable for v2beta2_horizontal_pod_autoscaler->spec - v2beta2_horizontal_pod_autoscaler_spec_t *spec_local_nonprim = NULL; - - // define the local variable for v2beta2_horizontal_pod_autoscaler->status - v2beta2_horizontal_pod_autoscaler_status_t *status_local_nonprim = NULL; - - // v2beta2_horizontal_pod_autoscaler->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscalerJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) - { - goto end; //String - } - } - - // v2beta2_horizontal_pod_autoscaler->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscalerJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) - { - goto end; //String - } - } - - // v2beta2_horizontal_pod_autoscaler->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscalerJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive - } - - // v2beta2_horizontal_pod_autoscaler->spec - cJSON *spec = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscalerJSON, "spec"); - if (spec) { - spec_local_nonprim = v2beta2_horizontal_pod_autoscaler_spec_parseFromJSON(spec); //nonprimitive - } - - // v2beta2_horizontal_pod_autoscaler->status - cJSON *status = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscalerJSON, "status"); - if (status) { - status_local_nonprim = v2beta2_horizontal_pod_autoscaler_status_parseFromJSON(status); //nonprimitive - } - - - v2beta2_horizontal_pod_autoscaler_local_var = v2beta2_horizontal_pod_autoscaler_create ( - api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, - kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL, - spec ? spec_local_nonprim : NULL, - status ? status_local_nonprim : NULL - ); - - return v2beta2_horizontal_pod_autoscaler_local_var; -end: - if (metadata_local_nonprim) { - v1_object_meta_free(metadata_local_nonprim); - metadata_local_nonprim = NULL; - } - if (spec_local_nonprim) { - v2beta2_horizontal_pod_autoscaler_spec_free(spec_local_nonprim); - spec_local_nonprim = NULL; - } - if (status_local_nonprim) { - v2beta2_horizontal_pod_autoscaler_status_free(status_local_nonprim); - status_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler.h b/kubernetes/model/v2beta2_horizontal_pod_autoscaler.h deleted file mode 100644 index 7dec9a7a..00000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * v2beta2_horizontal_pod_autoscaler.h - * - * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. - */ - -#ifndef _v2beta2_horizontal_pod_autoscaler_H_ -#define _v2beta2_horizontal_pod_autoscaler_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_horizontal_pod_autoscaler_t v2beta2_horizontal_pod_autoscaler_t; - -#include "v1_object_meta.h" -#include "v2beta2_horizontal_pod_autoscaler_spec.h" -#include "v2beta2_horizontal_pod_autoscaler_status.h" - - - -typedef struct v2beta2_horizontal_pod_autoscaler_t { - char *api_version; // string - char *kind; // string - struct v1_object_meta_t *metadata; //model - struct v2beta2_horizontal_pod_autoscaler_spec_t *spec; //model - struct v2beta2_horizontal_pod_autoscaler_status_t *status; //model - -} v2beta2_horizontal_pod_autoscaler_t; - -v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler_create( - char *api_version, - char *kind, - v1_object_meta_t *metadata, - v2beta2_horizontal_pod_autoscaler_spec_t *spec, - v2beta2_horizontal_pod_autoscaler_status_t *status -); - -void v2beta2_horizontal_pod_autoscaler_free(v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler); - -v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscalerJSON); - -cJSON *v2beta2_horizontal_pod_autoscaler_convertToJSON(v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler); - -#endif /* _v2beta2_horizontal_pod_autoscaler_H_ */ - diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_behavior.c b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_behavior.c deleted file mode 100644 index 1fd60fd3..00000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_behavior.c +++ /dev/null @@ -1,115 +0,0 @@ -#include -#include -#include -#include "v2beta2_horizontal_pod_autoscaler_behavior.h" - - - -v2beta2_horizontal_pod_autoscaler_behavior_t *v2beta2_horizontal_pod_autoscaler_behavior_create( - v2beta2_hpa_scaling_rules_t *scale_down, - v2beta2_hpa_scaling_rules_t *scale_up - ) { - v2beta2_horizontal_pod_autoscaler_behavior_t *v2beta2_horizontal_pod_autoscaler_behavior_local_var = malloc(sizeof(v2beta2_horizontal_pod_autoscaler_behavior_t)); - if (!v2beta2_horizontal_pod_autoscaler_behavior_local_var) { - return NULL; - } - v2beta2_horizontal_pod_autoscaler_behavior_local_var->scale_down = scale_down; - v2beta2_horizontal_pod_autoscaler_behavior_local_var->scale_up = scale_up; - - return v2beta2_horizontal_pod_autoscaler_behavior_local_var; -} - - -void v2beta2_horizontal_pod_autoscaler_behavior_free(v2beta2_horizontal_pod_autoscaler_behavior_t *v2beta2_horizontal_pod_autoscaler_behavior) { - if(NULL == v2beta2_horizontal_pod_autoscaler_behavior){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_horizontal_pod_autoscaler_behavior->scale_down) { - v2beta2_hpa_scaling_rules_free(v2beta2_horizontal_pod_autoscaler_behavior->scale_down); - v2beta2_horizontal_pod_autoscaler_behavior->scale_down = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_behavior->scale_up) { - v2beta2_hpa_scaling_rules_free(v2beta2_horizontal_pod_autoscaler_behavior->scale_up); - v2beta2_horizontal_pod_autoscaler_behavior->scale_up = NULL; - } - free(v2beta2_horizontal_pod_autoscaler_behavior); -} - -cJSON *v2beta2_horizontal_pod_autoscaler_behavior_convertToJSON(v2beta2_horizontal_pod_autoscaler_behavior_t *v2beta2_horizontal_pod_autoscaler_behavior) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_horizontal_pod_autoscaler_behavior->scale_down - if(v2beta2_horizontal_pod_autoscaler_behavior->scale_down) { - cJSON *scale_down_local_JSON = v2beta2_hpa_scaling_rules_convertToJSON(v2beta2_horizontal_pod_autoscaler_behavior->scale_down); - if(scale_down_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "scaleDown", scale_down_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_horizontal_pod_autoscaler_behavior->scale_up - if(v2beta2_horizontal_pod_autoscaler_behavior->scale_up) { - cJSON *scale_up_local_JSON = v2beta2_hpa_scaling_rules_convertToJSON(v2beta2_horizontal_pod_autoscaler_behavior->scale_up); - if(scale_up_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "scaleUp", scale_up_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_horizontal_pod_autoscaler_behavior_t *v2beta2_horizontal_pod_autoscaler_behavior_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscaler_behaviorJSON){ - - v2beta2_horizontal_pod_autoscaler_behavior_t *v2beta2_horizontal_pod_autoscaler_behavior_local_var = NULL; - - // define the local variable for v2beta2_horizontal_pod_autoscaler_behavior->scale_down - v2beta2_hpa_scaling_rules_t *scale_down_local_nonprim = NULL; - - // define the local variable for v2beta2_horizontal_pod_autoscaler_behavior->scale_up - v2beta2_hpa_scaling_rules_t *scale_up_local_nonprim = NULL; - - // v2beta2_horizontal_pod_autoscaler_behavior->scale_down - cJSON *scale_down = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_behaviorJSON, "scaleDown"); - if (scale_down) { - scale_down_local_nonprim = v2beta2_hpa_scaling_rules_parseFromJSON(scale_down); //nonprimitive - } - - // v2beta2_horizontal_pod_autoscaler_behavior->scale_up - cJSON *scale_up = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_behaviorJSON, "scaleUp"); - if (scale_up) { - scale_up_local_nonprim = v2beta2_hpa_scaling_rules_parseFromJSON(scale_up); //nonprimitive - } - - - v2beta2_horizontal_pod_autoscaler_behavior_local_var = v2beta2_horizontal_pod_autoscaler_behavior_create ( - scale_down ? scale_down_local_nonprim : NULL, - scale_up ? scale_up_local_nonprim : NULL - ); - - return v2beta2_horizontal_pod_autoscaler_behavior_local_var; -end: - if (scale_down_local_nonprim) { - v2beta2_hpa_scaling_rules_free(scale_down_local_nonprim); - scale_down_local_nonprim = NULL; - } - if (scale_up_local_nonprim) { - v2beta2_hpa_scaling_rules_free(scale_up_local_nonprim); - scale_up_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_behavior.h b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_behavior.h deleted file mode 100644 index d2939cd4..00000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_behavior.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * v2beta2_horizontal_pod_autoscaler_behavior.h - * - * HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). - */ - -#ifndef _v2beta2_horizontal_pod_autoscaler_behavior_H_ -#define _v2beta2_horizontal_pod_autoscaler_behavior_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_horizontal_pod_autoscaler_behavior_t v2beta2_horizontal_pod_autoscaler_behavior_t; - -#include "v2beta2_hpa_scaling_rules.h" - - - -typedef struct v2beta2_horizontal_pod_autoscaler_behavior_t { - struct v2beta2_hpa_scaling_rules_t *scale_down; //model - struct v2beta2_hpa_scaling_rules_t *scale_up; //model - -} v2beta2_horizontal_pod_autoscaler_behavior_t; - -v2beta2_horizontal_pod_autoscaler_behavior_t *v2beta2_horizontal_pod_autoscaler_behavior_create( - v2beta2_hpa_scaling_rules_t *scale_down, - v2beta2_hpa_scaling_rules_t *scale_up -); - -void v2beta2_horizontal_pod_autoscaler_behavior_free(v2beta2_horizontal_pod_autoscaler_behavior_t *v2beta2_horizontal_pod_autoscaler_behavior); - -v2beta2_horizontal_pod_autoscaler_behavior_t *v2beta2_horizontal_pod_autoscaler_behavior_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscaler_behaviorJSON); - -cJSON *v2beta2_horizontal_pod_autoscaler_behavior_convertToJSON(v2beta2_horizontal_pod_autoscaler_behavior_t *v2beta2_horizontal_pod_autoscaler_behavior); - -#endif /* _v2beta2_horizontal_pod_autoscaler_behavior_H_ */ - diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.c b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.c deleted file mode 100644 index 54d8e54d..00000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.c +++ /dev/null @@ -1,177 +0,0 @@ -#include -#include -#include -#include "v2beta2_horizontal_pod_autoscaler_condition.h" - - - -v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler_condition_create( - char *last_transition_time, - char *message, - char *reason, - char *status, - char *type - ) { - v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler_condition_local_var = malloc(sizeof(v2beta2_horizontal_pod_autoscaler_condition_t)); - if (!v2beta2_horizontal_pod_autoscaler_condition_local_var) { - return NULL; - } - v2beta2_horizontal_pod_autoscaler_condition_local_var->last_transition_time = last_transition_time; - v2beta2_horizontal_pod_autoscaler_condition_local_var->message = message; - v2beta2_horizontal_pod_autoscaler_condition_local_var->reason = reason; - v2beta2_horizontal_pod_autoscaler_condition_local_var->status = status; - v2beta2_horizontal_pod_autoscaler_condition_local_var->type = type; - - return v2beta2_horizontal_pod_autoscaler_condition_local_var; -} - - -void v2beta2_horizontal_pod_autoscaler_condition_free(v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler_condition) { - if(NULL == v2beta2_horizontal_pod_autoscaler_condition){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_horizontal_pod_autoscaler_condition->last_transition_time) { - free(v2beta2_horizontal_pod_autoscaler_condition->last_transition_time); - v2beta2_horizontal_pod_autoscaler_condition->last_transition_time = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_condition->message) { - free(v2beta2_horizontal_pod_autoscaler_condition->message); - v2beta2_horizontal_pod_autoscaler_condition->message = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_condition->reason) { - free(v2beta2_horizontal_pod_autoscaler_condition->reason); - v2beta2_horizontal_pod_autoscaler_condition->reason = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_condition->status) { - free(v2beta2_horizontal_pod_autoscaler_condition->status); - v2beta2_horizontal_pod_autoscaler_condition->status = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_condition->type) { - free(v2beta2_horizontal_pod_autoscaler_condition->type); - v2beta2_horizontal_pod_autoscaler_condition->type = NULL; - } - free(v2beta2_horizontal_pod_autoscaler_condition); -} - -cJSON *v2beta2_horizontal_pod_autoscaler_condition_convertToJSON(v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler_condition) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_horizontal_pod_autoscaler_condition->last_transition_time - if(v2beta2_horizontal_pod_autoscaler_condition->last_transition_time) { - if(cJSON_AddStringToObject(item, "lastTransitionTime", v2beta2_horizontal_pod_autoscaler_condition->last_transition_time) == NULL) { - goto fail; //Date-Time - } - } - - - // v2beta2_horizontal_pod_autoscaler_condition->message - if(v2beta2_horizontal_pod_autoscaler_condition->message) { - if(cJSON_AddStringToObject(item, "message", v2beta2_horizontal_pod_autoscaler_condition->message) == NULL) { - goto fail; //String - } - } - - - // v2beta2_horizontal_pod_autoscaler_condition->reason - if(v2beta2_horizontal_pod_autoscaler_condition->reason) { - if(cJSON_AddStringToObject(item, "reason", v2beta2_horizontal_pod_autoscaler_condition->reason) == NULL) { - goto fail; //String - } - } - - - // v2beta2_horizontal_pod_autoscaler_condition->status - if (!v2beta2_horizontal_pod_autoscaler_condition->status) { - goto fail; - } - if(cJSON_AddStringToObject(item, "status", v2beta2_horizontal_pod_autoscaler_condition->status) == NULL) { - goto fail; //String - } - - - // v2beta2_horizontal_pod_autoscaler_condition->type - if (!v2beta2_horizontal_pod_autoscaler_condition->type) { - goto fail; - } - if(cJSON_AddStringToObject(item, "type", v2beta2_horizontal_pod_autoscaler_condition->type) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler_condition_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscaler_conditionJSON){ - - v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler_condition_local_var = NULL; - - // v2beta2_horizontal_pod_autoscaler_condition->last_transition_time - cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_conditionJSON, "lastTransitionTime"); - if (last_transition_time) { - if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) - { - goto end; //DateTime - } - } - - // v2beta2_horizontal_pod_autoscaler_condition->message - cJSON *message = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_conditionJSON, "message"); - if (message) { - if(!cJSON_IsString(message) && !cJSON_IsNull(message)) - { - goto end; //String - } - } - - // v2beta2_horizontal_pod_autoscaler_condition->reason - cJSON *reason = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_conditionJSON, "reason"); - if (reason) { - if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) - { - goto end; //String - } - } - - // v2beta2_horizontal_pod_autoscaler_condition->status - cJSON *status = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_conditionJSON, "status"); - if (!status) { - goto end; - } - - - if(!cJSON_IsString(status)) - { - goto end; //String - } - - // v2beta2_horizontal_pod_autoscaler_condition->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_conditionJSON, "type"); - if (!type) { - goto end; - } - - - if(!cJSON_IsString(type)) - { - goto end; //String - } - - - v2beta2_horizontal_pod_autoscaler_condition_local_var = v2beta2_horizontal_pod_autoscaler_condition_create ( - last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, - reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, - strdup(status->valuestring), - strdup(type->valuestring) - ); - - return v2beta2_horizontal_pod_autoscaler_condition_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.h b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.h deleted file mode 100644 index 33876172..00000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v2beta2_horizontal_pod_autoscaler_condition.h - * - * HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point. - */ - -#ifndef _v2beta2_horizontal_pod_autoscaler_condition_H_ -#define _v2beta2_horizontal_pod_autoscaler_condition_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_horizontal_pod_autoscaler_condition_t v2beta2_horizontal_pod_autoscaler_condition_t; - - - - -typedef struct v2beta2_horizontal_pod_autoscaler_condition_t { - char *last_transition_time; //date time - char *message; // string - char *reason; // string - char *status; // string - char *type; // string - -} v2beta2_horizontal_pod_autoscaler_condition_t; - -v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler_condition_create( - char *last_transition_time, - char *message, - char *reason, - char *status, - char *type -); - -void v2beta2_horizontal_pod_autoscaler_condition_free(v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler_condition); - -v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler_condition_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscaler_conditionJSON); - -cJSON *v2beta2_horizontal_pod_autoscaler_condition_convertToJSON(v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler_condition); - -#endif /* _v2beta2_horizontal_pod_autoscaler_condition_H_ */ - diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_list.c b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_list.c deleted file mode 100644 index a8467fbf..00000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_list.c +++ /dev/null @@ -1,197 +0,0 @@ -#include -#include -#include -#include "v2beta2_horizontal_pod_autoscaler_list.h" - - - -v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata - ) { - v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list_local_var = malloc(sizeof(v2beta2_horizontal_pod_autoscaler_list_t)); - if (!v2beta2_horizontal_pod_autoscaler_list_local_var) { - return NULL; - } - v2beta2_horizontal_pod_autoscaler_list_local_var->api_version = api_version; - v2beta2_horizontal_pod_autoscaler_list_local_var->items = items; - v2beta2_horizontal_pod_autoscaler_list_local_var->kind = kind; - v2beta2_horizontal_pod_autoscaler_list_local_var->metadata = metadata; - - return v2beta2_horizontal_pod_autoscaler_list_local_var; -} - - -void v2beta2_horizontal_pod_autoscaler_list_free(v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list) { - if(NULL == v2beta2_horizontal_pod_autoscaler_list){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_horizontal_pod_autoscaler_list->api_version) { - free(v2beta2_horizontal_pod_autoscaler_list->api_version); - v2beta2_horizontal_pod_autoscaler_list->api_version = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_list->items) { - list_ForEach(listEntry, v2beta2_horizontal_pod_autoscaler_list->items) { - v2beta2_horizontal_pod_autoscaler_free(listEntry->data); - } - list_freeList(v2beta2_horizontal_pod_autoscaler_list->items); - v2beta2_horizontal_pod_autoscaler_list->items = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_list->kind) { - free(v2beta2_horizontal_pod_autoscaler_list->kind); - v2beta2_horizontal_pod_autoscaler_list->kind = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_list->metadata) { - v1_list_meta_free(v2beta2_horizontal_pod_autoscaler_list->metadata); - v2beta2_horizontal_pod_autoscaler_list->metadata = NULL; - } - free(v2beta2_horizontal_pod_autoscaler_list); -} - -cJSON *v2beta2_horizontal_pod_autoscaler_list_convertToJSON(v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_horizontal_pod_autoscaler_list->api_version - if(v2beta2_horizontal_pod_autoscaler_list->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v2beta2_horizontal_pod_autoscaler_list->api_version) == NULL) { - goto fail; //String - } - } - - - // v2beta2_horizontal_pod_autoscaler_list->items - if (!v2beta2_horizontal_pod_autoscaler_list->items) { - goto fail; - } - cJSON *items = cJSON_AddArrayToObject(item, "items"); - if(items == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *itemsListEntry; - if (v2beta2_horizontal_pod_autoscaler_list->items) { - list_ForEach(itemsListEntry, v2beta2_horizontal_pod_autoscaler_list->items) { - cJSON *itemLocal = v2beta2_horizontal_pod_autoscaler_convertToJSON(itemsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(items, itemLocal); - } - } - - - // v2beta2_horizontal_pod_autoscaler_list->kind - if(v2beta2_horizontal_pod_autoscaler_list->kind) { - if(cJSON_AddStringToObject(item, "kind", v2beta2_horizontal_pod_autoscaler_list->kind) == NULL) { - goto fail; //String - } - } - - - // v2beta2_horizontal_pod_autoscaler_list->metadata - if(v2beta2_horizontal_pod_autoscaler_list->metadata) { - cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v2beta2_horizontal_pod_autoscaler_list->metadata); - if(metadata_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscaler_listJSON){ - - v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list_local_var = NULL; - - // define the local list for v2beta2_horizontal_pod_autoscaler_list->items - list_t *itemsList = NULL; - - // define the local variable for v2beta2_horizontal_pod_autoscaler_list->metadata - v1_list_meta_t *metadata_local_nonprim = NULL; - - // v2beta2_horizontal_pod_autoscaler_list->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_listJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) - { - goto end; //String - } - } - - // v2beta2_horizontal_pod_autoscaler_list->items - cJSON *items = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_listJSON, "items"); - if (!items) { - goto end; - } - - - cJSON *items_local_nonprimitive = NULL; - if(!cJSON_IsArray(items)){ - goto end; //nonprimitive container - } - - itemsList = list_createList(); - - cJSON_ArrayForEach(items_local_nonprimitive,items ) - { - if(!cJSON_IsObject(items_local_nonprimitive)){ - goto end; - } - v2beta2_horizontal_pod_autoscaler_t *itemsItem = v2beta2_horizontal_pod_autoscaler_parseFromJSON(items_local_nonprimitive); - - list_addElement(itemsList, itemsItem); - } - - // v2beta2_horizontal_pod_autoscaler_list->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_listJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) - { - goto end; //String - } - } - - // v2beta2_horizontal_pod_autoscaler_list->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_listJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive - } - - - v2beta2_horizontal_pod_autoscaler_list_local_var = v2beta2_horizontal_pod_autoscaler_list_create ( - api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, - itemsList, - kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL - ); - - return v2beta2_horizontal_pod_autoscaler_list_local_var; -end: - if (itemsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, itemsList) { - v2beta2_horizontal_pod_autoscaler_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(itemsList); - itemsList = NULL; - } - if (metadata_local_nonprim) { - v1_list_meta_free(metadata_local_nonprim); - metadata_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_list.h b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_list.h deleted file mode 100644 index 004594e7..00000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_list.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v2beta2_horizontal_pod_autoscaler_list.h - * - * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. - */ - -#ifndef _v2beta2_horizontal_pod_autoscaler_list_H_ -#define _v2beta2_horizontal_pod_autoscaler_list_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_horizontal_pod_autoscaler_list_t v2beta2_horizontal_pod_autoscaler_list_t; - -#include "v1_list_meta.h" -#include "v2beta2_horizontal_pod_autoscaler.h" - - - -typedef struct v2beta2_horizontal_pod_autoscaler_list_t { - char *api_version; // string - list_t *items; //nonprimitive container - char *kind; // string - struct v1_list_meta_t *metadata; //model - -} v2beta2_horizontal_pod_autoscaler_list_t; - -v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata -); - -void v2beta2_horizontal_pod_autoscaler_list_free(v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list); - -v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscaler_listJSON); - -cJSON *v2beta2_horizontal_pod_autoscaler_list_convertToJSON(v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list); - -#endif /* _v2beta2_horizontal_pod_autoscaler_list_H_ */ - diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_spec.c b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_spec.c deleted file mode 100644 index 7f4264c8..00000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_spec.c +++ /dev/null @@ -1,226 +0,0 @@ -#include -#include -#include -#include "v2beta2_horizontal_pod_autoscaler_spec.h" - - - -v2beta2_horizontal_pod_autoscaler_spec_t *v2beta2_horizontal_pod_autoscaler_spec_create( - v2beta2_horizontal_pod_autoscaler_behavior_t *behavior, - int max_replicas, - list_t *metrics, - int min_replicas, - v2beta2_cross_version_object_reference_t *scale_target_ref - ) { - v2beta2_horizontal_pod_autoscaler_spec_t *v2beta2_horizontal_pod_autoscaler_spec_local_var = malloc(sizeof(v2beta2_horizontal_pod_autoscaler_spec_t)); - if (!v2beta2_horizontal_pod_autoscaler_spec_local_var) { - return NULL; - } - v2beta2_horizontal_pod_autoscaler_spec_local_var->behavior = behavior; - v2beta2_horizontal_pod_autoscaler_spec_local_var->max_replicas = max_replicas; - v2beta2_horizontal_pod_autoscaler_spec_local_var->metrics = metrics; - v2beta2_horizontal_pod_autoscaler_spec_local_var->min_replicas = min_replicas; - v2beta2_horizontal_pod_autoscaler_spec_local_var->scale_target_ref = scale_target_ref; - - return v2beta2_horizontal_pod_autoscaler_spec_local_var; -} - - -void v2beta2_horizontal_pod_autoscaler_spec_free(v2beta2_horizontal_pod_autoscaler_spec_t *v2beta2_horizontal_pod_autoscaler_spec) { - if(NULL == v2beta2_horizontal_pod_autoscaler_spec){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_horizontal_pod_autoscaler_spec->behavior) { - v2beta2_horizontal_pod_autoscaler_behavior_free(v2beta2_horizontal_pod_autoscaler_spec->behavior); - v2beta2_horizontal_pod_autoscaler_spec->behavior = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_spec->metrics) { - list_ForEach(listEntry, v2beta2_horizontal_pod_autoscaler_spec->metrics) { - v2beta2_metric_spec_free(listEntry->data); - } - list_freeList(v2beta2_horizontal_pod_autoscaler_spec->metrics); - v2beta2_horizontal_pod_autoscaler_spec->metrics = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_spec->scale_target_ref) { - v2beta2_cross_version_object_reference_free(v2beta2_horizontal_pod_autoscaler_spec->scale_target_ref); - v2beta2_horizontal_pod_autoscaler_spec->scale_target_ref = NULL; - } - free(v2beta2_horizontal_pod_autoscaler_spec); -} - -cJSON *v2beta2_horizontal_pod_autoscaler_spec_convertToJSON(v2beta2_horizontal_pod_autoscaler_spec_t *v2beta2_horizontal_pod_autoscaler_spec) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_horizontal_pod_autoscaler_spec->behavior - if(v2beta2_horizontal_pod_autoscaler_spec->behavior) { - cJSON *behavior_local_JSON = v2beta2_horizontal_pod_autoscaler_behavior_convertToJSON(v2beta2_horizontal_pod_autoscaler_spec->behavior); - if(behavior_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "behavior", behavior_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_horizontal_pod_autoscaler_spec->max_replicas - if (!v2beta2_horizontal_pod_autoscaler_spec->max_replicas) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "maxReplicas", v2beta2_horizontal_pod_autoscaler_spec->max_replicas) == NULL) { - goto fail; //Numeric - } - - - // v2beta2_horizontal_pod_autoscaler_spec->metrics - if(v2beta2_horizontal_pod_autoscaler_spec->metrics) { - cJSON *metrics = cJSON_AddArrayToObject(item, "metrics"); - if(metrics == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *metricsListEntry; - if (v2beta2_horizontal_pod_autoscaler_spec->metrics) { - list_ForEach(metricsListEntry, v2beta2_horizontal_pod_autoscaler_spec->metrics) { - cJSON *itemLocal = v2beta2_metric_spec_convertToJSON(metricsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(metrics, itemLocal); - } - } - } - - - // v2beta2_horizontal_pod_autoscaler_spec->min_replicas - if(v2beta2_horizontal_pod_autoscaler_spec->min_replicas) { - if(cJSON_AddNumberToObject(item, "minReplicas", v2beta2_horizontal_pod_autoscaler_spec->min_replicas) == NULL) { - goto fail; //Numeric - } - } - - - // v2beta2_horizontal_pod_autoscaler_spec->scale_target_ref - if (!v2beta2_horizontal_pod_autoscaler_spec->scale_target_ref) { - goto fail; - } - cJSON *scale_target_ref_local_JSON = v2beta2_cross_version_object_reference_convertToJSON(v2beta2_horizontal_pod_autoscaler_spec->scale_target_ref); - if(scale_target_ref_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "scaleTargetRef", scale_target_ref_local_JSON); - if(item->child == NULL) { - goto fail; - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_horizontal_pod_autoscaler_spec_t *v2beta2_horizontal_pod_autoscaler_spec_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscaler_specJSON){ - - v2beta2_horizontal_pod_autoscaler_spec_t *v2beta2_horizontal_pod_autoscaler_spec_local_var = NULL; - - // define the local variable for v2beta2_horizontal_pod_autoscaler_spec->behavior - v2beta2_horizontal_pod_autoscaler_behavior_t *behavior_local_nonprim = NULL; - - // define the local list for v2beta2_horizontal_pod_autoscaler_spec->metrics - list_t *metricsList = NULL; - - // define the local variable for v2beta2_horizontal_pod_autoscaler_spec->scale_target_ref - v2beta2_cross_version_object_reference_t *scale_target_ref_local_nonprim = NULL; - - // v2beta2_horizontal_pod_autoscaler_spec->behavior - cJSON *behavior = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_specJSON, "behavior"); - if (behavior) { - behavior_local_nonprim = v2beta2_horizontal_pod_autoscaler_behavior_parseFromJSON(behavior); //nonprimitive - } - - // v2beta2_horizontal_pod_autoscaler_spec->max_replicas - cJSON *max_replicas = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_specJSON, "maxReplicas"); - if (!max_replicas) { - goto end; - } - - - if(!cJSON_IsNumber(max_replicas)) - { - goto end; //Numeric - } - - // v2beta2_horizontal_pod_autoscaler_spec->metrics - cJSON *metrics = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_specJSON, "metrics"); - if (metrics) { - cJSON *metrics_local_nonprimitive = NULL; - if(!cJSON_IsArray(metrics)){ - goto end; //nonprimitive container - } - - metricsList = list_createList(); - - cJSON_ArrayForEach(metrics_local_nonprimitive,metrics ) - { - if(!cJSON_IsObject(metrics_local_nonprimitive)){ - goto end; - } - v2beta2_metric_spec_t *metricsItem = v2beta2_metric_spec_parseFromJSON(metrics_local_nonprimitive); - - list_addElement(metricsList, metricsItem); - } - } - - // v2beta2_horizontal_pod_autoscaler_spec->min_replicas - cJSON *min_replicas = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_specJSON, "minReplicas"); - if (min_replicas) { - if(!cJSON_IsNumber(min_replicas)) - { - goto end; //Numeric - } - } - - // v2beta2_horizontal_pod_autoscaler_spec->scale_target_ref - cJSON *scale_target_ref = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_specJSON, "scaleTargetRef"); - if (!scale_target_ref) { - goto end; - } - - - scale_target_ref_local_nonprim = v2beta2_cross_version_object_reference_parseFromJSON(scale_target_ref); //nonprimitive - - - v2beta2_horizontal_pod_autoscaler_spec_local_var = v2beta2_horizontal_pod_autoscaler_spec_create ( - behavior ? behavior_local_nonprim : NULL, - max_replicas->valuedouble, - metrics ? metricsList : NULL, - min_replicas ? min_replicas->valuedouble : 0, - scale_target_ref_local_nonprim - ); - - return v2beta2_horizontal_pod_autoscaler_spec_local_var; -end: - if (behavior_local_nonprim) { - v2beta2_horizontal_pod_autoscaler_behavior_free(behavior_local_nonprim); - behavior_local_nonprim = NULL; - } - if (metricsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, metricsList) { - v2beta2_metric_spec_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(metricsList); - metricsList = NULL; - } - if (scale_target_ref_local_nonprim) { - v2beta2_cross_version_object_reference_free(scale_target_ref_local_nonprim); - scale_target_ref_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_spec.h b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_spec.h deleted file mode 100644 index e24652ca..00000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_spec.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * v2beta2_horizontal_pod_autoscaler_spec.h - * - * HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. - */ - -#ifndef _v2beta2_horizontal_pod_autoscaler_spec_H_ -#define _v2beta2_horizontal_pod_autoscaler_spec_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_horizontal_pod_autoscaler_spec_t v2beta2_horizontal_pod_autoscaler_spec_t; - -#include "v2beta2_cross_version_object_reference.h" -#include "v2beta2_horizontal_pod_autoscaler_behavior.h" -#include "v2beta2_metric_spec.h" - - - -typedef struct v2beta2_horizontal_pod_autoscaler_spec_t { - struct v2beta2_horizontal_pod_autoscaler_behavior_t *behavior; //model - int max_replicas; //numeric - list_t *metrics; //nonprimitive container - int min_replicas; //numeric - struct v2beta2_cross_version_object_reference_t *scale_target_ref; //model - -} v2beta2_horizontal_pod_autoscaler_spec_t; - -v2beta2_horizontal_pod_autoscaler_spec_t *v2beta2_horizontal_pod_autoscaler_spec_create( - v2beta2_horizontal_pod_autoscaler_behavior_t *behavior, - int max_replicas, - list_t *metrics, - int min_replicas, - v2beta2_cross_version_object_reference_t *scale_target_ref -); - -void v2beta2_horizontal_pod_autoscaler_spec_free(v2beta2_horizontal_pod_autoscaler_spec_t *v2beta2_horizontal_pod_autoscaler_spec); - -v2beta2_horizontal_pod_autoscaler_spec_t *v2beta2_horizontal_pod_autoscaler_spec_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscaler_specJSON); - -cJSON *v2beta2_horizontal_pod_autoscaler_spec_convertToJSON(v2beta2_horizontal_pod_autoscaler_spec_t *v2beta2_horizontal_pod_autoscaler_spec); - -#endif /* _v2beta2_horizontal_pod_autoscaler_spec_H_ */ - diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_status.c b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_status.c deleted file mode 100644 index 590aea97..00000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_status.c +++ /dev/null @@ -1,267 +0,0 @@ -#include -#include -#include -#include "v2beta2_horizontal_pod_autoscaler_status.h" - - - -v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_status_create( - list_t *conditions, - list_t *current_metrics, - int current_replicas, - int desired_replicas, - char *last_scale_time, - long observed_generation - ) { - v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_status_local_var = malloc(sizeof(v2beta2_horizontal_pod_autoscaler_status_t)); - if (!v2beta2_horizontal_pod_autoscaler_status_local_var) { - return NULL; - } - v2beta2_horizontal_pod_autoscaler_status_local_var->conditions = conditions; - v2beta2_horizontal_pod_autoscaler_status_local_var->current_metrics = current_metrics; - v2beta2_horizontal_pod_autoscaler_status_local_var->current_replicas = current_replicas; - v2beta2_horizontal_pod_autoscaler_status_local_var->desired_replicas = desired_replicas; - v2beta2_horizontal_pod_autoscaler_status_local_var->last_scale_time = last_scale_time; - v2beta2_horizontal_pod_autoscaler_status_local_var->observed_generation = observed_generation; - - return v2beta2_horizontal_pod_autoscaler_status_local_var; -} - - -void v2beta2_horizontal_pod_autoscaler_status_free(v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_status) { - if(NULL == v2beta2_horizontal_pod_autoscaler_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_horizontal_pod_autoscaler_status->conditions) { - list_ForEach(listEntry, v2beta2_horizontal_pod_autoscaler_status->conditions) { - v2beta2_horizontal_pod_autoscaler_condition_free(listEntry->data); - } - list_freeList(v2beta2_horizontal_pod_autoscaler_status->conditions); - v2beta2_horizontal_pod_autoscaler_status->conditions = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_status->current_metrics) { - list_ForEach(listEntry, v2beta2_horizontal_pod_autoscaler_status->current_metrics) { - v2beta2_metric_status_free(listEntry->data); - } - list_freeList(v2beta2_horizontal_pod_autoscaler_status->current_metrics); - v2beta2_horizontal_pod_autoscaler_status->current_metrics = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_status->last_scale_time) { - free(v2beta2_horizontal_pod_autoscaler_status->last_scale_time); - v2beta2_horizontal_pod_autoscaler_status->last_scale_time = NULL; - } - free(v2beta2_horizontal_pod_autoscaler_status); -} - -cJSON *v2beta2_horizontal_pod_autoscaler_status_convertToJSON(v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_horizontal_pod_autoscaler_status->conditions - if(v2beta2_horizontal_pod_autoscaler_status->conditions) { - cJSON *conditions = cJSON_AddArrayToObject(item, "conditions"); - if(conditions == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *conditionsListEntry; - if (v2beta2_horizontal_pod_autoscaler_status->conditions) { - list_ForEach(conditionsListEntry, v2beta2_horizontal_pod_autoscaler_status->conditions) { - cJSON *itemLocal = v2beta2_horizontal_pod_autoscaler_condition_convertToJSON(conditionsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(conditions, itemLocal); - } - } - } - - - // v2beta2_horizontal_pod_autoscaler_status->current_metrics - if(v2beta2_horizontal_pod_autoscaler_status->current_metrics) { - cJSON *current_metrics = cJSON_AddArrayToObject(item, "currentMetrics"); - if(current_metrics == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *current_metricsListEntry; - if (v2beta2_horizontal_pod_autoscaler_status->current_metrics) { - list_ForEach(current_metricsListEntry, v2beta2_horizontal_pod_autoscaler_status->current_metrics) { - cJSON *itemLocal = v2beta2_metric_status_convertToJSON(current_metricsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(current_metrics, itemLocal); - } - } - } - - - // v2beta2_horizontal_pod_autoscaler_status->current_replicas - if (!v2beta2_horizontal_pod_autoscaler_status->current_replicas) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "currentReplicas", v2beta2_horizontal_pod_autoscaler_status->current_replicas) == NULL) { - goto fail; //Numeric - } - - - // v2beta2_horizontal_pod_autoscaler_status->desired_replicas - if (!v2beta2_horizontal_pod_autoscaler_status->desired_replicas) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "desiredReplicas", v2beta2_horizontal_pod_autoscaler_status->desired_replicas) == NULL) { - goto fail; //Numeric - } - - - // v2beta2_horizontal_pod_autoscaler_status->last_scale_time - if(v2beta2_horizontal_pod_autoscaler_status->last_scale_time) { - if(cJSON_AddStringToObject(item, "lastScaleTime", v2beta2_horizontal_pod_autoscaler_status->last_scale_time) == NULL) { - goto fail; //Date-Time - } - } - - - // v2beta2_horizontal_pod_autoscaler_status->observed_generation - if(v2beta2_horizontal_pod_autoscaler_status->observed_generation) { - if(cJSON_AddNumberToObject(item, "observedGeneration", v2beta2_horizontal_pod_autoscaler_status->observed_generation) == NULL) { - goto fail; //Numeric - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_status_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscaler_statusJSON){ - - v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_status_local_var = NULL; - - // define the local list for v2beta2_horizontal_pod_autoscaler_status->conditions - list_t *conditionsList = NULL; - - // define the local list for v2beta2_horizontal_pod_autoscaler_status->current_metrics - list_t *current_metricsList = NULL; - - // v2beta2_horizontal_pod_autoscaler_status->conditions - cJSON *conditions = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_statusJSON, "conditions"); - if (conditions) { - cJSON *conditions_local_nonprimitive = NULL; - if(!cJSON_IsArray(conditions)){ - goto end; //nonprimitive container - } - - conditionsList = list_createList(); - - cJSON_ArrayForEach(conditions_local_nonprimitive,conditions ) - { - if(!cJSON_IsObject(conditions_local_nonprimitive)){ - goto end; - } - v2beta2_horizontal_pod_autoscaler_condition_t *conditionsItem = v2beta2_horizontal_pod_autoscaler_condition_parseFromJSON(conditions_local_nonprimitive); - - list_addElement(conditionsList, conditionsItem); - } - } - - // v2beta2_horizontal_pod_autoscaler_status->current_metrics - cJSON *current_metrics = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_statusJSON, "currentMetrics"); - if (current_metrics) { - cJSON *current_metrics_local_nonprimitive = NULL; - if(!cJSON_IsArray(current_metrics)){ - goto end; //nonprimitive container - } - - current_metricsList = list_createList(); - - cJSON_ArrayForEach(current_metrics_local_nonprimitive,current_metrics ) - { - if(!cJSON_IsObject(current_metrics_local_nonprimitive)){ - goto end; - } - v2beta2_metric_status_t *current_metricsItem = v2beta2_metric_status_parseFromJSON(current_metrics_local_nonprimitive); - - list_addElement(current_metricsList, current_metricsItem); - } - } - - // v2beta2_horizontal_pod_autoscaler_status->current_replicas - cJSON *current_replicas = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_statusJSON, "currentReplicas"); - if (!current_replicas) { - goto end; - } - - - if(!cJSON_IsNumber(current_replicas)) - { - goto end; //Numeric - } - - // v2beta2_horizontal_pod_autoscaler_status->desired_replicas - cJSON *desired_replicas = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_statusJSON, "desiredReplicas"); - if (!desired_replicas) { - goto end; - } - - - if(!cJSON_IsNumber(desired_replicas)) - { - goto end; //Numeric - } - - // v2beta2_horizontal_pod_autoscaler_status->last_scale_time - cJSON *last_scale_time = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_statusJSON, "lastScaleTime"); - if (last_scale_time) { - if(!cJSON_IsString(last_scale_time) && !cJSON_IsNull(last_scale_time)) - { - goto end; //DateTime - } - } - - // v2beta2_horizontal_pod_autoscaler_status->observed_generation - cJSON *observed_generation = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_statusJSON, "observedGeneration"); - if (observed_generation) { - if(!cJSON_IsNumber(observed_generation)) - { - goto end; //Numeric - } - } - - - v2beta2_horizontal_pod_autoscaler_status_local_var = v2beta2_horizontal_pod_autoscaler_status_create ( - conditions ? conditionsList : NULL, - current_metrics ? current_metricsList : NULL, - current_replicas->valuedouble, - desired_replicas->valuedouble, - last_scale_time && !cJSON_IsNull(last_scale_time) ? strdup(last_scale_time->valuestring) : NULL, - observed_generation ? observed_generation->valuedouble : 0 - ); - - return v2beta2_horizontal_pod_autoscaler_status_local_var; -end: - if (conditionsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, conditionsList) { - v2beta2_horizontal_pod_autoscaler_condition_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(conditionsList); - conditionsList = NULL; - } - if (current_metricsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, current_metricsList) { - v2beta2_metric_status_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(current_metricsList); - current_metricsList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_status.h b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_status.h deleted file mode 100644 index 0122d5fc..00000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_status.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * v2beta2_horizontal_pod_autoscaler_status.h - * - * HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. - */ - -#ifndef _v2beta2_horizontal_pod_autoscaler_status_H_ -#define _v2beta2_horizontal_pod_autoscaler_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_horizontal_pod_autoscaler_status_t v2beta2_horizontal_pod_autoscaler_status_t; - -#include "v2beta2_horizontal_pod_autoscaler_condition.h" -#include "v2beta2_metric_status.h" - - - -typedef struct v2beta2_horizontal_pod_autoscaler_status_t { - list_t *conditions; //nonprimitive container - list_t *current_metrics; //nonprimitive container - int current_replicas; //numeric - int desired_replicas; //numeric - char *last_scale_time; //date time - long observed_generation; //numeric - -} v2beta2_horizontal_pod_autoscaler_status_t; - -v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_status_create( - list_t *conditions, - list_t *current_metrics, - int current_replicas, - int desired_replicas, - char *last_scale_time, - long observed_generation -); - -void v2beta2_horizontal_pod_autoscaler_status_free(v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_status); - -v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_status_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscaler_statusJSON); - -cJSON *v2beta2_horizontal_pod_autoscaler_status_convertToJSON(v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_status); - -#endif /* _v2beta2_horizontal_pod_autoscaler_status_H_ */ - diff --git a/kubernetes/model/v2beta2_hpa_scaling_policy.c b/kubernetes/model/v2beta2_hpa_scaling_policy.c deleted file mode 100644 index 259c5768..00000000 --- a/kubernetes/model/v2beta2_hpa_scaling_policy.c +++ /dev/null @@ -1,125 +0,0 @@ -#include -#include -#include -#include "v2beta2_hpa_scaling_policy.h" - - - -v2beta2_hpa_scaling_policy_t *v2beta2_hpa_scaling_policy_create( - int period_seconds, - char *type, - int value - ) { - v2beta2_hpa_scaling_policy_t *v2beta2_hpa_scaling_policy_local_var = malloc(sizeof(v2beta2_hpa_scaling_policy_t)); - if (!v2beta2_hpa_scaling_policy_local_var) { - return NULL; - } - v2beta2_hpa_scaling_policy_local_var->period_seconds = period_seconds; - v2beta2_hpa_scaling_policy_local_var->type = type; - v2beta2_hpa_scaling_policy_local_var->value = value; - - return v2beta2_hpa_scaling_policy_local_var; -} - - -void v2beta2_hpa_scaling_policy_free(v2beta2_hpa_scaling_policy_t *v2beta2_hpa_scaling_policy) { - if(NULL == v2beta2_hpa_scaling_policy){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_hpa_scaling_policy->type) { - free(v2beta2_hpa_scaling_policy->type); - v2beta2_hpa_scaling_policy->type = NULL; - } - free(v2beta2_hpa_scaling_policy); -} - -cJSON *v2beta2_hpa_scaling_policy_convertToJSON(v2beta2_hpa_scaling_policy_t *v2beta2_hpa_scaling_policy) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_hpa_scaling_policy->period_seconds - if (!v2beta2_hpa_scaling_policy->period_seconds) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "periodSeconds", v2beta2_hpa_scaling_policy->period_seconds) == NULL) { - goto fail; //Numeric - } - - - // v2beta2_hpa_scaling_policy->type - if (!v2beta2_hpa_scaling_policy->type) { - goto fail; - } - if(cJSON_AddStringToObject(item, "type", v2beta2_hpa_scaling_policy->type) == NULL) { - goto fail; //String - } - - - // v2beta2_hpa_scaling_policy->value - if (!v2beta2_hpa_scaling_policy->value) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "value", v2beta2_hpa_scaling_policy->value) == NULL) { - goto fail; //Numeric - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_hpa_scaling_policy_t *v2beta2_hpa_scaling_policy_parseFromJSON(cJSON *v2beta2_hpa_scaling_policyJSON){ - - v2beta2_hpa_scaling_policy_t *v2beta2_hpa_scaling_policy_local_var = NULL; - - // v2beta2_hpa_scaling_policy->period_seconds - cJSON *period_seconds = cJSON_GetObjectItemCaseSensitive(v2beta2_hpa_scaling_policyJSON, "periodSeconds"); - if (!period_seconds) { - goto end; - } - - - if(!cJSON_IsNumber(period_seconds)) - { - goto end; //Numeric - } - - // v2beta2_hpa_scaling_policy->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v2beta2_hpa_scaling_policyJSON, "type"); - if (!type) { - goto end; - } - - - if(!cJSON_IsString(type)) - { - goto end; //String - } - - // v2beta2_hpa_scaling_policy->value - cJSON *value = cJSON_GetObjectItemCaseSensitive(v2beta2_hpa_scaling_policyJSON, "value"); - if (!value) { - goto end; - } - - - if(!cJSON_IsNumber(value)) - { - goto end; //Numeric - } - - - v2beta2_hpa_scaling_policy_local_var = v2beta2_hpa_scaling_policy_create ( - period_seconds->valuedouble, - strdup(type->valuestring), - value->valuedouble - ); - - return v2beta2_hpa_scaling_policy_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v2beta2_hpa_scaling_policy.h b/kubernetes/model/v2beta2_hpa_scaling_policy.h deleted file mode 100644 index 82a4c255..00000000 --- a/kubernetes/model/v2beta2_hpa_scaling_policy.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v2beta2_hpa_scaling_policy.h - * - * HPAScalingPolicy is a single policy which must hold true for a specified past interval. - */ - -#ifndef _v2beta2_hpa_scaling_policy_H_ -#define _v2beta2_hpa_scaling_policy_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_hpa_scaling_policy_t v2beta2_hpa_scaling_policy_t; - - - - -typedef struct v2beta2_hpa_scaling_policy_t { - int period_seconds; //numeric - char *type; // string - int value; //numeric - -} v2beta2_hpa_scaling_policy_t; - -v2beta2_hpa_scaling_policy_t *v2beta2_hpa_scaling_policy_create( - int period_seconds, - char *type, - int value -); - -void v2beta2_hpa_scaling_policy_free(v2beta2_hpa_scaling_policy_t *v2beta2_hpa_scaling_policy); - -v2beta2_hpa_scaling_policy_t *v2beta2_hpa_scaling_policy_parseFromJSON(cJSON *v2beta2_hpa_scaling_policyJSON); - -cJSON *v2beta2_hpa_scaling_policy_convertToJSON(v2beta2_hpa_scaling_policy_t *v2beta2_hpa_scaling_policy); - -#endif /* _v2beta2_hpa_scaling_policy_H_ */ - diff --git a/kubernetes/model/v2beta2_hpa_scaling_rules.c b/kubernetes/model/v2beta2_hpa_scaling_rules.c deleted file mode 100644 index 24f238cf..00000000 --- a/kubernetes/model/v2beta2_hpa_scaling_rules.c +++ /dev/null @@ -1,156 +0,0 @@ -#include -#include -#include -#include "v2beta2_hpa_scaling_rules.h" - - - -v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules_create( - list_t *policies, - char *select_policy, - int stabilization_window_seconds - ) { - v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules_local_var = malloc(sizeof(v2beta2_hpa_scaling_rules_t)); - if (!v2beta2_hpa_scaling_rules_local_var) { - return NULL; - } - v2beta2_hpa_scaling_rules_local_var->policies = policies; - v2beta2_hpa_scaling_rules_local_var->select_policy = select_policy; - v2beta2_hpa_scaling_rules_local_var->stabilization_window_seconds = stabilization_window_seconds; - - return v2beta2_hpa_scaling_rules_local_var; -} - - -void v2beta2_hpa_scaling_rules_free(v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules) { - if(NULL == v2beta2_hpa_scaling_rules){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_hpa_scaling_rules->policies) { - list_ForEach(listEntry, v2beta2_hpa_scaling_rules->policies) { - v2beta2_hpa_scaling_policy_free(listEntry->data); - } - list_freeList(v2beta2_hpa_scaling_rules->policies); - v2beta2_hpa_scaling_rules->policies = NULL; - } - if (v2beta2_hpa_scaling_rules->select_policy) { - free(v2beta2_hpa_scaling_rules->select_policy); - v2beta2_hpa_scaling_rules->select_policy = NULL; - } - free(v2beta2_hpa_scaling_rules); -} - -cJSON *v2beta2_hpa_scaling_rules_convertToJSON(v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_hpa_scaling_rules->policies - if(v2beta2_hpa_scaling_rules->policies) { - cJSON *policies = cJSON_AddArrayToObject(item, "policies"); - if(policies == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *policiesListEntry; - if (v2beta2_hpa_scaling_rules->policies) { - list_ForEach(policiesListEntry, v2beta2_hpa_scaling_rules->policies) { - cJSON *itemLocal = v2beta2_hpa_scaling_policy_convertToJSON(policiesListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(policies, itemLocal); - } - } - } - - - // v2beta2_hpa_scaling_rules->select_policy - if(v2beta2_hpa_scaling_rules->select_policy) { - if(cJSON_AddStringToObject(item, "selectPolicy", v2beta2_hpa_scaling_rules->select_policy) == NULL) { - goto fail; //String - } - } - - - // v2beta2_hpa_scaling_rules->stabilization_window_seconds - if(v2beta2_hpa_scaling_rules->stabilization_window_seconds) { - if(cJSON_AddNumberToObject(item, "stabilizationWindowSeconds", v2beta2_hpa_scaling_rules->stabilization_window_seconds) == NULL) { - goto fail; //Numeric - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules_parseFromJSON(cJSON *v2beta2_hpa_scaling_rulesJSON){ - - v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules_local_var = NULL; - - // define the local list for v2beta2_hpa_scaling_rules->policies - list_t *policiesList = NULL; - - // v2beta2_hpa_scaling_rules->policies - cJSON *policies = cJSON_GetObjectItemCaseSensitive(v2beta2_hpa_scaling_rulesJSON, "policies"); - if (policies) { - cJSON *policies_local_nonprimitive = NULL; - if(!cJSON_IsArray(policies)){ - goto end; //nonprimitive container - } - - policiesList = list_createList(); - - cJSON_ArrayForEach(policies_local_nonprimitive,policies ) - { - if(!cJSON_IsObject(policies_local_nonprimitive)){ - goto end; - } - v2beta2_hpa_scaling_policy_t *policiesItem = v2beta2_hpa_scaling_policy_parseFromJSON(policies_local_nonprimitive); - - list_addElement(policiesList, policiesItem); - } - } - - // v2beta2_hpa_scaling_rules->select_policy - cJSON *select_policy = cJSON_GetObjectItemCaseSensitive(v2beta2_hpa_scaling_rulesJSON, "selectPolicy"); - if (select_policy) { - if(!cJSON_IsString(select_policy) && !cJSON_IsNull(select_policy)) - { - goto end; //String - } - } - - // v2beta2_hpa_scaling_rules->stabilization_window_seconds - cJSON *stabilization_window_seconds = cJSON_GetObjectItemCaseSensitive(v2beta2_hpa_scaling_rulesJSON, "stabilizationWindowSeconds"); - if (stabilization_window_seconds) { - if(!cJSON_IsNumber(stabilization_window_seconds)) - { - goto end; //Numeric - } - } - - - v2beta2_hpa_scaling_rules_local_var = v2beta2_hpa_scaling_rules_create ( - policies ? policiesList : NULL, - select_policy && !cJSON_IsNull(select_policy) ? strdup(select_policy->valuestring) : NULL, - stabilization_window_seconds ? stabilization_window_seconds->valuedouble : 0 - ); - - return v2beta2_hpa_scaling_rules_local_var; -end: - if (policiesList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, policiesList) { - v2beta2_hpa_scaling_policy_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(policiesList); - policiesList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_hpa_scaling_rules.h b/kubernetes/model/v2beta2_hpa_scaling_rules.h deleted file mode 100644 index 0e39de26..00000000 --- a/kubernetes/model/v2beta2_hpa_scaling_rules.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * v2beta2_hpa_scaling_rules.h - * - * HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. - */ - -#ifndef _v2beta2_hpa_scaling_rules_H_ -#define _v2beta2_hpa_scaling_rules_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_hpa_scaling_rules_t v2beta2_hpa_scaling_rules_t; - -#include "v2beta2_hpa_scaling_policy.h" - - - -typedef struct v2beta2_hpa_scaling_rules_t { - list_t *policies; //nonprimitive container - char *select_policy; // string - int stabilization_window_seconds; //numeric - -} v2beta2_hpa_scaling_rules_t; - -v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules_create( - list_t *policies, - char *select_policy, - int stabilization_window_seconds -); - -void v2beta2_hpa_scaling_rules_free(v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules); - -v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules_parseFromJSON(cJSON *v2beta2_hpa_scaling_rulesJSON); - -cJSON *v2beta2_hpa_scaling_rules_convertToJSON(v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules); - -#endif /* _v2beta2_hpa_scaling_rules_H_ */ - diff --git a/kubernetes/model/v2beta2_metric_identifier.c b/kubernetes/model/v2beta2_metric_identifier.c deleted file mode 100644 index 3f715d1b..00000000 --- a/kubernetes/model/v2beta2_metric_identifier.c +++ /dev/null @@ -1,110 +0,0 @@ -#include -#include -#include -#include "v2beta2_metric_identifier.h" - - - -v2beta2_metric_identifier_t *v2beta2_metric_identifier_create( - char *name, - v1_label_selector_t *selector - ) { - v2beta2_metric_identifier_t *v2beta2_metric_identifier_local_var = malloc(sizeof(v2beta2_metric_identifier_t)); - if (!v2beta2_metric_identifier_local_var) { - return NULL; - } - v2beta2_metric_identifier_local_var->name = name; - v2beta2_metric_identifier_local_var->selector = selector; - - return v2beta2_metric_identifier_local_var; -} - - -void v2beta2_metric_identifier_free(v2beta2_metric_identifier_t *v2beta2_metric_identifier) { - if(NULL == v2beta2_metric_identifier){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_metric_identifier->name) { - free(v2beta2_metric_identifier->name); - v2beta2_metric_identifier->name = NULL; - } - if (v2beta2_metric_identifier->selector) { - v1_label_selector_free(v2beta2_metric_identifier->selector); - v2beta2_metric_identifier->selector = NULL; - } - free(v2beta2_metric_identifier); -} - -cJSON *v2beta2_metric_identifier_convertToJSON(v2beta2_metric_identifier_t *v2beta2_metric_identifier) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_metric_identifier->name - if (!v2beta2_metric_identifier->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v2beta2_metric_identifier->name) == NULL) { - goto fail; //String - } - - - // v2beta2_metric_identifier->selector - if(v2beta2_metric_identifier->selector) { - cJSON *selector_local_JSON = v1_label_selector_convertToJSON(v2beta2_metric_identifier->selector); - if(selector_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "selector", selector_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_metric_identifier_t *v2beta2_metric_identifier_parseFromJSON(cJSON *v2beta2_metric_identifierJSON){ - - v2beta2_metric_identifier_t *v2beta2_metric_identifier_local_var = NULL; - - // define the local variable for v2beta2_metric_identifier->selector - v1_label_selector_t *selector_local_nonprim = NULL; - - // v2beta2_metric_identifier->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_identifierJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - // v2beta2_metric_identifier->selector - cJSON *selector = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_identifierJSON, "selector"); - if (selector) { - selector_local_nonprim = v1_label_selector_parseFromJSON(selector); //nonprimitive - } - - - v2beta2_metric_identifier_local_var = v2beta2_metric_identifier_create ( - strdup(name->valuestring), - selector ? selector_local_nonprim : NULL - ); - - return v2beta2_metric_identifier_local_var; -end: - if (selector_local_nonprim) { - v1_label_selector_free(selector_local_nonprim); - selector_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_metric_identifier.h b/kubernetes/model/v2beta2_metric_identifier.h deleted file mode 100644 index 92b88235..00000000 --- a/kubernetes/model/v2beta2_metric_identifier.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * v2beta2_metric_identifier.h - * - * MetricIdentifier defines the name and optionally selector for a metric - */ - -#ifndef _v2beta2_metric_identifier_H_ -#define _v2beta2_metric_identifier_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_metric_identifier_t v2beta2_metric_identifier_t; - -#include "v1_label_selector.h" - - - -typedef struct v2beta2_metric_identifier_t { - char *name; // string - struct v1_label_selector_t *selector; //model - -} v2beta2_metric_identifier_t; - -v2beta2_metric_identifier_t *v2beta2_metric_identifier_create( - char *name, - v1_label_selector_t *selector -); - -void v2beta2_metric_identifier_free(v2beta2_metric_identifier_t *v2beta2_metric_identifier); - -v2beta2_metric_identifier_t *v2beta2_metric_identifier_parseFromJSON(cJSON *v2beta2_metric_identifierJSON); - -cJSON *v2beta2_metric_identifier_convertToJSON(v2beta2_metric_identifier_t *v2beta2_metric_identifier); - -#endif /* _v2beta2_metric_identifier_H_ */ - diff --git a/kubernetes/model/v2beta2_metric_spec.c b/kubernetes/model/v2beta2_metric_spec.c deleted file mode 100644 index e9c108ac..00000000 --- a/kubernetes/model/v2beta2_metric_spec.c +++ /dev/null @@ -1,242 +0,0 @@ -#include -#include -#include -#include "v2beta2_metric_spec.h" - - - -v2beta2_metric_spec_t *v2beta2_metric_spec_create( - v2beta2_container_resource_metric_source_t *container_resource, - v2beta2_external_metric_source_t *external, - v2beta2_object_metric_source_t *object, - v2beta2_pods_metric_source_t *pods, - v2beta2_resource_metric_source_t *resource, - char *type - ) { - v2beta2_metric_spec_t *v2beta2_metric_spec_local_var = malloc(sizeof(v2beta2_metric_spec_t)); - if (!v2beta2_metric_spec_local_var) { - return NULL; - } - v2beta2_metric_spec_local_var->container_resource = container_resource; - v2beta2_metric_spec_local_var->external = external; - v2beta2_metric_spec_local_var->object = object; - v2beta2_metric_spec_local_var->pods = pods; - v2beta2_metric_spec_local_var->resource = resource; - v2beta2_metric_spec_local_var->type = type; - - return v2beta2_metric_spec_local_var; -} - - -void v2beta2_metric_spec_free(v2beta2_metric_spec_t *v2beta2_metric_spec) { - if(NULL == v2beta2_metric_spec){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_metric_spec->container_resource) { - v2beta2_container_resource_metric_source_free(v2beta2_metric_spec->container_resource); - v2beta2_metric_spec->container_resource = NULL; - } - if (v2beta2_metric_spec->external) { - v2beta2_external_metric_source_free(v2beta2_metric_spec->external); - v2beta2_metric_spec->external = NULL; - } - if (v2beta2_metric_spec->object) { - v2beta2_object_metric_source_free(v2beta2_metric_spec->object); - v2beta2_metric_spec->object = NULL; - } - if (v2beta2_metric_spec->pods) { - v2beta2_pods_metric_source_free(v2beta2_metric_spec->pods); - v2beta2_metric_spec->pods = NULL; - } - if (v2beta2_metric_spec->resource) { - v2beta2_resource_metric_source_free(v2beta2_metric_spec->resource); - v2beta2_metric_spec->resource = NULL; - } - if (v2beta2_metric_spec->type) { - free(v2beta2_metric_spec->type); - v2beta2_metric_spec->type = NULL; - } - free(v2beta2_metric_spec); -} - -cJSON *v2beta2_metric_spec_convertToJSON(v2beta2_metric_spec_t *v2beta2_metric_spec) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_metric_spec->container_resource - if(v2beta2_metric_spec->container_resource) { - cJSON *container_resource_local_JSON = v2beta2_container_resource_metric_source_convertToJSON(v2beta2_metric_spec->container_resource); - if(container_resource_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "containerResource", container_resource_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_metric_spec->external - if(v2beta2_metric_spec->external) { - cJSON *external_local_JSON = v2beta2_external_metric_source_convertToJSON(v2beta2_metric_spec->external); - if(external_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "external", external_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_metric_spec->object - if(v2beta2_metric_spec->object) { - cJSON *object_local_JSON = v2beta2_object_metric_source_convertToJSON(v2beta2_metric_spec->object); - if(object_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "object", object_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_metric_spec->pods - if(v2beta2_metric_spec->pods) { - cJSON *pods_local_JSON = v2beta2_pods_metric_source_convertToJSON(v2beta2_metric_spec->pods); - if(pods_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "pods", pods_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_metric_spec->resource - if(v2beta2_metric_spec->resource) { - cJSON *resource_local_JSON = v2beta2_resource_metric_source_convertToJSON(v2beta2_metric_spec->resource); - if(resource_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "resource", resource_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_metric_spec->type - if (!v2beta2_metric_spec->type) { - goto fail; - } - if(cJSON_AddStringToObject(item, "type", v2beta2_metric_spec->type) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_metric_spec_t *v2beta2_metric_spec_parseFromJSON(cJSON *v2beta2_metric_specJSON){ - - v2beta2_metric_spec_t *v2beta2_metric_spec_local_var = NULL; - - // define the local variable for v2beta2_metric_spec->container_resource - v2beta2_container_resource_metric_source_t *container_resource_local_nonprim = NULL; - - // define the local variable for v2beta2_metric_spec->external - v2beta2_external_metric_source_t *external_local_nonprim = NULL; - - // define the local variable for v2beta2_metric_spec->object - v2beta2_object_metric_source_t *object_local_nonprim = NULL; - - // define the local variable for v2beta2_metric_spec->pods - v2beta2_pods_metric_source_t *pods_local_nonprim = NULL; - - // define the local variable for v2beta2_metric_spec->resource - v2beta2_resource_metric_source_t *resource_local_nonprim = NULL; - - // v2beta2_metric_spec->container_resource - cJSON *container_resource = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_specJSON, "containerResource"); - if (container_resource) { - container_resource_local_nonprim = v2beta2_container_resource_metric_source_parseFromJSON(container_resource); //nonprimitive - } - - // v2beta2_metric_spec->external - cJSON *external = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_specJSON, "external"); - if (external) { - external_local_nonprim = v2beta2_external_metric_source_parseFromJSON(external); //nonprimitive - } - - // v2beta2_metric_spec->object - cJSON *object = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_specJSON, "object"); - if (object) { - object_local_nonprim = v2beta2_object_metric_source_parseFromJSON(object); //nonprimitive - } - - // v2beta2_metric_spec->pods - cJSON *pods = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_specJSON, "pods"); - if (pods) { - pods_local_nonprim = v2beta2_pods_metric_source_parseFromJSON(pods); //nonprimitive - } - - // v2beta2_metric_spec->resource - cJSON *resource = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_specJSON, "resource"); - if (resource) { - resource_local_nonprim = v2beta2_resource_metric_source_parseFromJSON(resource); //nonprimitive - } - - // v2beta2_metric_spec->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_specJSON, "type"); - if (!type) { - goto end; - } - - - if(!cJSON_IsString(type)) - { - goto end; //String - } - - - v2beta2_metric_spec_local_var = v2beta2_metric_spec_create ( - container_resource ? container_resource_local_nonprim : NULL, - external ? external_local_nonprim : NULL, - object ? object_local_nonprim : NULL, - pods ? pods_local_nonprim : NULL, - resource ? resource_local_nonprim : NULL, - strdup(type->valuestring) - ); - - return v2beta2_metric_spec_local_var; -end: - if (container_resource_local_nonprim) { - v2beta2_container_resource_metric_source_free(container_resource_local_nonprim); - container_resource_local_nonprim = NULL; - } - if (external_local_nonprim) { - v2beta2_external_metric_source_free(external_local_nonprim); - external_local_nonprim = NULL; - } - if (object_local_nonprim) { - v2beta2_object_metric_source_free(object_local_nonprim); - object_local_nonprim = NULL; - } - if (pods_local_nonprim) { - v2beta2_pods_metric_source_free(pods_local_nonprim); - pods_local_nonprim = NULL; - } - if (resource_local_nonprim) { - v2beta2_resource_metric_source_free(resource_local_nonprim); - resource_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_metric_spec.h b/kubernetes/model/v2beta2_metric_spec.h deleted file mode 100644 index 7af648de..00000000 --- a/kubernetes/model/v2beta2_metric_spec.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * v2beta2_metric_spec.h - * - * MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). - */ - -#ifndef _v2beta2_metric_spec_H_ -#define _v2beta2_metric_spec_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_metric_spec_t v2beta2_metric_spec_t; - -#include "v2beta2_container_resource_metric_source.h" -#include "v2beta2_external_metric_source.h" -#include "v2beta2_object_metric_source.h" -#include "v2beta2_pods_metric_source.h" -#include "v2beta2_resource_metric_source.h" - - - -typedef struct v2beta2_metric_spec_t { - struct v2beta2_container_resource_metric_source_t *container_resource; //model - struct v2beta2_external_metric_source_t *external; //model - struct v2beta2_object_metric_source_t *object; //model - struct v2beta2_pods_metric_source_t *pods; //model - struct v2beta2_resource_metric_source_t *resource; //model - char *type; // string - -} v2beta2_metric_spec_t; - -v2beta2_metric_spec_t *v2beta2_metric_spec_create( - v2beta2_container_resource_metric_source_t *container_resource, - v2beta2_external_metric_source_t *external, - v2beta2_object_metric_source_t *object, - v2beta2_pods_metric_source_t *pods, - v2beta2_resource_metric_source_t *resource, - char *type -); - -void v2beta2_metric_spec_free(v2beta2_metric_spec_t *v2beta2_metric_spec); - -v2beta2_metric_spec_t *v2beta2_metric_spec_parseFromJSON(cJSON *v2beta2_metric_specJSON); - -cJSON *v2beta2_metric_spec_convertToJSON(v2beta2_metric_spec_t *v2beta2_metric_spec); - -#endif /* _v2beta2_metric_spec_H_ */ - diff --git a/kubernetes/model/v2beta2_metric_status.c b/kubernetes/model/v2beta2_metric_status.c deleted file mode 100644 index 146fb70c..00000000 --- a/kubernetes/model/v2beta2_metric_status.c +++ /dev/null @@ -1,242 +0,0 @@ -#include -#include -#include -#include "v2beta2_metric_status.h" - - - -v2beta2_metric_status_t *v2beta2_metric_status_create( - v2beta2_container_resource_metric_status_t *container_resource, - v2beta2_external_metric_status_t *external, - v2beta2_object_metric_status_t *object, - v2beta2_pods_metric_status_t *pods, - v2beta2_resource_metric_status_t *resource, - char *type - ) { - v2beta2_metric_status_t *v2beta2_metric_status_local_var = malloc(sizeof(v2beta2_metric_status_t)); - if (!v2beta2_metric_status_local_var) { - return NULL; - } - v2beta2_metric_status_local_var->container_resource = container_resource; - v2beta2_metric_status_local_var->external = external; - v2beta2_metric_status_local_var->object = object; - v2beta2_metric_status_local_var->pods = pods; - v2beta2_metric_status_local_var->resource = resource; - v2beta2_metric_status_local_var->type = type; - - return v2beta2_metric_status_local_var; -} - - -void v2beta2_metric_status_free(v2beta2_metric_status_t *v2beta2_metric_status) { - if(NULL == v2beta2_metric_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_metric_status->container_resource) { - v2beta2_container_resource_metric_status_free(v2beta2_metric_status->container_resource); - v2beta2_metric_status->container_resource = NULL; - } - if (v2beta2_metric_status->external) { - v2beta2_external_metric_status_free(v2beta2_metric_status->external); - v2beta2_metric_status->external = NULL; - } - if (v2beta2_metric_status->object) { - v2beta2_object_metric_status_free(v2beta2_metric_status->object); - v2beta2_metric_status->object = NULL; - } - if (v2beta2_metric_status->pods) { - v2beta2_pods_metric_status_free(v2beta2_metric_status->pods); - v2beta2_metric_status->pods = NULL; - } - if (v2beta2_metric_status->resource) { - v2beta2_resource_metric_status_free(v2beta2_metric_status->resource); - v2beta2_metric_status->resource = NULL; - } - if (v2beta2_metric_status->type) { - free(v2beta2_metric_status->type); - v2beta2_metric_status->type = NULL; - } - free(v2beta2_metric_status); -} - -cJSON *v2beta2_metric_status_convertToJSON(v2beta2_metric_status_t *v2beta2_metric_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_metric_status->container_resource - if(v2beta2_metric_status->container_resource) { - cJSON *container_resource_local_JSON = v2beta2_container_resource_metric_status_convertToJSON(v2beta2_metric_status->container_resource); - if(container_resource_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "containerResource", container_resource_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_metric_status->external - if(v2beta2_metric_status->external) { - cJSON *external_local_JSON = v2beta2_external_metric_status_convertToJSON(v2beta2_metric_status->external); - if(external_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "external", external_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_metric_status->object - if(v2beta2_metric_status->object) { - cJSON *object_local_JSON = v2beta2_object_metric_status_convertToJSON(v2beta2_metric_status->object); - if(object_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "object", object_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_metric_status->pods - if(v2beta2_metric_status->pods) { - cJSON *pods_local_JSON = v2beta2_pods_metric_status_convertToJSON(v2beta2_metric_status->pods); - if(pods_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "pods", pods_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_metric_status->resource - if(v2beta2_metric_status->resource) { - cJSON *resource_local_JSON = v2beta2_resource_metric_status_convertToJSON(v2beta2_metric_status->resource); - if(resource_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "resource", resource_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_metric_status->type - if (!v2beta2_metric_status->type) { - goto fail; - } - if(cJSON_AddStringToObject(item, "type", v2beta2_metric_status->type) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_metric_status_t *v2beta2_metric_status_parseFromJSON(cJSON *v2beta2_metric_statusJSON){ - - v2beta2_metric_status_t *v2beta2_metric_status_local_var = NULL; - - // define the local variable for v2beta2_metric_status->container_resource - v2beta2_container_resource_metric_status_t *container_resource_local_nonprim = NULL; - - // define the local variable for v2beta2_metric_status->external - v2beta2_external_metric_status_t *external_local_nonprim = NULL; - - // define the local variable for v2beta2_metric_status->object - v2beta2_object_metric_status_t *object_local_nonprim = NULL; - - // define the local variable for v2beta2_metric_status->pods - v2beta2_pods_metric_status_t *pods_local_nonprim = NULL; - - // define the local variable for v2beta2_metric_status->resource - v2beta2_resource_metric_status_t *resource_local_nonprim = NULL; - - // v2beta2_metric_status->container_resource - cJSON *container_resource = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_statusJSON, "containerResource"); - if (container_resource) { - container_resource_local_nonprim = v2beta2_container_resource_metric_status_parseFromJSON(container_resource); //nonprimitive - } - - // v2beta2_metric_status->external - cJSON *external = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_statusJSON, "external"); - if (external) { - external_local_nonprim = v2beta2_external_metric_status_parseFromJSON(external); //nonprimitive - } - - // v2beta2_metric_status->object - cJSON *object = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_statusJSON, "object"); - if (object) { - object_local_nonprim = v2beta2_object_metric_status_parseFromJSON(object); //nonprimitive - } - - // v2beta2_metric_status->pods - cJSON *pods = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_statusJSON, "pods"); - if (pods) { - pods_local_nonprim = v2beta2_pods_metric_status_parseFromJSON(pods); //nonprimitive - } - - // v2beta2_metric_status->resource - cJSON *resource = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_statusJSON, "resource"); - if (resource) { - resource_local_nonprim = v2beta2_resource_metric_status_parseFromJSON(resource); //nonprimitive - } - - // v2beta2_metric_status->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_statusJSON, "type"); - if (!type) { - goto end; - } - - - if(!cJSON_IsString(type)) - { - goto end; //String - } - - - v2beta2_metric_status_local_var = v2beta2_metric_status_create ( - container_resource ? container_resource_local_nonprim : NULL, - external ? external_local_nonprim : NULL, - object ? object_local_nonprim : NULL, - pods ? pods_local_nonprim : NULL, - resource ? resource_local_nonprim : NULL, - strdup(type->valuestring) - ); - - return v2beta2_metric_status_local_var; -end: - if (container_resource_local_nonprim) { - v2beta2_container_resource_metric_status_free(container_resource_local_nonprim); - container_resource_local_nonprim = NULL; - } - if (external_local_nonprim) { - v2beta2_external_metric_status_free(external_local_nonprim); - external_local_nonprim = NULL; - } - if (object_local_nonprim) { - v2beta2_object_metric_status_free(object_local_nonprim); - object_local_nonprim = NULL; - } - if (pods_local_nonprim) { - v2beta2_pods_metric_status_free(pods_local_nonprim); - pods_local_nonprim = NULL; - } - if (resource_local_nonprim) { - v2beta2_resource_metric_status_free(resource_local_nonprim); - resource_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_metric_status.h b/kubernetes/model/v2beta2_metric_status.h deleted file mode 100644 index 565bba37..00000000 --- a/kubernetes/model/v2beta2_metric_status.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * v2beta2_metric_status.h - * - * MetricStatus describes the last-read state of a single metric. - */ - -#ifndef _v2beta2_metric_status_H_ -#define _v2beta2_metric_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_metric_status_t v2beta2_metric_status_t; - -#include "v2beta2_container_resource_metric_status.h" -#include "v2beta2_external_metric_status.h" -#include "v2beta2_object_metric_status.h" -#include "v2beta2_pods_metric_status.h" -#include "v2beta2_resource_metric_status.h" - - - -typedef struct v2beta2_metric_status_t { - struct v2beta2_container_resource_metric_status_t *container_resource; //model - struct v2beta2_external_metric_status_t *external; //model - struct v2beta2_object_metric_status_t *object; //model - struct v2beta2_pods_metric_status_t *pods; //model - struct v2beta2_resource_metric_status_t *resource; //model - char *type; // string - -} v2beta2_metric_status_t; - -v2beta2_metric_status_t *v2beta2_metric_status_create( - v2beta2_container_resource_metric_status_t *container_resource, - v2beta2_external_metric_status_t *external, - v2beta2_object_metric_status_t *object, - v2beta2_pods_metric_status_t *pods, - v2beta2_resource_metric_status_t *resource, - char *type -); - -void v2beta2_metric_status_free(v2beta2_metric_status_t *v2beta2_metric_status); - -v2beta2_metric_status_t *v2beta2_metric_status_parseFromJSON(cJSON *v2beta2_metric_statusJSON); - -cJSON *v2beta2_metric_status_convertToJSON(v2beta2_metric_status_t *v2beta2_metric_status); - -#endif /* _v2beta2_metric_status_H_ */ - diff --git a/kubernetes/model/v2beta2_metric_target.c b/kubernetes/model/v2beta2_metric_target.c deleted file mode 100644 index 84f0af5d..00000000 --- a/kubernetes/model/v2beta2_metric_target.c +++ /dev/null @@ -1,145 +0,0 @@ -#include -#include -#include -#include "v2beta2_metric_target.h" - - - -v2beta2_metric_target_t *v2beta2_metric_target_create( - int average_utilization, - char *average_value, - char *type, - char *value - ) { - v2beta2_metric_target_t *v2beta2_metric_target_local_var = malloc(sizeof(v2beta2_metric_target_t)); - if (!v2beta2_metric_target_local_var) { - return NULL; - } - v2beta2_metric_target_local_var->average_utilization = average_utilization; - v2beta2_metric_target_local_var->average_value = average_value; - v2beta2_metric_target_local_var->type = type; - v2beta2_metric_target_local_var->value = value; - - return v2beta2_metric_target_local_var; -} - - -void v2beta2_metric_target_free(v2beta2_metric_target_t *v2beta2_metric_target) { - if(NULL == v2beta2_metric_target){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_metric_target->average_value) { - free(v2beta2_metric_target->average_value); - v2beta2_metric_target->average_value = NULL; - } - if (v2beta2_metric_target->type) { - free(v2beta2_metric_target->type); - v2beta2_metric_target->type = NULL; - } - if (v2beta2_metric_target->value) { - free(v2beta2_metric_target->value); - v2beta2_metric_target->value = NULL; - } - free(v2beta2_metric_target); -} - -cJSON *v2beta2_metric_target_convertToJSON(v2beta2_metric_target_t *v2beta2_metric_target) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_metric_target->average_utilization - if(v2beta2_metric_target->average_utilization) { - if(cJSON_AddNumberToObject(item, "averageUtilization", v2beta2_metric_target->average_utilization) == NULL) { - goto fail; //Numeric - } - } - - - // v2beta2_metric_target->average_value - if(v2beta2_metric_target->average_value) { - if(cJSON_AddStringToObject(item, "averageValue", v2beta2_metric_target->average_value) == NULL) { - goto fail; //String - } - } - - - // v2beta2_metric_target->type - if (!v2beta2_metric_target->type) { - goto fail; - } - if(cJSON_AddStringToObject(item, "type", v2beta2_metric_target->type) == NULL) { - goto fail; //String - } - - - // v2beta2_metric_target->value - if(v2beta2_metric_target->value) { - if(cJSON_AddStringToObject(item, "value", v2beta2_metric_target->value) == NULL) { - goto fail; //String - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_metric_target_t *v2beta2_metric_target_parseFromJSON(cJSON *v2beta2_metric_targetJSON){ - - v2beta2_metric_target_t *v2beta2_metric_target_local_var = NULL; - - // v2beta2_metric_target->average_utilization - cJSON *average_utilization = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_targetJSON, "averageUtilization"); - if (average_utilization) { - if(!cJSON_IsNumber(average_utilization)) - { - goto end; //Numeric - } - } - - // v2beta2_metric_target->average_value - cJSON *average_value = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_targetJSON, "averageValue"); - if (average_value) { - if(!cJSON_IsString(average_value) && !cJSON_IsNull(average_value)) - { - goto end; //String - } - } - - // v2beta2_metric_target->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_targetJSON, "type"); - if (!type) { - goto end; - } - - - if(!cJSON_IsString(type)) - { - goto end; //String - } - - // v2beta2_metric_target->value - cJSON *value = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_targetJSON, "value"); - if (value) { - if(!cJSON_IsString(value) && !cJSON_IsNull(value)) - { - goto end; //String - } - } - - - v2beta2_metric_target_local_var = v2beta2_metric_target_create ( - average_utilization ? average_utilization->valuedouble : 0, - average_value && !cJSON_IsNull(average_value) ? strdup(average_value->valuestring) : NULL, - strdup(type->valuestring), - value && !cJSON_IsNull(value) ? strdup(value->valuestring) : NULL - ); - - return v2beta2_metric_target_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v2beta2_metric_target.h b/kubernetes/model/v2beta2_metric_target.h deleted file mode 100644 index 0248ddfa..00000000 --- a/kubernetes/model/v2beta2_metric_target.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * v2beta2_metric_target.h - * - * MetricTarget defines the target value, average value, or average utilization of a specific metric - */ - -#ifndef _v2beta2_metric_target_H_ -#define _v2beta2_metric_target_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_metric_target_t v2beta2_metric_target_t; - - - - -typedef struct v2beta2_metric_target_t { - int average_utilization; //numeric - char *average_value; // string - char *type; // string - char *value; // string - -} v2beta2_metric_target_t; - -v2beta2_metric_target_t *v2beta2_metric_target_create( - int average_utilization, - char *average_value, - char *type, - char *value -); - -void v2beta2_metric_target_free(v2beta2_metric_target_t *v2beta2_metric_target); - -v2beta2_metric_target_t *v2beta2_metric_target_parseFromJSON(cJSON *v2beta2_metric_targetJSON); - -cJSON *v2beta2_metric_target_convertToJSON(v2beta2_metric_target_t *v2beta2_metric_target); - -#endif /* _v2beta2_metric_target_H_ */ - diff --git a/kubernetes/model/v2beta2_metric_value_status.c b/kubernetes/model/v2beta2_metric_value_status.c deleted file mode 100644 index d79d1a05..00000000 --- a/kubernetes/model/v2beta2_metric_value_status.c +++ /dev/null @@ -1,117 +0,0 @@ -#include -#include -#include -#include "v2beta2_metric_value_status.h" - - - -v2beta2_metric_value_status_t *v2beta2_metric_value_status_create( - int average_utilization, - char *average_value, - char *value - ) { - v2beta2_metric_value_status_t *v2beta2_metric_value_status_local_var = malloc(sizeof(v2beta2_metric_value_status_t)); - if (!v2beta2_metric_value_status_local_var) { - return NULL; - } - v2beta2_metric_value_status_local_var->average_utilization = average_utilization; - v2beta2_metric_value_status_local_var->average_value = average_value; - v2beta2_metric_value_status_local_var->value = value; - - return v2beta2_metric_value_status_local_var; -} - - -void v2beta2_metric_value_status_free(v2beta2_metric_value_status_t *v2beta2_metric_value_status) { - if(NULL == v2beta2_metric_value_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_metric_value_status->average_value) { - free(v2beta2_metric_value_status->average_value); - v2beta2_metric_value_status->average_value = NULL; - } - if (v2beta2_metric_value_status->value) { - free(v2beta2_metric_value_status->value); - v2beta2_metric_value_status->value = NULL; - } - free(v2beta2_metric_value_status); -} - -cJSON *v2beta2_metric_value_status_convertToJSON(v2beta2_metric_value_status_t *v2beta2_metric_value_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_metric_value_status->average_utilization - if(v2beta2_metric_value_status->average_utilization) { - if(cJSON_AddNumberToObject(item, "averageUtilization", v2beta2_metric_value_status->average_utilization) == NULL) { - goto fail; //Numeric - } - } - - - // v2beta2_metric_value_status->average_value - if(v2beta2_metric_value_status->average_value) { - if(cJSON_AddStringToObject(item, "averageValue", v2beta2_metric_value_status->average_value) == NULL) { - goto fail; //String - } - } - - - // v2beta2_metric_value_status->value - if(v2beta2_metric_value_status->value) { - if(cJSON_AddStringToObject(item, "value", v2beta2_metric_value_status->value) == NULL) { - goto fail; //String - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_metric_value_status_t *v2beta2_metric_value_status_parseFromJSON(cJSON *v2beta2_metric_value_statusJSON){ - - v2beta2_metric_value_status_t *v2beta2_metric_value_status_local_var = NULL; - - // v2beta2_metric_value_status->average_utilization - cJSON *average_utilization = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_value_statusJSON, "averageUtilization"); - if (average_utilization) { - if(!cJSON_IsNumber(average_utilization)) - { - goto end; //Numeric - } - } - - // v2beta2_metric_value_status->average_value - cJSON *average_value = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_value_statusJSON, "averageValue"); - if (average_value) { - if(!cJSON_IsString(average_value) && !cJSON_IsNull(average_value)) - { - goto end; //String - } - } - - // v2beta2_metric_value_status->value - cJSON *value = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_value_statusJSON, "value"); - if (value) { - if(!cJSON_IsString(value) && !cJSON_IsNull(value)) - { - goto end; //String - } - } - - - v2beta2_metric_value_status_local_var = v2beta2_metric_value_status_create ( - average_utilization ? average_utilization->valuedouble : 0, - average_value && !cJSON_IsNull(average_value) ? strdup(average_value->valuestring) : NULL, - value && !cJSON_IsNull(value) ? strdup(value->valuestring) : NULL - ); - - return v2beta2_metric_value_status_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v2beta2_metric_value_status.h b/kubernetes/model/v2beta2_metric_value_status.h deleted file mode 100644 index 760d5e57..00000000 --- a/kubernetes/model/v2beta2_metric_value_status.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v2beta2_metric_value_status.h - * - * MetricValueStatus holds the current value for a metric - */ - -#ifndef _v2beta2_metric_value_status_H_ -#define _v2beta2_metric_value_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_metric_value_status_t v2beta2_metric_value_status_t; - - - - -typedef struct v2beta2_metric_value_status_t { - int average_utilization; //numeric - char *average_value; // string - char *value; // string - -} v2beta2_metric_value_status_t; - -v2beta2_metric_value_status_t *v2beta2_metric_value_status_create( - int average_utilization, - char *average_value, - char *value -); - -void v2beta2_metric_value_status_free(v2beta2_metric_value_status_t *v2beta2_metric_value_status); - -v2beta2_metric_value_status_t *v2beta2_metric_value_status_parseFromJSON(cJSON *v2beta2_metric_value_statusJSON); - -cJSON *v2beta2_metric_value_status_convertToJSON(v2beta2_metric_value_status_t *v2beta2_metric_value_status); - -#endif /* _v2beta2_metric_value_status_H_ */ - diff --git a/kubernetes/model/v2beta2_object_metric_source.c b/kubernetes/model/v2beta2_object_metric_source.c deleted file mode 100644 index bfc9a1f9..00000000 --- a/kubernetes/model/v2beta2_object_metric_source.c +++ /dev/null @@ -1,160 +0,0 @@ -#include -#include -#include -#include "v2beta2_object_metric_source.h" - - - -v2beta2_object_metric_source_t *v2beta2_object_metric_source_create( - v2beta2_cross_version_object_reference_t *described_object, - v2beta2_metric_identifier_t *metric, - v2beta2_metric_target_t *target - ) { - v2beta2_object_metric_source_t *v2beta2_object_metric_source_local_var = malloc(sizeof(v2beta2_object_metric_source_t)); - if (!v2beta2_object_metric_source_local_var) { - return NULL; - } - v2beta2_object_metric_source_local_var->described_object = described_object; - v2beta2_object_metric_source_local_var->metric = metric; - v2beta2_object_metric_source_local_var->target = target; - - return v2beta2_object_metric_source_local_var; -} - - -void v2beta2_object_metric_source_free(v2beta2_object_metric_source_t *v2beta2_object_metric_source) { - if(NULL == v2beta2_object_metric_source){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_object_metric_source->described_object) { - v2beta2_cross_version_object_reference_free(v2beta2_object_metric_source->described_object); - v2beta2_object_metric_source->described_object = NULL; - } - if (v2beta2_object_metric_source->metric) { - v2beta2_metric_identifier_free(v2beta2_object_metric_source->metric); - v2beta2_object_metric_source->metric = NULL; - } - if (v2beta2_object_metric_source->target) { - v2beta2_metric_target_free(v2beta2_object_metric_source->target); - v2beta2_object_metric_source->target = NULL; - } - free(v2beta2_object_metric_source); -} - -cJSON *v2beta2_object_metric_source_convertToJSON(v2beta2_object_metric_source_t *v2beta2_object_metric_source) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_object_metric_source->described_object - if (!v2beta2_object_metric_source->described_object) { - goto fail; - } - cJSON *described_object_local_JSON = v2beta2_cross_version_object_reference_convertToJSON(v2beta2_object_metric_source->described_object); - if(described_object_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "describedObject", described_object_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v2beta2_object_metric_source->metric - if (!v2beta2_object_metric_source->metric) { - goto fail; - } - cJSON *metric_local_JSON = v2beta2_metric_identifier_convertToJSON(v2beta2_object_metric_source->metric); - if(metric_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metric", metric_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v2beta2_object_metric_source->target - if (!v2beta2_object_metric_source->target) { - goto fail; - } - cJSON *target_local_JSON = v2beta2_metric_target_convertToJSON(v2beta2_object_metric_source->target); - if(target_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "target", target_local_JSON); - if(item->child == NULL) { - goto fail; - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_object_metric_source_t *v2beta2_object_metric_source_parseFromJSON(cJSON *v2beta2_object_metric_sourceJSON){ - - v2beta2_object_metric_source_t *v2beta2_object_metric_source_local_var = NULL; - - // define the local variable for v2beta2_object_metric_source->described_object - v2beta2_cross_version_object_reference_t *described_object_local_nonprim = NULL; - - // define the local variable for v2beta2_object_metric_source->metric - v2beta2_metric_identifier_t *metric_local_nonprim = NULL; - - // define the local variable for v2beta2_object_metric_source->target - v2beta2_metric_target_t *target_local_nonprim = NULL; - - // v2beta2_object_metric_source->described_object - cJSON *described_object = cJSON_GetObjectItemCaseSensitive(v2beta2_object_metric_sourceJSON, "describedObject"); - if (!described_object) { - goto end; - } - - - described_object_local_nonprim = v2beta2_cross_version_object_reference_parseFromJSON(described_object); //nonprimitive - - // v2beta2_object_metric_source->metric - cJSON *metric = cJSON_GetObjectItemCaseSensitive(v2beta2_object_metric_sourceJSON, "metric"); - if (!metric) { - goto end; - } - - - metric_local_nonprim = v2beta2_metric_identifier_parseFromJSON(metric); //nonprimitive - - // v2beta2_object_metric_source->target - cJSON *target = cJSON_GetObjectItemCaseSensitive(v2beta2_object_metric_sourceJSON, "target"); - if (!target) { - goto end; - } - - - target_local_nonprim = v2beta2_metric_target_parseFromJSON(target); //nonprimitive - - - v2beta2_object_metric_source_local_var = v2beta2_object_metric_source_create ( - described_object_local_nonprim, - metric_local_nonprim, - target_local_nonprim - ); - - return v2beta2_object_metric_source_local_var; -end: - if (described_object_local_nonprim) { - v2beta2_cross_version_object_reference_free(described_object_local_nonprim); - described_object_local_nonprim = NULL; - } - if (metric_local_nonprim) { - v2beta2_metric_identifier_free(metric_local_nonprim); - metric_local_nonprim = NULL; - } - if (target_local_nonprim) { - v2beta2_metric_target_free(target_local_nonprim); - target_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_object_metric_source.h b/kubernetes/model/v2beta2_object_metric_source.h deleted file mode 100644 index 61d09220..00000000 --- a/kubernetes/model/v2beta2_object_metric_source.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * v2beta2_object_metric_source.h - * - * ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). - */ - -#ifndef _v2beta2_object_metric_source_H_ -#define _v2beta2_object_metric_source_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_object_metric_source_t v2beta2_object_metric_source_t; - -#include "v2beta2_cross_version_object_reference.h" -#include "v2beta2_metric_identifier.h" -#include "v2beta2_metric_target.h" - - - -typedef struct v2beta2_object_metric_source_t { - struct v2beta2_cross_version_object_reference_t *described_object; //model - struct v2beta2_metric_identifier_t *metric; //model - struct v2beta2_metric_target_t *target; //model - -} v2beta2_object_metric_source_t; - -v2beta2_object_metric_source_t *v2beta2_object_metric_source_create( - v2beta2_cross_version_object_reference_t *described_object, - v2beta2_metric_identifier_t *metric, - v2beta2_metric_target_t *target -); - -void v2beta2_object_metric_source_free(v2beta2_object_metric_source_t *v2beta2_object_metric_source); - -v2beta2_object_metric_source_t *v2beta2_object_metric_source_parseFromJSON(cJSON *v2beta2_object_metric_sourceJSON); - -cJSON *v2beta2_object_metric_source_convertToJSON(v2beta2_object_metric_source_t *v2beta2_object_metric_source); - -#endif /* _v2beta2_object_metric_source_H_ */ - diff --git a/kubernetes/model/v2beta2_object_metric_status.c b/kubernetes/model/v2beta2_object_metric_status.c deleted file mode 100644 index ddf3b83f..00000000 --- a/kubernetes/model/v2beta2_object_metric_status.c +++ /dev/null @@ -1,160 +0,0 @@ -#include -#include -#include -#include "v2beta2_object_metric_status.h" - - - -v2beta2_object_metric_status_t *v2beta2_object_metric_status_create( - v2beta2_metric_value_status_t *current, - v2beta2_cross_version_object_reference_t *described_object, - v2beta2_metric_identifier_t *metric - ) { - v2beta2_object_metric_status_t *v2beta2_object_metric_status_local_var = malloc(sizeof(v2beta2_object_metric_status_t)); - if (!v2beta2_object_metric_status_local_var) { - return NULL; - } - v2beta2_object_metric_status_local_var->current = current; - v2beta2_object_metric_status_local_var->described_object = described_object; - v2beta2_object_metric_status_local_var->metric = metric; - - return v2beta2_object_metric_status_local_var; -} - - -void v2beta2_object_metric_status_free(v2beta2_object_metric_status_t *v2beta2_object_metric_status) { - if(NULL == v2beta2_object_metric_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_object_metric_status->current) { - v2beta2_metric_value_status_free(v2beta2_object_metric_status->current); - v2beta2_object_metric_status->current = NULL; - } - if (v2beta2_object_metric_status->described_object) { - v2beta2_cross_version_object_reference_free(v2beta2_object_metric_status->described_object); - v2beta2_object_metric_status->described_object = NULL; - } - if (v2beta2_object_metric_status->metric) { - v2beta2_metric_identifier_free(v2beta2_object_metric_status->metric); - v2beta2_object_metric_status->metric = NULL; - } - free(v2beta2_object_metric_status); -} - -cJSON *v2beta2_object_metric_status_convertToJSON(v2beta2_object_metric_status_t *v2beta2_object_metric_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_object_metric_status->current - if (!v2beta2_object_metric_status->current) { - goto fail; - } - cJSON *current_local_JSON = v2beta2_metric_value_status_convertToJSON(v2beta2_object_metric_status->current); - if(current_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "current", current_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v2beta2_object_metric_status->described_object - if (!v2beta2_object_metric_status->described_object) { - goto fail; - } - cJSON *described_object_local_JSON = v2beta2_cross_version_object_reference_convertToJSON(v2beta2_object_metric_status->described_object); - if(described_object_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "describedObject", described_object_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v2beta2_object_metric_status->metric - if (!v2beta2_object_metric_status->metric) { - goto fail; - } - cJSON *metric_local_JSON = v2beta2_metric_identifier_convertToJSON(v2beta2_object_metric_status->metric); - if(metric_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metric", metric_local_JSON); - if(item->child == NULL) { - goto fail; - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_object_metric_status_t *v2beta2_object_metric_status_parseFromJSON(cJSON *v2beta2_object_metric_statusJSON){ - - v2beta2_object_metric_status_t *v2beta2_object_metric_status_local_var = NULL; - - // define the local variable for v2beta2_object_metric_status->current - v2beta2_metric_value_status_t *current_local_nonprim = NULL; - - // define the local variable for v2beta2_object_metric_status->described_object - v2beta2_cross_version_object_reference_t *described_object_local_nonprim = NULL; - - // define the local variable for v2beta2_object_metric_status->metric - v2beta2_metric_identifier_t *metric_local_nonprim = NULL; - - // v2beta2_object_metric_status->current - cJSON *current = cJSON_GetObjectItemCaseSensitive(v2beta2_object_metric_statusJSON, "current"); - if (!current) { - goto end; - } - - - current_local_nonprim = v2beta2_metric_value_status_parseFromJSON(current); //nonprimitive - - // v2beta2_object_metric_status->described_object - cJSON *described_object = cJSON_GetObjectItemCaseSensitive(v2beta2_object_metric_statusJSON, "describedObject"); - if (!described_object) { - goto end; - } - - - described_object_local_nonprim = v2beta2_cross_version_object_reference_parseFromJSON(described_object); //nonprimitive - - // v2beta2_object_metric_status->metric - cJSON *metric = cJSON_GetObjectItemCaseSensitive(v2beta2_object_metric_statusJSON, "metric"); - if (!metric) { - goto end; - } - - - metric_local_nonprim = v2beta2_metric_identifier_parseFromJSON(metric); //nonprimitive - - - v2beta2_object_metric_status_local_var = v2beta2_object_metric_status_create ( - current_local_nonprim, - described_object_local_nonprim, - metric_local_nonprim - ); - - return v2beta2_object_metric_status_local_var; -end: - if (current_local_nonprim) { - v2beta2_metric_value_status_free(current_local_nonprim); - current_local_nonprim = NULL; - } - if (described_object_local_nonprim) { - v2beta2_cross_version_object_reference_free(described_object_local_nonprim); - described_object_local_nonprim = NULL; - } - if (metric_local_nonprim) { - v2beta2_metric_identifier_free(metric_local_nonprim); - metric_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_object_metric_status.h b/kubernetes/model/v2beta2_object_metric_status.h deleted file mode 100644 index 8579691e..00000000 --- a/kubernetes/model/v2beta2_object_metric_status.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * v2beta2_object_metric_status.h - * - * ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). - */ - -#ifndef _v2beta2_object_metric_status_H_ -#define _v2beta2_object_metric_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_object_metric_status_t v2beta2_object_metric_status_t; - -#include "v2beta2_cross_version_object_reference.h" -#include "v2beta2_metric_identifier.h" -#include "v2beta2_metric_value_status.h" - - - -typedef struct v2beta2_object_metric_status_t { - struct v2beta2_metric_value_status_t *current; //model - struct v2beta2_cross_version_object_reference_t *described_object; //model - struct v2beta2_metric_identifier_t *metric; //model - -} v2beta2_object_metric_status_t; - -v2beta2_object_metric_status_t *v2beta2_object_metric_status_create( - v2beta2_metric_value_status_t *current, - v2beta2_cross_version_object_reference_t *described_object, - v2beta2_metric_identifier_t *metric -); - -void v2beta2_object_metric_status_free(v2beta2_object_metric_status_t *v2beta2_object_metric_status); - -v2beta2_object_metric_status_t *v2beta2_object_metric_status_parseFromJSON(cJSON *v2beta2_object_metric_statusJSON); - -cJSON *v2beta2_object_metric_status_convertToJSON(v2beta2_object_metric_status_t *v2beta2_object_metric_status); - -#endif /* _v2beta2_object_metric_status_H_ */ - diff --git a/kubernetes/model/v2beta2_pods_metric_source.c b/kubernetes/model/v2beta2_pods_metric_source.c deleted file mode 100644 index 484156fd..00000000 --- a/kubernetes/model/v2beta2_pods_metric_source.c +++ /dev/null @@ -1,123 +0,0 @@ -#include -#include -#include -#include "v2beta2_pods_metric_source.h" - - - -v2beta2_pods_metric_source_t *v2beta2_pods_metric_source_create( - v2beta2_metric_identifier_t *metric, - v2beta2_metric_target_t *target - ) { - v2beta2_pods_metric_source_t *v2beta2_pods_metric_source_local_var = malloc(sizeof(v2beta2_pods_metric_source_t)); - if (!v2beta2_pods_metric_source_local_var) { - return NULL; - } - v2beta2_pods_metric_source_local_var->metric = metric; - v2beta2_pods_metric_source_local_var->target = target; - - return v2beta2_pods_metric_source_local_var; -} - - -void v2beta2_pods_metric_source_free(v2beta2_pods_metric_source_t *v2beta2_pods_metric_source) { - if(NULL == v2beta2_pods_metric_source){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_pods_metric_source->metric) { - v2beta2_metric_identifier_free(v2beta2_pods_metric_source->metric); - v2beta2_pods_metric_source->metric = NULL; - } - if (v2beta2_pods_metric_source->target) { - v2beta2_metric_target_free(v2beta2_pods_metric_source->target); - v2beta2_pods_metric_source->target = NULL; - } - free(v2beta2_pods_metric_source); -} - -cJSON *v2beta2_pods_metric_source_convertToJSON(v2beta2_pods_metric_source_t *v2beta2_pods_metric_source) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_pods_metric_source->metric - if (!v2beta2_pods_metric_source->metric) { - goto fail; - } - cJSON *metric_local_JSON = v2beta2_metric_identifier_convertToJSON(v2beta2_pods_metric_source->metric); - if(metric_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metric", metric_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v2beta2_pods_metric_source->target - if (!v2beta2_pods_metric_source->target) { - goto fail; - } - cJSON *target_local_JSON = v2beta2_metric_target_convertToJSON(v2beta2_pods_metric_source->target); - if(target_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "target", target_local_JSON); - if(item->child == NULL) { - goto fail; - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_pods_metric_source_t *v2beta2_pods_metric_source_parseFromJSON(cJSON *v2beta2_pods_metric_sourceJSON){ - - v2beta2_pods_metric_source_t *v2beta2_pods_metric_source_local_var = NULL; - - // define the local variable for v2beta2_pods_metric_source->metric - v2beta2_metric_identifier_t *metric_local_nonprim = NULL; - - // define the local variable for v2beta2_pods_metric_source->target - v2beta2_metric_target_t *target_local_nonprim = NULL; - - // v2beta2_pods_metric_source->metric - cJSON *metric = cJSON_GetObjectItemCaseSensitive(v2beta2_pods_metric_sourceJSON, "metric"); - if (!metric) { - goto end; - } - - - metric_local_nonprim = v2beta2_metric_identifier_parseFromJSON(metric); //nonprimitive - - // v2beta2_pods_metric_source->target - cJSON *target = cJSON_GetObjectItemCaseSensitive(v2beta2_pods_metric_sourceJSON, "target"); - if (!target) { - goto end; - } - - - target_local_nonprim = v2beta2_metric_target_parseFromJSON(target); //nonprimitive - - - v2beta2_pods_metric_source_local_var = v2beta2_pods_metric_source_create ( - metric_local_nonprim, - target_local_nonprim - ); - - return v2beta2_pods_metric_source_local_var; -end: - if (metric_local_nonprim) { - v2beta2_metric_identifier_free(metric_local_nonprim); - metric_local_nonprim = NULL; - } - if (target_local_nonprim) { - v2beta2_metric_target_free(target_local_nonprim); - target_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_pods_metric_source.h b/kubernetes/model/v2beta2_pods_metric_source.h deleted file mode 100644 index 297dd7a9..00000000 --- a/kubernetes/model/v2beta2_pods_metric_source.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v2beta2_pods_metric_source.h - * - * PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. - */ - -#ifndef _v2beta2_pods_metric_source_H_ -#define _v2beta2_pods_metric_source_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_pods_metric_source_t v2beta2_pods_metric_source_t; - -#include "v2beta2_metric_identifier.h" -#include "v2beta2_metric_target.h" - - - -typedef struct v2beta2_pods_metric_source_t { - struct v2beta2_metric_identifier_t *metric; //model - struct v2beta2_metric_target_t *target; //model - -} v2beta2_pods_metric_source_t; - -v2beta2_pods_metric_source_t *v2beta2_pods_metric_source_create( - v2beta2_metric_identifier_t *metric, - v2beta2_metric_target_t *target -); - -void v2beta2_pods_metric_source_free(v2beta2_pods_metric_source_t *v2beta2_pods_metric_source); - -v2beta2_pods_metric_source_t *v2beta2_pods_metric_source_parseFromJSON(cJSON *v2beta2_pods_metric_sourceJSON); - -cJSON *v2beta2_pods_metric_source_convertToJSON(v2beta2_pods_metric_source_t *v2beta2_pods_metric_source); - -#endif /* _v2beta2_pods_metric_source_H_ */ - diff --git a/kubernetes/model/v2beta2_pods_metric_status.c b/kubernetes/model/v2beta2_pods_metric_status.c deleted file mode 100644 index 1dacde39..00000000 --- a/kubernetes/model/v2beta2_pods_metric_status.c +++ /dev/null @@ -1,123 +0,0 @@ -#include -#include -#include -#include "v2beta2_pods_metric_status.h" - - - -v2beta2_pods_metric_status_t *v2beta2_pods_metric_status_create( - v2beta2_metric_value_status_t *current, - v2beta2_metric_identifier_t *metric - ) { - v2beta2_pods_metric_status_t *v2beta2_pods_metric_status_local_var = malloc(sizeof(v2beta2_pods_metric_status_t)); - if (!v2beta2_pods_metric_status_local_var) { - return NULL; - } - v2beta2_pods_metric_status_local_var->current = current; - v2beta2_pods_metric_status_local_var->metric = metric; - - return v2beta2_pods_metric_status_local_var; -} - - -void v2beta2_pods_metric_status_free(v2beta2_pods_metric_status_t *v2beta2_pods_metric_status) { - if(NULL == v2beta2_pods_metric_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_pods_metric_status->current) { - v2beta2_metric_value_status_free(v2beta2_pods_metric_status->current); - v2beta2_pods_metric_status->current = NULL; - } - if (v2beta2_pods_metric_status->metric) { - v2beta2_metric_identifier_free(v2beta2_pods_metric_status->metric); - v2beta2_pods_metric_status->metric = NULL; - } - free(v2beta2_pods_metric_status); -} - -cJSON *v2beta2_pods_metric_status_convertToJSON(v2beta2_pods_metric_status_t *v2beta2_pods_metric_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_pods_metric_status->current - if (!v2beta2_pods_metric_status->current) { - goto fail; - } - cJSON *current_local_JSON = v2beta2_metric_value_status_convertToJSON(v2beta2_pods_metric_status->current); - if(current_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "current", current_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v2beta2_pods_metric_status->metric - if (!v2beta2_pods_metric_status->metric) { - goto fail; - } - cJSON *metric_local_JSON = v2beta2_metric_identifier_convertToJSON(v2beta2_pods_metric_status->metric); - if(metric_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metric", metric_local_JSON); - if(item->child == NULL) { - goto fail; - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_pods_metric_status_t *v2beta2_pods_metric_status_parseFromJSON(cJSON *v2beta2_pods_metric_statusJSON){ - - v2beta2_pods_metric_status_t *v2beta2_pods_metric_status_local_var = NULL; - - // define the local variable for v2beta2_pods_metric_status->current - v2beta2_metric_value_status_t *current_local_nonprim = NULL; - - // define the local variable for v2beta2_pods_metric_status->metric - v2beta2_metric_identifier_t *metric_local_nonprim = NULL; - - // v2beta2_pods_metric_status->current - cJSON *current = cJSON_GetObjectItemCaseSensitive(v2beta2_pods_metric_statusJSON, "current"); - if (!current) { - goto end; - } - - - current_local_nonprim = v2beta2_metric_value_status_parseFromJSON(current); //nonprimitive - - // v2beta2_pods_metric_status->metric - cJSON *metric = cJSON_GetObjectItemCaseSensitive(v2beta2_pods_metric_statusJSON, "metric"); - if (!metric) { - goto end; - } - - - metric_local_nonprim = v2beta2_metric_identifier_parseFromJSON(metric); //nonprimitive - - - v2beta2_pods_metric_status_local_var = v2beta2_pods_metric_status_create ( - current_local_nonprim, - metric_local_nonprim - ); - - return v2beta2_pods_metric_status_local_var; -end: - if (current_local_nonprim) { - v2beta2_metric_value_status_free(current_local_nonprim); - current_local_nonprim = NULL; - } - if (metric_local_nonprim) { - v2beta2_metric_identifier_free(metric_local_nonprim); - metric_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_pods_metric_status.h b/kubernetes/model/v2beta2_pods_metric_status.h deleted file mode 100644 index 132a17e5..00000000 --- a/kubernetes/model/v2beta2_pods_metric_status.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v2beta2_pods_metric_status.h - * - * PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second). - */ - -#ifndef _v2beta2_pods_metric_status_H_ -#define _v2beta2_pods_metric_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_pods_metric_status_t v2beta2_pods_metric_status_t; - -#include "v2beta2_metric_identifier.h" -#include "v2beta2_metric_value_status.h" - - - -typedef struct v2beta2_pods_metric_status_t { - struct v2beta2_metric_value_status_t *current; //model - struct v2beta2_metric_identifier_t *metric; //model - -} v2beta2_pods_metric_status_t; - -v2beta2_pods_metric_status_t *v2beta2_pods_metric_status_create( - v2beta2_metric_value_status_t *current, - v2beta2_metric_identifier_t *metric -); - -void v2beta2_pods_metric_status_free(v2beta2_pods_metric_status_t *v2beta2_pods_metric_status); - -v2beta2_pods_metric_status_t *v2beta2_pods_metric_status_parseFromJSON(cJSON *v2beta2_pods_metric_statusJSON); - -cJSON *v2beta2_pods_metric_status_convertToJSON(v2beta2_pods_metric_status_t *v2beta2_pods_metric_status); - -#endif /* _v2beta2_pods_metric_status_H_ */ - diff --git a/kubernetes/model/v2beta2_resource_metric_source.c b/kubernetes/model/v2beta2_resource_metric_source.c deleted file mode 100644 index e6e3db8b..00000000 --- a/kubernetes/model/v2beta2_resource_metric_source.c +++ /dev/null @@ -1,114 +0,0 @@ -#include -#include -#include -#include "v2beta2_resource_metric_source.h" - - - -v2beta2_resource_metric_source_t *v2beta2_resource_metric_source_create( - char *name, - v2beta2_metric_target_t *target - ) { - v2beta2_resource_metric_source_t *v2beta2_resource_metric_source_local_var = malloc(sizeof(v2beta2_resource_metric_source_t)); - if (!v2beta2_resource_metric_source_local_var) { - return NULL; - } - v2beta2_resource_metric_source_local_var->name = name; - v2beta2_resource_metric_source_local_var->target = target; - - return v2beta2_resource_metric_source_local_var; -} - - -void v2beta2_resource_metric_source_free(v2beta2_resource_metric_source_t *v2beta2_resource_metric_source) { - if(NULL == v2beta2_resource_metric_source){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_resource_metric_source->name) { - free(v2beta2_resource_metric_source->name); - v2beta2_resource_metric_source->name = NULL; - } - if (v2beta2_resource_metric_source->target) { - v2beta2_metric_target_free(v2beta2_resource_metric_source->target); - v2beta2_resource_metric_source->target = NULL; - } - free(v2beta2_resource_metric_source); -} - -cJSON *v2beta2_resource_metric_source_convertToJSON(v2beta2_resource_metric_source_t *v2beta2_resource_metric_source) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_resource_metric_source->name - if (!v2beta2_resource_metric_source->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v2beta2_resource_metric_source->name) == NULL) { - goto fail; //String - } - - - // v2beta2_resource_metric_source->target - if (!v2beta2_resource_metric_source->target) { - goto fail; - } - cJSON *target_local_JSON = v2beta2_metric_target_convertToJSON(v2beta2_resource_metric_source->target); - if(target_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "target", target_local_JSON); - if(item->child == NULL) { - goto fail; - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_resource_metric_source_t *v2beta2_resource_metric_source_parseFromJSON(cJSON *v2beta2_resource_metric_sourceJSON){ - - v2beta2_resource_metric_source_t *v2beta2_resource_metric_source_local_var = NULL; - - // define the local variable for v2beta2_resource_metric_source->target - v2beta2_metric_target_t *target_local_nonprim = NULL; - - // v2beta2_resource_metric_source->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v2beta2_resource_metric_sourceJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - // v2beta2_resource_metric_source->target - cJSON *target = cJSON_GetObjectItemCaseSensitive(v2beta2_resource_metric_sourceJSON, "target"); - if (!target) { - goto end; - } - - - target_local_nonprim = v2beta2_metric_target_parseFromJSON(target); //nonprimitive - - - v2beta2_resource_metric_source_local_var = v2beta2_resource_metric_source_create ( - strdup(name->valuestring), - target_local_nonprim - ); - - return v2beta2_resource_metric_source_local_var; -end: - if (target_local_nonprim) { - v2beta2_metric_target_free(target_local_nonprim); - target_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_resource_metric_source.h b/kubernetes/model/v2beta2_resource_metric_source.h deleted file mode 100644 index 73474421..00000000 --- a/kubernetes/model/v2beta2_resource_metric_source.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * v2beta2_resource_metric_source.h - * - * ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set. - */ - -#ifndef _v2beta2_resource_metric_source_H_ -#define _v2beta2_resource_metric_source_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_resource_metric_source_t v2beta2_resource_metric_source_t; - -#include "v2beta2_metric_target.h" - - - -typedef struct v2beta2_resource_metric_source_t { - char *name; // string - struct v2beta2_metric_target_t *target; //model - -} v2beta2_resource_metric_source_t; - -v2beta2_resource_metric_source_t *v2beta2_resource_metric_source_create( - char *name, - v2beta2_metric_target_t *target -); - -void v2beta2_resource_metric_source_free(v2beta2_resource_metric_source_t *v2beta2_resource_metric_source); - -v2beta2_resource_metric_source_t *v2beta2_resource_metric_source_parseFromJSON(cJSON *v2beta2_resource_metric_sourceJSON); - -cJSON *v2beta2_resource_metric_source_convertToJSON(v2beta2_resource_metric_source_t *v2beta2_resource_metric_source); - -#endif /* _v2beta2_resource_metric_source_H_ */ - diff --git a/kubernetes/model/v2beta2_resource_metric_status.c b/kubernetes/model/v2beta2_resource_metric_status.c deleted file mode 100644 index 9efe5f55..00000000 --- a/kubernetes/model/v2beta2_resource_metric_status.c +++ /dev/null @@ -1,114 +0,0 @@ -#include -#include -#include -#include "v2beta2_resource_metric_status.h" - - - -v2beta2_resource_metric_status_t *v2beta2_resource_metric_status_create( - v2beta2_metric_value_status_t *current, - char *name - ) { - v2beta2_resource_metric_status_t *v2beta2_resource_metric_status_local_var = malloc(sizeof(v2beta2_resource_metric_status_t)); - if (!v2beta2_resource_metric_status_local_var) { - return NULL; - } - v2beta2_resource_metric_status_local_var->current = current; - v2beta2_resource_metric_status_local_var->name = name; - - return v2beta2_resource_metric_status_local_var; -} - - -void v2beta2_resource_metric_status_free(v2beta2_resource_metric_status_t *v2beta2_resource_metric_status) { - if(NULL == v2beta2_resource_metric_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_resource_metric_status->current) { - v2beta2_metric_value_status_free(v2beta2_resource_metric_status->current); - v2beta2_resource_metric_status->current = NULL; - } - if (v2beta2_resource_metric_status->name) { - free(v2beta2_resource_metric_status->name); - v2beta2_resource_metric_status->name = NULL; - } - free(v2beta2_resource_metric_status); -} - -cJSON *v2beta2_resource_metric_status_convertToJSON(v2beta2_resource_metric_status_t *v2beta2_resource_metric_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_resource_metric_status->current - if (!v2beta2_resource_metric_status->current) { - goto fail; - } - cJSON *current_local_JSON = v2beta2_metric_value_status_convertToJSON(v2beta2_resource_metric_status->current); - if(current_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "current", current_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v2beta2_resource_metric_status->name - if (!v2beta2_resource_metric_status->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v2beta2_resource_metric_status->name) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_resource_metric_status_t *v2beta2_resource_metric_status_parseFromJSON(cJSON *v2beta2_resource_metric_statusJSON){ - - v2beta2_resource_metric_status_t *v2beta2_resource_metric_status_local_var = NULL; - - // define the local variable for v2beta2_resource_metric_status->current - v2beta2_metric_value_status_t *current_local_nonprim = NULL; - - // v2beta2_resource_metric_status->current - cJSON *current = cJSON_GetObjectItemCaseSensitive(v2beta2_resource_metric_statusJSON, "current"); - if (!current) { - goto end; - } - - - current_local_nonprim = v2beta2_metric_value_status_parseFromJSON(current); //nonprimitive - - // v2beta2_resource_metric_status->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v2beta2_resource_metric_statusJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - - v2beta2_resource_metric_status_local_var = v2beta2_resource_metric_status_create ( - current_local_nonprim, - strdup(name->valuestring) - ); - - return v2beta2_resource_metric_status_local_var; -end: - if (current_local_nonprim) { - v2beta2_metric_value_status_free(current_local_nonprim); - current_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_resource_metric_status.h b/kubernetes/model/v2beta2_resource_metric_status.h deleted file mode 100644 index c77fce42..00000000 --- a/kubernetes/model/v2beta2_resource_metric_status.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * v2beta2_resource_metric_status.h - * - * ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. - */ - -#ifndef _v2beta2_resource_metric_status_H_ -#define _v2beta2_resource_metric_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_resource_metric_status_t v2beta2_resource_metric_status_t; - -#include "v2beta2_metric_value_status.h" - - - -typedef struct v2beta2_resource_metric_status_t { - struct v2beta2_metric_value_status_t *current; //model - char *name; // string - -} v2beta2_resource_metric_status_t; - -v2beta2_resource_metric_status_t *v2beta2_resource_metric_status_create( - v2beta2_metric_value_status_t *current, - char *name -); - -void v2beta2_resource_metric_status_free(v2beta2_resource_metric_status_t *v2beta2_resource_metric_status); - -v2beta2_resource_metric_status_t *v2beta2_resource_metric_status_parseFromJSON(cJSON *v2beta2_resource_metric_statusJSON); - -cJSON *v2beta2_resource_metric_status_convertToJSON(v2beta2_resource_metric_status_t *v2beta2_resource_metric_status); - -#endif /* _v2beta2_resource_metric_status_H_ */ - diff --git a/kubernetes/swagger.json b/kubernetes/swagger.json index 427278ab..f2731a8a 100644 --- a/kubernetes/swagger.json +++ b/kubernetes/swagger.json @@ -140,28 +140,32 @@ "items": { "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, "apiVersions": { "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", "items": { "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, "operations": { "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", "items": { "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, "resources": { "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", "items": { "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, "scope": { "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", @@ -344,6 +348,312 @@ }, "type": "object" }, + "v1alpha1.MatchResources": { + "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "properties": { + "excludeResourceRules": { + "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "items": { + "$ref": "#/definitions/v1alpha1.NamedRuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + "type": "string" + }, + "namespaceSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "resourceRules": { + "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + "items": { + "$ref": "#/definitions/v1alpha1.NamedRuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1alpha1.NamedRuleWithOperations": { + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1alpha1.ParamKind": { + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": "string" + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1alpha1.ParamRef": { + "description": "ParamRef references a parameter resource", + "properties": { + "name": { + "description": "Name of the resource being referenced.", + "type": "string" + }, + "namespace": { + "description": "Namespace of the referenced resource. Should be empty for the cluster-scoped resources", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1alpha1.ValidatingAdmissionPolicy": { + "description": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.ValidatingAdmissionPolicyBinding": { + "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.ValidatingAdmissionPolicyBindingList": { + "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of PolicyBinding.", + "items": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBindingList", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.ValidatingAdmissionPolicyBindingSpec": { + "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", + "properties": { + "matchResources": { + "$ref": "#/definitions/v1alpha1.MatchResources", + "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." + }, + "paramRef": { + "$ref": "#/definitions/v1alpha1.ParamRef", + "description": "ParamRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied." + }, + "policyName": { + "description": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": "string" + } + }, + "type": "object" + }, + "v1alpha1.ValidatingAdmissionPolicyList": { + "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyList", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.ValidatingAdmissionPolicySpec": { + "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", + "properties": { + "failurePolicy": { + "description": "FailurePolicy defines how to handle failures for the admission policy. Failures can occur from invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. Allowed values are Ignore or Fail. Defaults to Fail.", + "type": "string" + }, + "matchConstraints": { + "$ref": "#/definitions/v1alpha1.MatchResources", + "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." + }, + "paramKind": { + "$ref": "#/definitions/v1alpha1.ParamKind", + "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + }, + "validations": { + "description": "Validations contain CEL expressions which is used to apply the validation. A minimum of one validation is required for a policy definition. Required.", + "items": { + "$ref": "#/definitions/v1alpha1.Validation" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "validations" + ], + "type": "object" + }, + "v1alpha1.Validation": { + "description": "Validation specifies the CEL expression which is used to apply the validation.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the Admission request/response, organized into CEL variables as well as some other useful variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + "type": "string" + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + "type": "string" + }, + "reason": { + "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + "type": "string" + } + }, + "required": [ + "expression" + ], + "type": "object" + }, "v1alpha1.ServerStorageVersion": { "description": "An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.", "properties": { @@ -1164,7 +1474,7 @@ "type": "integer" }, "replicas": { - "description": "Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", + "description": "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", "format": "int32", "type": "integer" } @@ -1316,6 +1626,17 @@ } ] }, + "v1.StatefulSetOrdinals": { + "description": "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.", + "properties": { + "start": { + "description": "start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:\n [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).\nIf unset, defaults to 0. Replica indices will be in the range:\n [0, .spec.replicas).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "v1.StatefulSetPersistentVolumeClaimRetentionPolicy": { "description": "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.", "properties": { @@ -1338,6 +1659,10 @@ "format": "int32", "type": "integer" }, + "ordinals": { + "$ref": "#/definitions/v1.StatefulSetOrdinals", + "description": "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested. Using the ordinals field requires the StatefulSetStartOrdinal feature gate to be enabled, which is alpha." + }, "persistentVolumeClaimRetentionPolicy": { "$ref": "#/definitions/v1.StatefulSetPersistentVolumeClaimRetentionPolicy", "description": "persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. +optional" @@ -1366,7 +1691,7 @@ }, "template": { "$ref": "#/definitions/v1.PodTemplateSpec", - "description": "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet." + "description": "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format -. For example, a pod in a StatefulSet named \"web\" with index number \"3\" would be named \"web-3\"." }, "updateStrategy": { "$ref": "#/definitions/v1.StatefulSetUpdateStrategy", @@ -1673,6 +1998,45 @@ }, "type": "object" }, + "v1alpha1.SelfSubjectReview": { + "description": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "status": { + "$ref": "#/definitions/v1alpha1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.SelfSubjectReviewStatus": { + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", + "properties": { + "userInfo": { + "$ref": "#/definitions/v1.UserInfo", + "description": "User attributes of the user making this request." + } + }, + "type": "object" + }, "v1.LocalSubjectAccessReview": { "description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", "properties": { @@ -2054,7 +2418,7 @@ "type": "string" }, "kind": { - "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", + "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "name": { @@ -2317,7 +2681,7 @@ "type": "string" }, "kind": { - "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", + "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "name": { @@ -2860,159 +3224,145 @@ ], "type": "object" }, - "v2beta2.ContainerResourceMetricSource": { - "description": "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", + "v1.CronJob": { + "description": "CronJob represents the configuration of a single cron job.", "properties": { - "container": { - "description": "container is the name of the container in the pods of the scaling target", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "name": { - "description": "name is the name of the resource in question.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, - "target": { - "$ref": "#/definitions/v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" - } - }, - "required": [ - "name", - "target", - "container" - ], - "type": "object" - }, - "v2beta2.ContainerResourceMetricStatus": { - "description": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "properties": { - "container": { - "description": "Container is the name of the container in the pods of the scaling target", - "type": "string" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "current": { - "$ref": "#/definitions/v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" + "spec": { + "$ref": "#/definitions/v1.CronJobSpec", + "description": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, - "name": { - "description": "Name is the name of the resource in question.", - "type": "string" + "status": { + "$ref": "#/definitions/v1.CronJobStatus", + "description": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "required": [ - "name", - "current", - "container" - ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + ] }, - "v2beta2.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "v1.CronJobList": { + "description": "CronJobList is a collection of cron jobs.", "properties": { "apiVersion": { - "description": "API version of the referent", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, + "items": { + "description": "items is the list of CronJobs.", + "items": { + "$ref": "#/definitions/v1.CronJob" + }, + "type": "array" + }, "kind": { - "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, - "name": { - "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ - "kind", - "name" + "items" ], - "type": "object" - }, - "v2beta2.ExternalMetricSource": { - "description": "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).", - "properties": { - "metric": { - "$ref": "#/definitions/v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - }, - "target": { - "$ref": "#/definitions/v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "CronJobList", + "version": "v1" } - }, - "required": [ - "metric", - "target" - ], - "type": "object" + ] }, - "v2beta2.ExternalMetricStatus": { - "description": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.", + "v1.CronJobSpec": { + "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", "properties": { - "current": { - "$ref": "#/definitions/v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" + "concurrencyPolicy": { + "description": "Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one\n\n", + "type": "string" }, - "metric": { - "$ref": "#/definitions/v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - } - }, - "required": [ - "metric", - "current" - ], - "type": "object" - }, - "v2beta2.HPAScalingPolicy": { - "description": "HPAScalingPolicy is a single policy which must hold true for a specified past interval.", - "properties": { - "periodSeconds": { - "description": "PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).", + "failedJobsHistoryLimit": { + "description": "The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.", "format": "int32", "type": "integer" }, - "type": { - "description": "Type is used to specify the scaling policy.", + "jobTemplate": { + "$ref": "#/definitions/v1.JobTemplateSpec", + "description": "Specifies the job that will be created when executing a CronJob." + }, + "schedule": { + "description": "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", "type": "string" }, - "value": { - "description": "Value contains the amount of change which is permitted by the policy. It must be greater than zero", + "startingDeadlineSeconds": { + "description": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", + "format": "int64", + "type": "integer" + }, + "successfulJobsHistoryLimit": { + "description": "The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.", "format": "int32", "type": "integer" + }, + "suspend": { + "description": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", + "type": "boolean" + }, + "timeZone": { + "description": "The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones This is beta field and must be enabled via the `CronJobTimeZone` feature gate.", + "type": "string" } }, "required": [ - "type", - "value", - "periodSeconds" + "schedule", + "jobTemplate" ], "type": "object" }, - "v2beta2.HPAScalingRules": { - "description": "HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.", + "v1.CronJobStatus": { + "description": "CronJobStatus represents the current state of a cron job.", "properties": { - "policies": { - "description": "policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid", + "active": { + "description": "A list of pointers to currently running jobs.", "items": { - "$ref": "#/definitions/v2beta2.HPAScalingPolicy" + "$ref": "#/definitions/v1.ObjectReference" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "selectPolicy": { - "description": "selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used.", + "lastScheduleTime": { + "description": "Information when was the last time the job was successfully scheduled.", + "format": "date-time", "type": "string" }, - "stabilizationWindowSeconds": { - "description": "StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).", - "format": "int32", - "type": "integer" + "lastSuccessfulTime": { + "description": "Information when was the last time the job successfully completed.", + "format": "date-time", + "type": "string" } }, "type": "object" }, - "v2beta2.HorizontalPodAutoscaler": { - "description": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.", + "v1.Job": { + "description": "Job represents the configuration of a single job.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", @@ -3024,62 +3374,53 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscalerSpec", - "description": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + "$ref": "#/definitions/v1.JobSpec", + "description": "Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, "status": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscalerStatus", - "description": "status is the current information about the autoscaler." + "$ref": "#/definitions/v1.JobStatus", + "description": "Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "batch", + "kind": "Job", + "version": "v1" } ] }, - "v2beta2.HorizontalPodAutoscalerBehavior": { - "description": "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).", + "v1.JobCondition": { + "description": "JobCondition describes current state of a job.", "properties": { - "scaleDown": { - "$ref": "#/definitions/v2beta2.HPAScalingRules", - "description": "scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used)." + "lastProbeTime": { + "description": "Last time the condition was checked.", + "format": "date-time", + "type": "string" }, - "scaleUp": { - "$ref": "#/definitions/v2beta2.HPAScalingRules", - "description": "scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:\n * increase no more than 4 pods per 60 seconds\n * double the number of pods per 60 seconds\nNo stabilization is used." - } - }, - "type": "object" - }, - "v2beta2.HorizontalPodAutoscalerCondition": { - "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", - "properties": { "lastTransitionTime": { - "description": "lastTransitionTime is the last time the condition transitioned from one status to another", + "description": "Last time the condition transit from one status to another.", "format": "date-time", "type": "string" }, "message": { - "description": "message is a human-readable explanation containing details about the transition", + "description": "Human readable message indicating details about last transition.", "type": "string" }, "reason": { - "description": "reason is the reason for the condition's last transition.", + "description": "(brief) reason for the condition's last transition.", "type": "string" }, "status": { - "description": "status is the status of the condition (True, False, Unknown)", + "description": "Status of the condition, one of True, False, Unknown.", "type": "string" }, "type": { - "description": "type describes the current condition", + "description": "Type of job condition, Complete or Failed.", "type": "string" } }, @@ -3089,17 +3430,17 @@ ], "type": "object" }, - "v2beta2.HorizontalPodAutoscalerList": { - "description": "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.", + "v1.JobList": { + "description": "JobList is a collection of jobs.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "items is the list of horizontal pod autoscaler objects.", + "description": "items is the list of Jobs.", "items": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" }, "type": "array" }, @@ -3109,7 +3450,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "metadata is the standard list metadata." + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -3118,337 +3459,437 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "autoscaling", - "kind": "HorizontalPodAutoscalerList", - "version": "v2beta2" + "group": "batch", + "kind": "JobList", + "version": "v1" } ] }, - "v2beta2.HorizontalPodAutoscalerSpec": { - "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", + "v1.JobSpec": { + "description": "JobSpec describes how the job execution will look like.", "properties": { - "behavior": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscalerBehavior", - "description": "behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used." + "activeDeadlineSeconds": { + "description": "Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.", + "format": "int64", + "type": "integer" }, - "maxReplicas": { - "description": "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.", + "backoffLimit": { + "description": "Specifies the number of retries before marking this job failed. Defaults to 6", "format": "int32", "type": "integer" }, - "metrics": { - "description": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.", - "items": { - "$ref": "#/definitions/v2beta2.MetricSpec" - }, - "type": "array" + "completionMode": { + "description": "CompletionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\n\n`NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.\n\n`Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.\n\nMore completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.", + "type": "string" }, - "minReplicas": { - "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", + "completions": { + "description": "Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", "format": "int32", "type": "integer" }, - "scaleTargetRef": { - "$ref": "#/definitions/v2beta2.CrossVersionObjectReference", - "description": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count." + "manualSelector": { + "description": "manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector", + "type": "boolean" + }, + "parallelism": { + "description": "Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + "format": "int32", + "type": "integer" + }, + "podFailurePolicy": { + "$ref": "#/definitions/v1.PodFailurePolicy", + "description": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.\n\nThis field is alpha-level. To use this field, you must enable the `JobPodFailurePolicy` feature gate (disabled by default)." + }, + "selector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "suspend": { + "description": "Suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.", + "type": "boolean" + }, + "template": { + "$ref": "#/definitions/v1.PodTemplateSpec", + "description": "Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/" + }, + "ttlSecondsAfterFinished": { + "description": "ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.", + "format": "int32", + "type": "integer" } }, "required": [ - "scaleTargetRef", - "maxReplicas" + "template" ], "type": "object" }, - "v2beta2.HorizontalPodAutoscalerStatus": { - "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", + "v1.JobStatus": { + "description": "JobStatus represents the current state of a Job.", "properties": { - "conditions": { - "description": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.", - "items": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscalerCondition" - }, - "type": "array" + "active": { + "description": "The number of pending and running pods.", + "format": "int32", + "type": "integer" }, - "currentMetrics": { - "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", + "completedIndexes": { + "description": "CompletedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\".", + "type": "string" + }, + "completionTime": { + "description": "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is only set when the job finishes successfully.", + "format": "date-time", + "type": "string" + }, + "conditions": { + "description": "The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", "items": { - "$ref": "#/definitions/v2beta2.MetricStatus" + "$ref": "#/definitions/v1.JobCondition" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" }, - "currentReplicas": { - "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", + "failed": { + "description": "The number of pods which reached phase Failed.", "format": "int32", "type": "integer" }, - "desiredReplicas": { - "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", + "ready": { + "description": "The number of pods which have a Ready condition.\n\nThis field is beta-level. The job controller populates the field when the feature gate JobReadyPods is enabled (enabled by default).", "format": "int32", "type": "integer" }, - "lastScaleTime": { - "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.", + "startTime": { + "description": "Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.", "format": "date-time", "type": "string" }, - "observedGeneration": { - "description": "observedGeneration is the most recent generation observed by this autoscaler.", - "format": "int64", + "succeeded": { + "description": "The number of pods which reached phase Succeeded.", + "format": "int32", "type": "integer" + }, + "uncountedTerminatedPods": { + "$ref": "#/definitions/v1.UncountedTerminatedPods", + "description": "UncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status: (1) Add the pod UID to the arrays in this field. (2) Remove the pod finalizer. (3) Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nOld jobs might not be tracked using this field, in which case the field remains null." } }, - "required": [ - "currentReplicas", - "desiredReplicas" - ], "type": "object" }, - "v2beta2.MetricIdentifier": { - "description": "MetricIdentifier defines the name and optionally selector for a metric", + "v1.JobTemplateSpec": { + "description": "JobTemplateSpec describes the data a Job should have when created from a template", "properties": { - "name": { - "description": "name is the name of the given metric", - "type": "string" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." + "spec": { + "$ref": "#/definitions/v1.JobSpec", + "description": "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "required": [ - "name" - ], "type": "object" }, - "v2beta2.MetricSpec": { - "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", + "v1.PodFailurePolicy": { + "description": "PodFailurePolicy describes how failed pods influence the backoffLimit.", "properties": { - "containerResource": { - "$ref": "#/definitions/v2beta2.ContainerResourceMetricSource", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag." - }, - "external": { - "$ref": "#/definitions/v2beta2.ExternalMetricSource", - "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." - }, - "object": { - "$ref": "#/definitions/v2beta2.ObjectMetricSource", - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." - }, - "pods": { - "$ref": "#/definitions/v2beta2.PodsMetricSource", - "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." - }, - "resource": { - "$ref": "#/definitions/v2beta2.ResourceMetricSource", - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." - }, - "type": { - "description": "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", - "type": "string" + "rules": { + "description": "A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.", + "items": { + "$ref": "#/definitions/v1.PodFailurePolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "required": [ - "type" + "rules" ], "type": "object" }, - "v2beta2.MetricStatus": { - "description": "MetricStatus describes the last-read state of a single metric.", + "v1.PodFailurePolicyOnExitCodesRequirement": { + "description": "PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.", "properties": { - "containerResource": { - "$ref": "#/definitions/v2beta2.ContainerResourceMetricStatus", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." - }, - "external": { - "$ref": "#/definitions/v2beta2.ExternalMetricStatus", - "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." - }, - "object": { - "$ref": "#/definitions/v2beta2.ObjectMetricStatus", - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." - }, - "pods": { - "$ref": "#/definitions/v2beta2.PodsMetricStatus", - "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." - }, - "resource": { - "$ref": "#/definitions/v2beta2.ResourceMetricStatus", - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + "containerName": { + "description": "Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.", + "type": "string" }, - "type": { - "description": "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", + "operator": { + "description": "Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: - In: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is in the set of specified values.\n- NotIn: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is not in the set of specified values.\nAdditional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.\n\n", "type": "string" + }, + "values": { + "description": "Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array", + "x-kubernetes-list-type": "set" } }, "required": [ - "type" + "operator", + "values" ], "type": "object" }, - "v2beta2.MetricTarget": { - "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric", + "v1.PodFailurePolicyOnPodConditionsPattern": { + "description": "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.", "properties": { - "averageUtilization": { - "description": "averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type", - "format": "int32", - "type": "integer" - }, - "averageValue": { - "description": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)", + "status": { + "description": "Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.", "type": "string" }, "type": { - "description": "type represents whether the metric type is Utilization, Value, or AverageValue", - "type": "string" - }, - "value": { - "description": "value is the target value of the metric (as a quantity).", + "description": "Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.", "type": "string" } }, "required": [ - "type" + "type", + "status" ], "type": "object" }, - "v2beta2.MetricValueStatus": { - "description": "MetricValueStatus holds the current value for a metric", + "v1.PodFailurePolicyRule": { + "description": "PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of OnExitCodes and onPodConditions, but not both, can be used in each rule.", "properties": { - "averageUtilization": { - "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", - "format": "int32", - "type": "integer" - }, - "averageValue": { - "description": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)", + "action": { + "description": "Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all\n running pods are terminated.\n- Ignore: indicates that the counter towards the .backoffLimit is not\n incremented and a replacement pod is created.\n- Count: indicates that the pod is handled in the default way - the\n counter towards the .backoffLimit is incremented.\nAdditional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.\n\n", "type": "string" }, - "value": { - "description": "value is the current value of the metric (as a quantity).", - "type": "string" + "onExitCodes": { + "$ref": "#/definitions/v1.PodFailurePolicyOnExitCodesRequirement", + "description": "Represents the requirement on the container exit codes." + }, + "onPodConditions": { + "description": "Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.", + "items": { + "$ref": "#/definitions/v1.PodFailurePolicyOnPodConditionsPattern" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, + "required": [ + "action", + "onPodConditions" + ], "type": "object" }, - "v2beta2.ObjectMetricSource": { - "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "v1.UncountedTerminatedPods": { + "description": "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.", "properties": { - "describedObject": { - "$ref": "#/definitions/v2beta2.CrossVersionObjectReference" - }, - "metric": { - "$ref": "#/definitions/v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" + "failed": { + "description": "Failed holds UIDs of failed Pods.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" }, - "target": { - "$ref": "#/definitions/v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" + "succeeded": { + "description": "Succeeded holds UIDs of succeeded Pods.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" } }, - "required": [ - "describedObject", - "target", - "metric" - ], "type": "object" }, - "v2beta2.ObjectMetricStatus": { - "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "v1.CertificateSigningRequest": { + "description": "CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued.\n\nKubelets use this API to obtain:\n 1. client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client-kubelet\" signerName).\n 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the \"kubernetes.io/kubelet-serving\" signerName).\n\nThis API can be used to request client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client\" signerName), or to obtain certificates from custom non-Kubernetes signers.", "properties": { - "current": { - "$ref": "#/definitions/v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" }, - "describedObject": { - "$ref": "#/definitions/v2beta2.CrossVersionObjectReference" + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" }, - "metric": { - "$ref": "#/definitions/v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/v1.CertificateSigningRequestSpec", + "description": "spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users." + }, + "status": { + "$ref": "#/definitions/v1.CertificateSigningRequestStatus", + "description": "status contains information about whether the request is approved or denied, and the certificate issued by the signer, or the failure condition indicating signer failure." } }, "required": [ - "metric", - "current", - "describedObject" + "spec" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + ] }, - "v2beta2.PodsMetricSource": { - "description": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", + "v1.CertificateSigningRequestCondition": { + "description": "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object", "properties": { - "metric": { - "$ref": "#/definitions/v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" + "lastTransitionTime": { + "description": "lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time.", + "format": "date-time", + "type": "string" }, - "target": { - "$ref": "#/definitions/v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" + "lastUpdateTime": { + "description": "lastUpdateTime is the time of the last update to this condition", + "format": "date-time", + "type": "string" + }, + "message": { + "description": "message contains a human readable message with details about the request state", + "type": "string" + }, + "reason": { + "description": "reason indicates a brief reason for the request state", + "type": "string" + }, + "status": { + "description": "status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\".", + "type": "string" + }, + "type": { + "description": "type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\".\n\nAn \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer.\n\nA \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer.\n\nA \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate.\n\nApproved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added.\n\nOnly one condition of a given type is allowed.", + "type": "string" } }, "required": [ - "metric", - "target" + "type", + "status" ], "type": "object" }, - "v2beta2.PodsMetricStatus": { - "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", + "v1.CertificateSigningRequestList": { + "description": "CertificateSigningRequestList is a collection of CertificateSigningRequest objects", "properties": { - "current": { - "$ref": "#/definitions/v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" }, - "metric": { - "$ref": "#/definitions/v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" + "items": { + "description": "items is a collection of CertificateSigningRequest objects", + "items": { + "$ref": "#/definitions/v1.CertificateSigningRequest" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" } }, "required": [ - "metric", - "current" + "items" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequestList", + "version": "v1" + } + ] }, - "v2beta2.ResourceMetricSource": { - "description": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", + "v1.CertificateSigningRequestSpec": { + "description": "CertificateSigningRequestSpec contains the certificate request.", "properties": { - "name": { - "description": "name is the name of the resource in question.", + "expirationSeconds": { + "description": "expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration.\n\nThe v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager.\n\nCertificate signers may not honor this field for various reasons:\n\n 1. Old signer that is unaware of the field (such as the in-tree\n implementations prior to v1.22)\n 2. Signer whose configured maximum is shorter than the requested duration\n 3. Signer whose configured minimum is longer than the requested duration\n\nThe minimum valid value for expirationSeconds is 600, i.e. 10 minutes.", + "format": "int32", + "type": "integer" + }, + "extra": { + "additionalProperties": { + "items": { + "type": "string" + }, + "type": "array" + }, + "description": "extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": "object" + }, + "groups": { + "description": "groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "request": { + "description": "request contains an x509 certificate signing request encoded in a \"CERTIFICATE REQUEST\" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded.", + "format": "byte", + "type": "string", + "x-kubernetes-list-type": "atomic" + }, + "signerName": { + "description": "signerName indicates the requested signer, and is a qualified name.\n\nList/watch requests for CertificateSigningRequests can filter on this field using a \"spec.signerName=NAME\" fieldSelector.\n\nWell-known Kubernetes signers are:\n 1. \"kubernetes.io/kube-apiserver-client\": issues client certificates that can be used to authenticate to kube-apiserver.\n Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 2. \"kubernetes.io/kube-apiserver-client-kubelet\": issues client certificates that kubelets use to authenticate to kube-apiserver.\n Requests for this signer can be auto-approved by the \"csrapproving\" controller in kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 3. \"kubernetes.io/kubelet-serving\" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely.\n Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n\nMore details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers\n\nCustom signerNames can also be specified. The signer defines:\n 1. Trust distribution: how trust (CA bundles) are distributed.\n 2. Permitted subjects: and behavior when a disallowed subject is requested.\n 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested.\n 4. Required, permitted, or forbidden key usages / extended key usages.\n 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin.\n 6. Whether or not requests for CA certificates are allowed.", "type": "string" }, - "target": { - "$ref": "#/definitions/v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" + "uid": { + "description": "uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": "string" + }, + "usages": { + "description": "usages specifies a set of key usages requested in the issued certificate.\n\nRequests for TLS client certificates typically request: \"digital signature\", \"key encipherment\", \"client auth\".\n\nRequests for TLS serving certificates typically request: \"key encipherment\", \"digital signature\", \"server auth\".\n\nValid values are:\n \"signing\", \"digital signature\", \"content commitment\",\n \"key encipherment\", \"key agreement\", \"data encipherment\",\n \"cert sign\", \"crl sign\", \"encipher only\", \"decipher only\", \"any\",\n \"server auth\", \"client auth\",\n \"code signing\", \"email protection\", \"s/mime\",\n \"ipsec end system\", \"ipsec tunnel\", \"ipsec user\",\n \"timestamping\", \"ocsp signing\", \"microsoft sgc\", \"netscape sgc\"", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "username": { + "description": "username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": "string" } }, "required": [ - "name", - "target" + "request", + "signerName" ], "type": "object" }, - "v2beta2.ResourceMetricStatus": { - "description": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", + "v1.CertificateSigningRequestStatus": { + "description": "CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.", "properties": { - "current": { - "$ref": "#/definitions/v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" + "certificate": { + "description": "certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable.\n\nIf the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty.\n\nValidation requirements:\n 1. certificate must contain one or more PEM blocks.\n 2. All PEM blocks must have the \"CERTIFICATE\" label, contain no headers, and the encoded data\n must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280.\n 3. Non-PEM content may appear before or after the \"CERTIFICATE\" PEM blocks and is unvalidated,\n to allow for explanatory text as described in section 5.2 of RFC7468.\n\nIf more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes.\n\nThe certificate is encoded in PEM format.\n\nWhen serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of:\n\n base64(\n -----BEGIN CERTIFICATE-----\n ...\n -----END CERTIFICATE-----\n )", + "format": "byte", + "type": "string", + "x-kubernetes-list-type": "atomic" }, - "name": { - "description": "Name is the name of the resource in question.", - "type": "string" + "conditions": { + "description": "conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\".", + "items": { + "$ref": "#/definitions/v1.CertificateSigningRequestCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" } }, - "required": [ - "name", - "current" - ], "type": "object" }, - "v1.CronJob": { - "description": "CronJob represents the configuration of a single cron job.", + "v1.Lease": { + "description": "Lease defines a lease concept.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", @@ -3460,37 +3901,33 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1.CronJobSpec", - "description": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/v1.CronJobStatus", - "description": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1.LeaseSpec", + "description": "Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "batch", - "kind": "CronJob", + "group": "coordination.k8s.io", + "kind": "Lease", "version": "v1" } ] }, - "v1.CronJobList": { - "description": "CronJobList is a collection of cron jobs.", + "v1.LeaseList": { + "description": "LeaseList is a list of Lease objects.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "items is the list of CronJobs.", + "description": "Items is a list of schema objects.", "items": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Lease" }, "type": "array" }, @@ -3509,483 +3946,487 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "batch", - "kind": "CronJobList", + "group": "coordination.k8s.io", + "kind": "LeaseList", "version": "v1" } ] }, - "v1.CronJobSpec": { - "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", + "v1.LeaseSpec": { + "description": "LeaseSpec is a specification of a Lease.", "properties": { - "concurrencyPolicy": { - "description": "Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one\n\n", + "acquireTime": { + "description": "acquireTime is a time when the current lease was acquired.", + "format": "date-time", "type": "string" }, - "failedJobsHistoryLimit": { - "description": "The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.", + "holderIdentity": { + "description": "holderIdentity contains the identity of the holder of a current lease.", + "type": "string" + }, + "leaseDurationSeconds": { + "description": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime.", "format": "int32", "type": "integer" }, - "jobTemplate": { - "$ref": "#/definitions/v1.JobTemplateSpec", - "description": "Specifies the job that will be created when executing a CronJob." + "leaseTransitions": { + "description": "leaseTransitions is the number of transitions of a lease between holders.", + "format": "int32", + "type": "integer" }, - "schedule": { - "description": "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", + "renewTime": { + "description": "renewTime is a time when the current holder of a lease has last updated the lease.", + "format": "date-time", + "type": "string" + } + }, + "type": "object" + }, + "v1.AWSElasticBlockStoreVolumeSource": { + "description": "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", "type": "string" }, - "startingDeadlineSeconds": { - "description": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", - "format": "int64", - "type": "integer" - }, - "successfulJobsHistoryLimit": { - "description": "The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.", + "partition": { + "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", "format": "int32", "type": "integer" }, - "suspend": { - "description": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", + "readOnly": { + "description": "readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", "type": "boolean" }, - "timeZone": { - "description": "The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones This is beta field and must be enabled via the `CronJobTimeZone` feature gate.", + "volumeID": { + "description": "volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", "type": "string" } }, "required": [ - "schedule", - "jobTemplate" + "volumeID" ], "type": "object" }, - "v1.CronJobStatus": { - "description": "CronJobStatus represents the current state of a cron job.", + "v1.Affinity": { + "description": "Affinity is a group of affinity scheduling rules.", "properties": { - "active": { - "description": "A list of pointers to currently running jobs.", - "items": { - "$ref": "#/definitions/v1.ObjectReference" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "nodeAffinity": { + "$ref": "#/definitions/v1.NodeAffinity", + "description": "Describes node affinity scheduling rules for the pod." }, - "lastScheduleTime": { - "description": "Information when was the last time the job was successfully scheduled.", - "format": "date-time", + "podAffinity": { + "$ref": "#/definitions/v1.PodAffinity", + "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s))." + }, + "podAntiAffinity": { + "$ref": "#/definitions/v1.PodAntiAffinity", + "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s))." + } + }, + "type": "object" + }, + "v1.AttachedVolume": { + "description": "AttachedVolume describes a volume attached to a node", + "properties": { + "devicePath": { + "description": "DevicePath represents the device path where the volume should be available", "type": "string" }, - "lastSuccessfulTime": { - "description": "Information when was the last time the job successfully completed.", - "format": "date-time", + "name": { + "description": "Name of the attached volume", "type": "string" } }, + "required": [ + "name", + "devicePath" + ], "type": "object" }, - "v1.Job": { - "description": "Job represents the configuration of a single job.", + "v1.AzureDiskVolumeSource": { + "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "cachingMode": { + "description": "cachingMode is the Host Caching mode: None, Read Only, Read Write.", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "diskName": { + "description": "diskName is the Name of the data disk in the blob storage", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "diskURI": { + "description": "diskURI is the URI of data disk in the blob storage", + "type": "string" }, - "spec": { - "$ref": "#/definitions/v1.JobSpec", - "description": "Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "fsType": { + "description": "fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" }, - "status": { - "$ref": "#/definitions/v1.JobStatus", - "description": "Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "kind": { + "description": "kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared", + "type": "string" + }, + "readOnly": { + "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" } }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "Job", - "version": "v1" - } - ] + "required": [ + "diskName", + "diskURI" + ], + "type": "object" }, - "v1.JobCondition": { - "description": "JobCondition describes current state of a job.", + "v1.AzureFilePersistentVolumeSource": { + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", "properties": { - "lastProbeTime": { - "description": "Last time the condition was checked.", - "format": "date-time", - "type": "string" + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" }, - "lastTransitionTime": { - "description": "Last time the condition transit from one status to another.", - "format": "date-time", + "secretName": { + "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", "type": "string" }, - "message": { - "description": "Human readable message indicating details about last transition.", + "secretNamespace": { + "description": "secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod", "type": "string" }, - "reason": { - "description": "(brief) reason for the condition's last transition.", + "shareName": { + "description": "shareName is the azure Share Name", "type": "string" + } + }, + "required": [ + "secretName", + "shareName" + ], + "type": "object" + }, + "v1.AzureFileVolumeSource": { + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "properties": { + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", + "secretName": { + "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", "type": "string" }, - "type": { - "description": "Type of job condition, Complete or Failed.", + "shareName": { + "description": "shareName is the azure share Name", "type": "string" } }, "required": [ - "type", - "status" + "secretName", + "shareName" ], "type": "object" }, - "v1.JobList": { - "description": "JobList is a collection of jobs.", + "v1.Binding": { + "description": "Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "items": { - "description": "items is the list of Jobs.", - "items": { - "$ref": "#/definitions/v1.Job" - }, - "type": "array" - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "target": { + "$ref": "#/definitions/v1.ObjectReference", + "description": "The target object that you want to bind to the standard object." } }, "required": [ - "items" + "target" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "batch", - "kind": "JobList", + "group": "", + "kind": "Binding", "version": "v1" } ] }, - "v1.JobSpec": { - "description": "JobSpec describes how the job execution will look like.", + "v1.CSIPersistentVolumeSource": { + "description": "Represents storage that is managed by an external CSI volume driver (Beta feature)", "properties": { - "activeDeadlineSeconds": { - "description": "Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.", - "format": "int64", - "type": "integer" + "controllerExpandSecretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an beta field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." }, - "backoffLimit": { - "description": "Specifies the number of retries before marking this job failed. Defaults to 6", - "format": "int32", - "type": "integer" + "controllerPublishSecretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." }, - "completionMode": { - "description": "CompletionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\n\n`NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.\n\n`Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.\n\nMore completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.", + "driver": { + "description": "driver is the name of the driver to use for this volume. Required.", "type": "string" }, - "completions": { - "description": "Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", - "format": "int32", - "type": "integer" - }, - "manualSelector": { - "description": "manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector", - "type": "boolean" + "fsType": { + "description": "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", + "type": "string" }, - "parallelism": { - "description": "Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", - "format": "int32", - "type": "integer" + "nodeExpandSecretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This is an alpha field and requires enabling CSINodeExpandSecret feature gate. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed." }, - "podFailurePolicy": { - "$ref": "#/definitions/v1.PodFailurePolicy", - "description": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.\n\nThis field is alpha-level. To use this field, you must enable the `JobPodFailurePolicy` feature gate (disabled by default)." + "nodePublishSecretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + "nodeStageSecretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." }, - "suspend": { - "description": "Suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.", + "readOnly": { + "description": "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", "type": "boolean" }, - "template": { - "$ref": "#/definitions/v1.PodTemplateSpec", - "description": "Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/" + "volumeAttributes": { + "additionalProperties": { + "type": "string" + }, + "description": "volumeAttributes of the volume to publish.", + "type": "object" }, - "ttlSecondsAfterFinished": { - "description": "ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.", - "format": "int32", - "type": "integer" + "volumeHandle": { + "description": "volumeHandle is the unique volume name returned by the CSI volume plugin\u2019s CreateVolume to refer to the volume on all subsequent calls. Required.", + "type": "string" } }, "required": [ - "template" + "driver", + "volumeHandle" ], "type": "object" }, - "v1.JobStatus": { - "description": "JobStatus represents the current state of a Job.", + "v1.CSIVolumeSource": { + "description": "Represents a source location of a volume to mount, managed by an external CSI driver", "properties": { - "active": { - "description": "The number of pending and running pods.", - "format": "int32", - "type": "integer" - }, - "completedIndexes": { - "description": "CompletedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\".", + "driver": { + "description": "driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", "type": "string" }, - "completionTime": { - "description": "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is only set when the job finishes successfully.", - "format": "date-time", + "fsType": { + "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.", "type": "string" }, - "conditions": { - "description": "The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", - "items": { - "$ref": "#/definitions/v1.JobCondition" - }, - "type": "array", - "x-kubernetes-list-type": "atomic", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "failed": { - "description": "The number of pods which reached phase Failed.", - "format": "int32", - "type": "integer" - }, - "ready": { - "description": "The number of pods which have a Ready condition.\n\nThis field is beta-level. The job controller populates the field when the feature gate JobReadyPods is enabled (enabled by default).", - "format": "int32", - "type": "integer" - }, - "startTime": { - "description": "Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.", - "format": "date-time", - "type": "string" + "nodePublishSecretRef": { + "$ref": "#/definitions/v1.LocalObjectReference", + "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed." }, - "succeeded": { - "description": "The number of pods which reached phase Succeeded.", - "format": "int32", - "type": "integer" + "readOnly": { + "description": "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).", + "type": "boolean" }, - "uncountedTerminatedPods": { - "$ref": "#/definitions/v1.UncountedTerminatedPods", - "description": "UncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status: (1) Add the pod UID to the arrays in this field. (2) Remove the pod finalizer. (3) Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nThis field is beta-level. The job controller only makes use of this field when the feature gate JobTrackingWithFinalizers is enabled (enabled by default). Old jobs might not be tracked using this field, in which case the field remains null." + "volumeAttributes": { + "additionalProperties": { + "type": "string" + }, + "description": "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", + "type": "object" } }, + "required": [ + "driver" + ], "type": "object" }, - "v1.JobTemplateSpec": { - "description": "JobTemplateSpec describes the data a Job should have when created from a template", + "v1.Capabilities": { + "description": "Adds and removes POSIX capabilities from running containers.", "properties": { - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "add": { + "description": "Added capabilities", + "items": { + "type": "string" + }, + "type": "array" }, - "spec": { - "$ref": "#/definitions/v1.JobSpec", - "description": "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "drop": { + "description": "Removed capabilities", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" }, - "v1.PodFailurePolicy": { - "description": "PodFailurePolicy describes how failed pods influence the backoffLimit.", + "v1.CephFSPersistentVolumeSource": { + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", "properties": { - "rules": { - "description": "A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.", + "monitors": { + "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", "items": { - "$ref": "#/definitions/v1.PodFailurePolicyRule" + "type": "string" }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "type": "array" + }, + "path": { + "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", + "type": "string" + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "boolean" + }, + "secretFile": { + "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "string" + }, + "secretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" + }, + "user": { + "description": "user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "string" } }, "required": [ - "rules" + "monitors" ], "type": "object" }, - "v1.PodFailurePolicyOnExitCodesRequirement": { - "description": "PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.", + "v1.CephFSVolumeSource": { + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", "properties": { - "containerName": { - "description": "Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.", + "monitors": { + "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "items": { + "type": "string" + }, + "type": "array" + }, + "path": { + "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", "type": "string" }, - "operator": { - "description": "Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: - In: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is in the set of specified values.\n- NotIn: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is not in the set of specified values.\nAdditional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.\n\n", + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "boolean" + }, + "secretFile": { + "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", "type": "string" }, - "values": { - "description": "Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.", - "items": { - "format": "int32", - "type": "integer" - }, - "type": "array", - "x-kubernetes-list-type": "set" + "secretRef": { + "$ref": "#/definitions/v1.LocalObjectReference", + "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" + }, + "user": { + "description": "user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "string" } }, "required": [ - "operator", - "values" + "monitors" ], "type": "object" }, - "v1.PodFailurePolicyOnPodConditionsPattern": { - "description": "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.", + "v1.CinderPersistentVolumeSource": { + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", "properties": { - "status": { - "description": "Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.", + "fsType": { + "description": "fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", "type": "string" }, - "type": { - "description": "Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.", + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack." + }, + "volumeID": { + "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", "type": "string" } }, "required": [ - "type", - "status" + "volumeID" ], "type": "object" }, - "v1.PodFailurePolicyRule": { - "description": "PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of OnExitCodes and onPodConditions, but not both, can be used in each rule.", + "v1.CinderVolumeSource": { + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", "properties": { - "action": { - "description": "Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all\n running pods are terminated.\n- Ignore: indicates that the counter towards the .backoffLimit is not\n incremented and a replacement pod is created.\n- Count: indicates that the pod is handled in the default way - the\n counter towards the .backoffLimit is incremented.\nAdditional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.\n\n", + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", "type": "string" }, - "onExitCodes": { - "$ref": "#/definitions/v1.PodFailurePolicyOnExitCodesRequirement", - "description": "Represents the requirement on the container exit codes." + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "boolean" }, - "onPodConditions": { - "description": "Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.", - "items": { - "$ref": "#/definitions/v1.PodFailurePolicyOnPodConditionsPattern" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "secretRef": { + "$ref": "#/definitions/v1.LocalObjectReference", + "description": "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack." + }, + "volumeID": { + "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "string" } }, "required": [ - "action", - "onPodConditions" + "volumeID" ], "type": "object" }, - "v1.UncountedTerminatedPods": { - "description": "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.", + "v1.ClaimSource": { + "description": "ClaimSource describes a reference to a ResourceClaim.\n\nExactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value.", "properties": { - "failed": { - "description": "Failed holds UIDs of failed Pods.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" + "resourceClaimName": { + "description": "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.", + "type": "string" }, - "succeeded": { - "description": "Succeeded holds UIDs of succeeded Pods.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" + "resourceClaimTemplateName": { + "description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The name of the ResourceClaim will be -, where is the PodResourceClaim.Name. Pod validation will reject the pod if the concatenated name is not valid for a ResourceClaim (e.g. too long).\n\nAn existing ResourceClaim with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated resource by mistake. Scheduling and pod startup are then blocked until the unrelated ResourceClaim is removed.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.", + "type": "string" } }, "type": "object" }, - "v1.CertificateSigningRequest": { - "description": "CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued.\n\nKubelets use this API to obtain:\n 1. client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client-kubelet\" signerName).\n 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the \"kubernetes.io/kubelet-serving\" signerName).\n\nThis API can be used to request client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client\" signerName), or to obtain certificates from custom non-Kubernetes signers.", + "v1.ClientIPConfig": { + "description": "ClientIPConfig represents the configurations of Client IP based session affinity.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "$ref": "#/definitions/v1.CertificateSigningRequestSpec", - "description": "spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users." - }, - "status": { - "$ref": "#/definitions/v1.CertificateSigningRequestStatus", - "description": "status contains information about whether the request is approved or denied, and the certificate issued by the signer, or the failure condition indicating signer failure." + "timeoutSeconds": { + "description": "timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).", + "format": "int32", + "type": "integer" } }, - "required": [ - "spec" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - ] + "type": "object" }, - "v1.CertificateSigningRequestCondition": { - "description": "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object", + "v1.ComponentCondition": { + "description": "Information about the condition of a component.", "properties": { - "lastTransitionTime": { - "description": "lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time.", - "format": "date-time", - "type": "string" - }, - "lastUpdateTime": { - "description": "lastUpdateTime is the time of the last update to this condition", - "format": "date-time", + "error": { + "description": "Condition error code for a component. For example, a health check error code.", "type": "string" }, "message": { - "description": "message contains a human readable message with details about the request state", - "type": "string" - }, - "reason": { - "description": "reason indicates a brief reason for the request state", + "description": "Message about the condition for a component. For example, information about a health check.", "type": "string" }, "status": { - "description": "status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\".", + "description": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", "type": "string" }, "type": { - "description": "type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\".\n\nAn \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer.\n\nA \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer.\n\nA \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate.\n\nApproved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added.\n\nOnly one condition of a given type is allowed.", + "description": "Type of condition for a component. Valid value: \"Healthy\"", "type": "string" } }, @@ -3995,17 +4436,51 @@ ], "type": "object" }, - "v1.CertificateSigningRequestList": { - "description": "CertificateSigningRequestList is a collection of CertificateSigningRequest objects", + "v1.ComponentStatus": { + "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "conditions": { + "description": "List of component conditions observed", + "items": { + "$ref": "#/definitions/v1.ComponentCondition" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ComponentStatus", + "version": "v1" + } + ] + }, + "v1.ComponentStatusList": { + "description": "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "items is a collection of CertificateSigningRequest objects", + "description": "List of ComponentStatus objects.", "items": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.ComponentStatus" }, "type": "array" }, @@ -4014,7 +4489,8 @@ "type": "string" }, "metadata": { - "$ref": "#/definitions/v1.ListMeta" + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -4023,134 +4499,103 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequestList", + "group": "", + "kind": "ComponentStatusList", "version": "v1" } ] }, - "v1.CertificateSigningRequestSpec": { - "description": "CertificateSigningRequestSpec contains the certificate request.", + "v1.ConfigMap": { + "description": "ConfigMap holds configuration data for pods to consume.", "properties": { - "expirationSeconds": { - "description": "expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration.\n\nThe v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager.\n\nCertificate signers may not honor this field for various reasons:\n\n 1. Old signer that is unaware of the field (such as the in-tree\n implementations prior to v1.22)\n 2. Signer whose configured maximum is shorter than the requested duration\n 3. Signer whose configured minimum is longer than the requested duration\n\nThe minimum valid value for expirationSeconds is 600, i.e. 10 minutes.", - "format": "int32", - "type": "integer" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" }, - "extra": { + "binaryData": { "additionalProperties": { - "items": { - "type": "string" - }, - "type": "array" + "format": "byte", + "type": "string" }, - "description": "extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "description": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.", "type": "object" }, - "groups": { - "description": "groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", - "items": { + "data": { + "additionalProperties": { "type": "string" }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "request": { - "description": "request contains an x509 certificate signing request encoded in a \"CERTIFICATE REQUEST\" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded.", - "format": "byte", - "type": "string", - "x-kubernetes-list-type": "atomic" + "description": "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.", + "type": "object" }, - "signerName": { - "description": "signerName indicates the requested signer, and is a qualified name.\n\nList/watch requests for CertificateSigningRequests can filter on this field using a \"spec.signerName=NAME\" fieldSelector.\n\nWell-known Kubernetes signers are:\n 1. \"kubernetes.io/kube-apiserver-client\": issues client certificates that can be used to authenticate to kube-apiserver.\n Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 2. \"kubernetes.io/kube-apiserver-client-kubelet\": issues client certificates that kubelets use to authenticate to kube-apiserver.\n Requests for this signer can be auto-approved by the \"csrapproving\" controller in kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 3. \"kubernetes.io/kubelet-serving\" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely.\n Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n\nMore details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers\n\nCustom signerNames can also be specified. The signer defines:\n 1. Trust distribution: how trust (CA bundles) are distributed.\n 2. Permitted subjects: and behavior when a disallowed subject is requested.\n 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested.\n 4. Required, permitted, or forbidden key usages / extended key usages.\n 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin.\n 6. Whether or not requests for CA certificates are allowed.", - "type": "string" + "immutable": { + "description": "Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.", + "type": "boolean" }, - "uid": { - "description": "uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, - "usages": { - "description": "usages specifies a set of key usages requested in the issued certificate.\n\nRequests for TLS client certificates typically request: \"digital signature\", \"key encipherment\", \"client auth\".\n\nRequests for TLS serving certificates typically request: \"key encipherment\", \"digital signature\", \"server auth\".\n\nValid values are:\n \"signing\", \"digital signature\", \"content commitment\",\n \"key encipherment\", \"key agreement\", \"data encipherment\",\n \"cert sign\", \"crl sign\", \"encipher only\", \"decipher only\", \"any\",\n \"server auth\", \"client auth\",\n \"code signing\", \"email protection\", \"s/mime\",\n \"ipsec end system\", \"ipsec tunnel\", \"ipsec user\",\n \"timestamping\", \"ocsp signing\", \"microsoft sgc\", \"netscape sgc\"", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "username": { - "description": "username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", - "type": "string" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, - "required": [ - "request", - "signerName" - ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ConfigMap", + "version": "v1" + } + ] }, - "v1.CertificateSigningRequestStatus": { - "description": "CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.", + "v1.ConfigMapEnvSource": { + "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", "properties": { - "certificate": { - "description": "certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable.\n\nIf the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty.\n\nValidation requirements:\n 1. certificate must contain one or more PEM blocks.\n 2. All PEM blocks must have the \"CERTIFICATE\" label, contain no headers, and the encoded data\n must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280.\n 3. Non-PEM content may appear before or after the \"CERTIFICATE\" PEM blocks and is unvalidated,\n to allow for explanatory text as described in section 5.2 of RFC7468.\n\nIf more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes.\n\nThe certificate is encoded in PEM format.\n\nWhen serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of:\n\n base64(\n -----BEGIN CERTIFICATE-----\n ...\n -----END CERTIFICATE-----\n )", - "format": "byte", - "type": "string", - "x-kubernetes-list-type": "atomic" + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" }, - "conditions": { - "description": "conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\".", - "items": { - "$ref": "#/definitions/v1.CertificateSigningRequestCondition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" + "optional": { + "description": "Specify whether the ConfigMap must be defined", + "type": "boolean" } }, "type": "object" }, - "v1.Lease": { - "description": "Lease defines a lease concept.", + "v1.ConfigMapKeySelector": { + "description": "Selects a key from a ConfigMap.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "key": { + "description": "The key to select.", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.LeaseSpec", - "description": "Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "optional": { + "description": "Specify whether the ConfigMap or its key must be defined", + "type": "boolean" } }, + "required": [ + "key" + ], "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - ] + "x-kubernetes-map-type": "atomic" }, - "v1.LeaseList": { - "description": "LeaseList is a list of Lease objects.", + "v1.ConfigMapList": { + "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "Items is a list of schema objects.", + "description": "Items is the list of ConfigMaps.", "items": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1.ConfigMap" }, "type": "array" }, @@ -4160,7 +4605,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -4169,577 +4614,576 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "coordination.k8s.io", - "kind": "LeaseList", + "group": "", + "kind": "ConfigMapList", "version": "v1" } ] }, - "v1.LeaseSpec": { - "description": "LeaseSpec is a specification of a Lease.", + "v1.ConfigMapNodeConfigSource": { + "description": "ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration", "properties": { - "acquireTime": { - "description": "acquireTime is a time when the current lease was acquired.", - "format": "date-time", + "kubeletConfigKey": { + "description": "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.", "type": "string" }, - "holderIdentity": { - "description": "holderIdentity contains the identity of the holder of a current lease.", + "name": { + "description": "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.", "type": "string" }, - "leaseDurationSeconds": { - "description": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime.", - "format": "int32", - "type": "integer" - }, - "leaseTransitions": { - "description": "leaseTransitions is the number of transitions of a lease between holders.", - "format": "int32", - "type": "integer" - }, - "renewTime": { - "description": "renewTime is a time when the current holder of a lease has last updated the lease.", - "format": "date-time", - "type": "string" - } - }, - "type": "object" - }, - "v1.AWSElasticBlockStoreVolumeSource": { - "description": "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.", - "properties": { - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "namespace": { + "description": "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.", "type": "string" }, - "partition": { - "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", - "format": "int32", - "type": "integer" - }, - "readOnly": { - "description": "readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "type": "boolean" + "resourceVersion": { + "description": "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", + "type": "string" }, - "volumeID": { - "description": "volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "uid": { + "description": "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", "type": "string" } }, "required": [ - "volumeID" + "namespace", + "name", + "kubeletConfigKey" ], "type": "object" }, - "v1.Affinity": { - "description": "Affinity is a group of affinity scheduling rules.", + "v1.ConfigMapProjection": { + "description": "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.", "properties": { - "nodeAffinity": { - "$ref": "#/definitions/v1.NodeAffinity", - "description": "Describes node affinity scheduling rules for the pod." + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "#/definitions/v1.KeyToPath" + }, + "type": "array" }, - "podAffinity": { - "$ref": "#/definitions/v1.PodAffinity", - "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s))." + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" }, - "podAntiAffinity": { - "$ref": "#/definitions/v1.PodAntiAffinity", - "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s))." + "optional": { + "description": "optional specify whether the ConfigMap or its keys must be defined", + "type": "boolean" } }, "type": "object" }, - "v1.AttachedVolume": { - "description": "AttachedVolume describes a volume attached to a node", + "v1.ConfigMapVolumeSource": { + "description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", "properties": { - "devicePath": { - "description": "DevicePath represents the device path where the volume should be available", - "type": "string" + "defaultMode": { + "description": "defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "#/definitions/v1.KeyToPath" + }, + "type": "array" }, "name": { - "description": "Name of the attached volume", + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", "type": "string" + }, + "optional": { + "description": "optional specify whether the ConfigMap or its keys must be defined", + "type": "boolean" } }, - "required": [ - "name", - "devicePath" - ], "type": "object" }, - "v1.AzureDiskVolumeSource": { - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + "v1.Container": { + "description": "A single application container that you want to run within a pod.", "properties": { - "cachingMode": { - "description": "cachingMode is the Host Caching mode: None, Read Only, Read Write.", + "args": { + "description": "Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": "string" + }, + "type": "array" + }, + "command": { + "description": "Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": "string" + }, + "type": "array" + }, + "env": { + "description": "List of environment variables to set in the container. Cannot be updated.", + "items": { + "$ref": "#/definitions/v1.EnvVar" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "envFrom": { + "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", + "items": { + "$ref": "#/definitions/v1.EnvFromSource" + }, + "type": "array" + }, + "image": { + "description": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.", "type": "string" }, - "diskName": { - "description": "diskName is the Name of the data disk in the blob storage", + "imagePullPolicy": { + "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images\n\n", "type": "string" }, - "diskURI": { - "description": "diskURI is the URI of data disk in the blob storage", + "lifecycle": { + "$ref": "#/definitions/v1.Lifecycle", + "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated." + }, + "livenessProbe": { + "$ref": "#/definitions/v1.Probe", + "description": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "name": { + "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", "type": "string" }, - "fsType": { - "description": "fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "ports": { + "description": "List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.", + "items": { + "$ref": "#/definitions/v1.ContainerPort" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "containerPort", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "containerPort", + "x-kubernetes-patch-strategy": "merge" + }, + "readinessProbe": { + "$ref": "#/definitions/v1.Probe", + "description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "resources": { + "$ref": "#/definitions/v1.ResourceRequirements", + "description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + }, + "securityContext": { + "$ref": "#/definitions/v1.SecurityContext", + "description": "SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/" + }, + "startupProbe": { + "$ref": "#/definitions/v1.Probe", + "description": "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "stdin": { + "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", + "type": "boolean" + }, + "stdinOnce": { + "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", + "type": "boolean" + }, + "terminationMessagePath": { + "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", "type": "string" }, - "kind": { - "description": "kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared", + "terminationMessagePolicy": { + "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.\n\n", "type": "string" }, - "readOnly": { - "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "tty": { + "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", "type": "boolean" + }, + "volumeDevices": { + "description": "volumeDevices is the list of block devices to be used by the container.", + "items": { + "$ref": "#/definitions/v1.VolumeDevice" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "devicePath", + "x-kubernetes-patch-strategy": "merge" + }, + "volumeMounts": { + "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", + "items": { + "$ref": "#/definitions/v1.VolumeMount" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + }, + "workingDir": { + "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", + "type": "string" } }, "required": [ - "diskName", - "diskURI" + "name" ], "type": "object" }, - "v1.AzureFilePersistentVolumeSource": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "v1.ContainerImage": { + "description": "Describe a container image", "properties": { - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" + "names": { + "description": "Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"]", + "items": { + "type": "string" + }, + "type": "array" }, - "secretName": { - "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", + "sizeBytes": { + "description": "The size of the image in bytes.", + "format": "int64", + "type": "integer" + } + }, + "type": "object" + }, + "v1.ContainerPort": { + "description": "ContainerPort represents a network port in a single container.", + "properties": { + "containerPort": { + "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", + "format": "int32", + "type": "integer" + }, + "hostIP": { + "description": "What host IP to bind the external port to.", "type": "string" }, - "secretNamespace": { - "description": "secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod", + "hostPort": { + "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.", + "format": "int32", + "type": "integer" + }, + "name": { + "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.", "type": "string" }, - "shareName": { - "description": "shareName is the azure Share Name", + "protocol": { + "description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".\n\n", "type": "string" } }, "required": [ - "secretName", - "shareName" + "containerPort" ], "type": "object" }, - "v1.AzureFileVolumeSource": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "v1.ContainerState": { + "description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", "properties": { - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" + "running": { + "$ref": "#/definitions/v1.ContainerStateRunning", + "description": "Details about a running container" }, - "secretName": { - "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", - "type": "string" + "terminated": { + "$ref": "#/definitions/v1.ContainerStateTerminated", + "description": "Details about a terminated container" }, - "shareName": { - "description": "shareName is the azure share Name", + "waiting": { + "$ref": "#/definitions/v1.ContainerStateWaiting", + "description": "Details about a waiting container" + } + }, + "type": "object" + }, + "v1.ContainerStateRunning": { + "description": "ContainerStateRunning is a running state of a container.", + "properties": { + "startedAt": { + "description": "Time at which the container was last (re-)started", + "format": "date-time", "type": "string" } }, - "required": [ - "secretName", - "shareName" - ], "type": "object" }, - "v1.Binding": { - "description": "Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.", + "v1.ContainerStateTerminated": { + "description": "ContainerStateTerminated is a terminated state of a container.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "containerID": { + "description": "Container's ID in the format '://'", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "exitCode": { + "description": "Exit status from the last termination of the container", + "format": "int32", + "type": "integer" + }, + "finishedAt": { + "description": "Time at which the container last terminated", + "format": "date-time", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "message": { + "description": "Message regarding the last termination of the container", + "type": "string" }, - "target": { - "$ref": "#/definitions/v1.ObjectReference", - "description": "The target object that you want to bind to the standard object." + "reason": { + "description": "(brief) reason from the last termination of the container", + "type": "string" + }, + "signal": { + "description": "Signal from the last termination of the container", + "format": "int32", + "type": "integer" + }, + "startedAt": { + "description": "Time at which previous execution of the container started", + "format": "date-time", + "type": "string" } }, "required": [ - "target" + "exitCode" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Binding", - "version": "v1" - } - ] + "type": "object" }, - "v1.CSIPersistentVolumeSource": { - "description": "Represents storage that is managed by an external CSI volume driver (Beta feature)", + "v1.ContainerStateWaiting": { + "description": "ContainerStateWaiting is a waiting state of a container.", "properties": { - "controllerExpandSecretRef": { - "$ref": "#/definitions/v1.SecretReference", - "description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an beta field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." - }, - "controllerPublishSecretRef": { - "$ref": "#/definitions/v1.SecretReference", - "description": "controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + "message": { + "description": "Message regarding why the container is not yet running.", + "type": "string" }, - "driver": { - "description": "driver is the name of the driver to use for this volume. Required.", + "reason": { + "description": "(brief) reason the container is not yet running.", + "type": "string" + } + }, + "type": "object" + }, + "v1.ContainerStatus": { + "description": "ContainerStatus contains details for the current status of this container.", + "properties": { + "containerID": { + "description": "Container's ID in the format '://'.", "type": "string" }, - "fsType": { - "description": "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", + "image": { + "description": "The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images.", "type": "string" }, - "nodeExpandSecretRef": { - "$ref": "#/definitions/v1.SecretReference", - "description": "nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This is an alpha field and requires enabling CSINodeExpandSecret feature gate. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed." + "imageID": { + "description": "ImageID of the container's image.", + "type": "string" }, - "nodePublishSecretRef": { - "$ref": "#/definitions/v1.SecretReference", - "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + "lastState": { + "$ref": "#/definitions/v1.ContainerState", + "description": "Details about the container's last termination condition." }, - "nodeStageSecretRef": { - "$ref": "#/definitions/v1.SecretReference", - "description": "nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + "name": { + "description": "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.", + "type": "string" }, - "readOnly": { - "description": "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", + "ready": { + "description": "Specifies whether the container has passed its readiness probe.", "type": "boolean" }, - "volumeAttributes": { - "additionalProperties": { - "type": "string" - }, - "description": "volumeAttributes of the volume to publish.", - "type": "object" + "restartCount": { + "description": "The number of times the container has been restarted.", + "format": "int32", + "type": "integer" }, - "volumeHandle": { - "description": "volumeHandle is the unique volume name returned by the CSI volume plugin\u2019s CreateVolume to refer to the volume on all subsequent calls. Required.", - "type": "string" + "started": { + "description": "Specifies whether the container has passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. Is always true when no startupProbe is defined.", + "type": "boolean" + }, + "state": { + "$ref": "#/definitions/v1.ContainerState", + "description": "Details about the container's current condition." } }, "required": [ - "driver", - "volumeHandle" + "name", + "ready", + "restartCount", + "image", + "imageID" ], "type": "object" }, - "v1.CSIVolumeSource": { - "description": "Represents a source location of a volume to mount, managed by an external CSI driver", + "v1.DaemonEndpoint": { + "description": "DaemonEndpoint contains information about a single Daemon endpoint.", "properties": { - "driver": { - "description": "driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", - "type": "string" - }, - "fsType": { - "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.", - "type": "string" - }, - "nodePublishSecretRef": { - "$ref": "#/definitions/v1.LocalObjectReference", - "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed." - }, - "readOnly": { - "description": "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).", - "type": "boolean" - }, - "volumeAttributes": { - "additionalProperties": { - "type": "string" - }, - "description": "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", - "type": "object" + "Port": { + "description": "Port number of the given endpoint.", + "format": "int32", + "type": "integer" } }, "required": [ - "driver" + "Port" ], "type": "object" }, - "v1.Capabilities": { - "description": "Adds and removes POSIX capabilities from running containers.", + "v1.DownwardAPIProjection": { + "description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.", "properties": { - "add": { - "description": "Added capabilities", - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "description": "Removed capabilities", + "items": { + "description": "Items is a list of DownwardAPIVolume file", "items": { - "type": "string" + "$ref": "#/definitions/v1.DownwardAPIVolumeFile" }, "type": "array" } }, "type": "object" }, - "v1.CephFSPersistentVolumeSource": { - "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "v1.DownwardAPIVolumeFile": { + "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", "properties": { - "monitors": { - "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "items": { - "type": "string" - }, - "type": "array" + "fieldRef": { + "$ref": "#/definitions/v1.ObjectFieldSelector", + "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported." + }, + "mode": { + "description": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" }, "path": { - "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", + "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", "type": "string" }, - "readOnly": { - "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "boolean" - }, - "secretFile": { - "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - }, - "secretRef": { - "$ref": "#/definitions/v1.SecretReference", - "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" - }, - "user": { - "description": "user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" + "resourceFieldRef": { + "$ref": "#/definitions/v1.ResourceFieldSelector", + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported." } }, "required": [ - "monitors" + "path" ], "type": "object" }, - "v1.CephFSVolumeSource": { - "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "v1.DownwardAPIVolumeSource": { + "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", "properties": { - "monitors": { - "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "defaultMode": { + "description": "Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "items": { + "description": "Items is a list of downward API volume file", "items": { - "type": "string" + "$ref": "#/definitions/v1.DownwardAPIVolumeFile" }, "type": "array" - }, - "path": { - "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", - "type": "string" - }, - "readOnly": { - "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "boolean" - }, - "secretFile": { - "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - }, - "secretRef": { - "$ref": "#/definitions/v1.LocalObjectReference", - "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" - }, - "user": { - "description": "user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" } }, - "required": [ - "monitors" - ], "type": "object" }, - "v1.CinderPersistentVolumeSource": { - "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "v1.EmptyDirVolumeSource": { + "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", "properties": { - "fsType": { - "description": "fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "medium": { + "description": "medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", "type": "string" }, - "readOnly": { - "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/v1.SecretReference", - "description": "secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack." - }, - "volumeID": { - "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "sizeLimit": { + "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir", "type": "string" } }, - "required": [ - "volumeID" - ], "type": "object" }, - "v1.CinderVolumeSource": { - "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "v1.EndpointAddress": { + "description": "EndpointAddress is a tuple that describes single IP address.", "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "hostname": { + "description": "The Hostname of this endpoint", "type": "string" }, - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/v1.LocalObjectReference", - "description": "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack." + "ip": { + "description": "The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready.", + "type": "string" }, - "volumeID": { - "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "nodeName": { + "description": "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", "type": "string" + }, + "targetRef": { + "$ref": "#/definitions/v1.ObjectReference", + "description": "Reference to object providing the endpoint." } }, "required": [ - "volumeID" + "ip" ], - "type": "object" - }, - "v1.ClientIPConfig": { - "description": "ClientIPConfig represents the configurations of Client IP based session affinity.", - "properties": { - "timeoutSeconds": { - "description": "timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).", - "format": "int32", - "type": "integer" - } - }, - "type": "object" + "type": "object", + "x-kubernetes-map-type": "atomic" }, - "v1.ComponentCondition": { - "description": "Information about the condition of a component.", + "core.v1.EndpointPort": { + "description": "EndpointPort is a tuple that describes a single port.", "properties": { - "error": { - "description": "Condition error code for a component. For example, a health check error code.", + "appProtocol": { + "description": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.", "type": "string" }, - "message": { - "description": "Message about the condition for a component. For example, information about a health check.", + "name": { + "description": "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.", "type": "string" }, - "status": { - "description": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", - "type": "string" + "port": { + "description": "The port number of the endpoint.", + "format": "int32", + "type": "integer" }, - "type": { - "description": "Type of condition for a component. Valid value: \"Healthy\"", + "protocol": { + "description": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.\n\n", "type": "string" } }, "required": [ - "type", - "status" + "port" ], - "type": "object" + "type": "object", + "x-kubernetes-map-type": "atomic" }, - "v1.ComponentStatus": { - "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+", + "v1.EndpointSubset": { + "description": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n\n\t{\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t}\n\nThe resulting set of endpoints can be viewed as:\n\n\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n\tb: [ 10.10.1.1:309, 10.10.2.2:309 ]", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "conditions": { - "description": "List of component conditions observed", + "addresses": { + "description": "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.", "items": { - "$ref": "#/definitions/v1.ComponentCondition" + "$ref": "#/definitions/v1.EndpointAddress" }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ComponentStatus", - "version": "v1" - } - ] - }, - "v1.ComponentStatusList": { - "description": "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" + "type": "array" }, - "items": { - "description": "List of ComponentStatus objects.", + "notReadyAddresses": { + "description": "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.", "items": { - "$ref": "#/definitions/v1.ComponentStatus" + "$ref": "#/definitions/v1.EndpointAddress" }, "type": "array" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "ports": { + "description": "Port numbers available on the related IP addresses.", + "items": { + "$ref": "#/definitions/core.v1.EndpointPort" + }, + "type": "array" } }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ComponentStatusList", - "version": "v1" - } - ] + "type": "object" }, - "v1.ConfigMap": { - "description": "ConfigMap holds configuration data for pods to consume.", + "v1.Endpoints": { + "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n\n\t Name: \"mysvc\",\n\t Subsets: [\n\t {\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t },\n\t {\n\t Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t },\n\t]", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "binaryData": { - "additionalProperties": { - "format": "byte", - "type": "string" - }, - "description": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.", - "type": "object" - }, - "data": { - "additionalProperties": { - "type": "string" - }, - "description": "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.", - "type": "object" - }, - "immutable": { - "description": "Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.", - "type": "boolean" - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" @@ -4747,64 +5191,35 @@ "metadata": { "$ref": "#/definitions/v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "subsets": { + "description": "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.", + "items": { + "$ref": "#/definitions/v1.EndpointSubset" + }, + "type": "array" } }, "type": "object", "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "ConfigMap", + "kind": "Endpoints", "version": "v1" } ] }, - "v1.ConfigMapEnvSource": { - "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", - "properties": { - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap must be defined", - "type": "boolean" - } - }, - "type": "object" - }, - "v1.ConfigMapKeySelector": { - "description": "Selects a key from a ConfigMap.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "v1.ConfigMapList": { - "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", + "v1.EndpointsList": { + "description": "EndpointsList is a list of endpoints.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "Items is the list of ConfigMaps.", + "description": "List of endpoints.", "items": { - "$ref": "#/definitions/v1.ConfigMap" + "$ref": "#/definitions/v1.Endpoints" }, "type": "array" }, @@ -4814,7 +5229,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -4824,101 +5239,84 @@ "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "ConfigMapList", + "kind": "EndpointsList", "version": "v1" } ] }, - "v1.ConfigMapNodeConfigSource": { - "description": "ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration", + "v1.EnvFromSource": { + "description": "EnvFromSource represents the source of a set of ConfigMaps", "properties": { - "kubeletConfigKey": { - "description": "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.", - "type": "string" - }, - "name": { - "description": "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.", - "type": "string" - }, - "namespace": { - "description": "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.", - "type": "string" + "configMapRef": { + "$ref": "#/definitions/v1.ConfigMapEnvSource", + "description": "The ConfigMap to select from" }, - "resourceVersion": { - "description": "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", + "prefix": { + "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", "type": "string" }, - "uid": { - "description": "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", - "type": "string" + "secretRef": { + "$ref": "#/definitions/v1.SecretEnvSource", + "description": "The Secret to select from" } }, - "required": [ - "namespace", - "name", - "kubeletConfigKey" - ], "type": "object" }, - "v1.ConfigMapProjection": { - "description": "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.", + "v1.EnvVar": { + "description": "EnvVar represents an environment variable present in a Container.", "properties": { - "items": { - "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", - "items": { - "$ref": "#/definitions/v1.KeyToPath" - }, - "type": "array" - }, "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "description": "Name of the environment variable. Must be a C_IDENTIFIER.", "type": "string" }, - "optional": { - "description": "optional specify whether the ConfigMap or its keys must be defined", - "type": "boolean" + "value": { + "description": "Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", + "type": "string" + }, + "valueFrom": { + "$ref": "#/definitions/v1.EnvVarSource", + "description": "Source for the environment variable's value. Cannot be used if value is not empty." } }, + "required": [ + "name" + ], "type": "object" }, - "v1.ConfigMapVolumeSource": { - "description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", + "v1.EnvVarSource": { + "description": "EnvVarSource represents a source for the value of an EnvVar.", "properties": { - "defaultMode": { - "description": "defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" + "configMapKeyRef": { + "$ref": "#/definitions/v1.ConfigMapKeySelector", + "description": "Selects a key of a ConfigMap." }, - "items": { - "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", - "items": { - "$ref": "#/definitions/v1.KeyToPath" - }, - "type": "array" + "fieldRef": { + "$ref": "#/definitions/v1.ObjectFieldSelector", + "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs." }, - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" + "resourceFieldRef": { + "$ref": "#/definitions/v1.ResourceFieldSelector", + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported." }, - "optional": { - "description": "optional specify whether the ConfigMap or its keys must be defined", - "type": "boolean" + "secretKeyRef": { + "$ref": "#/definitions/v1.SecretKeySelector", + "description": "Selects a key of a secret in the pod's namespace" } }, "type": "object" }, - "v1.Container": { - "description": "A single application container that you want to run within a pod.", + "v1.EphemeralContainer": { + "description": "An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation.\n\nTo add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.", "properties": { "args": { - "description": "Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "description": "Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", "items": { "type": "string" }, "type": "array" }, "command": { - "description": "Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "description": "Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", "items": { "type": "string" }, @@ -4941,7 +5339,7 @@ "type": "array" }, "image": { - "description": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.", + "description": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images", "type": "string" }, "imagePullPolicy": { @@ -4950,18 +5348,18 @@ }, "lifecycle": { "$ref": "#/definitions/v1.Lifecycle", - "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated." + "description": "Lifecycle is not allowed for ephemeral containers." }, "livenessProbe": { "$ref": "#/definitions/v1.Probe", - "description": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + "description": "Probes are not allowed for ephemeral containers." }, "name": { - "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", + "description": "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", "type": "string" }, "ports": { - "description": "List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.", + "description": "Ports are not allowed for ephemeral containers.", "items": { "$ref": "#/definitions/v1.ContainerPort" }, @@ -4976,19 +5374,19 @@ }, "readinessProbe": { "$ref": "#/definitions/v1.Probe", - "description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + "description": "Probes are not allowed for ephemeral containers." }, "resources": { "$ref": "#/definitions/v1.ResourceRequirements", - "description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + "description": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod." }, "securityContext": { "$ref": "#/definitions/v1.SecurityContext", - "description": "SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/" + "description": "Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext." }, "startupProbe": { "$ref": "#/definitions/v1.Probe", - "description": "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + "description": "Probes are not allowed for ephemeral containers." }, "stdin": { "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", @@ -4998,6 +5396,10 @@ "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", "type": "boolean" }, + "targetContainerName": { + "description": "If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec.\n\nThe container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined.", + "type": "string" + }, "terminationMessagePath": { "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", "type": "string" @@ -5020,7 +5422,7 @@ "x-kubernetes-patch-strategy": "merge" }, "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", + "description": "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.", "items": { "$ref": "#/definitions/v1.VolumeMount" }, @@ -5038,727 +5440,756 @@ ], "type": "object" }, - "v1.ContainerImage": { - "description": "Describe a container image", + "v1.EphemeralVolumeSource": { + "description": "Represents an ephemeral volume that is handled by a normal storage driver.", "properties": { - "names": { - "description": "Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"]", - "items": { - "type": "string" - }, - "type": "array" - }, - "sizeBytes": { - "description": "The size of the image in bytes.", - "format": "int64", - "type": "integer" + "volumeClaimTemplate": { + "$ref": "#/definitions/v1.PersistentVolumeClaimTemplate", + "description": "Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `-` where `` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.\n\nRequired, must not be nil." } }, "type": "object" }, - "v1.ContainerPort": { - "description": "ContainerPort represents a network port in a single container.", + "core.v1.Event": { + "description": "Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", "properties": { - "containerPort": { - "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", - "format": "int32", - "type": "integer" + "action": { + "description": "What action was taken/failed regarding to the Regarding object.", + "type": "string" }, - "hostIP": { - "description": "What host IP to bind the external port to.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "hostPort": { - "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.", + "count": { + "description": "The number of times this event has occurred.", "format": "int32", "type": "integer" }, - "name": { - "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.", + "eventTime": { + "description": "Time when this Event was first observed.", + "format": "date-time", "type": "string" }, - "protocol": { - "description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".\n\n", + "firstTimestamp": { + "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)", + "format": "date-time", "type": "string" - } - }, - "required": [ - "containerPort" - ], - "type": "object" - }, - "v1.ContainerState": { - "description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", - "properties": { - "running": { - "$ref": "#/definitions/v1.ContainerStateRunning", - "description": "Details about a running container" }, - "terminated": { - "$ref": "#/definitions/v1.ContainerStateTerminated", - "description": "Details about a terminated container" + "involvedObject": { + "$ref": "#/definitions/v1.ObjectReference", + "description": "The object that this event is about." }, - "waiting": { - "$ref": "#/definitions/v1.ContainerStateWaiting", - "description": "Details about a waiting container" - } - }, - "type": "object" - }, - "v1.ContainerStateRunning": { - "description": "ContainerStateRunning is a running state of a container.", - "properties": { - "startedAt": { - "description": "Time at which the container was last (re-)started", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "lastTimestamp": { + "description": "The time at which the most recent occurrence of this event was recorded.", "format": "date-time", "type": "string" - } - }, - "type": "object" - }, - "v1.ContainerStateTerminated": { - "description": "ContainerStateTerminated is a terminated state of a container.", - "properties": { - "containerID": { - "description": "Container's ID in the format '://'", + }, + "message": { + "description": "A human-readable description of the status of this operation.", "type": "string" }, - "exitCode": { - "description": "Exit status from the last termination of the container", - "format": "int32", - "type": "integer" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "finishedAt": { - "description": "Time at which the container last terminated", - "format": "date-time", + "reason": { + "description": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", "type": "string" }, - "message": { - "description": "Message regarding the last termination of the container", + "related": { + "$ref": "#/definitions/v1.ObjectReference", + "description": "Optional secondary object for more complex actions." + }, + "reportingComponent": { + "description": "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.", "type": "string" }, - "reason": { - "description": "(brief) reason from the last termination of the container", + "reportingInstance": { + "description": "ID of the controller instance, e.g. `kubelet-xyzf`.", "type": "string" }, - "signal": { - "description": "Signal from the last termination of the container", - "format": "int32", - "type": "integer" + "series": { + "$ref": "#/definitions/core.v1.EventSeries", + "description": "Data about the Event series this event represents or nil if it's a singleton Event." }, - "startedAt": { - "description": "Time at which previous execution of the container started", - "format": "date-time", + "source": { + "$ref": "#/definitions/v1.EventSource", + "description": "The component reporting this event. Should be a short machine understandable string." + }, + "type": { + "description": "Type of this event (Normal, Warning), new types could be added in the future", "type": "string" } }, "required": [ - "exitCode" + "metadata", + "involvedObject" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Event", + "version": "v1" + } + ] }, - "v1.ContainerStateWaiting": { - "description": "ContainerStateWaiting is a waiting state of a container.", + "core.v1.EventList": { + "description": "EventList is a list of events.", "properties": { - "message": { - "description": "Message regarding why the container is not yet running.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "reason": { - "description": "(brief) reason the container is not yet running.", + "items": { + "description": "List of events", + "items": { + "$ref": "#/definitions/core.v1.Event" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, - "type": "object" + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "EventList", + "version": "v1" + } + ] }, - "v1.ContainerStatus": { - "description": "ContainerStatus contains details for the current status of this container.", + "core.v1.EventSeries": { + "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", "properties": { - "containerID": { - "description": "Container's ID in the format '://'.", - "type": "string" - }, - "image": { - "description": "The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images.", - "type": "string" - }, - "imageID": { - "description": "ImageID of the container's image.", - "type": "string" - }, - "lastState": { - "$ref": "#/definitions/v1.ContainerState", - "description": "Details about the container's last termination condition." - }, - "name": { - "description": "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.", - "type": "string" - }, - "ready": { - "description": "Specifies whether the container has passed its readiness probe.", - "type": "boolean" - }, - "restartCount": { - "description": "The number of times the container has been restarted.", + "count": { + "description": "Number of occurrences in this series up to the last heartbeat time", "format": "int32", "type": "integer" }, - "started": { - "description": "Specifies whether the container has passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. Is always true when no startupProbe is defined.", - "type": "boolean" - }, - "state": { - "$ref": "#/definitions/v1.ContainerState", - "description": "Details about the container's current condition." + "lastObservedTime": { + "description": "Time of the last occurrence observed", + "format": "date-time", + "type": "string" } }, - "required": [ - "name", - "ready", - "restartCount", - "image", - "imageID" - ], "type": "object" }, - "v1.DaemonEndpoint": { - "description": "DaemonEndpoint contains information about a single Daemon endpoint.", + "v1.EventSource": { + "description": "EventSource contains information for an event.", "properties": { - "Port": { - "description": "Port number of the given endpoint.", - "format": "int32", - "type": "integer" + "component": { + "description": "Component from which the event is generated.", + "type": "string" + }, + "host": { + "description": "Node name on which the event is generated.", + "type": "string" } }, - "required": [ - "Port" - ], "type": "object" }, - "v1.DownwardAPIProjection": { - "description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.", + "v1.ExecAction": { + "description": "ExecAction describes a \"run in container\" action.", "properties": { - "items": { - "description": "Items is a list of DownwardAPIVolume file", + "command": { + "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", "items": { - "$ref": "#/definitions/v1.DownwardAPIVolumeFile" + "type": "string" }, "type": "array" } }, "type": "object" }, - "v1.DownwardAPIVolumeFile": { - "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", + "v1.FCVolumeSource": { + "description": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.", "properties": { - "fieldRef": { - "$ref": "#/definitions/v1.ObjectFieldSelector", - "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported." + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" }, - "mode": { - "description": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "lun": { + "description": "lun is Optional: FC target lun number", "format": "int32", "type": "integer" }, - "path": { - "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "targetWWNs": { + "description": "targetWWNs is Optional: FC target worldwide names (WWNs)", + "items": { + "type": "string" + }, + "type": "array" + }, + "wwids": { + "description": "wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "v1.FlexPersistentVolumeSource": { + "description": "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.", + "properties": { + "driver": { + "description": "driver is the name of the driver to use for this volume.", "type": "string" }, - "resourceFieldRef": { - "$ref": "#/definitions/v1.ResourceFieldSelector", - "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported." + "fsType": { + "description": "fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", + "type": "string" + }, + "options": { + "additionalProperties": { + "type": "string" + }, + "description": "options is Optional: this field holds extra command options if any.", + "type": "object" + }, + "readOnly": { + "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "secretRef is Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." } }, "required": [ - "path" + "driver" ], "type": "object" }, - "v1.DownwardAPIVolumeSource": { - "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", + "v1.FlexVolumeSource": { + "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", "properties": { - "defaultMode": { - "description": "Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" + "driver": { + "description": "driver is the name of the driver to use for this volume.", + "type": "string" }, - "items": { - "description": "Items is a list of downward API volume file", - "items": { - "$ref": "#/definitions/v1.DownwardAPIVolumeFile" + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", + "type": "string" + }, + "options": { + "additionalProperties": { + "type": "string" }, - "type": "array" + "description": "options is Optional: this field holds extra command options if any.", + "type": "object" + }, + "readOnly": { + "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/v1.LocalObjectReference", + "description": "secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." } }, + "required": [ + "driver" + ], "type": "object" }, - "v1.EmptyDirVolumeSource": { - "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", + "v1.FlockerVolumeSource": { + "description": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.", "properties": { - "medium": { - "description": "medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", + "datasetName": { + "description": "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", "type": "string" }, - "sizeLimit": { - "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir", + "datasetUUID": { + "description": "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset", "type": "string" } }, "type": "object" }, - "v1.EndpointAddress": { - "description": "EndpointAddress is a tuple that describes single IP address.", + "v1.GCEPersistentDiskVolumeSource": { + "description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", "properties": { - "hostname": { - "description": "The Hostname of this endpoint", + "fsType": { + "description": "fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", "type": "string" }, - "ip": { - "description": "The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready.", - "type": "string" + "partition": { + "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "format": "int32", + "type": "integer" }, - "nodeName": { - "description": "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", + "pdName": { + "description": "pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", "type": "string" }, - "targetRef": { - "$ref": "#/definitions/v1.ObjectReference", - "description": "Reference to object providing the endpoint." + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": "boolean" } }, "required": [ - "ip" + "pdName" ], - "type": "object", - "x-kubernetes-map-type": "atomic" + "type": "object" }, - "core.v1.EndpointPort": { - "description": "EndpointPort is a tuple that describes a single port.", + "v1.GRPCAction": { "properties": { - "appProtocol": { - "description": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.", - "type": "string" - }, - "name": { - "description": "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.", - "type": "string" - }, "port": { - "description": "The port number of the endpoint.", + "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", "format": "int32", "type": "integer" }, - "protocol": { - "description": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.\n\n", + "service": { + "description": "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", "type": "string" } }, "required": [ "port" ], - "type": "object", - "x-kubernetes-map-type": "atomic" + "type": "object" }, - "v1.EndpointSubset": { - "description": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n\n\t{\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t}\n\nThe resulting set of endpoints can be viewed as:\n\n\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n\tb: [ 10.10.1.1:309, 10.10.2.2:309 ]", + "v1.GitRepoVolumeSource": { + "description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.\n\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", "properties": { - "addresses": { - "description": "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.", - "items": { - "$ref": "#/definitions/v1.EndpointAddress" - }, - "type": "array" + "directory": { + "description": "directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", + "type": "string" }, - "notReadyAddresses": { - "description": "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.", - "items": { - "$ref": "#/definitions/v1.EndpointAddress" - }, - "type": "array" + "repository": { + "description": "repository is the URL", + "type": "string" }, - "ports": { - "description": "Port numbers available on the related IP addresses.", - "items": { - "$ref": "#/definitions/core.v1.EndpointPort" - }, - "type": "array" + "revision": { + "description": "revision is the commit hash for the specified revision.", + "type": "string" } }, + "required": [ + "repository" + ], "type": "object" }, - "v1.Endpoints": { - "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n\n\t Name: \"mysvc\",\n\t Subsets: [\n\t {\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t },\n\t {\n\t Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t },\n\t]", + "v1.GlusterfsPersistentVolumeSource": { + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "endpoints": { + "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "endpointsNamespace": { + "description": "endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "path": { + "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" }, - "subsets": { - "description": "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.", - "items": { - "$ref": "#/definitions/v1.EndpointSubset" - }, - "type": "array" + "readOnly": { + "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "boolean" } }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - ] + "required": [ + "endpoints", + "path" + ], + "type": "object" }, - "v1.EndpointsList": { - "description": "EndpointsList is a list of endpoints.", + "v1.GlusterfsVolumeSource": { + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "endpoints": { + "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", "type": "string" }, - "items": { - "description": "List of endpoints.", - "items": { - "$ref": "#/definitions/v1.Endpoints" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "path": { + "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "readOnly": { + "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "boolean" } }, "required": [ - "items" + "endpoints", + "path" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "EndpointsList", - "version": "v1" - } - ] + "type": "object" }, - "v1.EnvFromSource": { - "description": "EnvFromSource represents the source of a set of ConfigMaps", + "v1.HTTPGetAction": { + "description": "HTTPGetAction describes an action based on HTTP Get requests.", "properties": { - "configMapRef": { - "$ref": "#/definitions/v1.ConfigMapEnvSource", - "description": "The ConfigMap to select from" + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "type": "string" }, - "prefix": { - "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "items": { + "$ref": "#/definitions/v1.HTTPHeader" + }, + "type": "array" + }, + "path": { + "description": "Path to access on the HTTP server.", "type": "string" }, - "secretRef": { - "$ref": "#/definitions/v1.SecretEnvSource", - "description": "The Secret to select from" + "port": { + "$ref": "#/definitions/intstr.IntOrString", + "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." + }, + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.\n\n", + "type": "string" } }, + "required": [ + "port" + ], "type": "object" }, - "v1.EnvVar": { - "description": "EnvVar represents an environment variable present in a Container.", + "v1.HTTPHeader": { + "description": "HTTPHeader describes a custom header to be used in HTTP probes", "properties": { "name": { - "description": "Name of the environment variable. Must be a C_IDENTIFIER.", + "description": "The header field name", "type": "string" }, "value": { - "description": "Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", + "description": "The header field value", "type": "string" - }, - "valueFrom": { - "$ref": "#/definitions/v1.EnvVarSource", - "description": "Source for the environment variable's value. Cannot be used if value is not empty." } }, "required": [ - "name" + "name", + "value" ], "type": "object" }, - "v1.EnvVarSource": { - "description": "EnvVarSource represents a source for the value of an EnvVar.", + "v1.HostAlias": { + "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", "properties": { - "configMapKeyRef": { - "$ref": "#/definitions/v1.ConfigMapKeySelector", - "description": "Selects a key of a ConfigMap." + "hostnames": { + "description": "Hostnames for the above IP address.", + "items": { + "type": "string" + }, + "type": "array" }, - "fieldRef": { - "$ref": "#/definitions/v1.ObjectFieldSelector", - "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs." - }, - "resourceFieldRef": { - "$ref": "#/definitions/v1.ResourceFieldSelector", - "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported." - }, - "secretKeyRef": { - "$ref": "#/definitions/v1.SecretKeySelector", - "description": "Selects a key of a secret in the pod's namespace" + "ip": { + "description": "IP address of the host file entry.", + "type": "string" } }, "type": "object" }, - "v1.EphemeralContainer": { - "description": "An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation.\n\nTo add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.", + "v1.HostPathVolumeSource": { + "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", "properties": { - "args": { - "description": "Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array" - }, - "command": { - "description": "Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array" + "path": { + "description": "path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "type": "string" }, - "env": { - "description": "List of environment variables to set in the container. Cannot be updated.", - "items": { - "$ref": "#/definitions/v1.EnvVar" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" + "type": { + "description": "type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "type": "string" + } + }, + "required": [ + "path" + ], + "type": "object" + }, + "v1.ISCSIPersistentVolumeSource": { + "description": "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "properties": { + "chapAuthDiscovery": { + "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", + "type": "boolean" }, - "envFrom": { - "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", - "items": { - "$ref": "#/definitions/v1.EnvFromSource" - }, - "type": "array" + "chapAuthSession": { + "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", + "type": "boolean" }, - "image": { - "description": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images", + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", "type": "string" }, - "imagePullPolicy": { - "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images\n\n", + "initiatorName": { + "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", "type": "string" }, - "lifecycle": { - "$ref": "#/definitions/v1.Lifecycle", - "description": "Lifecycle is not allowed for ephemeral containers." - }, - "livenessProbe": { - "$ref": "#/definitions/v1.Probe", - "description": "Probes are not allowed for ephemeral containers." + "iqn": { + "description": "iqn is Target iSCSI Qualified Name.", + "type": "string" }, - "name": { - "description": "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", + "iscsiInterface": { + "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", "type": "string" }, - "ports": { - "description": "Ports are not allowed for ephemeral containers.", + "lun": { + "description": "lun is iSCSI Target Lun number.", + "format": "int32", + "type": "integer" + }, + "portals": { + "description": "portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", "items": { - "$ref": "#/definitions/v1.ContainerPort" + "type": "string" }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "containerPort", - "protocol" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "containerPort", - "x-kubernetes-patch-strategy": "merge" - }, - "readinessProbe": { - "$ref": "#/definitions/v1.Probe", - "description": "Probes are not allowed for ephemeral containers." - }, - "resources": { - "$ref": "#/definitions/v1.ResourceRequirements", - "description": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod." + "type": "array" }, - "securityContext": { - "$ref": "#/definitions/v1.SecurityContext", - "description": "Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext." + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", + "type": "boolean" }, - "startupProbe": { - "$ref": "#/definitions/v1.Probe", - "description": "Probes are not allowed for ephemeral containers." + "secretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication" }, - "stdin": { - "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", + "targetPortal": { + "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "type": "string" + } + }, + "required": [ + "targetPortal", + "iqn", + "lun" + ], + "type": "object" + }, + "v1.ISCSIVolumeSource": { + "description": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "properties": { + "chapAuthDiscovery": { + "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", "type": "boolean" }, - "stdinOnce": { - "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", + "chapAuthSession": { + "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", "type": "boolean" }, - "targetContainerName": { - "description": "If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec.\n\nThe container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined.", + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", "type": "string" }, - "terminationMessagePath": { - "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", + "initiatorName": { + "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", "type": "string" }, - "terminationMessagePolicy": { - "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.\n\n", + "iqn": { + "description": "iqn is the target iSCSI Qualified Name.", "type": "string" }, - "tty": { - "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", - "type": "boolean" + "iscsiInterface": { + "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", + "type": "string" }, - "volumeDevices": { - "description": "volumeDevices is the list of block devices to be used by the container.", - "items": { - "$ref": "#/definitions/v1.VolumeDevice" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "devicePath", - "x-kubernetes-patch-strategy": "merge" + "lun": { + "description": "lun represents iSCSI Target Lun number.", + "format": "int32", + "type": "integer" }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.", + "portals": { + "description": "portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", "items": { - "$ref": "#/definitions/v1.VolumeMount" + "type": "string" }, - "type": "array", - "x-kubernetes-patch-merge-key": "mountPath", - "x-kubernetes-patch-strategy": "merge" + "type": "array" }, - "workingDir": { - "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/v1.LocalObjectReference", + "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication" + }, + "targetPortal": { + "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", "type": "string" } }, "required": [ - "name" + "targetPortal", + "iqn", + "lun" ], "type": "object" }, - "v1.EphemeralVolumeSource": { - "description": "Represents an ephemeral volume that is handled by a normal storage driver.", + "v1.KeyToPath": { + "description": "Maps a string key to a path within a volume.", "properties": { - "volumeClaimTemplate": { - "$ref": "#/definitions/v1.PersistentVolumeClaimTemplate", - "description": "Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `-` where `` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.\n\nRequired, must not be nil." + "key": { + "description": "key is the key to project.", + "type": "string" + }, + "mode": { + "description": "mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "path": { + "description": "path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", + "type": "string" } }, + "required": [ + "key", + "path" + ], "type": "object" }, - "core.v1.Event": { - "description": "Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", + "v1.Lifecycle": { + "description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", "properties": { - "action": { - "description": "What action was taken/failed regarding to the Regarding object.", - "type": "string" - }, - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" + "postStart": { + "$ref": "#/definitions/v1.LifecycleHandler", + "description": "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks" }, - "count": { - "description": "The number of times this event has occurred.", - "format": "int32", - "type": "integer" + "preStop": { + "$ref": "#/definitions/v1.LifecycleHandler", + "description": "PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks" + } + }, + "type": "object" + }, + "v1.LifecycleHandler": { + "description": "LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.", + "properties": { + "exec": { + "$ref": "#/definitions/v1.ExecAction", + "description": "Exec specifies the action to take." }, - "eventTime": { - "description": "Time when this Event was first observed.", - "format": "date-time", - "type": "string" + "httpGet": { + "$ref": "#/definitions/v1.HTTPGetAction", + "description": "HTTPGet specifies the http request to perform." }, - "firstTimestamp": { - "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)", - "format": "date-time", + "tcpSocket": { + "$ref": "#/definitions/v1.TCPSocketAction", + "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified." + } + }, + "type": "object" + }, + "v1.LimitRange": { + "description": "LimitRange sets resource usage limits for each kind of resource in a Namespace.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "involvedObject": { - "$ref": "#/definitions/v1.ObjectReference", - "description": "The object that this event is about." - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, - "lastTimestamp": { - "description": "The time at which the most recent occurrence of this event was recorded.", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "A human-readable description of the status of this operation.", - "type": "string" - }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "reason": { - "description": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", - "type": "string" - }, - "related": { - "$ref": "#/definitions/v1.ObjectReference", - "description": "Optional secondary object for more complex actions." + "spec": { + "$ref": "#/definitions/v1.LimitRangeSpec", + "description": "Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "LimitRange", + "version": "v1" + } + ] + }, + "v1.LimitRangeItem": { + "description": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", + "properties": { + "default": { + "additionalProperties": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` ::= \n\n\t(Note that may be empty, from the \"\" case in .)\n\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n ::= \"e\" | \"E\" ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "description": "Default resource requirement limit value by resource name if resource limit is omitted.", + "type": "object" }, - "reportingComponent": { - "description": "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.", - "type": "string" + "defaultRequest": { + "additionalProperties": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` ::= \n\n\t(Note that may be empty, from the \"\" case in .)\n\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n ::= \"e\" | \"E\" ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", + "type": "object" }, - "reportingInstance": { - "description": "ID of the controller instance, e.g. `kubelet-xyzf`.", - "type": "string" + "max": { + "additionalProperties": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` ::= \n\n\t(Note that may be empty, from the \"\" case in .)\n\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n ::= \"e\" | \"E\" ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "description": "Max usage constraints on this kind by resource name.", + "type": "object" }, - "series": { - "$ref": "#/definitions/core.v1.EventSeries", - "description": "Data about the Event series this event represents or nil if it's a singleton Event." + "maxLimitRequestRatio": { + "additionalProperties": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` ::= \n\n\t(Note that may be empty, from the \"\" case in .)\n\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n ::= \"e\" | \"E\" ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "description": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.", + "type": "object" }, - "source": { - "$ref": "#/definitions/v1.EventSource", - "description": "The component reporting this event. Should be a short machine understandable string." + "min": { + "additionalProperties": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` ::= \n\n\t(Note that may be empty, from the \"\" case in .)\n\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n ::= \"e\" | \"E\" ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "description": "Min usage constraints on this kind by resource name.", + "type": "object" }, "type": { - "description": "Type of this event (Normal, Warning), new types could be added in the future", + "description": "Type of resource that this limit applies to.", "type": "string" } }, "required": [ - "metadata", - "involvedObject" + "type" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Event", - "version": "v1" - } - ] + "type": "object" }, - "core.v1.EventList": { - "description": "EventList is a list of events.", + "v1.LimitRangeList": { + "description": "LimitRangeList is a list of LimitRange items.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "List of events", + "description": "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", "items": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.LimitRange" }, "type": "array" }, @@ -5778,1085 +6209,445 @@ "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "EventList", + "kind": "LimitRangeList", "version": "v1" } ] }, - "core.v1.EventSeries": { - "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", + "v1.LimitRangeSpec": { + "description": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", "properties": { - "count": { - "description": "Number of occurrences in this series up to the last heartbeat time", - "format": "int32", - "type": "integer" - }, - "lastObservedTime": { - "description": "Time of the last occurrence observed", - "format": "date-time", - "type": "string" + "limits": { + "description": "Limits is the list of LimitRangeItem objects that are enforced.", + "items": { + "$ref": "#/definitions/v1.LimitRangeItem" + }, + "type": "array" } }, + "required": [ + "limits" + ], "type": "object" }, - "v1.EventSource": { - "description": "EventSource contains information for an event.", + "v1.LoadBalancerIngress": { + "description": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", "properties": { - "component": { - "description": "Component from which the event is generated.", + "hostname": { + "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", "type": "string" }, - "host": { - "description": "Node name on which the event is generated.", + "ip": { + "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", "type": "string" + }, + "ports": { + "description": "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it", + "items": { + "$ref": "#/definitions/v1.PortStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "type": "object" }, - "v1.ExecAction": { - "description": "ExecAction describes a \"run in container\" action.", + "v1.LoadBalancerStatus": { + "description": "LoadBalancerStatus represents the status of a load-balancer.", "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", + "ingress": { + "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", "items": { - "type": "string" + "$ref": "#/definitions/v1.LoadBalancerIngress" }, "type": "array" } }, "type": "object" }, - "v1.FCVolumeSource": { - "description": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.", + "v1.LocalObjectReference": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", "type": "string" - }, - "lun": { - "description": "lun is Optional: FC target lun number", - "format": "int32", - "type": "integer" - }, - "readOnly": { - "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "targetWWNs": { - "description": "targetWWNs is Optional: FC target worldwide names (WWNs)", - "items": { - "type": "string" - }, - "type": "array" - }, - "wwids": { - "description": "wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", - "items": { - "type": "string" - }, - "type": "array" } }, - "type": "object" + "type": "object", + "x-kubernetes-map-type": "atomic" }, - "v1.FlexPersistentVolumeSource": { - "description": "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.", + "v1.LocalVolumeSource": { + "description": "Local represents directly-attached storage with node affinity (Beta feature)", "properties": { - "driver": { - "description": "driver is the name of the driver to use for this volume.", - "type": "string" - }, "fsType": { - "description": "fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", + "description": "fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified.", "type": "string" }, - "options": { - "additionalProperties": { - "type": "string" - }, - "description": "options is Optional: this field holds extra command options if any.", - "type": "object" - }, - "readOnly": { - "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/v1.SecretReference", - "description": "secretRef is Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." + "path": { + "description": "path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).", + "type": "string" } }, "required": [ - "driver" + "path" ], "type": "object" }, - "v1.FlexVolumeSource": { - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + "v1.NFSVolumeSource": { + "description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", "properties": { - "driver": { - "description": "driver is the name of the driver to use for this volume.", + "path": { + "description": "path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", "type": "string" }, - "fsType": { - "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", - "type": "string" - }, - "options": { - "additionalProperties": { - "type": "string" - }, - "description": "options is Optional: this field holds extra command options if any.", - "type": "object" - }, "readOnly": { - "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "description": "readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", "type": "boolean" }, - "secretRef": { - "$ref": "#/definitions/v1.LocalObjectReference", - "description": "secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." + "server": { + "description": "server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "type": "string" } }, "required": [ - "driver" + "server", + "path" ], "type": "object" }, - "v1.FlockerVolumeSource": { - "description": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.", + "v1.Namespace": { + "description": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", "properties": { - "datasetName": { - "description": "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "datasetUUID": { - "description": "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset", - "type": "string" - } - }, - "type": "object" - }, - "v1.GCEPersistentDiskVolumeSource": { - "description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", - "properties": { - "fsType": { - "description": "fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, - "partition": { - "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "format": "int32", - "type": "integer" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "pdName": { - "description": "pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "string" + "spec": { + "$ref": "#/definitions/v1.NamespaceSpec", + "description": "Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "boolean" + "status": { + "$ref": "#/definitions/v1.NamespaceStatus", + "description": "Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "required": [ - "pdName" - ], - "type": "object" - }, - "v1.GRPCAction": { - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Namespace", + "version": "v1" } - }, - "required": [ - "port" - ], - "type": "object" + ] }, - "v1.GitRepoVolumeSource": { - "description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.\n\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", + "v1.NamespaceCondition": { + "description": "NamespaceCondition contains details about state of namespace.", "properties": { - "directory": { - "description": "directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", + "lastTransitionTime": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "format": "date-time", "type": "string" }, - "repository": { - "description": "repository is the URL", + "message": { "type": "string" }, - "revision": { - "description": "revision is the commit hash for the specified revision.", - "type": "string" - } - }, - "required": [ - "repository" - ], - "type": "object" - }, - "v1.GlusterfsPersistentVolumeSource": { - "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", - "properties": { - "endpoints": { - "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "reason": { "type": "string" }, - "endpointsNamespace": { - "description": "endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "status": { + "description": "Status of the condition, one of True, False, Unknown.", "type": "string" }, - "path": { - "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": { + "description": "Type of namespace controller condition.", "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "boolean" } }, "required": [ - "endpoints", - "path" + "type", + "status" ], "type": "object" }, - "v1.GlusterfsVolumeSource": { - "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", + "v1.NamespaceList": { + "description": "NamespaceList is a list of Namespaces.", "properties": { - "endpoints": { - "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "path": { - "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "items": { + "description": "Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + "items": { + "$ref": "#/definitions/v1.Namespace" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, - "readOnly": { - "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "boolean" + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ - "endpoints", - "path" + "items" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "NamespaceList", + "version": "v1" + } + ] }, - "v1.HTTPGetAction": { - "description": "HTTPGetAction describes an action based on HTTP Get requests.", + "v1.NamespaceSpec": { + "description": "NamespaceSpec describes the attributes on a Namespace.", "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "finalizers": { + "description": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", "items": { - "$ref": "#/definitions/v1.HTTPHeader" + "type": "string" }, "type": "array" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "$ref": "#/definitions/intstr.IntOrString", - "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." - }, - "scheme": { - "description": "Scheme to use for connecting to the host. Defaults to HTTP.\n\n", - "type": "string" } }, - "required": [ - "port" - ], "type": "object" }, - "v1.HTTPHeader": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "v1.NamespaceStatus": { + "description": "NamespaceStatus is information about the current status of a Namespace.", "properties": { - "name": { - "description": "The header field name", - "type": "string" + "conditions": { + "description": "Represents the latest available observations of a namespace's current state.", + "items": { + "$ref": "#/definitions/v1.NamespaceCondition" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" }, - "value": { - "description": "The header field value", + "phase": { + "description": "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/\n\n", "type": "string" } }, - "required": [ - "name", - "value" - ], "type": "object" }, - "v1.HostAlias": { - "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", + "v1.Node": { + "description": "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", "properties": { - "hostnames": { - "description": "Hostnames for the above IP address.", - "items": { - "type": "string" - }, - "type": "array" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" }, - "ip": { - "description": "IP address of the host file entry.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1.NodeSpec", + "description": "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/v1.NodeStatus", + "description": "Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Node", + "version": "v1" + } + ] }, - "v1.HostPathVolumeSource": { - "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", + "v1.NodeAddress": { + "description": "NodeAddress contains information for the node's address.", "properties": { - "path": { - "description": "path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "address": { + "description": "The node address.", "type": "string" }, "type": { - "description": "type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "description": "Node address type, one of Hostname, ExternalIP or InternalIP.", "type": "string" } }, "required": [ - "path" + "type", + "address" ], "type": "object" }, - "v1.ISCSIPersistentVolumeSource": { - "description": "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "v1.NodeAffinity": { + "description": "Node affinity is a group of node affinity scheduling rules.", "properties": { - "chapAuthDiscovery": { - "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", - "type": "boolean" - }, - "chapAuthSession": { - "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", - "type": "boolean" - }, - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", - "type": "string" - }, - "initiatorName": { - "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", - "type": "string" - }, - "iqn": { - "description": "iqn is Target iSCSI Qualified Name.", - "type": "string" - }, - "iscsiInterface": { - "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", - "type": "string" - }, - "lun": { - "description": "lun is iSCSI Target Lun number.", - "format": "int32", - "type": "integer" - }, - "portals": { - "description": "portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", "items": { - "type": "string" + "$ref": "#/definitions/v1.PreferredSchedulingTerm" }, "type": "array" }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/v1.SecretReference", - "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication" - }, - "targetPortal": { - "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", - "type": "string" + "requiredDuringSchedulingIgnoredDuringExecution": { + "$ref": "#/definitions/v1.NodeSelector", + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node." } }, - "required": [ - "targetPortal", - "iqn", - "lun" - ], "type": "object" }, - "v1.ISCSIVolumeSource": { - "description": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "v1.NodeCondition": { + "description": "NodeCondition contains condition information for a node.", "properties": { - "chapAuthDiscovery": { - "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", - "type": "boolean" - }, - "chapAuthSession": { - "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", - "type": "boolean" - }, - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", + "lastHeartbeatTime": { + "description": "Last time we got an update on a given condition.", + "format": "date-time", "type": "string" }, - "initiatorName": { - "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", + "lastTransitionTime": { + "description": "Last time the condition transit from one status to another.", + "format": "date-time", "type": "string" }, - "iqn": { - "description": "iqn is the target iSCSI Qualified Name.", + "message": { + "description": "Human readable message indicating details about last transition.", "type": "string" }, - "iscsiInterface": { - "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", + "reason": { + "description": "(brief) reason for the condition's last transition.", "type": "string" }, - "lun": { - "description": "lun represents iSCSI Target Lun number.", - "format": "int32", - "type": "integer" - }, - "portals": { - "description": "portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", - "items": { - "type": "string" - }, - "type": "array" - }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/v1.LocalObjectReference", - "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication" + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" }, - "targetPortal": { - "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "type": { + "description": "Type of node condition.", "type": "string" } }, "required": [ - "targetPortal", - "iqn", - "lun" + "type", + "status" ], "type": "object" }, - "v1.KeyToPath": { - "description": "Maps a string key to a path within a volume.", + "v1.NodeConfigSource": { + "description": "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22", "properties": { - "key": { - "description": "key is the key to project.", - "type": "string" - }, - "mode": { - "description": "mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", - "type": "string" + "configMap": { + "$ref": "#/definitions/v1.ConfigMapNodeConfigSource", + "description": "ConfigMap is a reference to a Node's ConfigMap" } }, - "required": [ - "key", - "path" - ], "type": "object" }, - "v1.Lifecycle": { - "description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", + "v1.NodeConfigStatus": { + "description": "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.", "properties": { - "postStart": { - "$ref": "#/definitions/v1.LifecycleHandler", - "description": "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks" + "active": { + "$ref": "#/definitions/v1.NodeConfigSource", + "description": "Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error." }, - "preStop": { - "$ref": "#/definitions/v1.LifecycleHandler", - "description": "PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks" + "assigned": { + "$ref": "#/definitions/v1.NodeConfigSource", + "description": "Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned." + }, + "error": { + "description": "Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions.", + "type": "string" + }, + "lastKnownGood": { + "$ref": "#/definitions/v1.NodeConfigSource", + "description": "LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future." } }, "type": "object" }, - "v1.LifecycleHandler": { - "description": "LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.", + "v1.NodeDaemonEndpoints": { + "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", "properties": { - "exec": { - "$ref": "#/definitions/v1.ExecAction", - "description": "Exec specifies the action to take." - }, - "httpGet": { - "$ref": "#/definitions/v1.HTTPGetAction", - "description": "HTTPGet specifies the http request to perform." - }, - "tcpSocket": { - "$ref": "#/definitions/v1.TCPSocketAction", - "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified." + "kubeletEndpoint": { + "$ref": "#/definitions/v1.DaemonEndpoint", + "description": "Endpoint on which Kubelet is listening." } }, "type": "object" }, - "v1.LimitRange": { - "description": "LimitRange sets resource usage limits for each kind of resource in a Namespace.", + "v1.NodeList": { + "description": "NodeList is the whole list of all Nodes which have been registered with master.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, + "items": { + "description": "List of nodes", + "items": { + "$ref": "#/definitions/v1.Node" + }, + "type": "array" + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.LimitRangeSpec", - "description": "Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, + "required": [ + "items" + ], "type": "object", "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "LimitRange", + "kind": "NodeList", "version": "v1" } ] }, - "v1.LimitRangeItem": { - "description": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", + "v1.NodeSelector": { + "description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", "properties": { - "default": { - "additionalProperties": { - "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` ::= \n\n\t(Note that may be empty, from the \"\" case in .)\n\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n ::= \"e\" | \"E\" ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", - "type": "string" + "nodeSelectorTerms": { + "description": "Required. A list of node selector terms. The terms are ORed.", + "items": { + "$ref": "#/definitions/v1.NodeSelectorTerm" }, - "description": "Default resource requirement limit value by resource name if resource limit is omitted.", - "type": "object" - }, - "defaultRequest": { - "additionalProperties": { - "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` ::= \n\n\t(Note that may be empty, from the \"\" case in .)\n\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n ::= \"e\" | \"E\" ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", - "type": "string" - }, - "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", - "type": "object" - }, - "max": { - "additionalProperties": { - "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` ::= \n\n\t(Note that may be empty, from the \"\" case in .)\n\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n ::= \"e\" | \"E\" ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", - "type": "string" - }, - "description": "Max usage constraints on this kind by resource name.", - "type": "object" - }, - "maxLimitRequestRatio": { - "additionalProperties": { - "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` ::= \n\n\t(Note that may be empty, from the \"\" case in .)\n\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n ::= \"e\" | \"E\" ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", - "type": "string" - }, - "description": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.", - "type": "object" - }, - "min": { - "additionalProperties": { - "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` ::= \n\n\t(Note that may be empty, from the \"\" case in .)\n\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n ::= \"e\" | \"E\" ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", - "type": "string" - }, - "description": "Min usage constraints on this kind by resource name.", - "type": "object" - }, - "type": { - "description": "Type of resource that this limit applies to.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "v1.LimitRangeList": { - "description": "LimitRangeList is a list of LimitRange items.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "items": { - "$ref": "#/definitions/v1.LimitRange" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "LimitRangeList", - "version": "v1" - } - ] - }, - "v1.LimitRangeSpec": { - "description": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", - "properties": { - "limits": { - "description": "Limits is the list of LimitRangeItem objects that are enforced.", - "items": { - "$ref": "#/definitions/v1.LimitRangeItem" - }, - "type": "array" - } - }, - "required": [ - "limits" - ], - "type": "object" - }, - "v1.LoadBalancerIngress": { - "description": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", - "properties": { - "hostname": { - "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", - "type": "string" - }, - "ip": { - "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", - "type": "string" - }, - "ports": { - "description": "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it", - "items": { - "$ref": "#/definitions/v1.PortStatus" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "v1.LoadBalancerStatus": { - "description": "LoadBalancerStatus represents the status of a load-balancer.", - "properties": { - "ingress": { - "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", - "items": { - "$ref": "#/definitions/v1.LoadBalancerIngress" - }, - "type": "array" - } - }, - "type": "object" - }, - "v1.LocalObjectReference": { - "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", - "properties": { - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "v1.LocalVolumeSource": { - "description": "Local represents directly-attached storage with node affinity (Beta feature)", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified.", - "type": "string" - }, - "path": { - "description": "path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).", - "type": "string" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "v1.NFSVolumeSource": { - "description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", - "properties": { - "path": { - "description": "path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "boolean" - }, - "server": { - "description": "server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "string" - } - }, - "required": [ - "server", - "path" - ], - "type": "object" - }, - "v1.Namespace": { - "description": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.NamespaceSpec", - "description": "Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/v1.NamespaceStatus", - "description": "Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Namespace", - "version": "v1" - } - ] - }, - "v1.NamespaceCondition": { - "description": "NamespaceCondition contains details about state of namespace.", - "properties": { - "lastTransitionTime": { - "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", - "format": "date-time", - "type": "string" - }, - "message": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "Type of namespace controller condition.", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "v1.NamespaceList": { - "description": "NamespaceList is a list of Namespaces.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "items": { - "$ref": "#/definitions/v1.Namespace" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "NamespaceList", - "version": "v1" - } - ] - }, - "v1.NamespaceSpec": { - "description": "NamespaceSpec describes the attributes on a Namespace.", - "properties": { - "finalizers": { - "description": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "v1.NamespaceStatus": { - "description": "NamespaceStatus is information about the current status of a Namespace.", - "properties": { - "conditions": { - "description": "Represents the latest available observations of a namespace's current state.", - "items": { - "$ref": "#/definitions/v1.NamespaceCondition" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "phase": { - "description": "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/\n\n", - "type": "string" - } - }, - "type": "object" - }, - "v1.Node": { - "description": "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.NodeSpec", - "description": "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/v1.NodeStatus", - "description": "Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Node", - "version": "v1" - } - ] - }, - "v1.NodeAddress": { - "description": "NodeAddress contains information for the node's address.", - "properties": { - "address": { - "description": "The node address.", - "type": "string" - }, - "type": { - "description": "Node address type, one of Hostname, ExternalIP or InternalIP.", - "type": "string" - } - }, - "required": [ - "type", - "address" - ], - "type": "object" - }, - "v1.NodeAffinity": { - "description": "Node affinity is a group of node affinity scheduling rules.", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", - "items": { - "$ref": "#/definitions/v1.PreferredSchedulingTerm" - }, - "type": "array" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "$ref": "#/definitions/v1.NodeSelector", - "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node." - } - }, - "type": "object" - }, - "v1.NodeCondition": { - "description": "NodeCondition contains condition information for a node.", - "properties": { - "lastHeartbeatTime": { - "description": "Last time we got an update on a given condition.", - "format": "date-time", - "type": "string" - }, - "lastTransitionTime": { - "description": "Last time the condition transit from one status to another.", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "Human readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "(brief) reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "Type of node condition.", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "v1.NodeConfigSource": { - "description": "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22", - "properties": { - "configMap": { - "$ref": "#/definitions/v1.ConfigMapNodeConfigSource", - "description": "ConfigMap is a reference to a Node's ConfigMap" - } - }, - "type": "object" - }, - "v1.NodeConfigStatus": { - "description": "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.", - "properties": { - "active": { - "$ref": "#/definitions/v1.NodeConfigSource", - "description": "Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error." - }, - "assigned": { - "$ref": "#/definitions/v1.NodeConfigSource", - "description": "Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned." - }, - "error": { - "description": "Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions.", - "type": "string" - }, - "lastKnownGood": { - "$ref": "#/definitions/v1.NodeConfigSource", - "description": "LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future." - } - }, - "type": "object" - }, - "v1.NodeDaemonEndpoints": { - "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", - "properties": { - "kubeletEndpoint": { - "$ref": "#/definitions/v1.DaemonEndpoint", - "description": "Endpoint on which Kubelet is listening." - } - }, - "type": "object" - }, - "v1.NodeList": { - "description": "NodeList is the whole list of all Nodes which have been registered with master.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of nodes", - "items": { - "$ref": "#/definitions/v1.Node" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "NodeList", - "version": "v1" - } - ] - }, - "v1.NodeSelector": { - "description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", - "properties": { - "nodeSelectorTerms": { - "description": "Required. A list of node selector terms. The terms are ORed.", - "items": { - "$ref": "#/definitions/v1.NodeSelectorTerm" - }, - "type": "array" - } - }, - "required": [ - "nodeSelectorTerms" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "v1.NodeSelectorRequirement": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" + "type": "array" + } + }, + "required": [ + "nodeSelectorTerms" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1.NodeSelectorRequirement": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" }, "operator": { "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.\n\n", @@ -6902,7 +6693,7 @@ "properties": { "configSource": { "$ref": "#/definitions/v1.NodeConfigSource", - "description": "Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed from Kubelets as of 1.24 and will be fully removed in 1.26." + "description": "Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed." }, "externalID": { "description": "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966", @@ -6942,7 +6733,7 @@ "description": "NodeStatus is information about the current status of a node.", "properties": { "addresses": { - "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See http://pr.k8s.io/79391 for an example.", + "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example.", "items": { "$ref": "#/definitions/v1.NodeAddress" }, @@ -7273,11 +7064,11 @@ }, "dataSource": { "$ref": "#/definitions/v1.TypedLocalObjectReference", - "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field." + "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource." }, "dataSourceRef": { - "$ref": "#/definitions/v1.TypedLocalObjectReference", - "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While DataSource ignores disallowed values (dropping them), DataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled." + "$ref": "#/definitions/v1.TypedObjectReference", + "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled." }, "resources": { "$ref": "#/definitions/v1.ResourceRequirements", @@ -7837,6 +7628,36 @@ ], "type": "object" }, + "v1.PodResourceClaim": { + "description": "PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.", + "properties": { + "name": { + "description": "Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.", + "type": "string" + }, + "source": { + "$ref": "#/definitions/v1.ClaimSource", + "description": "Source describes where to find the ResourceClaim." + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "v1.PodSchedulingGate": { + "description": "PodSchedulingGate is associated to a Pod to guard its scheduling.", + "properties": { + "name": { + "description": "Name of the scheduling gate. Each scheduling gate must have a unique name field.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, "v1.PodSecurityContext": { "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", "properties": { @@ -7872,7 +7693,7 @@ "description": "The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows." }, "supplementalGroups": { - "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. Note that this field cannot be set when spec.os.name is windows.", + "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.", "items": { "format": "int64", "type": "integer" @@ -8030,6 +7851,19 @@ }, "type": "array" }, + "resourceClaims": { + "description": "ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable.", + "items": { + "$ref": "#/definitions/v1.PodResourceClaim" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + }, "restartPolicy": { "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy\n\n", "type": "string" @@ -8042,6 +7876,19 @@ "description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", "type": "string" }, + "schedulingGates": { + "description": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. More info: https://git.k8s.io/enhancements/keps/sig-scheduling/3521-pod-scheduling-readiness.\n\nThis is an alpha-level feature enabled by PodSchedulingReadiness feature gate.", + "items": { + "$ref": "#/definitions/v1.PodSchedulingGate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, "securityContext": { "$ref": "#/definitions/v1.PodSecurityContext", "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." @@ -8679,7 +8526,7 @@ "type": "integer" }, "replicas": { - "description": "Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", + "description": "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", "format": "int32", "type": "integer" } @@ -8689,6 +8536,19 @@ ], "type": "object" }, + "v1.ResourceClaim": { + "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", + "properties": { + "name": { + "description": "Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, "v1.ResourceFieldSelector": { "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", "properties": { @@ -8829,6 +8689,17 @@ "v1.ResourceRequirements": { "description": "ResourceRequirements describes the compute resource requirements.", "properties": { + "claims": { + "description": "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable.", + "items": { + "$ref": "#/definitions/v1.ResourceClaim" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, "limits": { "additionalProperties": { "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` ::= \n\n\t(Note that may be empty, from the \"\" case in .)\n\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n ::= \"e\" | \"E\" ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", @@ -9820,11 +9691,11 @@ "type": "integer" }, "nodeAffinityPolicy": { - "description": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", + "description": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", "type": "string" }, "nodeTaintsPolicy": { - "description": "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", + "description": "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", "type": "string" }, "topologyKey": { @@ -9866,6 +9737,31 @@ "type": "object", "x-kubernetes-map-type": "atomic" }, + "v1.TypedObjectReference": { + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, "v1.Volume": { "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", "properties": { @@ -10201,11 +10097,11 @@ "type": "boolean" }, "serving": { - "description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.", + "description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.", "type": "boolean" }, "terminating": { - "description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.", + "description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.", "type": "boolean" } }, @@ -10489,7 +10385,7 @@ ], "type": "object" }, - "v1beta1.FlowDistinguisherMethod": { + "v1beta2.FlowDistinguisherMethod": { "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", "properties": { "type": { @@ -10502,7 +10398,7 @@ ], "type": "object" }, - "v1beta1.FlowSchema": { + "v1beta2.FlowSchema": { "description": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", "properties": { "apiVersion": { @@ -10518,11 +10414,11 @@ "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1beta1.FlowSchemaSpec", + "$ref": "#/definitions/v1beta2.FlowSchemaSpec", "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, "status": { - "$ref": "#/definitions/v1beta1.FlowSchemaStatus", + "$ref": "#/definitions/v1beta2.FlowSchemaStatus", "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, @@ -10531,11 +10427,11 @@ { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta1" + "version": "v1beta2" } ] }, - "v1beta1.FlowSchemaCondition": { + "v1beta2.FlowSchemaCondition": { "description": "FlowSchemaCondition describes conditions for a FlowSchema.", "properties": { "lastTransitionTime": { @@ -10562,7 +10458,7 @@ }, "type": "object" }, - "v1beta1.FlowSchemaList": { + "v1beta2.FlowSchemaList": { "description": "FlowSchemaList is a list of FlowSchema objects.", "properties": { "apiVersion": { @@ -10572,7 +10468,7 @@ "items": { "description": "`items` is a list of FlowSchemas.", "items": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta2.FlowSchema" }, "type": "array" }, @@ -10593,15 +10489,15 @@ { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchemaList", - "version": "v1beta1" + "version": "v1beta2" } ] }, - "v1beta1.FlowSchemaSpec": { + "v1beta2.FlowSchemaSpec": { "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", "properties": { "distinguisherMethod": { - "$ref": "#/definitions/v1beta1.FlowDistinguisherMethod", + "$ref": "#/definitions/v1beta2.FlowDistinguisherMethod", "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." }, "matchingPrecedence": { @@ -10610,13 +10506,13 @@ "type": "integer" }, "priorityLevelConfiguration": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfigurationReference", + "$ref": "#/definitions/v1beta2.PriorityLevelConfigurationReference", "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." }, "rules": { "description": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", "items": { - "$ref": "#/definitions/v1beta1.PolicyRulesWithSubjects" + "$ref": "#/definitions/v1beta2.PolicyRulesWithSubjects" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -10627,13 +10523,13 @@ ], "type": "object" }, - "v1beta1.FlowSchemaStatus": { + "v1beta2.FlowSchemaStatus": { "description": "FlowSchemaStatus represents the current state of a FlowSchema.", "properties": { "conditions": { "description": "`conditions` is a list of the current states of FlowSchema.", "items": { - "$ref": "#/definitions/v1beta1.FlowSchemaCondition" + "$ref": "#/definitions/v1beta2.FlowSchemaCondition" }, "type": "array", "x-kubernetes-list-map-keys": [ @@ -10644,7 +10540,7 @@ }, "type": "object" }, - "v1beta1.GroupSubject": { + "v1beta2.GroupSubject": { "description": "GroupSubject holds detailed information for group-kind subject.", "properties": { "name": { @@ -10657,11 +10553,11 @@ ], "type": "object" }, - "v1beta1.LimitResponse": { + "v1beta2.LimitResponse": { "description": "LimitResponse defines how to handle requests that can not be executed right now.", "properties": { "queuing": { - "$ref": "#/definitions/v1beta1.QueuingConfiguration", + "$ref": "#/definitions/v1beta2.QueuingConfiguration", "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." }, "type": { @@ -10682,7 +10578,7 @@ } ] }, - "v1beta1.LimitedPriorityLevelConfiguration": { + "v1beta2.LimitedPriorityLevelConfiguration": { "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", "properties": { "assuredConcurrencyShares": { @@ -10690,14 +10586,24 @@ "format": "int32", "type": "integer" }, + "borrowingLimitPercent": { + "description": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", + "format": "int32", + "type": "integer" + }, + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": "integer" + }, "limitResponse": { - "$ref": "#/definitions/v1beta1.LimitResponse", + "$ref": "#/definitions/v1beta2.LimitResponse", "description": "`limitResponse` indicates what to do with requests that can not be executed right now" } }, "type": "object" }, - "v1beta1.NonResourcePolicyRule": { + "v1beta2.NonResourcePolicyRule": { "description": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", "properties": { "nonResourceURLs": { @@ -10723,13 +10629,13 @@ ], "type": "object" }, - "v1beta1.PolicyRulesWithSubjects": { + "v1beta2.PolicyRulesWithSubjects": { "description": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", "properties": { "nonResourceRules": { "description": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", "items": { - "$ref": "#/definitions/v1beta1.NonResourcePolicyRule" + "$ref": "#/definitions/v1beta2.NonResourcePolicyRule" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -10737,7 +10643,7 @@ "resourceRules": { "description": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", "items": { - "$ref": "#/definitions/v1beta1.ResourcePolicyRule" + "$ref": "#/definitions/v1beta2.ResourcePolicyRule" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -10745,7 +10651,7 @@ "subjects": { "description": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", "items": { - "$ref": "#/definitions/v1beta1.Subject" + "$ref": "#/definitions/v1beta2.Subject" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -10756,7 +10662,7 @@ ], "type": "object" }, - "v1beta1.PriorityLevelConfiguration": { + "v1beta2.PriorityLevelConfiguration": { "description": "PriorityLevelConfiguration represents the configuration of a priority level.", "properties": { "apiVersion": { @@ -10772,11 +10678,11 @@ "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfigurationSpec", + "$ref": "#/definitions/v1beta2.PriorityLevelConfigurationSpec", "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, "status": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfigurationStatus", + "$ref": "#/definitions/v1beta2.PriorityLevelConfigurationStatus", "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, @@ -10785,11 +10691,11 @@ { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "version": "v1beta2" } ] }, - "v1beta1.PriorityLevelConfigurationCondition": { + "v1beta2.PriorityLevelConfigurationCondition": { "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", "properties": { "lastTransitionTime": { @@ -10816,7 +10722,7 @@ }, "type": "object" }, - "v1beta1.PriorityLevelConfigurationList": { + "v1beta2.PriorityLevelConfigurationList": { "description": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", "properties": { "apiVersion": { @@ -10826,7 +10732,7 @@ "items": { "description": "`items` is a list of request-priorities.", "items": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" }, "type": "array" }, @@ -10847,11 +10753,11 @@ { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfigurationList", - "version": "v1beta1" + "version": "v1beta2" } ] }, - "v1beta1.PriorityLevelConfigurationReference": { + "v1beta2.PriorityLevelConfigurationReference": { "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", "properties": { "name": { @@ -10864,11 +10770,11 @@ ], "type": "object" }, - "v1beta1.PriorityLevelConfigurationSpec": { + "v1beta2.PriorityLevelConfigurationSpec": { "description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", "properties": { "limited": { - "$ref": "#/definitions/v1beta1.LimitedPriorityLevelConfiguration", + "$ref": "#/definitions/v1beta2.LimitedPriorityLevelConfiguration", "description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`." }, "type": { @@ -10889,13 +10795,13 @@ } ] }, - "v1beta1.PriorityLevelConfigurationStatus": { + "v1beta2.PriorityLevelConfigurationStatus": { "description": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", "properties": { "conditions": { "description": "`conditions` is the current state of \"request-priority\".", "items": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfigurationCondition" + "$ref": "#/definitions/v1beta2.PriorityLevelConfigurationCondition" }, "type": "array", "x-kubernetes-list-map-keys": [ @@ -10906,7 +10812,7 @@ }, "type": "object" }, - "v1beta1.QueuingConfiguration": { + "v1beta2.QueuingConfiguration": { "description": "QueuingConfiguration holds the configuration parameters for queuing", "properties": { "handSize": { @@ -10927,7 +10833,7 @@ }, "type": "object" }, - "v1beta1.ResourcePolicyRule": { + "v1beta2.ResourcePolicyRule": { "description": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", "properties": { "apiGroups": { @@ -10974,7 +10880,7 @@ ], "type": "object" }, - "v1beta1.ServiceAccountSubject": { + "v1beta2.ServiceAccountSubject": { "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", "properties": { "name": { @@ -10992,11 +10898,11 @@ ], "type": "object" }, - "v1beta1.Subject": { + "v1beta2.Subject": { "description": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", "properties": { "group": { - "$ref": "#/definitions/v1beta1.GroupSubject", + "$ref": "#/definitions/v1beta2.GroupSubject", "description": "`group` matches based on user group name." }, "kind": { @@ -11004,11 +10910,11 @@ "type": "string" }, "serviceAccount": { - "$ref": "#/definitions/v1beta1.ServiceAccountSubject", + "$ref": "#/definitions/v1beta2.ServiceAccountSubject", "description": "`serviceAccount` matches ServiceAccounts." }, "user": { - "$ref": "#/definitions/v1beta1.UserSubject", + "$ref": "#/definitions/v1beta2.UserSubject", "description": "`user` matches based on username." } }, @@ -11027,7 +10933,7 @@ } ] }, - "v1beta1.UserSubject": { + "v1beta2.UserSubject": { "description": "UserSubject holds detailed information for user-kind subject.", "properties": { "name": { @@ -11040,7 +10946,7 @@ ], "type": "object" }, - "v1beta2.FlowDistinguisherMethod": { + "v1beta3.FlowDistinguisherMethod": { "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", "properties": { "type": { @@ -11053,7 +10959,7 @@ ], "type": "object" }, - "v1beta2.FlowSchema": { + "v1beta3.FlowSchema": { "description": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", "properties": { "apiVersion": { @@ -11069,11 +10975,11 @@ "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1beta2.FlowSchemaSpec", + "$ref": "#/definitions/v1beta3.FlowSchemaSpec", "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, "status": { - "$ref": "#/definitions/v1beta2.FlowSchemaStatus", + "$ref": "#/definitions/v1beta3.FlowSchemaStatus", "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, @@ -11082,11 +10988,11 @@ { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta2" + "version": "v1beta3" } ] }, - "v1beta2.FlowSchemaCondition": { + "v1beta3.FlowSchemaCondition": { "description": "FlowSchemaCondition describes conditions for a FlowSchema.", "properties": { "lastTransitionTime": { @@ -11113,7 +11019,7 @@ }, "type": "object" }, - "v1beta2.FlowSchemaList": { + "v1beta3.FlowSchemaList": { "description": "FlowSchemaList is a list of FlowSchema objects.", "properties": { "apiVersion": { @@ -11123,7 +11029,7 @@ "items": { "description": "`items` is a list of FlowSchemas.", "items": { - "$ref": "#/definitions/v1beta2.FlowSchema" + "$ref": "#/definitions/v1beta3.FlowSchema" }, "type": "array" }, @@ -11144,15 +11050,15 @@ { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchemaList", - "version": "v1beta2" + "version": "v1beta3" } ] }, - "v1beta2.FlowSchemaSpec": { + "v1beta3.FlowSchemaSpec": { "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", "properties": { "distinguisherMethod": { - "$ref": "#/definitions/v1beta2.FlowDistinguisherMethod", + "$ref": "#/definitions/v1beta3.FlowDistinguisherMethod", "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." }, "matchingPrecedence": { @@ -11161,13 +11067,13 @@ "type": "integer" }, "priorityLevelConfiguration": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfigurationReference", + "$ref": "#/definitions/v1beta3.PriorityLevelConfigurationReference", "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." }, "rules": { "description": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", "items": { - "$ref": "#/definitions/v1beta2.PolicyRulesWithSubjects" + "$ref": "#/definitions/v1beta3.PolicyRulesWithSubjects" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -11178,24 +11084,26 @@ ], "type": "object" }, - "v1beta2.FlowSchemaStatus": { + "v1beta3.FlowSchemaStatus": { "description": "FlowSchemaStatus represents the current state of a FlowSchema.", "properties": { "conditions": { "description": "`conditions` is a list of the current states of FlowSchema.", "items": { - "$ref": "#/definitions/v1beta2.FlowSchemaCondition" + "$ref": "#/definitions/v1beta3.FlowSchemaCondition" }, "type": "array", "x-kubernetes-list-map-keys": [ "type" ], - "x-kubernetes-list-type": "map" + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" } }, "type": "object" }, - "v1beta2.GroupSubject": { + "v1beta3.GroupSubject": { "description": "GroupSubject holds detailed information for group-kind subject.", "properties": { "name": { @@ -11208,11 +11116,11 @@ ], "type": "object" }, - "v1beta2.LimitResponse": { + "v1beta3.LimitResponse": { "description": "LimitResponse defines how to handle requests that can not be executed right now.", "properties": { "queuing": { - "$ref": "#/definitions/v1beta2.QueuingConfiguration", + "$ref": "#/definitions/v1beta3.QueuingConfiguration", "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." }, "type": { @@ -11233,22 +11141,32 @@ } ] }, - "v1beta2.LimitedPriorityLevelConfiguration": { + "v1beta3.LimitedPriorityLevelConfiguration": { "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", "properties": { - "assuredConcurrencyShares": { - "description": "`assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level:\n\n ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) )\n\nbigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30.", + "borrowingLimitPercent": { + "description": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", + "format": "int32", + "type": "integer" + }, + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", "format": "int32", "type": "integer" }, "limitResponse": { - "$ref": "#/definitions/v1beta2.LimitResponse", + "$ref": "#/definitions/v1beta3.LimitResponse", "description": "`limitResponse` indicates what to do with requests that can not be executed right now" + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[limited priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other Limited priority level. This field has a default value of 30.", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "v1beta2.NonResourcePolicyRule": { + "v1beta3.NonResourcePolicyRule": { "description": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", "properties": { "nonResourceURLs": { @@ -11274,13 +11192,13 @@ ], "type": "object" }, - "v1beta2.PolicyRulesWithSubjects": { + "v1beta3.PolicyRulesWithSubjects": { "description": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", "properties": { "nonResourceRules": { "description": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", "items": { - "$ref": "#/definitions/v1beta2.NonResourcePolicyRule" + "$ref": "#/definitions/v1beta3.NonResourcePolicyRule" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -11288,7 +11206,7 @@ "resourceRules": { "description": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", "items": { - "$ref": "#/definitions/v1beta2.ResourcePolicyRule" + "$ref": "#/definitions/v1beta3.ResourcePolicyRule" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -11296,7 +11214,7 @@ "subjects": { "description": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", "items": { - "$ref": "#/definitions/v1beta2.Subject" + "$ref": "#/definitions/v1beta3.Subject" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -11307,7 +11225,7 @@ ], "type": "object" }, - "v1beta2.PriorityLevelConfiguration": { + "v1beta3.PriorityLevelConfiguration": { "description": "PriorityLevelConfiguration represents the configuration of a priority level.", "properties": { "apiVersion": { @@ -11323,11 +11241,11 @@ "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfigurationSpec", + "$ref": "#/definitions/v1beta3.PriorityLevelConfigurationSpec", "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, "status": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfigurationStatus", + "$ref": "#/definitions/v1beta3.PriorityLevelConfigurationStatus", "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, @@ -11336,11 +11254,11 @@ { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "version": "v1beta3" } ] }, - "v1beta2.PriorityLevelConfigurationCondition": { + "v1beta3.PriorityLevelConfigurationCondition": { "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", "properties": { "lastTransitionTime": { @@ -11367,7 +11285,7 @@ }, "type": "object" }, - "v1beta2.PriorityLevelConfigurationList": { + "v1beta3.PriorityLevelConfigurationList": { "description": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", "properties": { "apiVersion": { @@ -11377,7 +11295,7 @@ "items": { "description": "`items` is a list of request-priorities.", "items": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" }, "type": "array" }, @@ -11398,11 +11316,11 @@ { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfigurationList", - "version": "v1beta2" + "version": "v1beta3" } ] }, - "v1beta2.PriorityLevelConfigurationReference": { + "v1beta3.PriorityLevelConfigurationReference": { "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", "properties": { "name": { @@ -11415,11 +11333,11 @@ ], "type": "object" }, - "v1beta2.PriorityLevelConfigurationSpec": { + "v1beta3.PriorityLevelConfigurationSpec": { "description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", "properties": { "limited": { - "$ref": "#/definitions/v1beta2.LimitedPriorityLevelConfiguration", + "$ref": "#/definitions/v1beta3.LimitedPriorityLevelConfiguration", "description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`." }, "type": { @@ -11440,24 +11358,26 @@ } ] }, - "v1beta2.PriorityLevelConfigurationStatus": { + "v1beta3.PriorityLevelConfigurationStatus": { "description": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", "properties": { "conditions": { "description": "`conditions` is the current state of \"request-priority\".", "items": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfigurationCondition" + "$ref": "#/definitions/v1beta3.PriorityLevelConfigurationCondition" }, "type": "array", "x-kubernetes-list-map-keys": [ "type" ], - "x-kubernetes-list-type": "map" + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" } }, "type": "object" }, - "v1beta2.QueuingConfiguration": { + "v1beta3.QueuingConfiguration": { "description": "QueuingConfiguration holds the configuration parameters for queuing", "properties": { "handSize": { @@ -11478,7 +11398,7 @@ }, "type": "object" }, - "v1beta2.ResourcePolicyRule": { + "v1beta3.ResourcePolicyRule": { "description": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", "properties": { "apiGroups": { @@ -11525,7 +11445,7 @@ ], "type": "object" }, - "v1beta2.ServiceAccountSubject": { + "v1beta3.ServiceAccountSubject": { "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", "properties": { "name": { @@ -11543,11 +11463,11 @@ ], "type": "object" }, - "v1beta2.Subject": { + "v1beta3.Subject": { "description": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", "properties": { "group": { - "$ref": "#/definitions/v1beta2.GroupSubject", + "$ref": "#/definitions/v1beta3.GroupSubject", "description": "`group` matches based on user group name." }, "kind": { @@ -11555,11 +11475,11 @@ "type": "string" }, "serviceAccount": { - "$ref": "#/definitions/v1beta2.ServiceAccountSubject", + "$ref": "#/definitions/v1beta3.ServiceAccountSubject", "description": "`serviceAccount` matches ServiceAccounts." }, "user": { - "$ref": "#/definitions/v1beta2.UserSubject", + "$ref": "#/definitions/v1beta3.UserSubject", "description": "`user` matches based on username." } }, @@ -11578,7 +11498,7 @@ } ] }, - "v1beta2.UserSubject": { + "v1beta3.UserSubject": { "description": "UserSubject holds detailed information for user-kind subject.", "properties": { "name": { @@ -11631,14 +11551,14 @@ "type": "object" }, "v1.IPBlock": { - "description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\",\"2001:db9::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", + "description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", "properties": { "cidr": { - "description": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\"", + "description": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"", "type": "string" }, "except": { - "description": "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\" Except values will be rejected if they are outside the CIDR range", + "description": "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the CIDR range", "items": { "type": "string" }, @@ -11840,6 +11760,64 @@ } ] }, + "v1.IngressLoadBalancerIngress": { + "description": "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", + "properties": { + "hostname": { + "description": "Hostname is set for load-balancer ingress points that are DNS based.", + "type": "string" + }, + "ip": { + "description": "IP is set for load-balancer ingress points that are IP based.", + "type": "string" + }, + "ports": { + "description": "Ports provides information about the ports exposed by this LoadBalancer.", + "items": { + "$ref": "#/definitions/v1.IngressPortStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.IngressLoadBalancerStatus": { + "description": "IngressLoadBalancerStatus represents the status of a load-balancer.", + "properties": { + "ingress": { + "description": "Ingress is a list containing ingress points for the load-balancer.", + "items": { + "$ref": "#/definitions/v1.IngressLoadBalancerIngress" + }, + "type": "array" + } + }, + "type": "object" + }, + "v1.IngressPortStatus": { + "description": "IngressPortStatus represents the error condition of a service port", + "properties": { + "error": { + "description": "Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", + "type": "string" + }, + "port": { + "description": "Port is the port number of the ingress port.", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "Protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"\n\n", + "type": "string" + } + }, + "required": [ + "port", + "protocol" + ], + "type": "object" + }, "v1.IngressRule": { "description": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", "properties": { @@ -11904,7 +11882,7 @@ "description": "IngressStatus describe the current state of the Ingress.", "properties": { "loadBalancer": { - "$ref": "#/definitions/v1.LoadBalancerStatus", + "$ref": "#/definitions/v1.IngressLoadBalancerStatus", "description": "LoadBalancer contains the current status of the load-balancer." } }, @@ -12213,7 +12191,7 @@ "type": "string" }, "ipv6": { - "description": "IPv6 defines an IPv6 IP block in CIDR notation(e.g. \"fd12:3456:789a:1::/64\"). At least one of IPv4 and IPv6 must be specified. This field is immutable.", + "description": "IPv6 defines an IPv6 IP block in CIDR notation(e.g. \"2001:db8::/64\"). At least one of IPv4 and IPv6 must be specified. This field is immutable.", "type": "string" }, "nodeSelector": { @@ -12454,6 +12432,10 @@ "$ref": "#/definitions/v1.LabelSelector", "description": "Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", "x-kubernetes-patch-strategy": "replace" + }, + "unhealthyPodEvictionPolicy": { + "description": "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.\n\nThis field is alpha-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (disabled by default).", + "type": "string" } }, "type": "object" @@ -12911,20 +12893,30 @@ "type": "object", "x-kubernetes-map-type": "atomic" }, - "v1.PriorityClass": { - "description": "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.", + "v1alpha1.AllocationResult": { + "description": "AllocationResult contains attributed of an allocated resource.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" + "availableOnNodes": { + "$ref": "#/definitions/v1.NodeSelector", + "description": "This field will get set by the resource driver after it has allocated the resource driver to inform the scheduler where it can schedule Pods using the ResourceClaim.\n\nSetting this field is optional. If null, the resource is available everywhere." }, - "description": { - "description": "description is an arbitrary string that usually provides guidelines on when this priority class should be used.", + "resourceHandle": { + "description": "ResourceHandle contains arbitrary data returned by the driver after a successful allocation. This is opaque for Kubernetes. Driver documentation may explain to users how to interpret this data if needed.\n\nThe maximum size of this field is 16KiB. This may get increased in the future, but not reduced.", "type": "string" }, - "globalDefault": { - "description": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.", + "shareable": { + "description": "Shareable determines whether the resource supports more than one consumer at a time.", "type": "boolean" + } + }, + "type": "object" + }, + "v1alpha1.PodScheduling": { + "description": "PodScheduling objects hold information that is needed to schedule a Pod with ResourceClaims that use \"WaitForFirstConsumer\" allocation mode.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", @@ -12932,41 +12924,40 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object metadata" }, - "preemptionPolicy": { - "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", - "type": "string" + "spec": { + "$ref": "#/definitions/v1alpha1.PodSchedulingSpec", + "description": "Spec describes where resources for the Pod are needed." }, - "value": { - "description": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", - "format": "int32", - "type": "integer" + "status": { + "$ref": "#/definitions/v1alpha1.PodSchedulingStatus", + "description": "Status describes where resources for the Pod can be allocated." } }, "required": [ - "value" + "spec" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" } ] }, - "v1.PriorityClassList": { - "description": "PriorityClassList is a collection of priority classes.", + "v1alpha1.PodSchedulingList": { + "description": "PodSchedulingList is a collection of Pod scheduling objects.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "items is the list of PriorityClasses", + "description": "Items is the list of PodScheduling objects.", "items": { - "$ref": "#/definitions/v1.PriorityClass" + "$ref": "#/definitions/v1alpha1.PodScheduling" }, "type": "array" }, @@ -12976,7 +12967,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata" } }, "required": [ @@ -12985,14 +12976,49 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "scheduling.k8s.io", - "kind": "PriorityClassList", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodSchedulingList", + "version": "v1alpha1" } ] }, - "v1.CSIDriver": { - "description": "CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.", + "v1alpha1.PodSchedulingSpec": { + "description": "PodSchedulingSpec describes where resources for the Pod are needed.", + "properties": { + "potentialNodes": { + "description": "PotentialNodes lists nodes where the Pod might be able to run.\n\nThe size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "selectedNode": { + "description": "SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted.", + "type": "string" + } + }, + "type": "object" + }, + "v1alpha1.PodSchedulingStatus": { + "description": "PodSchedulingStatus describes where resources for the Pod can be allocated.", + "properties": { + "resourceClaims": { + "description": "ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode.", + "items": { + "$ref": "#/definitions/v1alpha1.ResourceClaimSchedulingStatus" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object" + }, + "v1alpha1.ResourceClaim": { + "description": "ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", @@ -13004,11 +13030,15 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object metadata" }, "spec": { - "$ref": "#/definitions/v1.CSIDriverSpec", - "description": "Specification of the CSI Driver." + "$ref": "#/definitions/v1alpha1.ResourceClaimSpec", + "description": "Spec describes the desired attributes of a resource that then needs to be allocated. It can only be set once when creating the ResourceClaim." + }, + "status": { + "$ref": "#/definitions/v1alpha1.ResourceClaimStatus", + "description": "Status describes whether the resource is available and with which attributes." } }, "required": [ @@ -13017,23 +13047,50 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "CSIDriver", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" } ] }, - "v1.CSIDriverList": { - "description": "CSIDriverList is a collection of CSIDriver objects.", + "v1alpha1.ResourceClaimConsumerReference": { + "description": "ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced.", + "type": "string" + }, + "resource": { + "description": "Resource is the type of resource being referenced, for example \"pods\".", + "type": "string" + }, + "uid": { + "description": "UID identifies exactly one incarnation of the resource.", + "type": "string" + } + }, + "required": [ + "resource", + "name", + "uid" + ], + "type": "object" + }, + "v1alpha1.ResourceClaimList": { + "description": "ResourceClaimList is a collection of claims.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "items is the list of CSIDriver", + "description": "Items is the list of resource claims.", "items": { - "$ref": "#/definitions/v1.CSIDriver" + "$ref": "#/definitions/v1alpha1.ResourceClaim" }, "type": "array" }, @@ -13043,7 +13100,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata" } }, "required": [ @@ -13052,60 +13109,104 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "CSIDriverList", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaimList", + "version": "v1alpha1" } ] }, - "v1.CSIDriverSpec": { - "description": "CSIDriverSpec is the specification of a CSIDriver.", + "v1alpha1.ResourceClaimParametersReference": { + "description": "ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim.", "properties": { - "attachRequired": { - "description": "attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.\n\nThis field is immutable.", - "type": "boolean" + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", + "type": "string" }, - "fsGroupPolicy": { - "description": "Defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details.\n\nThis field is immutable.\n\nDefaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.", + "kind": { + "description": "Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \"ConfigMap\".", "type": "string" }, - "podInfoOnMount": { - "description": "If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" if the volume is an ephemeral inline volume\n defined by a CSIVolumeSource, otherwise \"false\"\n\n\"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver.\n\nThis field is immutable.", - "type": "boolean" + "name": { + "description": "Name is the name of resource being referenced.", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, + "v1alpha1.ResourceClaimSchedulingStatus": { + "description": "ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode.", + "properties": { + "name": { + "description": "Name matches the pod.spec.resourceClaims[*].Name field.", + "type": "string" }, - "requiresRepublish": { - "description": "RequiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.\n\nNote: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.", - "type": "boolean" + "unsuitableNodes": { + "description": "UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.\n\nThe size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "type": "object" + }, + "v1alpha1.ResourceClaimSpec": { + "description": "ResourceClaimSpec defines how a resource is to be allocated.", + "properties": { + "allocationMode": { + "description": "Allocation can start immediately or when a Pod wants to use the resource. \"WaitForFirstConsumer\" is the default.", + "type": "string" }, - "seLinuxMount": { - "description": "SELinuxMount specifies if the CSI driver supports \"-o context\" mount option.\n\nWhen \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context.\n\nWhen \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem.\n\nDefault is \"false\".", - "type": "boolean" + "parametersRef": { + "$ref": "#/definitions/v1alpha1.ResourceClaimParametersReference", + "description": "ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim.\n\nThe object must be in the same namespace as the ResourceClaim." }, - "storageCapacity": { - "description": "If set to true, storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information.\n\nThe check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.\n\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\n\nThis field was immutable in Kubernetes <= 1.22 and now is mutable.", + "resourceClassName": { + "description": "ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.", + "type": "string" + } + }, + "required": [ + "resourceClassName" + ], + "type": "object" + }, + "v1alpha1.ResourceClaimStatus": { + "description": "ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.", + "properties": { + "allocation": { + "$ref": "#/definitions/v1alpha1.AllocationResult", + "description": "Allocation is set by the resource driver once a resource has been allocated successfully. If this is not specified, the resource is not yet allocated." + }, + "deallocationRequested": { + "description": "DeallocationRequested indicates that a ResourceClaim is to be deallocated.\n\nThe driver then must deallocate this claim and reset the field together with clearing the Allocation field.\n\nWhile DeallocationRequested is set, no new consumers may be added to ReservedFor.", "type": "boolean" }, - "tokenRequests": { - "description": "TokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": {\n \"\": {\n \"token\": ,\n \"expirationTimestamp\": ,\n },\n ...\n}\n\nNote: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.", - "items": { - "$ref": "#/definitions/storage.v1.TokenRequest" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "driverName": { + "description": "DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.", + "type": "string" }, - "volumeLifecycleModes": { - "description": "volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \"Persistent\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is \"Ephemeral\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta.\n\nThis field is immutable.", + "reservedFor": { + "description": "ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started.\n\nThere can be at most 32 such reservations. This may get increased in the future, but not reduced.", "items": { - "type": "string" + "$ref": "#/definitions/v1alpha1.ResourceClaimConsumerReference" }, "type": "array", - "x-kubernetes-list-type": "set" + "x-kubernetes-list-map-keys": [ + "uid" + ], + "x-kubernetes-list-type": "map" } }, "type": "object" }, - "v1.CSINode": { - "description": "CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.", + "v1alpha1.ResourceClaimTemplate": { + "description": "ResourceClaimTemplate is used to produce ResourceClaim objects.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", @@ -13117,11 +13218,11 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "metadata.name must be the Kubernetes node name." + "description": "Standard object metadata" }, "spec": { - "$ref": "#/definitions/v1.CSINodeSpec", - "description": "spec is the specification of CSINode" + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplateSpec", + "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." } }, "required": [ @@ -13130,52 +13231,23 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "CSINode", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" } ] }, - "v1.CSINodeDriver": { - "description": "CSINodeDriver holds information about the specification of one CSI driver installed on a node", - "properties": { - "allocatable": { - "$ref": "#/definitions/v1.VolumeNodeResources", - "description": "allocatable represents the volume resources of a node that are available for scheduling. This field is beta." - }, - "name": { - "description": "This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.", - "type": "string" - }, - "nodeID": { - "description": "nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required.", - "type": "string" - }, - "topologyKeys": { - "description": "topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "name", - "nodeID" - ], - "type": "object" - }, - "v1.CSINodeList": { - "description": "CSINodeList is a collection of CSINode objects.", + "v1alpha1.ResourceClaimTemplateList": { + "description": "ResourceClaimTemplateList is a collection of claim templates.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "items is the list of CSINode", + "description": "Items is the list of resource claim templates.", "items": { - "$ref": "#/definitions/v1.CSINode" + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" }, "type": "array" }, @@ -13185,7 +13257,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata" } }, "required": [ @@ -13194,76 +13266,483 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "CSINodeList", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplateList", + "version": "v1alpha1" } ] }, - "v1.CSINodeSpec": { - "description": "CSINodeSpec holds information about the specification of all CSI drivers installed on a node", + "v1alpha1.ResourceClaimTemplateSpec": { + "description": "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.", "properties": { - "drivers": { - "description": "drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.", - "items": { - "$ref": "#/definitions/v1.CSINodeDriver" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation." + }, + "spec": { + "$ref": "#/definitions/v1alpha1.ResourceClaimSpec", + "description": "Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here." } }, "required": [ - "drivers" + "spec" ], "type": "object" }, - "v1.CSIStorageCapacity": { - "description": "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes.\n\nFor example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\"\n\nThe following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.", + "v1alpha1.ResourceClass": { + "description": "ResourceClass is used by administrators to influence how resources are allocated.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "capacity": { - "description": "Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable.", + "driverName": { + "description": "DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class.\n\nResource drivers have a unique name in forward domain order (acme.example.com).", "type": "string" }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, - "maximumVolumeSize": { - "description": "MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim.", - "type": "string" - }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object metadata" }, - "nodeTopology": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "NodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable." + "parametersRef": { + "$ref": "#/definitions/v1alpha1.ResourceClassParametersReference", + "description": "ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec." }, - "storageClassName": { - "description": "The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.", - "type": "string" + "suitableNodes": { + "$ref": "#/definitions/v1.NodeSelector", + "description": "Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet.\n\nSetting this field is optional. If null, all nodes are candidates." } }, "required": [ - "storageClassName" + "driverName" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" } ] }, - "v1.CSIStorageCapacityList": { - "description": "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.", + "v1alpha1.ResourceClassList": { + "description": "ResourceClassList is a collection of classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of resource classes.", + "items": { + "$ref": "#/definitions/v1alpha1.ResourceClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClassList", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.ResourceClassParametersReference": { + "description": "ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced.", + "type": "string" + }, + "namespace": { + "description": "Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, + "v1.PriorityClass": { + "description": "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "description": { + "description": "description is an arbitrary string that usually provides guidelines on when this priority class should be used.", + "type": "string" + }, + "globalDefault": { + "description": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.", + "type": "boolean" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", + "type": "string" + }, + "value": { + "description": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "value" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + ] + }, + "v1.PriorityClassList": { + "description": "PriorityClassList is a collection of priority classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of PriorityClasses", + "items": { + "$ref": "#/definitions/v1.PriorityClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "PriorityClassList", + "version": "v1" + } + ] + }, + "v1.CSIDriver": { + "description": "CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1.CSIDriverSpec", + "description": "Specification of the CSI Driver." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIDriver", + "version": "v1" + } + ] + }, + "v1.CSIDriverList": { + "description": "CSIDriverList is a collection of CSIDriver objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of CSIDriver", + "items": { + "$ref": "#/definitions/v1.CSIDriver" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIDriverList", + "version": "v1" + } + ] + }, + "v1.CSIDriverSpec": { + "description": "CSIDriverSpec is the specification of a CSIDriver.", + "properties": { + "attachRequired": { + "description": "attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.\n\nThis field is immutable.", + "type": "boolean" + }, + "fsGroupPolicy": { + "description": "Defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details.\n\nThis field is immutable.\n\nDefaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.", + "type": "string" + }, + "podInfoOnMount": { + "description": "If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" if the volume is an ephemeral inline volume\n defined by a CSIVolumeSource, otherwise \"false\"\n\n\"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver.\n\nThis field is immutable.", + "type": "boolean" + }, + "requiresRepublish": { + "description": "RequiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.\n\nNote: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.", + "type": "boolean" + }, + "seLinuxMount": { + "description": "SELinuxMount specifies if the CSI driver supports \"-o context\" mount option.\n\nWhen \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context.\n\nWhen \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem.\n\nDefault is \"false\".", + "type": "boolean" + }, + "storageCapacity": { + "description": "If set to true, storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information.\n\nThe check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.\n\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\n\nThis field was immutable in Kubernetes <= 1.22 and now is mutable.", + "type": "boolean" + }, + "tokenRequests": { + "description": "TokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": {\n \"\": {\n \"token\": ,\n \"expirationTimestamp\": ,\n },\n ...\n}\n\nNote: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.", + "items": { + "$ref": "#/definitions/storage.v1.TokenRequest" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "volumeLifecycleModes": { + "description": "volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \"Persistent\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is \"Ephemeral\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta.\n\nThis field is immutable.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "type": "object" + }, + "v1.CSINode": { + "description": "CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "metadata.name must be the Kubernetes node name." + }, + "spec": { + "$ref": "#/definitions/v1.CSINodeSpec", + "description": "spec is the specification of CSINode" + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + ] + }, + "v1.CSINodeDriver": { + "description": "CSINodeDriver holds information about the specification of one CSI driver installed on a node", + "properties": { + "allocatable": { + "$ref": "#/definitions/v1.VolumeNodeResources", + "description": "allocatable represents the volume resources of a node that are available for scheduling. This field is beta." + }, + "name": { + "description": "This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.", + "type": "string" + }, + "nodeID": { + "description": "nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required.", + "type": "string" + }, + "topologyKeys": { + "description": "topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "name", + "nodeID" + ], + "type": "object" + }, + "v1.CSINodeList": { + "description": "CSINodeList is a collection of CSINode objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of CSINode", + "items": { + "$ref": "#/definitions/v1.CSINode" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSINodeList", + "version": "v1" + } + ] + }, + "v1.CSINodeSpec": { + "description": "CSINodeSpec holds information about the specification of all CSI drivers installed on a node", + "properties": { + "drivers": { + "description": "drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.", + "items": { + "$ref": "#/definitions/v1.CSINodeDriver" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "required": [ + "drivers" + ], + "type": "object" + }, + "v1.CSIStorageCapacity": { + "description": "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes.\n\nFor example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\"\n\nThe following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "capacity": { + "description": "Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable.", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "maximumVolumeSize": { + "description": "MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim.", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "nodeTopology": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "NodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable." + }, + "storageClassName": { + "description": "The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.", + "type": "string" + } + }, + "required": [ + "storageClassName" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacity", + "version": "v1" + } + ] + }, + "v1.CSIStorageCapacityList": { + "description": "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", @@ -13876,7 +14355,7 @@ "description": "names specify the resource and kind names for the custom resource." }, "preserveUnknownFields": { - "description": "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details.", + "description": "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details.", "type": "boolean" }, "scope": { @@ -14627,6 +15106,11 @@ "kind": "DeleteOptions", "version": "v1" }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, { "group": "admissionregistration.k8s.io", "kind": "DeleteOptions", @@ -14672,6 +15156,11 @@ "kind": "DeleteOptions", "version": "v1" }, + { + "group": "authentication.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, { "group": "authentication.k8s.io", "kind": "DeleteOptions", @@ -14777,6 +15266,11 @@ "kind": "DeleteOptions", "version": "v1beta2" }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta3" + }, { "group": "imagepolicy.k8s.io", "kind": "DeleteOptions", @@ -14842,6 +15336,11 @@ "kind": "DeleteOptions", "version": "v1beta1" }, + { + "group": "resource.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, { "group": "scheduling.k8s.io", "kind": "DeleteOptions", @@ -15198,6 +15697,11 @@ "group": "", "kind": "Status", "version": "v1" + }, + { + "group": "resource.k8s.io", + "kind": "Status", + "version": "v1alpha1" } ] }, @@ -15290,6 +15794,11 @@ "kind": "WatchEvent", "version": "v1" }, + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, { "group": "admissionregistration.k8s.io", "kind": "WatchEvent", @@ -15335,6 +15844,11 @@ "kind": "WatchEvent", "version": "v1" }, + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, { "group": "authentication.k8s.io", "kind": "WatchEvent", @@ -15440,6 +15954,11 @@ "kind": "WatchEvent", "version": "v1beta2" }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta3" + }, { "group": "imagepolicy.k8s.io", "kind": "WatchEvent", @@ -15505,6 +16024,11 @@ "kind": "WatchEvent", "version": "v1beta1" }, + { + "group": "resource.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, { "group": "scheduling.k8s.io", "kind": "WatchEvent", @@ -15768,7 +16292,7 @@ }, "info": { "title": "Kubernetes", - "version": "release-1.25" + "version": "release-1.26" }, "paths": { "/.well-known/openid-configuration/": { @@ -36220,40 +36744,7 @@ } ] }, - "/apis/apiextensions.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiextensions" - ] - } - }, - "/apis/apiextensions.k8s.io/v1/": { + "/apis/admissionregistration.k8s.io/v1alpha1/": { "get": { "consumes": [ "application/json", @@ -36282,17 +36773,17 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ] } }, - "/apis/apiextensions.k8s.io/v1/customresourcedefinitions": { + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of CustomResourceDefinition", - "operationId": "deleteCollectionCustomResourceDefinition", + "description": "delete collection of ValidatingAdmissionPolicy", + "operationId": "deleteCollectionValidatingAdmissionPolicy", "parameters": [ { "in": "body", @@ -36399,13 +36890,13 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -36413,8 +36904,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind CustomResourceDefinition", - "operationId": "listCustomResourceDefinition", + "description": "list or watch objects of kind ValidatingAdmissionPolicy", + "operationId": "listValidatingAdmissionPolicy", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -36491,7 +36982,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinitionList" + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyList" } }, "401": { @@ -36502,13 +36993,13 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" } }, "parameters": [ @@ -36524,15 +37015,15 @@ "consumes": [ "*/*" ], - "description": "create a CustomResourceDefinition", - "operationId": "createCustomResourceDefinition", + "description": "create a ValidatingAdmissionPolicy", + "operationId": "createValidatingAdmissionPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" } }, { @@ -36566,19 +37057,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" } }, "401": { @@ -36589,24 +37080,24 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}": { + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a CustomResourceDefinition", - "operationId": "deleteCustomResourceDefinition", + "description": "delete a ValidatingAdmissionPolicy", + "operationId": "deleteValidatingAdmissionPolicy", "parameters": [ { "in": "body", @@ -36670,13 +37161,13 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -36684,8 +37175,8 @@ "consumes": [ "*/*" ], - "description": "read the specified CustomResourceDefinition", - "operationId": "readCustomResourceDefinition", + "description": "read the specified ValidatingAdmissionPolicy", + "operationId": "readValidatingAdmissionPolicy", "produces": [ "application/json", "application/yaml", @@ -36695,7 +37186,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" } }, "401": { @@ -36706,18 +37197,18 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the CustomResourceDefinition", + "description": "name of the ValidatingAdmissionPolicy", "in": "path", "name": "name", "required": true, @@ -36739,8 +37230,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified CustomResourceDefinition", - "operationId": "patchCustomResourceDefinition", + "description": "partially update the specified ValidatingAdmissionPolicy", + "operationId": "patchValidatingAdmissionPolicy", "parameters": [ { "in": "body", @@ -36789,13 +37280,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" } }, "401": { @@ -36806,13 +37297,13 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -36820,15 +37311,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified CustomResourceDefinition", - "operationId": "replaceCustomResourceDefinition", + "description": "replace the specified ValidatingAdmissionPolicy", + "operationId": "replaceValidatingAdmissionPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" } }, { @@ -36862,13 +37353,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" } }, "401": { @@ -36879,24 +37370,110 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status": { - "get": { + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings": { + "delete": { "consumes": [ "*/*" ], - "description": "read status of the specified CustomResourceDefinition", - "operationId": "readCustomResourceDefinitionStatus", + "description": "delete collection of ValidatingAdmissionPolicyBinding", + "operationId": "deleteCollectionValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", @@ -36906,7 +37483,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -36917,76 +37494,83 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the CustomResourceDefinition", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { + "x-codegen-request-body-name": "body" + }, + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" + "*/*" ], - "description": "partially update status of the specified CustomResourceDefinition", - "operationId": "patchCustomResourceDefinitionStatus", + "description": "list or watch objects of kind ValidatingAdmissionPolicyBinding", + "operationId": "listValidatingAdmissionPolicyBinding", "parameters": [ { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", - "name": "dryRun", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", - "name": "fieldManager", + "name": "fieldSelector", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", - "name": "fieldValidation", + "name": "labelSelector", "type": "string", "uniqueItems": true }, { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", "in": "query", - "name": "force", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", "type": "boolean", "uniqueItems": true } @@ -36994,19 +37578,15 @@ "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBindingList" } }, "401": { @@ -37017,29 +37597,37 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" - }, - "x-codegen-request-body-name": "body" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } }, - "put": { + "parameters": [ + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { "consumes": [ "*/*" ], - "description": "replace status of the specified CustomResourceDefinition", - "operationId": "replaceCustomResourceDefinitionStatus", + "description": "create a ValidatingAdmissionPolicyBinding", + "operationId": "createValidatingAdmissionPolicyBinding", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" } }, { @@ -37073,13 +37661,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" } }, "401": { @@ -37090,18 +37684,308 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ValidatingAdmissionPolicyBinding", + "operationId": "deleteValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ValidatingAdmissionPolicyBinding", + "operationId": "readValidatingAdmissionPolicyBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ValidatingAdmissionPolicyBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ValidatingAdmissionPolicyBinding", + "operationId": "patchValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ValidatingAdmissionPolicyBinding", + "operationId": "replaceValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions": { + "/apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicies": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -37175,7 +38059,7 @@ } ] }, - "/apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions/{name}": { + "/apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicies/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -37213,7 +38097,7 @@ "uniqueItems": true }, { - "description": "name of the CustomResourceDefinition", + "description": "name of the ValidatingAdmissionPolicy", "in": "path", "name": "name", "required": true, @@ -37257,7 +38141,163 @@ } ] }, - "/apis/apiregistration.k8s.io/": { + "/apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicybindings": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicybindings/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ValidatingAdmissionPolicyBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apiextensions.k8s.io/": { "get": { "consumes": [ "application/json", @@ -37286,11 +38326,11 @@ "https" ], "tags": [ - "apiregistration" + "apiextensions" ] } }, - "/apis/apiregistration.k8s.io/v1/": { + "/apis/apiextensions.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -37319,17 +38359,17 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ] } }, - "/apis/apiregistration.k8s.io/v1/apiservices": { + "/apis/apiextensions.k8s.io/v1/customresourcedefinitions": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of APIService", - "operationId": "deleteCollectionAPIService", + "description": "delete collection of CustomResourceDefinition", + "operationId": "deleteCollectionCustomResourceDefinition", "parameters": [ { "in": "body", @@ -37436,12 +38476,12 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -37450,8 +38490,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind APIService", - "operationId": "listAPIService", + "description": "list or watch objects of kind CustomResourceDefinition", + "operationId": "listCustomResourceDefinition", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -37528,7 +38568,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIServiceList" + "$ref": "#/definitions/v1.CustomResourceDefinitionList" } }, "401": { @@ -37539,12 +38579,12 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" } }, @@ -37561,15 +38601,15 @@ "consumes": [ "*/*" ], - "description": "create an APIService", - "operationId": "createAPIService", + "description": "create a CustomResourceDefinition", + "operationId": "createCustomResourceDefinition", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, { @@ -37603,19 +38643,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "401": { @@ -37626,24 +38666,24 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apiregistration.k8s.io/v1/apiservices/{name}": { + "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an APIService", - "operationId": "deleteAPIService", + "description": "delete a CustomResourceDefinition", + "operationId": "deleteCustomResourceDefinition", "parameters": [ { "in": "body", @@ -37707,12 +38747,12 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -37721,8 +38761,8 @@ "consumes": [ "*/*" ], - "description": "read the specified APIService", - "operationId": "readAPIService", + "description": "read the specified CustomResourceDefinition", + "operationId": "readCustomResourceDefinition", "produces": [ "application/json", "application/yaml", @@ -37732,7 +38772,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "401": { @@ -37743,18 +38783,18 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" } }, "parameters": [ { - "description": "name of the APIService", + "description": "name of the CustomResourceDefinition", "in": "path", "name": "name", "required": true, @@ -37776,8 +38816,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified APIService", - "operationId": "patchAPIService", + "description": "partially update the specified CustomResourceDefinition", + "operationId": "patchCustomResourceDefinition", "parameters": [ { "in": "body", @@ -37826,13 +38866,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "401": { @@ -37843,12 +38883,12 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -37857,15 +38897,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified APIService", - "operationId": "replaceAPIService", + "description": "replace the specified CustomResourceDefinition", + "operationId": "replaceCustomResourceDefinition", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, { @@ -37899,13 +38939,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "401": { @@ -37916,24 +38956,24 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apiregistration.k8s.io/v1/apiservices/{name}/status": { + "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified APIService", - "operationId": "readAPIServiceStatus", + "description": "read status of the specified CustomResourceDefinition", + "operationId": "readCustomResourceDefinitionStatus", "produces": [ "application/json", "application/yaml", @@ -37943,7 +38983,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "401": { @@ -37954,18 +38994,18 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" } }, "parameters": [ { - "description": "name of the APIService", + "description": "name of the CustomResourceDefinition", "in": "path", "name": "name", "required": true, @@ -37987,8 +39027,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified APIService", - "operationId": "patchAPIServiceStatus", + "description": "partially update status of the specified CustomResourceDefinition", + "operationId": "patchCustomResourceDefinitionStatus", "parameters": [ { "in": "body", @@ -38037,13 +39077,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "401": { @@ -38054,12 +39094,12 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -38068,15 +39108,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified APIService", - "operationId": "replaceAPIServiceStatus", + "description": "replace status of the specified CustomResourceDefinition", + "operationId": "replaceCustomResourceDefinitionStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, { @@ -38110,13 +39150,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "401": { @@ -38127,18 +39167,18 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apiregistration.k8s.io/v1/watch/apiservices": { + "/apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -38212,7 +39252,7 @@ } ] }, - "/apis/apiregistration.k8s.io/v1/watch/apiservices/{name}": { + "/apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -38250,7 +39290,7 @@ "uniqueItems": true }, { - "description": "name of the APIService", + "description": "name of the CustomResourceDefinition", "in": "path", "name": "name", "required": true, @@ -38294,7 +39334,7 @@ } ] }, - "/apis/apps/": { + "/apis/apiregistration.k8s.io/": { "get": { "consumes": [ "application/json", @@ -38323,11 +39363,11 @@ "https" ], "tags": [ - "apps" + "apiregistration" ] } }, - "/apis/apps/v1/": { + "/apis/apiregistration.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -38356,350 +39396,17 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ] } }, - "/apis/apps/v1/controllerrevisions": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ControllerRevision", - "operationId": "listControllerRevisionForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ControllerRevisionList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/daemonsets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind DaemonSet", - "operationId": "listDaemonSetForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.DaemonSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/deployments": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Deployment", - "operationId": "listDeploymentForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/namespaces/{namespace}/controllerrevisions": { + "/apis/apiregistration.k8s.io/v1/apiservices": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ControllerRevision", - "operationId": "deleteCollectionNamespacedControllerRevision", + "description": "delete collection of APIService", + "operationId": "deleteCollectionAPIService", "parameters": [ { "in": "body", @@ -38806,12 +39513,12 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -38820,8 +39527,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ControllerRevision", - "operationId": "listNamespacedControllerRevision", + "description": "list or watch objects of kind APIService", + "operationId": "listAPIService", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -38898,7 +39605,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ControllerRevisionList" + "$ref": "#/definitions/v1.APIServiceList" } }, "401": { @@ -38909,24 +39616,16 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -38939,15 +39638,15 @@ "consumes": [ "*/*" ], - "description": "create a ControllerRevision", - "operationId": "createNamespacedControllerRevision", + "description": "create an APIService", + "operationId": "createAPIService", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.APIService" } }, { @@ -38981,19 +39680,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.APIService" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.APIService" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.APIService" } }, "401": { @@ -39004,24 +39703,24 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}": { + "/apis/apiregistration.k8s.io/v1/apiservices/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ControllerRevision", - "operationId": "deleteNamespacedControllerRevision", + "description": "delete an APIService", + "operationId": "deleteAPIService", "parameters": [ { "in": "body", @@ -39085,12 +39784,12 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -39099,8 +39798,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ControllerRevision", - "operationId": "readNamespacedControllerRevision", + "description": "read the specified APIService", + "operationId": "readAPIService", "produces": [ "application/json", "application/yaml", @@ -39110,7 +39809,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.APIService" } }, "401": { @@ -39121,32 +39820,24 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" } }, "parameters": [ { - "description": "name of the ControllerRevision", + "description": "name of the APIService", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -39162,8 +39853,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified ControllerRevision", - "operationId": "patchNamespacedControllerRevision", + "description": "partially update the specified APIService", + "operationId": "patchAPIService", "parameters": [ { "in": "body", @@ -39212,13 +39903,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.APIService" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.APIService" } }, "401": { @@ -39229,12 +39920,12 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -39243,15 +39934,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ControllerRevision", - "operationId": "replaceNamespacedControllerRevision", + "description": "replace the specified APIService", + "operationId": "replaceAPIService", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.APIService" } }, { @@ -39285,13 +39976,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.APIService" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.APIService" } }, "401": { @@ -39302,425 +39993,24 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/apps/v1/namespaces/{namespace}/daemonsets": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of DaemonSet", - "operationId": "deleteCollectionNamespacedDaemonSet", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind DaemonSet", - "operationId": "listNamespacedDaemonSet", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.DaemonSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a DaemonSet", - "operationId": "createNamespacedDaemonSet", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DaemonSet" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.DaemonSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.DaemonSet" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a DaemonSet", - "operationId": "deleteNamespacedDaemonSet", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, + "/apis/apiregistration.k8s.io/v1/apiservices/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read the specified DaemonSet", - "operationId": "readNamespacedDaemonSet", + "description": "read status of the specified APIService", + "operationId": "readAPIServiceStatus", "produces": [ "application/json", "application/yaml", @@ -39730,7 +40020,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, "401": { @@ -39741,32 +40031,24 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" } }, "parameters": [ { - "description": "name of the DaemonSet", + "description": "name of the APIService", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -39782,8 +40064,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified DaemonSet", - "operationId": "patchNamespacedDaemonSet", + "description": "partially update status of the specified APIService", + "operationId": "patchAPIServiceStatus", "parameters": [ { "in": "body", @@ -39832,13 +40114,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, "401": { @@ -39849,12 +40131,12 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -39863,15 +40145,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified DaemonSet", - "operationId": "replaceNamespacedDaemonSet", + "description": "replace status of the specified APIService", + "operationId": "replaceAPIServiceStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, { @@ -39905,13 +40187,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, "401": { @@ -39922,66 +40204,132 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" + "group": "apiregistration.k8s.io", + "kind": "APIService", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified DaemonSet", - "operationId": "readNamespacedDaemonSetStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/apiregistration.k8s.io/v1/watch/apiservices": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/apiregistration.k8s.io/v1/watch/apiservices/{name}": { "parameters": [ { - "description": "name of the DaemonSet", - "in": "path", - "name": "name", - "required": true, + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the APIService", "in": "path", - "name": "namespace", + "name": "name", "required": true, "type": "string", "uniqueItems": true @@ -39992,129 +40340,46 @@ "name": "pretty", "type": "string", "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - ], - "patch": { + ] + }, + "/apis/apps/": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified DaemonSet", - "operationId": "patchNamespacedDaemonSetStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.DaemonSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified DaemonSet", - "operationId": "replaceNamespacedDaemonSetStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DaemonSet" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], + "description": "get information of a group", + "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", @@ -40124,13 +40389,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DaemonSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { @@ -40141,110 +40400,19 @@ "https" ], "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - }, - "x-codegen-request-body-name": "body" + "apps" + ] } }, - "/apis/apps/v1/namespaces/{namespace}/deployments": { - "delete": { + "/apis/apps/v1/": { + "get": { "consumes": [ - "*/*" - ], - "description": "delete collection of Deployment", - "operationId": "deleteCollectionNamespacedDeployment", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -40254,7 +40422,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -40266,86 +40434,16 @@ ], "tags": [ "apps_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, + ] + } + }, + "/apis/apps/v1/controllerrevisions": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Deployment", - "operationId": "listNamespacedDeployment", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], + "description": "list or watch objects of kind ControllerRevision", + "operationId": "listControllerRevisionForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -40357,7 +40455,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DeploymentList" + "$ref": "#/definitions/v1.ControllerRevisionList" } }, "401": { @@ -40373,86 +40471,213 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" } }, "parameters": [ { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - ], - "post": { + ] + }, + "/apis/apps/v1/daemonsets": { + "get": { "consumes": [ "*/*" ], - "description": "create a Deployment", - "operationId": "createNamespacedDeployment", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, + "description": "list or watch objects of kind DaemonSet", + "operationId": "listDaemonSetForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.DaemonSetList" } }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true + "401": { + "description": "Unauthorized" } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1/deployments": { + "get": { + "consumes": [ + "*/*" ], + "description": "list or watch objects of kind Deployment", + "operationId": "listDeploymentForAllNamespaces", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Deployment" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Deployment" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.DeploymentList" } }, "401": { @@ -40465,22 +40690,93 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "apps", "kind": "Deployment", "version": "v1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/apps/v1/namespaces/{namespace}/deployments/{name}": { + "/apis/apps/v1/namespaces/{namespace}/controllerrevisions": { "delete": { "consumes": [ "*/*" ], - "description": "delete a Deployment", - "operationId": "deleteNamespacedDeployment", + "description": "delete collection of ControllerRevision", + "operationId": "deleteCollectionNamespacedControllerRevision", "parameters": [ { "in": "body", @@ -40489,6 +40785,13 @@ "$ref": "#/definitions/v1.DeleteOptions" } }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, { "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", "in": "query", @@ -40496,6 +40799,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, { "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", "in": "query", @@ -40503,6 +40813,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "in": "query", @@ -40516,6 +40840,27 @@ "name": "propagationPolicy", "type": "string", "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true } ], "produces": [ @@ -40530,12 +40875,6 @@ "$ref": "#/definitions/v1.Status" } }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, "401": { "description": "Unauthorized" } @@ -40546,10 +40885,10 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -40558,18 +40897,85 @@ "consumes": [ "*/*" ], - "description": "read the specified Deployment", - "operationId": "readNamespacedDeployment", + "description": "list or watch objects of kind ControllerRevision", + "operationId": "listNamespacedControllerRevision", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.ControllerRevisionList" } }, "401": { @@ -40582,22 +40988,14 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" } }, "parameters": [ - { - "description": "name of the Deployment", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -40614,23 +41012,19 @@ "uniqueItems": true } ], - "patch": { + "post": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" + "*/*" ], - "description": "partially update the specified Deployment", - "operationId": "patchNamespacedDeployment", + "description": "create a ControllerRevision", + "operationId": "createNamespacedControllerRevision", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" + "$ref": "#/definitions/v1.ControllerRevision" } }, { @@ -40641,7 +41035,7 @@ "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", "in": "query", "name": "fieldManager", "type": "string", @@ -40653,13 +41047,6 @@ "name": "fieldValidation", "type": "string", "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -40671,13 +41058,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.ControllerRevision" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.ControllerRevision" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.ControllerRevision" } }, "401": { @@ -40690,27 +41083,28 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" }, "x-codegen-request-body-name": "body" - }, - "put": { + } + }, + "/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}": { + "delete": { "consumes": [ "*/*" ], - "description": "replace the specified Deployment", - "operationId": "replaceNamespacedDeployment", + "description": "delete a ControllerRevision", + "operationId": "deleteNamespacedControllerRevision", "parameters": [ { "in": "body", "name": "body", - "required": true, "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.DeleteOptions" } }, { @@ -40721,235 +41115,23 @@ "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", "in": "query", - "name": "fieldManager", - "type": "string", + "name": "gracePeriodSeconds", + "type": "integer", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Deployment" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read scale of the specified Deployment", - "operationId": "readNamespacedDeploymentScale", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Scale", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update scale of the specified Deployment", - "operationId": "patchNamespacedDeploymentScale", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", + "name": "orphanDependents", "type": "boolean", "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Scale" - } }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace scale of the specified Deployment", - "operationId": "replaceNamespacedDeploymentScale", - "parameters": [ { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", "in": "query", - "name": "fieldValidation", + "name": "propagationPolicy", "type": "string", "uniqueItems": true } @@ -40963,13 +41145,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Scale" + "$ref": "#/definitions/v1.Status" } }, - "201": { - "description": "Created", + "202": { + "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Scale" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -40982,22 +41164,20 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", + "group": "apps", + "kind": "ControllerRevision", "version": "v1" }, "x-codegen-request-body-name": "body" - } - }, - "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status": { + }, "get": { "consumes": [ "*/*" ], - "description": "read status of the specified Deployment", - "operationId": "readNamespacedDeploymentStatus", + "description": "read the specified ControllerRevision", + "operationId": "readNamespacedControllerRevision", "produces": [ "application/json", "application/yaml", @@ -41007,7 +41187,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.ControllerRevision" } }, "401": { @@ -41023,13 +41203,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" } }, "parameters": [ { - "description": "name of the Deployment", + "description": "name of the ControllerRevision", "in": "path", "name": "name", "required": true, @@ -41059,8 +41239,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified Deployment", - "operationId": "patchNamespacedDeploymentStatus", + "description": "partially update the specified ControllerRevision", + "operationId": "patchNamespacedControllerRevision", "parameters": [ { "in": "body", @@ -41109,13 +41289,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.ControllerRevision" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.ControllerRevision" } }, "401": { @@ -41131,7 +41311,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -41140,15 +41320,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified Deployment", - "operationId": "replaceNamespacedDeploymentStatus", + "description": "replace the specified ControllerRevision", + "operationId": "replaceNamespacedControllerRevision", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.ControllerRevision" } }, { @@ -41182,13 +41362,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.ControllerRevision" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.ControllerRevision" } }, "401": { @@ -41204,19 +41384,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/replicasets": { + "/apis/apps/v1/namespaces/{namespace}/daemonsets": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ReplicaSet", - "operationId": "deleteCollectionNamespacedReplicaSet", + "description": "delete collection of DaemonSet", + "operationId": "deleteCollectionNamespacedDaemonSet", "parameters": [ { "in": "body", @@ -41328,7 +41508,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "DaemonSet", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -41337,8 +41517,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ReplicaSet", - "operationId": "listNamespacedReplicaSet", + "description": "list or watch objects of kind DaemonSet", + "operationId": "listNamespacedDaemonSet", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -41415,7 +41595,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ReplicaSetList" + "$ref": "#/definitions/v1.DaemonSetList" } }, "401": { @@ -41431,7 +41611,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "DaemonSet", "version": "v1" } }, @@ -41456,15 +41636,15 @@ "consumes": [ "*/*" ], - "description": "create a ReplicaSet", - "operationId": "createNamespacedReplicaSet", + "description": "create a DaemonSet", + "operationId": "createNamespacedDaemonSet", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, { @@ -41498,19 +41678,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "401": { @@ -41526,19 +41706,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "DaemonSet", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}": { + "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ReplicaSet", - "operationId": "deleteNamespacedReplicaSet", + "description": "delete a DaemonSet", + "operationId": "deleteNamespacedDaemonSet", "parameters": [ { "in": "body", @@ -41607,7 +41787,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "DaemonSet", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -41616,8 +41796,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ReplicaSet", - "operationId": "readNamespacedReplicaSet", + "description": "read the specified DaemonSet", + "operationId": "readNamespacedDaemonSet", "produces": [ "application/json", "application/yaml", @@ -41627,7 +41807,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "401": { @@ -41643,13 +41823,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "DaemonSet", "version": "v1" } }, "parameters": [ { - "description": "name of the ReplicaSet", + "description": "name of the DaemonSet", "in": "path", "name": "name", "required": true, @@ -41679,8 +41859,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified ReplicaSet", - "operationId": "patchNamespacedReplicaSet", + "description": "partially update the specified DaemonSet", + "operationId": "patchNamespacedDaemonSet", "parameters": [ { "in": "body", @@ -41729,13 +41909,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "401": { @@ -41751,7 +41931,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "DaemonSet", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -41760,15 +41940,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ReplicaSet", - "operationId": "replaceNamespacedReplicaSet", + "description": "replace the specified DaemonSet", + "operationId": "replaceNamespacedDaemonSet", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, { @@ -41802,13 +41982,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "401": { @@ -41824,238 +42004,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read scale of the specified ReplicaSet", - "operationId": "readNamespacedReplicaSetScale", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Scale", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update scale of the specified ReplicaSet", - "operationId": "patchNamespacedReplicaSetScale", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace scale of the specified ReplicaSet", - "operationId": "replaceNamespacedReplicaSetScale", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", + "kind": "DaemonSet", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status": { + "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified ReplicaSet", - "operationId": "readNamespacedReplicaSetStatus", + "description": "read status of the specified DaemonSet", + "operationId": "readNamespacedDaemonSetStatus", "produces": [ "application/json", "application/yaml", @@ -42065,7 +42026,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "401": { @@ -42081,13 +42042,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "DaemonSet", "version": "v1" } }, "parameters": [ { - "description": "name of the ReplicaSet", + "description": "name of the DaemonSet", "in": "path", "name": "name", "required": true, @@ -42117,8 +42078,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified ReplicaSet", - "operationId": "patchNamespacedReplicaSetStatus", + "description": "partially update status of the specified DaemonSet", + "operationId": "patchNamespacedDaemonSetStatus", "parameters": [ { "in": "body", @@ -42167,13 +42128,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "401": { @@ -42189,7 +42150,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "DaemonSet", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -42198,15 +42159,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified ReplicaSet", - "operationId": "replaceNamespacedReplicaSetStatus", + "description": "replace status of the specified DaemonSet", + "operationId": "replaceNamespacedDaemonSetStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, { @@ -42240,13 +42201,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "401": { @@ -42262,19 +42223,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "DaemonSet", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/statefulsets": { + "/apis/apps/v1/namespaces/{namespace}/deployments": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of StatefulSet", - "operationId": "deleteCollectionNamespacedStatefulSet", + "description": "delete collection of Deployment", + "operationId": "deleteCollectionNamespacedDeployment", "parameters": [ { "in": "body", @@ -42386,7 +42347,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -42395,8 +42356,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind StatefulSet", - "operationId": "listNamespacedStatefulSet", + "description": "list or watch objects of kind Deployment", + "operationId": "listNamespacedDeployment", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -42473,7 +42434,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StatefulSetList" + "$ref": "#/definitions/v1.DeploymentList" } }, "401": { @@ -42489,7 +42450,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" } }, @@ -42514,15 +42475,15 @@ "consumes": [ "*/*" ], - "description": "create a StatefulSet", - "operationId": "createNamespacedStatefulSet", + "description": "create a Deployment", + "operationId": "createNamespacedDeployment", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, { @@ -42556,19 +42517,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "401": { @@ -42584,19 +42545,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}": { + "/apis/apps/v1/namespaces/{namespace}/deployments/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a StatefulSet", - "operationId": "deleteNamespacedStatefulSet", + "description": "delete a Deployment", + "operationId": "deleteNamespacedDeployment", "parameters": [ { "in": "body", @@ -42665,7 +42626,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -42674,8 +42635,8 @@ "consumes": [ "*/*" ], - "description": "read the specified StatefulSet", - "operationId": "readNamespacedStatefulSet", + "description": "read the specified Deployment", + "operationId": "readNamespacedDeployment", "produces": [ "application/json", "application/yaml", @@ -42685,7 +42646,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "401": { @@ -42701,13 +42662,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" } }, "parameters": [ { - "description": "name of the StatefulSet", + "description": "name of the Deployment", "in": "path", "name": "name", "required": true, @@ -42737,8 +42698,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified StatefulSet", - "operationId": "patchNamespacedStatefulSet", + "description": "partially update the specified Deployment", + "operationId": "patchNamespacedDeployment", "parameters": [ { "in": "body", @@ -42787,13 +42748,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "401": { @@ -42809,7 +42770,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -42818,15 +42779,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified StatefulSet", - "operationId": "replaceNamespacedStatefulSet", + "description": "replace the specified Deployment", + "operationId": "replaceNamespacedDeployment", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, { @@ -42860,13 +42821,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "401": { @@ -42882,19 +42843,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale": { + "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale": { "get": { "consumes": [ "*/*" ], - "description": "read scale of the specified StatefulSet", - "operationId": "readNamespacedStatefulSetScale", + "description": "read scale of the specified Deployment", + "operationId": "readNamespacedDeploymentScale", "produces": [ "application/json", "application/yaml", @@ -42956,8 +42917,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update scale of the specified StatefulSet", - "operationId": "patchNamespacedStatefulSetScale", + "description": "partially update scale of the specified Deployment", + "operationId": "patchNamespacedDeploymentScale", "parameters": [ { "in": "body", @@ -43037,8 +42998,8 @@ "consumes": [ "*/*" ], - "description": "replace scale of the specified StatefulSet", - "operationId": "replaceNamespacedStatefulSetScale", + "description": "replace scale of the specified Deployment", + "operationId": "replaceNamespacedDeploymentScale", "parameters": [ { "in": "body", @@ -43107,13 +43068,13 @@ "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status": { + "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified StatefulSet", - "operationId": "readNamespacedStatefulSetStatus", + "description": "read status of the specified Deployment", + "operationId": "readNamespacedDeploymentStatus", "produces": [ "application/json", "application/yaml", @@ -43123,7 +43084,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "401": { @@ -43139,13 +43100,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" } }, "parameters": [ { - "description": "name of the StatefulSet", + "description": "name of the Deployment", "in": "path", "name": "name", "required": true, @@ -43175,8 +43136,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified StatefulSet", - "operationId": "patchNamespacedStatefulSetStatus", + "description": "partially update status of the specified Deployment", + "operationId": "patchNamespacedDeploymentStatus", "parameters": [ { "in": "body", @@ -43225,13 +43186,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "401": { @@ -43247,7 +43208,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -43256,15 +43217,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified StatefulSet", - "operationId": "replaceNamespacedStatefulSetStatus", + "description": "replace status of the specified Deployment", + "operationId": "replaceNamespacedDeploymentStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, { @@ -43298,13 +43259,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "401": { @@ -43320,19 +43281,206 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/replicasets": { + "/apis/apps/v1/namespaces/{namespace}/replicasets": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ReplicaSet", + "operationId": "deleteCollectionNamespacedReplicaSet", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, "get": { "consumes": [ "*/*" ], "description": "list or watch objects of kind ReplicaSet", - "operationId": "listReplicaSetForAllNamespaces", + "operationId": "listNamespacedReplicaSet", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", @@ -43366,96 +43514,197 @@ }, "parameters": [ { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ReplicaSet", + "operationId": "createNamespacedReplicaSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + } + }, + "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ReplicaSet", + "operationId": "deleteNamespacedReplicaSet", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/statefulsets": { + "x-codegen-request-body-name": "body" + }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind StatefulSet", - "operationId": "listStatefulSetForAllNamespaces", + "description": "read the specified ReplicaSet", + "operationId": "readNamespacedReplicaSet", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StatefulSetList" + "$ref": "#/definitions/v1.ReplicaSet" } }, "401": { @@ -43468,112 +43717,2678 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "ReplicaSet", "version": "v1" } }, "parameters": [ { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", + "description": "name of the ReplicaSet", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ReplicaSet", + "operationId": "patchNamespacedReplicaSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ReplicaSet", + "operationId": "replaceNamespacedReplicaSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/apps/v1/watch/controllerrevisions": { + "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read scale of the specified ReplicaSet", + "operationId": "readNamespacedReplicaSetScale", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + } + }, "parameters": [ { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", + "description": "name of the Scale", + "in": "path", + "name": "name", + "required": true, + "type": "string", "uniqueItems": true }, { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "description": "If 'true', then the output is pretty printed.", "in": "query", - "name": "fieldSelector", + "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update scale of the specified ReplicaSet", + "operationId": "patchNamespacedReplicaSetScale", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace scale of the specified ReplicaSet", + "operationId": "replaceNamespacedReplicaSetScale", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified ReplicaSet", + "operationId": "readNamespacedReplicaSetStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ReplicaSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified ReplicaSet", + "operationId": "patchNamespacedReplicaSetStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified ReplicaSet", + "operationId": "replaceNamespacedReplicaSetStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/apps/v1/namespaces/{namespace}/statefulsets": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of StatefulSet", + "operationId": "deleteCollectionNamespacedStatefulSet", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind StatefulSet", + "operationId": "listNamespacedStatefulSet", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StatefulSetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + }, + "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a StatefulSet", + "operationId": "createNamespacedStatefulSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a StatefulSet", + "operationId": "deleteNamespacedStatefulSet", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified StatefulSet", + "operationId": "readNamespacedStatefulSet", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the StatefulSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified StatefulSet", + "operationId": "patchNamespacedStatefulSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified StatefulSet", + "operationId": "replaceNamespacedStatefulSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read scale of the specified StatefulSet", + "operationId": "readNamespacedStatefulSetScale", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Scale", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update scale of the specified StatefulSet", + "operationId": "patchNamespacedStatefulSetScale", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace scale of the specified StatefulSet", + "operationId": "replaceNamespacedStatefulSetScale", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified StatefulSet", + "operationId": "readNamespacedStatefulSetStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the StatefulSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified StatefulSet", + "operationId": "patchNamespacedStatefulSetStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified StatefulSet", + "operationId": "replaceNamespacedStatefulSetStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/apps/v1/replicasets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ReplicaSet", + "operationId": "listReplicaSetForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ReplicaSetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1/statefulsets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind StatefulSet", + "operationId": "listStatefulSetForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StatefulSetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1/watch/controllerrevisions": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1/watch/daemonsets": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1/watch/deployments": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ControllerRevision", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the DaemonSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/deployments": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/deployments/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the Deployment", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/replicasets": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", "name": "labelSelector", "type": "string", "uniqueItems": true @@ -43585,6 +46400,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -43622,7 +46445,7 @@ } ] }, - "/apis/apps/v1/watch/daemonsets": { + "/apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -43659,6 +46482,22 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the ReplicaSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -43696,7 +46535,7 @@ } ] }, - "/apis/apps/v1/watch/deployments": { + "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -43733,6 +46572,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -43770,7 +46617,171 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions": { + "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the StatefulSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1/watch/replicasets": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1/watch/statefulsets": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -43787,31 +46798,272 @@ "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/authentication.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authentication" + ] + } + }, + "/apis/authentication.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authentication_v1" + ] + } + }, + "/apis/authentication.k8s.io/v1/tokenreviews": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a TokenReview", + "operationId": "createTokenReview", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.TokenReview" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.TokenReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.TokenReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.TokenReview" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authentication_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authentication.k8s.io", + "kind": "TokenReview", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/authentication.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authentication_v1alpha1" + ] + } + }, + "/apis/authentication.k8s.io/v1alpha1/selfsubjectreviews": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", "in": "query", - "name": "fieldSelector", + "name": "dryRun", "type": "string", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", "in": "query", - "name": "labelSelector", + "name": "fieldManager", "type": "string", "uniqueItems": true }, { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "name": "fieldValidation", "type": "string", "uniqueItems": true }, @@ -43821,79 +47073,153 @@ "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a SelfSubjectReview", + "operationId": "createSelfSubjectReview", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.SelfSubjectReview" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.SelfSubjectReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.SelfSubjectReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.SelfSubjectReview" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "authentication_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1alpha1" }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + } + }, + "/apis/authorization.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "authorization" + ] + } + }, + "/apis/authorization.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + "schemes": [ + "https" + ], + "tags": [ + "authorization_v1" + ] + } }, - "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions/{name}": { + "/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews": { "parameters": [ { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", "in": "query", - "name": "fieldSelector", + "name": "dryRun", "type": "string", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", "in": "query", - "name": "labelSelector", + "name": "fieldManager", "type": "string", "uniqueItems": true }, { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ControllerRevision", - "in": "path", - "name": "name", - "required": true, + "name": "fieldValidation", "type": "string", "uniqueItems": true }, @@ -43911,120 +47237,441 @@ "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a LocalSubjectAccessReview", + "operationId": "createNamespacedLocalSubjectAccessReview", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.LocalSubjectAccessReview" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.LocalSubjectAccessReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.LocalSubjectAccessReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.LocalSubjectAccessReview" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.k8s.io", + "kind": "LocalSubjectAccessReview", + "version": "v1" }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/authorization.k8s.io/v1/selfsubjectaccessreviews": { + "parameters": [ { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", "in": "query", - "name": "resourceVersion", + "name": "dryRun", "type": "string", "uniqueItems": true }, { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", "in": "query", - "name": "resourceVersionMatch", + "name": "fieldManager", "type": "string", "uniqueItems": true }, { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", "in": "query", - "name": "timeoutSeconds", - "type": "integer", + "name": "fieldValidation", + "type": "string", "uniqueItems": true }, { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "description": "If 'true', then the output is pretty printed.", "in": "query", - "name": "watch", - "type": "boolean", + "name": "pretty", + "type": "string", "uniqueItems": true } - ] + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a SelfSubjectAccessReview", + "operationId": "createSelfSubjectAccessReview", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.SelfSubjectAccessReview" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.SelfSubjectAccessReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.SelfSubjectAccessReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.SelfSubjectAccessReview" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.k8s.io", + "kind": "SelfSubjectAccessReview", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } }, - "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets": { + "/apis/authorization.k8s.io/v1/selfsubjectrulesreviews": { "parameters": [ { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", + "name": "dryRun", + "type": "string", "uniqueItems": true }, { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", "in": "query", - "name": "continue", + "name": "fieldManager", "type": "string", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", "in": "query", - "name": "fieldSelector", + "name": "fieldValidation", "type": "string", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "description": "If 'true', then the output is pretty printed.", "in": "query", - "name": "labelSelector", + "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a SelfSubjectRulesReview", + "operationId": "createSelfSubjectRulesReview", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.SelfSubjectRulesReview" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.SelfSubjectRulesReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.SelfSubjectRulesReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.SelfSubjectRulesReview" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.k8s.io", + "kind": "SelfSubjectRulesReview", + "version": "v1" }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/authorization.k8s.io/v1/subjectaccessreviews": { + "parameters": [ { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", "in": "query", - "name": "limit", - "type": "integer", + "name": "dryRun", + "type": "string", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", "type": "string", "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed.", + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", "in": "query", - "name": "pretty", + "name": "fieldValidation", "type": "string", "uniqueItems": true }, { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "description": "If 'true', then the output is pretty printed.", "in": "query", - "name": "resourceVersion", + "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a SubjectAccessReview", + "operationId": "createSubjectAccessReview", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.SubjectAccessReview" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.SubjectAccessReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.SubjectAccessReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.SubjectAccessReview" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.k8s.io", + "kind": "SubjectAccessReview", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/autoscaling/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "autoscaling" + ] + } + }, + "/apis/autoscaling/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ] + } + }, + "/apis/autoscaling/v1/horizontalpodautoscalers": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind HorizontalPodAutoscaler", + "operationId": "listHorizontalPodAutoscalerForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.HorizontalPodAutoscalerList" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets/{name}": { + }, "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -44061,22 +47708,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the DaemonSet", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -44114,43 +47745,232 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/deployments": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of HorizontalPodAutoscaler", + "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind HorizontalPodAutoscaler", + "operationId": "listNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.HorizontalPodAutoscalerList" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + }, + "parameters": [ { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -44165,76 +47985,206 @@ "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a HorizontalPodAutoscaler", + "operationId": "createNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a HorizontalPodAutoscaler", + "operationId": "deleteNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified HorizontalPodAutoscaler", + "operationId": "readNamespacedHorizontalPodAutoscaler", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/deployments/{name}": { + }, "parameters": [ { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Deployment", + "description": "name of the HorizontalPodAutoscaler", "in": "path", "name": "name", "required": true, @@ -44255,74 +48205,211 @@ "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified HorizontalPodAutoscaler", + "operationId": "patchNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified HorizontalPodAutoscaler", + "operationId": "replaceNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/apps/v1/watch/namespaces/{namespace}/replicasets": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified HorizontalPodAutoscaler", + "operationId": "readNamespacedHorizontalPodAutoscalerStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + }, + "parameters": [ { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "name of the HorizontalPodAutoscaler", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -44337,38 +48424,167 @@ "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified HorizontalPodAutoscaler", + "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified HorizontalPodAutoscaler", + "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name}": { + "/apis/autoscaling/v1/watch/horizontalpodautoscalers": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -44405,22 +48621,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the ReplicaSet", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -44458,7 +48658,7 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets": { + "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -44540,7 +48740,7 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name}": { + "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -44578,7 +48778,7 @@ "uniqueItems": true }, { - "description": "name of the StatefulSet", + "description": "name of the HorizontalPodAutoscaler", "in": "path", "name": "name", "required": true, @@ -44630,7 +48830,77 @@ } ] }, - "/apis/apps/v1/watch/replicasets": { + "/apis/autoscaling/v2/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ] + } + }, + "/apis/autoscaling/v2/horizontalpodautoscalers": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind HorizontalPodAutoscaler", + "operationId": "listHorizontalPodAutoscalerForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v2.HorizontalPodAutoscalerList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + }, "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -44704,89 +48974,372 @@ } ] }, - "/apis/apps/v1/watch/statefulsets": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true + "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of HorizontalPodAutoscaler", + "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind HorizontalPodAutoscaler", + "operationId": "listNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v2.HorizontalPodAutoscalerList" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + }, + "parameters": [ { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } - ] + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a HorizontalPodAutoscaler", + "operationId": "createNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + }, + "x-codegen-request-body-name": "body" + } }, - "/apis/authentication.k8s.io/": { - "get": { + "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "delete": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" + ], + "description": "delete a HorizontalPodAutoscaler", + "operationId": "deleteNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } ], - "description": "get information of a group", - "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", @@ -44796,7 +49349,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -44807,19 +49366,22 @@ "https" ], "tags": [ - "authentication" - ] - } - }, - "/apis/authentication.k8s.io/v1/": { + "autoscaling_v2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + }, + "x-codegen-request-body-name": "body" + }, "get": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], - "description": "get available resources", - "operationId": "getAPIResources", + "description": "read the specified HorizontalPodAutoscaler", + "operationId": "readNamespacedHorizontalPodAutoscaler", "produces": [ "application/json", "application/yaml", @@ -44829,7 +49391,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, "401": { @@ -44840,30 +49402,29 @@ "https" ], "tags": [ - "authentication_v1" - ] - } - }, - "/apis/authentication.k8s.io/v1/tokenreviews": { + "autoscaling_v2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + }, "parameters": [ { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", + "description": "name of the HorizontalPodAutoscaler", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, @@ -44875,20 +49436,52 @@ "uniqueItems": true } ], - "post": { + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" ], - "description": "create a TokenReview", - "operationId": "createTokenReview", + "description": "partially update the specified HorizontalPodAutoscaler", + "operationId": "patchNamespacedHorizontalPodAutoscaler", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.TokenReview" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true } ], "produces": [ @@ -44900,19 +49493,86 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.TokenReview" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.TokenReview" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, - "202": { - "description": "Accepted", + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified HorizontalPodAutoscaler", + "operationId": "replaceNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.TokenReview" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, "401": { @@ -44923,26 +49583,24 @@ "https" ], "tags": [ - "authentication_v1" + "autoscaling_v2" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "authentication.k8s.io", - "kind": "TokenReview", - "version": "v1" + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" }, "x-codegen-request-body-name": "body" } }, - "/apis/authorization.k8s.io/": { + "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { "get": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], - "description": "get information of a group", - "operationId": "getAPIGroup", + "description": "read status of the specified HorizontalPodAutoscaler", + "operationId": "readNamespacedHorizontalPodAutoscalerStatus", "produces": [ "application/json", "application/yaml", @@ -44952,7 +49610,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, "401": { @@ -44963,19 +49621,161 @@ "https" ], "tags": [ - "authorization" - ] - } - }, - "/apis/authorization.k8s.io/v1/": { - "get": { + "autoscaling_v2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + }, + "parameters": [ + { + "description": "name of the HorizontalPodAutoscaler", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified HorizontalPodAutoscaler", + "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "description": "get available resources", - "operationId": "getAPIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified HorizontalPodAutoscaler", + "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", @@ -44985,44 +49785,145 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, "401": { "description": "Unauthorized" } }, - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ] - } + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/autoscaling/v2/watch/horizontalpodautoscalers": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews": { + "/apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers": { "parameters": [ { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", "in": "query", - "name": "dryRun", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", - "name": "fieldManager", + "name": "fieldSelector", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", - "name": "fieldValidation", + "name": "labelSelector", "type": "string", "uniqueItems": true }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -45037,294 +49938,136 @@ "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a LocalSubjectAccessReview", - "operationId": "createNamespacedLocalSubjectAccessReview", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.LocalSubjectAccessReview" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.LocalSubjectAccessReview" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.LocalSubjectAccessReview" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.LocalSubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "LocalSubjectAccessReview", - "version": "v1" }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/authorization.k8s.io/v1/selfsubjectaccessreviews": { - "parameters": [ { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", "in": "query", - "name": "dryRun", + "name": "resourceVersion", "type": "string", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", "in": "query", - "name": "fieldManager", + "name": "resourceVersionMatch", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", - "name": "fieldValidation", - "type": "string", + "name": "timeoutSeconds", + "type": "integer", "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed.", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", "in": "query", - "name": "pretty", - "type": "string", + "name": "watch", + "type": "boolean", "uniqueItems": true } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a SelfSubjectAccessReview", - "operationId": "createSelfSubjectAccessReview", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.SelfSubjectAccessReview" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.SelfSubjectAccessReview" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.SelfSubjectAccessReview" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.SelfSubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SelfSubjectAccessReview", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } + ] }, - "/apis/authorization.k8s.io/v1/selfsubjectrulesreviews": { + "/apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "parameters": [ { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", "in": "query", - "name": "dryRun", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", - "name": "fieldManager", + "name": "fieldSelector", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", - "name": "fieldValidation", + "name": "labelSelector", "type": "string", "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed.", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", "in": "query", - "name": "pretty", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the HorizontalPodAutoscaler", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a SelfSubjectRulesReview", - "operationId": "createSelfSubjectRulesReview", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.SelfSubjectRulesReview" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.SelfSubjectRulesReview" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.SelfSubjectRulesReview" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.SelfSubjectRulesReview" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SelfSubjectRulesReview", - "version": "v1" + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/authorization.k8s.io/v1/subjectaccessreviews": { - "parameters": [ { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "If 'true', then the output is pretty printed.", "in": "query", - "name": "dryRun", + "name": "pretty", "type": "string", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", "in": "query", - "name": "fieldManager", + "name": "resourceVersion", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", "in": "query", - "name": "fieldValidation", + "name": "resourceVersionMatch", "type": "string", "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed.", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", - "name": "pretty", - "type": "string", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", "uniqueItems": true } - ], - "post": { + ] + }, + "/apis/batch/": { + "get": { "consumes": [ - "*/*" - ], - "description": "create a SubjectAccessReview", - "operationId": "createSubjectAccessReview", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.SubjectAccessReview" - } - } + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], + "description": "get information of a group", + "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", @@ -45334,19 +50077,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.SubjectAccessReview" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.SubjectAccessReview" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.SubjectAccessReview" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { @@ -45357,26 +50088,19 @@ "https" ], "tags": [ - "authorization_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SubjectAccessReview", - "version": "v1" - }, - "x-codegen-request-body-name": "body" + "batch" + ] } }, - "/apis/autoscaling/": { + "/apis/batch/v1/": { "get": { "consumes": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "description": "get information of a group", - "operationId": "getAPIGroup", + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -45386,7 +50110,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -45397,29 +50121,29 @@ "https" ], "tags": [ - "autoscaling" + "batch_v1" ] } }, - "/apis/autoscaling/v1/": { + "/apis/batch/v1/cronjobs": { "get": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], - "description": "get available resources", - "operationId": "getAPIResources", + "description": "list or watch objects of kind CronJob", + "operationId": "listCronJobForAllNamespaces", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v1.CronJobList" } }, "401": { @@ -45430,17 +50154,95 @@ "https" ], "tags": [ - "autoscaling_v1" - ] - } + "batch_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/autoscaling/v1/horizontalpodautoscalers": { + "/apis/batch/v1/jobs": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listHorizontalPodAutoscalerForAllNamespaces", + "description": "list or watch objects of kind Job", + "operationId": "listJobForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -45452,7 +50254,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscalerList" + "$ref": "#/definitions/v1.JobList" } }, "401": { @@ -45463,12 +50265,12 @@ "https" ], "tags": [ - "autoscaling_v1" + "batch_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", + "group": "batch", + "kind": "Job", "version": "v1" } }, @@ -45545,13 +50347,13 @@ } ] }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers": { + "/apis/batch/v1/namespaces/{namespace}/cronjobs": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of HorizontalPodAutoscaler", - "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", + "description": "delete collection of CronJob", + "operationId": "deleteCollectionNamespacedCronJob", "parameters": [ { "in": "body", @@ -45658,12 +50460,12 @@ "https" ], "tags": [ - "autoscaling_v1" + "batch_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", + "group": "batch", + "kind": "CronJob", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -45672,8 +50474,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listNamespacedHorizontalPodAutoscaler", + "description": "list or watch objects of kind CronJob", + "operationId": "listNamespacedCronJob", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -45750,7 +50552,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscalerList" + "$ref": "#/definitions/v1.CronJobList" } }, "401": { @@ -45761,12 +50563,12 @@ "https" ], "tags": [ - "autoscaling_v1" + "batch_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", + "group": "batch", + "kind": "CronJob", "version": "v1" } }, @@ -45791,15 +50593,15 @@ "consumes": [ "*/*" ], - "description": "create a HorizontalPodAutoscaler", - "operationId": "createNamespacedHorizontalPodAutoscaler", + "description": "create a CronJob", + "operationId": "createNamespacedCronJob", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, { @@ -45833,19 +50635,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -45856,24 +50658,24 @@ "https" ], "tags": [ - "autoscaling_v1" + "batch_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", + "group": "batch", + "kind": "CronJob", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a HorizontalPodAutoscaler", - "operationId": "deleteNamespacedHorizontalPodAutoscaler", + "description": "delete a CronJob", + "operationId": "deleteNamespacedCronJob", "parameters": [ { "in": "body", @@ -45937,12 +50739,12 @@ "https" ], "tags": [ - "autoscaling_v1" + "batch_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", + "group": "batch", + "kind": "CronJob", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -45951,8 +50753,8 @@ "consumes": [ "*/*" ], - "description": "read the specified HorizontalPodAutoscaler", - "operationId": "readNamespacedHorizontalPodAutoscaler", + "description": "read the specified CronJob", + "operationId": "readNamespacedCronJob", "produces": [ "application/json", "application/yaml", @@ -45962,7 +50764,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -45973,18 +50775,18 @@ "https" ], "tags": [ - "autoscaling_v1" + "batch_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", + "group": "batch", + "kind": "CronJob", "version": "v1" } }, "parameters": [ { - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the CronJob", "in": "path", "name": "name", "required": true, @@ -46014,8 +50816,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified HorizontalPodAutoscaler", - "operationId": "patchNamespacedHorizontalPodAutoscaler", + "description": "partially update the specified CronJob", + "operationId": "patchNamespacedCronJob", "parameters": [ { "in": "body", @@ -46064,13 +50866,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -46081,12 +50883,12 @@ "https" ], "tags": [ - "autoscaling_v1" + "batch_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", + "group": "batch", + "kind": "CronJob", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -46095,15 +50897,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified HorizontalPodAutoscaler", - "operationId": "replaceNamespacedHorizontalPodAutoscaler", + "description": "replace the specified CronJob", + "operationId": "replaceNamespacedCronJob", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, { @@ -46137,13 +50939,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -46154,24 +50956,24 @@ "https" ], "tags": [ - "autoscaling_v1" + "batch_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", + "group": "batch", + "kind": "CronJob", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { + "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified HorizontalPodAutoscaler", - "operationId": "readNamespacedHorizontalPodAutoscalerStatus", + "description": "read status of the specified CronJob", + "operationId": "readNamespacedCronJobStatus", "produces": [ "application/json", "application/yaml", @@ -46181,7 +50983,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -46192,18 +50994,18 @@ "https" ], "tags": [ - "autoscaling_v1" + "batch_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", + "group": "batch", + "kind": "CronJob", "version": "v1" } }, "parameters": [ { - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the CronJob", "in": "path", "name": "name", "required": true, @@ -46233,8 +51035,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified HorizontalPodAutoscaler", - "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", + "description": "partially update status of the specified CronJob", + "operationId": "patchNamespacedCronJobStatus", "parameters": [ { "in": "body", @@ -46283,13 +51085,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -46300,12 +51102,12 @@ "https" ], "tags": [ - "autoscaling_v1" + "batch_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", + "group": "batch", + "kind": "CronJob", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -46314,15 +51116,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified HorizontalPodAutoscaler", - "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", + "description": "replace status of the specified CronJob", + "operationId": "replaceNamespacedCronJobStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, { @@ -46356,13 +51158,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -46373,414 +51175,24 @@ "https" ], "tags": [ - "autoscaling_v1" + "batch_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", + "group": "batch", + "kind": "CronJob", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/autoscaling/v1/watch/horizontalpodautoscalers": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2" - ] - } - }, - "/apis/autoscaling/v2/horizontalpodautoscalers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listHorizontalPodAutoscalerForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers": { + "/apis/batch/v1/namespaces/{namespace}/jobs": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of HorizontalPodAutoscaler", - "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", + "description": "delete collection of Job", + "operationId": "deleteCollectionNamespacedJob", "parameters": [ { "in": "body", @@ -46887,13 +51299,13 @@ "https" ], "tags": [ - "autoscaling_v2" + "batch_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" + "group": "batch", + "kind": "Job", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -46901,8 +51313,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listNamespacedHorizontalPodAutoscaler", + "description": "list or watch objects of kind Job", + "operationId": "listNamespacedJob", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -46979,7 +51391,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscalerList" + "$ref": "#/definitions/v1.JobList" } }, "401": { @@ -46990,13 +51402,13 @@ "https" ], "tags": [ - "autoscaling_v2" + "batch_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" + "group": "batch", + "kind": "Job", + "version": "v1" } }, "parameters": [ @@ -47020,15 +51432,15 @@ "consumes": [ "*/*" ], - "description": "create a HorizontalPodAutoscaler", - "operationId": "createNamespacedHorizontalPodAutoscaler", + "description": "create a Job", + "operationId": "createNamespacedJob", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } }, { @@ -47062,19 +51474,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -47085,24 +51497,24 @@ "https" ], "tags": [ - "autoscaling_v2" + "batch_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" + "group": "batch", + "kind": "Job", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "/apis/batch/v1/namespaces/{namespace}/jobs/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a HorizontalPodAutoscaler", - "operationId": "deleteNamespacedHorizontalPodAutoscaler", + "description": "delete a Job", + "operationId": "deleteNamespacedJob", "parameters": [ { "in": "body", @@ -47166,13 +51578,13 @@ "https" ], "tags": [ - "autoscaling_v2" + "batch_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" + "group": "batch", + "kind": "Job", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -47180,8 +51592,8 @@ "consumes": [ "*/*" ], - "description": "read the specified HorizontalPodAutoscaler", - "operationId": "readNamespacedHorizontalPodAutoscaler", + "description": "read the specified Job", + "operationId": "readNamespacedJob", "produces": [ "application/json", "application/yaml", @@ -47191,7 +51603,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -47202,18 +51614,18 @@ "https" ], "tags": [ - "autoscaling_v2" + "batch_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" + "group": "batch", + "kind": "Job", + "version": "v1" } }, "parameters": [ { - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the Job", "in": "path", "name": "name", "required": true, @@ -47243,8 +51655,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified HorizontalPodAutoscaler", - "operationId": "patchNamespacedHorizontalPodAutoscaler", + "description": "partially update the specified Job", + "operationId": "patchNamespacedJob", "parameters": [ { "in": "body", @@ -47293,13 +51705,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -47310,13 +51722,13 @@ "https" ], "tags": [ - "autoscaling_v2" + "batch_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" + "group": "batch", + "kind": "Job", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -47324,15 +51736,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified HorizontalPodAutoscaler", - "operationId": "replaceNamespacedHorizontalPodAutoscaler", + "description": "replace the specified Job", + "operationId": "replaceNamespacedJob", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } }, { @@ -47366,13 +51778,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -47383,24 +51795,24 @@ "https" ], "tags": [ - "autoscaling_v2" + "batch_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" + "group": "batch", + "kind": "Job", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { + "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified HorizontalPodAutoscaler", - "operationId": "readNamespacedHorizontalPodAutoscalerStatus", + "description": "read status of the specified Job", + "operationId": "readNamespacedJobStatus", "produces": [ "application/json", "application/yaml", @@ -47410,7 +51822,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -47421,18 +51833,18 @@ "https" ], "tags": [ - "autoscaling_v2" + "batch_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" + "group": "batch", + "kind": "Job", + "version": "v1" } }, "parameters": [ { - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the Job", "in": "path", "name": "name", "required": true, @@ -47462,8 +51874,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified HorizontalPodAutoscaler", - "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", + "description": "partially update status of the specified Job", + "operationId": "patchNamespacedJobStatus", "parameters": [ { "in": "body", @@ -47512,13 +51924,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -47529,13 +51941,13 @@ "https" ], "tags": [ - "autoscaling_v2" + "batch_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" + "group": "batch", + "kind": "Job", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -47543,15 +51955,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified HorizontalPodAutoscaler", - "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", + "description": "replace status of the specified Job", + "operationId": "replaceNamespacedJobStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } }, { @@ -47585,13 +51997,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -47602,18 +52014,18 @@ "https" ], "tags": [ - "autoscaling_v2" + "batch_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" + "group": "batch", + "kind": "Job", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/autoscaling/v2/watch/horizontalpodautoscalers": { + "/apis/batch/v1/watch/cronjobs": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -47687,7 +52099,253 @@ } ] }, - "/apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers": { + "/apis/batch/v1/watch/jobs": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/batch/v1/watch/namespaces/{namespace}/cronjobs": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/batch/v1/watch/namespaces/{namespace}/cronjobs/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the CronJob", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/batch/v1/watch/namespaces/{namespace}/jobs": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -47769,7 +52427,7 @@ } ] }, - "/apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -47807,7 +52465,7 @@ "uniqueItems": true }, { - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the Job", "in": "path", "name": "name", "required": true, @@ -47859,15 +52517,15 @@ } ] }, - "/apis/autoscaling/v2beta2/": { + "/apis/certificates.k8s.io/": { "get": { "consumes": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "description": "get available resources", - "operationId": "getAPIResources", + "description": "get information of a group", + "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", @@ -47877,7 +52535,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { @@ -47888,29 +52546,29 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "certificates" ] } }, - "/apis/autoscaling/v2beta2/horizontalpodautoscalers": { + "/apis/certificates.k8s.io/v1/": { "get": { "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listHorizontalPodAutoscalerForAllNamespaces", + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscalerList" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -47921,95 +52579,17 @@ "https" ], "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + "certificates_v1" + ] + } }, - "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers": { + "/apis/certificates.k8s.io/v1/certificatesigningrequests": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of HorizontalPodAutoscaler", - "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", + "description": "delete collection of CertificateSigningRequest", + "operationId": "deleteCollectionCertificateSigningRequest", "parameters": [ { "in": "body", @@ -48116,13 +52696,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "certificates_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -48130,8 +52710,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listNamespacedHorizontalPodAutoscaler", + "description": "list or watch objects of kind CertificateSigningRequest", + "operationId": "listCertificateSigningRequest", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -48208,7 +52788,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscalerList" + "$ref": "#/definitions/v1.CertificateSigningRequestList" } }, "401": { @@ -48219,24 +52799,16 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "certificates_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -48249,15 +52821,15 @@ "consumes": [ "*/*" ], - "description": "create a HorizontalPodAutoscaler", - "operationId": "createNamespacedHorizontalPodAutoscaler", + "description": "create a CertificateSigningRequest", + "operationId": "createCertificateSigningRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, { @@ -48291,19 +52863,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -48314,24 +52886,24 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "certificates_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a HorizontalPodAutoscaler", - "operationId": "deleteNamespacedHorizontalPodAutoscaler", + "description": "delete a CertificateSigningRequest", + "operationId": "deleteCertificateSigningRequest", "parameters": [ { "in": "body", @@ -48395,13 +52967,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "certificates_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -48409,8 +52981,8 @@ "consumes": [ "*/*" ], - "description": "read the specified HorizontalPodAutoscaler", - "operationId": "readNamespacedHorizontalPodAutoscaler", + "description": "read the specified CertificateSigningRequest", + "operationId": "readCertificateSigningRequest", "produces": [ "application/json", "application/yaml", @@ -48420,7 +52992,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -48431,18 +53003,18 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "certificates_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" } }, "parameters": [ { - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the CertificateSigningRequest", "in": "path", "name": "name", "required": true, @@ -48450,9 +53022,212 @@ "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified CertificateSigningRequest", + "operationId": "patchCertificateSigningRequest", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.CertificateSigningRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.CertificateSigningRequest" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified CertificateSigningRequest", + "operationId": "replaceCertificateSigningRequest", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.CertificateSigningRequest" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.CertificateSigningRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.CertificateSigningRequest" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read approval of the specified CertificateSigningRequest", + "operationId": "readCertificateSigningRequestApproval", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.CertificateSigningRequest" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the CertificateSigningRequest", "in": "path", - "name": "namespace", + "name": "name", "required": true, "type": "string", "uniqueItems": true @@ -48472,8 +53247,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified HorizontalPodAutoscaler", - "operationId": "patchNamespacedHorizontalPodAutoscaler", + "description": "partially update approval of the specified CertificateSigningRequest", + "operationId": "patchCertificateSigningRequestApproval", "parameters": [ { "in": "body", @@ -48522,13 +53297,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -48539,13 +53314,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "certificates_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -48553,15 +53328,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified HorizontalPodAutoscaler", - "operationId": "replaceNamespacedHorizontalPodAutoscaler", + "description": "replace approval of the specified CertificateSigningRequest", + "operationId": "replaceCertificateSigningRequestApproval", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, { @@ -48595,13 +53370,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -48612,24 +53387,24 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "certificates_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { + "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified HorizontalPodAutoscaler", - "operationId": "readNamespacedHorizontalPodAutoscalerStatus", + "description": "read status of the specified CertificateSigningRequest", + "operationId": "readCertificateSigningRequestStatus", "produces": [ "application/json", "application/yaml", @@ -48639,7 +53414,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -48650,32 +53425,24 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "certificates_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" } }, "parameters": [ { - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the CertificateSigningRequest", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -48691,8 +53458,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified HorizontalPodAutoscaler", - "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", + "description": "partially update status of the specified CertificateSigningRequest", + "operationId": "patchCertificateSigningRequestStatus", "parameters": [ { "in": "body", @@ -48741,13 +53508,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -48758,13 +53525,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "certificates_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -48772,15 +53539,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified HorizontalPodAutoscaler", - "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", + "description": "replace status of the specified CertificateSigningRequest", + "operationId": "replaceCertificateSigningRequestStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, { @@ -48814,13 +53581,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -48831,92 +53598,18 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "certificates_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/autoscaling/v2beta2/watch/horizontalpodautoscalers": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers": { + "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -48953,14 +53646,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -48998,7 +53683,7 @@ } ] }, - "/apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -49036,21 +53721,13 @@ "uniqueItems": true }, { - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the CertificateSigningRequest", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -49088,7 +53765,7 @@ } ] }, - "/apis/batch/": { + "/apis/coordination.k8s.io/": { "get": { "consumes": [ "application/json", @@ -49117,11 +53794,11 @@ "https" ], "tags": [ - "batch" + "coordination" ] } }, - "/apis/batch/v1/": { + "/apis/coordination.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -49150,128 +53827,17 @@ "https" ], "tags": [ - "batch_v1" + "coordination_v1" ] } }, - "/apis/batch/v1/cronjobs": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind CronJob", - "operationId": "listCronJobForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/v1/jobs": { + "/apis/coordination.k8s.io/v1/leases": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Job", - "operationId": "listJobForAllNamespaces", + "description": "list or watch objects of kind Lease", + "operationId": "listLeaseForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -49283,7 +53849,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.JobList" + "$ref": "#/definitions/v1.LeaseList" } }, "401": { @@ -49294,12 +53860,12 @@ "https" ], "tags": [ - "batch_v1" + "coordination_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", + "group": "coordination.k8s.io", + "kind": "Lease", "version": "v1" } }, @@ -49376,13 +53942,13 @@ } ] }, - "/apis/batch/v1/namespaces/{namespace}/cronjobs": { + "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of CronJob", - "operationId": "deleteCollectionNamespacedCronJob", + "description": "delete collection of Lease", + "operationId": "deleteCollectionNamespacedLease", "parameters": [ { "in": "body", @@ -49489,12 +54055,12 @@ "https" ], "tags": [ - "batch_v1" + "coordination_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", + "group": "coordination.k8s.io", + "kind": "Lease", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -49503,8 +54069,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind CronJob", - "operationId": "listNamespacedCronJob", + "description": "list or watch objects of kind Lease", + "operationId": "listNamespacedLease", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -49581,7 +54147,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJobList" + "$ref": "#/definitions/v1.LeaseList" } }, "401": { @@ -49592,12 +54158,12 @@ "https" ], "tags": [ - "batch_v1" + "coordination_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", + "group": "coordination.k8s.io", + "kind": "Lease", "version": "v1" } }, @@ -49622,15 +54188,15 @@ "consumes": [ "*/*" ], - "description": "create a CronJob", - "operationId": "createNamespacedCronJob", + "description": "create a Lease", + "operationId": "createNamespacedLease", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Lease" } }, { @@ -49664,19 +54230,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Lease" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Lease" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Lease" } }, "401": { @@ -49687,24 +54253,24 @@ "https" ], "tags": [ - "batch_v1" + "coordination_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", + "group": "coordination.k8s.io", + "kind": "Lease", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}": { + "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a CronJob", - "operationId": "deleteNamespacedCronJob", + "description": "delete a Lease", + "operationId": "deleteNamespacedLease", "parameters": [ { "in": "body", @@ -49768,12 +54334,12 @@ "https" ], "tags": [ - "batch_v1" + "coordination_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", + "group": "coordination.k8s.io", + "kind": "Lease", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -49782,8 +54348,8 @@ "consumes": [ "*/*" ], - "description": "read the specified CronJob", - "operationId": "readNamespacedCronJob", + "description": "read the specified Lease", + "operationId": "readNamespacedLease", "produces": [ "application/json", "application/yaml", @@ -49793,7 +54359,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Lease" } }, "401": { @@ -49804,18 +54370,18 @@ "https" ], "tags": [ - "batch_v1" + "coordination_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", + "group": "coordination.k8s.io", + "kind": "Lease", "version": "v1" } }, "parameters": [ { - "description": "name of the CronJob", + "description": "name of the Lease", "in": "path", "name": "name", "required": true, @@ -49845,8 +54411,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified CronJob", - "operationId": "patchNamespacedCronJob", + "description": "partially update the specified Lease", + "operationId": "patchNamespacedLease", "parameters": [ { "in": "body", @@ -49895,13 +54461,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Lease" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Lease" } }, "401": { @@ -49912,12 +54478,12 @@ "https" ], "tags": [ - "batch_v1" + "coordination_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", + "group": "coordination.k8s.io", + "kind": "Lease", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -49926,15 +54492,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified CronJob", - "operationId": "replaceNamespacedCronJob", + "description": "replace the specified Lease", + "operationId": "replaceNamespacedLease", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Lease" } }, { @@ -49968,13 +54534,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Lease" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Lease" } }, "401": { @@ -49985,56 +54551,212 @@ "https" ], "tags": [ - "batch_v1" + "coordination_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", + "group": "coordination.k8s.io", + "kind": "Lease", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified CronJob", - "operationId": "readNamespacedCronJobStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/coordination.k8s.io/v1/watch/leases": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1" - } - }, - "parameters": [ { - "description": "name of the CronJob", + "description": "name of the Lease", "in": "path", "name": "name", "required": true, @@ -50055,56 +54777,79 @@ "name": "pretty", "type": "string", "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - ], - "patch": { + ] + }, + "/apis/discovery.k8s.io/": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], - "description": "partially update status of the specified CronJob", - "operationId": "patchNamespacedCronJobStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" + "$ref": "#/definitions/v1.APIGroup" } }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true + "401": { + "description": "Unauthorized" } + }, + "schemes": [ + "https" + ], + "tags": [ + "discovery" + ] + } + }, + "/apis/discovery.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -50114,13 +54859,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -50131,69 +54870,29 @@ "https" ], "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { + "discovery_v1" + ] + } + }, + "/apis/discovery.k8s.io/v1/endpointslices": { + "get": { "consumes": [ "*/*" ], - "description": "replace status of the specified CronJob", - "operationId": "replaceNamespacedCronJobStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.CronJob" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], + "description": "list or watch objects of kind EndpointSlice", + "operationId": "listEndpointSliceForAllNamespaces", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.EndpointSliceList" } }, "401": { @@ -50204,24 +54903,95 @@ "https" ], "tags": [ - "batch_v1" + "discovery_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/batch/v1/namespaces/{namespace}/jobs": { + "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of Job", - "operationId": "deleteCollectionNamespacedJob", + "description": "delete collection of EndpointSlice", + "operationId": "deleteCollectionNamespacedEndpointSlice", "parameters": [ { "in": "body", @@ -50328,12 +55098,12 @@ "https" ], "tags": [ - "batch_v1" + "discovery_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -50342,8 +55112,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind Job", - "operationId": "listNamespacedJob", + "description": "list or watch objects of kind EndpointSlice", + "operationId": "listNamespacedEndpointSlice", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -50407,232 +55177,20 @@ "name": "watch", "type": "boolean", "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.JobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a Job", - "operationId": "createNamespacedJob", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/batch/v1/namespaces/{namespace}/jobs/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a Job", - "operationId": "deleteNamespacedJob", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" + } ], - "description": "read the specified Job", - "operationId": "readNamespacedJob", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1.EndpointSliceList" } }, "401": { @@ -50643,24 +55201,16 @@ "https" ], "tags": [ - "batch_v1" + "discovery_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" } }, "parameters": [ - { - "description": "name of the Job", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -50677,23 +55227,19 @@ "uniqueItems": true } ], - "patch": { + "post": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" + "*/*" ], - "description": "partially update the specified Job", - "operationId": "patchNamespacedJob", + "description": "create an EndpointSlice", + "operationId": "createNamespacedEndpointSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" + "$ref": "#/definitions/v1.EndpointSlice" } }, { @@ -50704,7 +55250,7 @@ "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", "in": "query", "name": "fieldManager", "type": "string", @@ -50716,13 +55262,6 @@ "name": "fieldValidation", "type": "string", "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -50734,13 +55273,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1.EndpointSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1.EndpointSlice" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.EndpointSlice" } }, "401": { @@ -50751,29 +55296,30 @@ "https" ], "tags": [ - "batch_v1" + "discovery_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" }, "x-codegen-request-body-name": "body" - }, - "put": { + } + }, + "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}": { + "delete": { "consumes": [ "*/*" ], - "description": "replace the specified Job", - "operationId": "replaceNamespacedJob", + "description": "delete an EndpointSlice", + "operationId": "deleteNamespacedEndpointSlice", "parameters": [ { "in": "body", "name": "body", - "required": true, "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1.DeleteOptions" } }, { @@ -50784,16 +55330,23 @@ "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", "in": "query", - "name": "fieldManager", - "type": "string", + "name": "gracePeriodSeconds", + "type": "integer", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "in": "query", - "name": "fieldValidation", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", "type": "string", "uniqueItems": true } @@ -50807,13 +55360,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1.Status" } }, - "201": { - "description": "Created", + "202": { + "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -50824,24 +55377,22 @@ "https" ], "tags": [ - "batch_v1" + "discovery_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" }, "x-codegen-request-body-name": "body" - } - }, - "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status": { + }, "get": { "consumes": [ "*/*" ], - "description": "read status of the specified Job", - "operationId": "readNamespacedJobStatus", + "description": "read the specified EndpointSlice", + "operationId": "readNamespacedEndpointSlice", "produces": [ "application/json", "application/yaml", @@ -50851,7 +55402,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1.EndpointSlice" } }, "401": { @@ -50862,18 +55413,18 @@ "https" ], "tags": [ - "batch_v1" + "discovery_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" } }, "parameters": [ { - "description": "name of the Job", + "description": "name of the EndpointSlice", "in": "path", "name": "name", "required": true, @@ -50903,8 +55454,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified Job", - "operationId": "patchNamespacedJobStatus", + "description": "partially update the specified EndpointSlice", + "operationId": "patchNamespacedEndpointSlice", "parameters": [ { "in": "body", @@ -50953,13 +55504,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1.EndpointSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1.EndpointSlice" } }, "401": { @@ -50970,12 +55521,12 @@ "https" ], "tags": [ - "batch_v1" + "discovery_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -50984,15 +55535,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified Job", - "operationId": "replaceNamespacedJobStatus", + "description": "replace the specified EndpointSlice", + "operationId": "replaceNamespacedEndpointSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1.EndpointSlice" } }, { @@ -51026,13 +55577,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1.EndpointSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1.EndpointSlice" } }, "401": { @@ -51043,92 +55594,18 @@ "https" ], "tags": [ - "batch_v1" + "discovery_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/batch/v1/watch/cronjobs": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/v1/watch/jobs": { + "/apis/discovery.k8s.io/v1/watch/endpointslices": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -51202,7 +55679,7 @@ } ] }, - "/apis/batch/v1/watch/namespaces/{namespace}/cronjobs": { + "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -51284,7 +55761,7 @@ } ] }, - "/apis/batch/v1/watch/namespaces/{namespace}/cronjobs/{name}": { + "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -51322,7 +55799,7 @@ "uniqueItems": true }, { - "description": "name of the CronJob", + "description": "name of the EndpointSlice", "in": "path", "name": "name", "required": true, @@ -51374,89 +55851,110 @@ } ] }, - "/apis/batch/v1/watch/namespaces/{namespace}/jobs": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "/apis/events.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "events" + ] + } + }, + "/apis/events.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "events_v1" + ] + } + }, + "/apis/events.k8s.io/v1/events": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Event", + "operationId": "listEventForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/events.v1.EventList" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "events_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "events.k8s.io", + "kind": "Event", + "version": "v1" } - ] - }, - "/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}": { + }, "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -51493,22 +55991,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the Job", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -51528,97 +56010,31 @@ "in": "query", "name": "resourceVersionMatch", "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/certificates.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates" - ] - } - }, - "/apis/certificates.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ] - } + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/certificates.k8s.io/v1/certificatesigningrequests": { + "/apis/events.k8s.io/v1/namespaces/{namespace}/events": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of CertificateSigningRequest", - "operationId": "deleteCollectionCertificateSigningRequest", + "description": "delete collection of Event", + "operationId": "deleteCollectionNamespacedEvent", "parameters": [ { "in": "body", @@ -51725,12 +56141,12 @@ "https" ], "tags": [ - "certificates_v1" + "events_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -51739,8 +56155,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind CertificateSigningRequest", - "operationId": "listCertificateSigningRequest", + "description": "list or watch objects of kind Event", + "operationId": "listNamespacedEvent", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -51817,7 +56233,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequestList" + "$ref": "#/definitions/events.v1.EventList" } }, "401": { @@ -51828,16 +56244,24 @@ "https" ], "tags": [ - "certificates_v1" + "events_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -51850,15 +56274,15 @@ "consumes": [ "*/*" ], - "description": "create a CertificateSigningRequest", - "operationId": "createCertificateSigningRequest", + "description": "create an Event", + "operationId": "createNamespacedEvent", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/events.v1.Event" } }, { @@ -51892,19 +56316,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/events.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/events.v1.Event" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/events.v1.Event" } }, "401": { @@ -51915,24 +56339,24 @@ "https" ], "tags": [ - "certificates_v1" + "events_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}": { + "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a CertificateSigningRequest", - "operationId": "deleteCertificateSigningRequest", + "description": "delete an Event", + "operationId": "deleteNamespacedEvent", "parameters": [ { "in": "body", @@ -51996,444 +56420,22 @@ "https" ], "tags": [ - "certificates_v1" + "events_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified CertificateSigningRequest", - "operationId": "readCertificateSigningRequest", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the CertificateSigningRequest", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified CertificateSigningRequest", - "operationId": "patchCertificateSigningRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified CertificateSigningRequest", - "operationId": "replaceCertificateSigningRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read approval of the specified CertificateSigningRequest", - "operationId": "readCertificateSigningRequestApproval", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the CertificateSigningRequest", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update approval of the specified CertificateSigningRequest", - "operationId": "patchCertificateSigningRequestApproval", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace approval of the specified CertificateSigningRequest", - "operationId": "replaceCertificateSigningRequestApproval", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified CertificateSigningRequest", - "operationId": "readCertificateSigningRequestStatus", + "description": "read the specified Event", + "operationId": "readNamespacedEvent", "produces": [ "application/json", "application/yaml", @@ -52443,7 +56445,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/events.v1.Event" } }, "401": { @@ -52454,24 +56456,32 @@ "https" ], "tags": [ - "certificates_v1" + "events_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" } }, "parameters": [ { - "description": "name of the CertificateSigningRequest", + "description": "name of the Event", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -52487,8 +56497,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified CertificateSigningRequest", - "operationId": "patchCertificateSigningRequestStatus", + "description": "partially update the specified Event", + "operationId": "patchNamespacedEvent", "parameters": [ { "in": "body", @@ -52537,13 +56547,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/events.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/events.v1.Event" } }, "401": { @@ -52554,12 +56564,12 @@ "https" ], "tags": [ - "certificates_v1" + "events_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -52568,15 +56578,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified CertificateSigningRequest", - "operationId": "replaceCertificateSigningRequestStatus", + "description": "replace the specified Event", + "operationId": "replaceNamespacedEvent", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/events.v1.Event" } }, { @@ -52610,13 +56620,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/events.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/events.v1.Event" } }, "401": { @@ -52627,18 +56637,18 @@ "https" ], "tags": [ - "certificates_v1" + "events_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests": { + "/apis/events.k8s.io/v1/watch/events": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -52712,7 +56722,7 @@ } ] }, - "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}": { + "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -52750,9 +56760,9 @@ "uniqueItems": true }, { - "description": "name of the CertificateSigningRequest", + "description": "object name and auth scope, such as for teams and projects", "in": "path", - "name": "name", + "name": "namespace", "required": true, "type": "string", "uniqueItems": true @@ -52794,110 +56804,7 @@ } ] }, - "/apis/coordination.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination" - ] - } - }, - "/apis/coordination.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ] - } - }, - "/apis/coordination.k8s.io/v1/leases": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Lease", - "operationId": "listLeaseForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.LeaseList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - }, + "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -52934,6 +56841,22 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the Event", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -52971,13 +56894,79 @@ } ] }, - "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases": { + "/apis/flowcontrol.apiserver.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver" + ] + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta2" + ] + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of Lease", - "operationId": "deleteCollectionNamespacedLease", + "description": "delete collection of FlowSchema", + "operationId": "deleteCollectionFlowSchema", "parameters": [ { "in": "body", @@ -53084,13 +57073,13 @@ "https" ], "tags": [ - "coordination_v1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -53098,8 +57087,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind Lease", - "operationId": "listNamespacedLease", + "description": "list or watch objects of kind FlowSchema", + "operationId": "listFlowSchema", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -53176,7 +57165,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.LeaseList" + "$ref": "#/definitions/v1beta2.FlowSchemaList" } }, "401": { @@ -53187,24 +57176,16 @@ "https" ], "tags": [ - "coordination_v1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta2" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -53217,15 +57198,15 @@ "consumes": [ "*/*" ], - "description": "create a Lease", - "operationId": "createNamespacedLease", + "description": "create a FlowSchema", + "operationId": "createFlowSchema", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, { @@ -53259,19 +57240,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, "401": { @@ -53282,24 +57263,24 @@ "https" ], "tags": [ - "coordination_v1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a Lease", - "operationId": "deleteNamespacedLease", + "description": "delete a FlowSchema", + "operationId": "deleteFlowSchema", "parameters": [ { "in": "body", @@ -53332,7 +57313,216 @@ { "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", "in": "query", - "name": "propagationPolicy", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta2" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified FlowSchema", + "operationId": "readFlowSchema", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta2" + } + }, + "parameters": [ + { + "description": "name of the FlowSchema", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified FlowSchema", + "operationId": "patchFlowSchema", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta2.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta2" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified FlowSchema", + "operationId": "replaceFlowSchema", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta2.FlowSchema" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", "type": "string", "uniqueItems": true } @@ -53346,13 +57536,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, - "202": { - "description": "Accepted", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, "401": { @@ -53363,22 +57553,24 @@ "https" ], "tags": [ - "coordination_v1" + "flowcontrolApiserver_v1beta2" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" - }, + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read the specified Lease", - "operationId": "readNamespacedLease", + "description": "read status of the specified FlowSchema", + "operationId": "readFlowSchemaStatus", "produces": [ "application/json", "application/yaml", @@ -53388,7 +57580,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, "401": { @@ -53399,32 +57591,24 @@ "https" ], "tags": [ - "coordination_v1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta2" } }, "parameters": [ { - "description": "name of the Lease", + "description": "name of the FlowSchema", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -53440,8 +57624,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified Lease", - "operationId": "patchNamespacedLease", + "description": "partially update status of the specified FlowSchema", + "operationId": "patchFlowSchemaStatus", "parameters": [ { "in": "body", @@ -53490,13 +57674,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, "401": { @@ -53507,13 +57691,13 @@ "https" ], "tags": [ - "coordination_v1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -53521,15 +57705,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified Lease", - "operationId": "replaceNamespacedLease", + "description": "replace status of the specified FlowSchema", + "operationId": "replaceFlowSchemaStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, { @@ -53563,13 +57747,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, "401": { @@ -53580,447 +57764,24 @@ "https" ], "tags": [ - "coordination_v1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/coordination.k8s.io/v1/watch/leases": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Lease", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/discovery.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery" - ] - } - }, - "/apis/discovery.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1" - ] - } - }, - "/apis/discovery.k8s.io/v1/endpointslices": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind EndpointSlice", - "operationId": "listEndpointSliceForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.EndpointSliceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of EndpointSlice", - "operationId": "deleteCollectionNamespacedEndpointSlice", + "description": "delete collection of PriorityLevelConfiguration", + "operationId": "deleteCollectionPriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -54127,13 +57888,13 @@ "https" ], "tags": [ - "discovery_v1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -54141,8 +57902,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind EndpointSlice", - "operationId": "listNamespacedEndpointSlice", + "description": "list or watch objects of kind PriorityLevelConfiguration", + "operationId": "listPriorityLevelConfiguration", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -54219,7 +57980,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSliceList" + "$ref": "#/definitions/v1beta2.PriorityLevelConfigurationList" } }, "401": { @@ -54230,24 +57991,16 @@ "https" ], "tags": [ - "discovery_v1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta2" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -54260,15 +58013,15 @@ "consumes": [ "*/*" ], - "description": "create an EndpointSlice", - "operationId": "createNamespacedEndpointSlice", + "description": "create a PriorityLevelConfiguration", + "operationId": "createPriorityLevelConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, { @@ -54302,19 +58055,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "401": { @@ -54325,24 +58078,24 @@ "https" ], "tags": [ - "discovery_v1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an EndpointSlice", - "operationId": "deleteNamespacedEndpointSlice", + "description": "delete a PriorityLevelConfiguration", + "operationId": "deletePriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -54406,13 +58159,13 @@ "https" ], "tags": [ - "discovery_v1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -54420,8 +58173,8 @@ "consumes": [ "*/*" ], - "description": "read the specified EndpointSlice", - "operationId": "readNamespacedEndpointSlice", + "description": "read the specified PriorityLevelConfiguration", + "operationId": "readPriorityLevelConfiguration", "produces": [ "application/json", "application/yaml", @@ -54431,7 +58184,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "401": { @@ -54442,32 +58195,24 @@ "https" ], "tags": [ - "discovery_v1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta2" } }, "parameters": [ { - "description": "name of the EndpointSlice", + "description": "name of the PriorityLevelConfiguration", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -54483,8 +58228,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified EndpointSlice", - "operationId": "patchNamespacedEndpointSlice", + "description": "partially update the specified PriorityLevelConfiguration", + "operationId": "patchPriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -54533,13 +58278,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "401": { @@ -54550,13 +58295,13 @@ "https" ], "tags": [ - "discovery_v1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -54564,15 +58309,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified EndpointSlice", - "operationId": "replaceNamespacedEndpointSlice", + "description": "replace the specified PriorityLevelConfiguration", + "operationId": "replacePriorityLevelConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, { @@ -54606,13 +58351,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "401": { @@ -54623,92 +58368,229 @@ "https" ], "tags": [ - "discovery_v1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/discovery.k8s.io/v1/watch/endpointslices": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified PriorityLevelConfiguration", + "operationId": "readPriorityLevelConfigurationStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta2" + } + }, + "parameters": [ { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified PriorityLevelConfiguration", + "operationId": "patchPriorityLevelConfigurationStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta2" }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified PriorityLevelConfiguration", + "operationId": "replacePriorityLevelConfigurationStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta2" }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -54745,14 +58627,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -54790,7 +58664,7 @@ } ] }, - "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -54828,21 +58702,13 @@ "uniqueItems": true }, { - "description": "name of the EndpointSlice", + "description": "name of the FlowSchema", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -54880,110 +58746,81 @@ } ] }, - "/apis/events.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "events" - ] - } - }, - "/apis/events.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1" - ] - } - }, - "/apis/events.k8s.io/v1/events": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Event", - "operationId": "listEventForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/events.v1.EventList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -55020,6 +58857,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -55057,13 +58902,46 @@ } ] }, - "/apis/events.k8s.io/v1/namespaces/{namespace}/events": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ] + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of Event", - "operationId": "deleteCollectionNamespacedEvent", + "description": "delete collection of FlowSchema", + "operationId": "deleteCollectionFlowSchema", "parameters": [ { "in": "body", @@ -55170,13 +59048,13 @@ "https" ], "tags": [ - "events_v1" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" }, "x-codegen-request-body-name": "body" }, @@ -55184,8 +59062,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind Event", - "operationId": "listNamespacedEvent", + "description": "list or watch objects of kind FlowSchema", + "operationId": "listFlowSchema", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -55262,7 +59140,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.EventList" + "$ref": "#/definitions/v1beta3.FlowSchemaList" } }, "401": { @@ -55273,24 +59151,16 @@ "https" ], "tags": [ - "events_v1" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -55303,15 +59173,15 @@ "consumes": [ "*/*" ], - "description": "create an Event", - "operationId": "createNamespacedEvent", + "description": "create a FlowSchema", + "operationId": "createFlowSchema", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta3.FlowSchema" } }, { @@ -55345,19 +59215,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta3.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta3.FlowSchema" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta3.FlowSchema" } }, "401": { @@ -55368,24 +59238,24 @@ "https" ], "tags": [ - "events_v1" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" }, "x-codegen-request-body-name": "body" } }, - "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an Event", - "operationId": "deleteNamespacedEvent", + "description": "delete a FlowSchema", + "operationId": "deleteFlowSchema", "parameters": [ { "in": "body", @@ -55449,13 +59319,13 @@ "https" ], "tags": [ - "events_v1" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" }, "x-codegen-request-body-name": "body" }, @@ -55463,8 +59333,8 @@ "consumes": [ "*/*" ], - "description": "read the specified Event", - "operationId": "readNamespacedEvent", + "description": "read the specified FlowSchema", + "operationId": "readFlowSchema", "produces": [ "application/json", "application/yaml", @@ -55474,7 +59344,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta3.FlowSchema" } }, "401": { @@ -55485,32 +59355,24 @@ "https" ], "tags": [ - "events_v1" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" } }, "parameters": [ { - "description": "name of the Event", + "description": "name of the FlowSchema", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -55526,8 +59388,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified Event", - "operationId": "patchNamespacedEvent", + "description": "partially update the specified FlowSchema", + "operationId": "patchFlowSchema", "parameters": [ { "in": "body", @@ -55576,13 +59438,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta3.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta3.FlowSchema" } }, "401": { @@ -55593,13 +59455,13 @@ "https" ], "tags": [ - "events_v1" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" }, "x-codegen-request-body-name": "body" }, @@ -55607,15 +59469,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified Event", - "operationId": "replaceNamespacedEvent", + "description": "replace the specified FlowSchema", + "operationId": "replaceFlowSchema", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta3.FlowSchema" } }, { @@ -55649,13 +59511,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta3.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta3.FlowSchema" } }, "401": { @@ -55666,272 +59528,118 @@ "https" ], "tags": [ - "events_v1" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" }, "x-codegen-request-body-name": "body" } }, - "/apis/events.k8s.io/v1/watch/events": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified FlowSchema", + "operationId": "readFlowSchemaStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" } - ] - }, - "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}": { + }, "parameters": [ { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Event", + "description": "name of the FlowSchema", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/": { - "get": { + ], + "patch": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified FlowSchema", + "operationId": "patchFlowSchemaStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } ], - "description": "get information of a group", - "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", @@ -55941,7 +59649,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/v1beta3.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchema" } }, "401": { @@ -55952,19 +59666,53 @@ "https" ], "tags": [ - "flowcontrolApiserver" - ] - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/": { - "get": { + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + }, + "x-codegen-request-body-name": "body" + }, + "put": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" + ], + "description": "replace status of the specified FlowSchema", + "operationId": "replaceFlowSchemaStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchema" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } ], - "description": "get available resources", - "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -55974,7 +59722,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v1beta3.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchema" } }, "401": { @@ -55985,17 +59739,24 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" - ] + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + }, + "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of FlowSchema", - "operationId": "deleteCollectionFlowSchema", + "description": "delete collection of PriorityLevelConfiguration", + "operationId": "deleteCollectionPriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -56102,13 +59863,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" }, "x-codegen-request-body-name": "body" }, @@ -56116,8 +59877,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind FlowSchema", - "operationId": "listFlowSchema", + "description": "list or watch objects of kind PriorityLevelConfiguration", + "operationId": "listPriorityLevelConfiguration", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -56194,7 +59955,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchemaList" + "$ref": "#/definitions/v1beta3.PriorityLevelConfigurationList" } }, "401": { @@ -56205,13 +59966,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" } }, "parameters": [ @@ -56227,15 +59988,15 @@ "consumes": [ "*/*" ], - "description": "create a FlowSchema", - "operationId": "createFlowSchema", + "description": "create a PriorityLevelConfiguration", + "operationId": "createPriorityLevelConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" } }, { @@ -56269,19 +60030,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" } }, "401": { @@ -56292,24 +60053,24 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a FlowSchema", - "operationId": "deleteFlowSchema", + "description": "delete a PriorityLevelConfiguration", + "operationId": "deletePriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -56373,13 +60134,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" }, "x-codegen-request-body-name": "body" }, @@ -56387,8 +60148,8 @@ "consumes": [ "*/*" ], - "description": "read the specified FlowSchema", - "operationId": "readFlowSchema", + "description": "read the specified PriorityLevelConfiguration", + "operationId": "readPriorityLevelConfiguration", "produces": [ "application/json", "application/yaml", @@ -56398,7 +60159,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" } }, "401": { @@ -56409,18 +60170,18 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" } }, "parameters": [ { - "description": "name of the FlowSchema", + "description": "name of the PriorityLevelConfiguration", "in": "path", "name": "name", "required": true, @@ -56442,8 +60203,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified FlowSchema", - "operationId": "patchFlowSchema", + "description": "partially update the specified PriorityLevelConfiguration", + "operationId": "patchPriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -56492,13 +60253,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" } }, "401": { @@ -56509,13 +60270,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" }, "x-codegen-request-body-name": "body" }, @@ -56523,15 +60284,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified FlowSchema", - "operationId": "replaceFlowSchema", + "description": "replace the specified PriorityLevelConfiguration", + "operationId": "replacePriorityLevelConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" } }, { @@ -56565,13 +60326,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" } }, "401": { @@ -56582,24 +60343,24 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified FlowSchema", - "operationId": "readFlowSchemaStatus", + "description": "read status of the specified PriorityLevelConfiguration", + "operationId": "readPriorityLevelConfigurationStatus", "produces": [ "application/json", "application/yaml", @@ -56609,7 +60370,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" } }, "401": { @@ -56620,18 +60381,18 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" } }, "parameters": [ { - "description": "name of the FlowSchema", + "description": "name of the PriorityLevelConfiguration", "in": "path", "name": "name", "required": true, @@ -56653,8 +60414,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified FlowSchema", - "operationId": "patchFlowSchemaStatus", + "description": "partially update status of the specified PriorityLevelConfiguration", + "operationId": "patchPriorityLevelConfigurationStatus", "parameters": [ { "in": "body", @@ -56703,13 +60464,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" } }, "401": { @@ -56720,13 +60481,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" }, "x-codegen-request-body-name": "body" }, @@ -56734,15 +60495,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified FlowSchema", - "operationId": "replaceFlowSchemaStatus", + "description": "replace status of the specified PriorityLevelConfiguration", + "operationId": "replacePriorityLevelConfigurationStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" } }, { @@ -56776,13 +60537,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" } }, "401": { @@ -56793,24 +60554,402 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/flowschemas": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/flowschemas/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the FlowSchema", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/prioritylevelconfigurations": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/prioritylevelconfigurations/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/internal.apiserver.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "internalApiserver" + ] + } + }, + "/apis/internal.apiserver.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "internalApiserver_v1alpha1" + ] + } + }, + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of PriorityLevelConfiguration", - "operationId": "deleteCollectionPriorityLevelConfiguration", + "description": "delete collection of StorageVersion", + "operationId": "deleteCollectionStorageVersion", "parameters": [ { "in": "body", @@ -56917,13 +61056,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -56931,8 +61070,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind PriorityLevelConfiguration", - "operationId": "listPriorityLevelConfiguration", + "description": "list or watch objects of kind StorageVersion", + "operationId": "listStorageVersion", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -57009,7 +61148,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfigurationList" + "$ref": "#/definitions/v1alpha1.StorageVersionList" } }, "401": { @@ -57020,13 +61159,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" } }, "parameters": [ @@ -57042,15 +61181,15 @@ "consumes": [ "*/*" ], - "description": "create a PriorityLevelConfiguration", - "operationId": "createPriorityLevelConfiguration", + "description": "create a StorageVersion", + "operationId": "createStorageVersion", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, { @@ -57084,19 +61223,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -57107,24 +61246,24 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}": { + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a PriorityLevelConfiguration", - "operationId": "deletePriorityLevelConfiguration", + "description": "delete a StorageVersion", + "operationId": "deleteStorageVersion", "parameters": [ { "in": "body", @@ -57188,13 +61327,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -57202,8 +61341,8 @@ "consumes": [ "*/*" ], - "description": "read the specified PriorityLevelConfiguration", - "operationId": "readPriorityLevelConfiguration", + "description": "read the specified StorageVersion", + "operationId": "readStorageVersion", "produces": [ "application/json", "application/yaml", @@ -57213,7 +61352,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -57224,18 +61363,18 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the PriorityLevelConfiguration", + "description": "name of the StorageVersion", "in": "path", "name": "name", "required": true, @@ -57257,8 +61396,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified PriorityLevelConfiguration", - "operationId": "patchPriorityLevelConfiguration", + "description": "partially update the specified StorageVersion", + "operationId": "patchStorageVersion", "parameters": [ { "in": "body", @@ -57307,13 +61446,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -57324,13 +61463,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -57338,15 +61477,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified PriorityLevelConfiguration", - "operationId": "replacePriorityLevelConfiguration", + "description": "replace the specified StorageVersion", + "operationId": "replaceStorageVersion", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, { @@ -57380,13 +61519,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -57397,24 +61536,24 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status": { + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified PriorityLevelConfiguration", - "operationId": "readPriorityLevelConfigurationStatus", + "description": "read status of the specified StorageVersion", + "operationId": "readStorageVersionStatus", "produces": [ "application/json", "application/yaml", @@ -57424,7 +61563,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -57435,18 +61574,18 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the PriorityLevelConfiguration", + "description": "name of the StorageVersion", "in": "path", "name": "name", "required": true, @@ -57468,8 +61607,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified PriorityLevelConfiguration", - "operationId": "patchPriorityLevelConfigurationStatus", + "description": "partially update status of the specified StorageVersion", + "operationId": "patchStorageVersionStatus", "parameters": [ { "in": "body", @@ -57518,13 +61657,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -57535,13 +61674,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -57549,15 +61688,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified PriorityLevelConfiguration", - "operationId": "replacePriorityLevelConfigurationStatus", + "description": "replace status of the specified StorageVersion", + "operationId": "replaceStorageVersionStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, { @@ -57591,13 +61730,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -57608,18 +61747,18 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas": { + "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -57693,7 +61832,7 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas/{name}": { + "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -57731,7 +61870,7 @@ "uniqueItems": true }, { - "description": "name of the FlowSchema", + "description": "name of the StorageVersion", "in": "path", "name": "name", "required": true, @@ -57775,163 +61914,40 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the PriorityLevelConfiguration", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "/apis/networking.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + "schemes": [ + "https" + ], + "tags": [ + "networking" + ] + } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/": { + "/apis/networking.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -57960,17 +61976,17 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ] } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas": { + "/apis/networking.k8s.io/v1/ingressclasses": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of FlowSchema", - "operationId": "deleteCollectionFlowSchema", + "description": "delete collection of IngressClass", + "operationId": "deleteCollectionIngressClass", "parameters": [ { "in": "body", @@ -58077,13 +62093,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -58091,8 +62107,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind FlowSchema", - "operationId": "listFlowSchema", + "description": "list or watch objects of kind IngressClass", + "operationId": "listIngressClass", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -58169,7 +62185,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.FlowSchemaList" + "$ref": "#/definitions/v1.IngressClassList" } }, "401": { @@ -58180,13 +62196,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" } }, "parameters": [ @@ -58202,15 +62218,15 @@ "consumes": [ "*/*" ], - "description": "create a FlowSchema", - "operationId": "createFlowSchema", + "description": "create an IngressClass", + "operationId": "createIngressClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" + "$ref": "#/definitions/v1.IngressClass" } }, { @@ -58244,19 +62260,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" + "$ref": "#/definitions/v1.IngressClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" + "$ref": "#/definitions/v1.IngressClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" + "$ref": "#/definitions/v1.IngressClass" } }, "401": { @@ -58267,24 +62283,24 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}": { + "/apis/networking.k8s.io/v1/ingressclasses/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a FlowSchema", - "operationId": "deleteFlowSchema", + "description": "delete an IngressClass", + "operationId": "deleteIngressClass", "parameters": [ { "in": "body", @@ -58348,13 +62364,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -58362,8 +62378,8 @@ "consumes": [ "*/*" ], - "description": "read the specified FlowSchema", - "operationId": "readFlowSchema", + "description": "read the specified IngressClass", + "operationId": "readIngressClass", "produces": [ "application/json", "application/yaml", @@ -58373,7 +62389,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" + "$ref": "#/definitions/v1.IngressClass" } }, "401": { @@ -58384,18 +62400,18 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" } }, "parameters": [ { - "description": "name of the FlowSchema", + "description": "name of the IngressClass", "in": "path", "name": "name", "required": true, @@ -58417,8 +62433,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified FlowSchema", - "operationId": "patchFlowSchema", + "description": "partially update the specified IngressClass", + "operationId": "patchIngressClass", "parameters": [ { "in": "body", @@ -58467,13 +62483,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" + "$ref": "#/definitions/v1.IngressClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" + "$ref": "#/definitions/v1.IngressClass" } }, "401": { @@ -58484,13 +62500,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -58498,15 +62514,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified FlowSchema", - "operationId": "replaceFlowSchema", + "description": "replace the specified IngressClass", + "operationId": "replaceIngressClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" + "$ref": "#/definitions/v1.IngressClass" } }, { @@ -58540,13 +62556,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" + "$ref": "#/definitions/v1.IngressClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" + "$ref": "#/definitions/v1.IngressClass" } }, "401": { @@ -58557,34 +62573,36 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status": { + "/apis/networking.k8s.io/v1/ingresses": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified FlowSchema", - "operationId": "readFlowSchemaStatus", + "description": "list or watch objects of kind Ingress", + "operationId": "listIngressForAllNamespaces", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" + "$ref": "#/definitions/v1.IngressList" } }, "401": { @@ -58595,197 +62613,95 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" } }, "parameters": [ { - "description": "name of the FlowSchema", - "in": "path", - "name": "name", - "required": true, + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", "type": "string", "uniqueItems": true }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified FlowSchema", - "operationId": "patchFlowSchemaStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta2" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta2" + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified FlowSchema", - "operationId": "replaceFlowSchemaStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta2" + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of PriorityLevelConfiguration", - "operationId": "deleteCollectionPriorityLevelConfiguration", + "description": "delete collection of Ingress", + "operationId": "deleteCollectionNamespacedIngress", "parameters": [ { "in": "body", @@ -58892,13 +62808,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -58906,8 +62822,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind PriorityLevelConfiguration", - "operationId": "listPriorityLevelConfiguration", + "description": "list or watch objects of kind Ingress", + "operationId": "listNamespacedIngress", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -58984,7 +62900,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfigurationList" + "$ref": "#/definitions/v1.IngressList" } }, "401": { @@ -58995,16 +62911,24 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -59017,15 +62941,15 @@ "consumes": [ "*/*" ], - "description": "create a PriorityLevelConfiguration", - "operationId": "createPriorityLevelConfiguration", + "description": "create an Ingress", + "operationId": "createNamespacedIngress", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/v1.Ingress" } }, { @@ -59059,19 +62983,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/v1.Ingress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/v1.Ingress" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -59082,24 +63006,24 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a PriorityLevelConfiguration", - "operationId": "deletePriorityLevelConfiguration", + "description": "delete an Ingress", + "operationId": "deleteNamespacedIngress", "parameters": [ { "in": "body", @@ -59163,13 +63087,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -59177,8 +63101,8 @@ "consumes": [ "*/*" ], - "description": "read the specified PriorityLevelConfiguration", - "operationId": "readPriorityLevelConfiguration", + "description": "read the specified Ingress", + "operationId": "readNamespacedIngress", "produces": [ "application/json", "application/yaml", @@ -59188,7 +63112,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -59199,24 +63123,32 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" } }, "parameters": [ { - "description": "name of the PriorityLevelConfiguration", + "description": "name of the Ingress", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -59232,8 +63164,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified PriorityLevelConfiguration", - "operationId": "patchPriorityLevelConfiguration", + "description": "partially update the specified Ingress", + "operationId": "patchNamespacedIngress", "parameters": [ { "in": "body", @@ -59282,13 +63214,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/v1.Ingress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -59299,13 +63231,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -59313,15 +63245,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified PriorityLevelConfiguration", - "operationId": "replacePriorityLevelConfiguration", + "description": "replace the specified Ingress", + "operationId": "replaceNamespacedIngress", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/v1.Ingress" } }, { @@ -59355,13 +63287,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/v1.Ingress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -59372,24 +63304,24 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified PriorityLevelConfiguration", - "operationId": "readPriorityLevelConfigurationStatus", + "description": "read status of the specified Ingress", + "operationId": "readNamespacedIngressStatus", "produces": [ "application/json", "application/yaml", @@ -59399,7 +63331,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -59410,24 +63342,32 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" } }, "parameters": [ { - "description": "name of the PriorityLevelConfiguration", + "description": "name of the Ingress", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -59443,8 +63383,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified PriorityLevelConfiguration", - "operationId": "patchPriorityLevelConfigurationStatus", + "description": "partially update status of the specified Ingress", + "operationId": "patchNamespacedIngressStatus", "parameters": [ { "in": "body", @@ -59493,13 +63433,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/v1.Ingress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -59510,13 +63450,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -59524,15 +63464,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified PriorityLevelConfiguration", - "operationId": "replacePriorityLevelConfigurationStatus", + "description": "replace status of the specified Ingress", + "operationId": "replaceNamespacedIngressStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/v1.Ingress" } }, { @@ -59556,398 +63496,7 @@ "type": "string", "uniqueItems": true } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta2" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the FlowSchema", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the PriorityLevelConfiguration", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/internal.apiserver.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver" - ] - } - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAPIResources", + ], "produces": [ "application/json", "application/yaml", @@ -59957,7 +63506,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -59968,17 +63523,24 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" - ] + "networking_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + }, + "x-codegen-request-body-name": "body" } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of StorageVersion", - "operationId": "deleteCollectionStorageVersion", + "description": "delete collection of NetworkPolicy", + "operationId": "deleteCollectionNamespacedNetworkPolicy", "parameters": [ { "in": "body", @@ -60085,13 +63647,13 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "networking_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -60099,8 +63661,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind StorageVersion", - "operationId": "listStorageVersion", + "description": "list or watch objects of kind NetworkPolicy", + "operationId": "listNamespacedNetworkPolicy", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -60177,7 +63739,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersionList" + "$ref": "#/definitions/v1.NetworkPolicyList" } }, "401": { @@ -60188,16 +63750,24 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -60210,15 +63780,319 @@ "consumes": [ "*/*" ], - "description": "create a StorageVersion", - "operationId": "createStorageVersion", + "description": "create a NetworkPolicy", + "operationId": "createNamespacedNetworkPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a NetworkPolicy", + "operationId": "deleteNamespacedNetworkPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified NetworkPolicy", + "operationId": "readNamespacedNetworkPolicy", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the NetworkPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified NetworkPolicy", + "operationId": "patchNamespacedNetworkPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified NetworkPolicy", + "operationId": "replaceNamespacedNetworkPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" } }, { @@ -60236,10 +64110,156 @@ "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified NetworkPolicy", + "operationId": "readNamespacedNetworkPolicyStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the NetworkPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified NetworkPolicy", + "operationId": "patchNamespacedNetworkPolicyStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", "in": "query", - "name": "fieldValidation", - "type": "string", + "name": "force", + "type": "boolean", "uniqueItems": true } ], @@ -60252,19 +64272,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "401": { @@ -60275,30 +64289,29 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "networking_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" }, "x-codegen-request-body-name": "body" - } - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}": { - "delete": { + }, + "put": { "consumes": [ "*/*" ], - "description": "delete a StorageVersion", - "operationId": "deleteStorageVersion", + "description": "replace status of the specified NetworkPolicy", + "operationId": "replaceNamespacedNetworkPolicyStatus", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.NetworkPolicy" } }, { @@ -60309,23 +64322,16 @@ "uniqueItems": true }, { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", "in": "query", - "name": "orphanDependents", - "type": "boolean", + "name": "fieldManager", + "type": "string", "uniqueItems": true }, { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", "in": "query", - "name": "propagationPolicy", + "name": "fieldValidation", "type": "string", "uniqueItems": true } @@ -60339,13 +64345,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.NetworkPolicy" } }, - "202": { - "description": "Accepted", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "401": { @@ -60356,32 +64362,36 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "networking_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" }, "x-codegen-request-body-name": "body" - }, + } + }, + "/apis/networking.k8s.io/v1/networkpolicies": { "get": { "consumes": [ "*/*" ], - "description": "read the specified StorageVersion", - "operationId": "readStorageVersion", + "description": "list or watch objects of kind NetworkPolicy", + "operationId": "listNetworkPolicyForAllNamespaces", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.NetworkPolicyList" } }, "401": { @@ -60392,18 +64402,201 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "networking_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" } }, "parameters": [ { - "description": "name of the StorageVersion", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1/watch/ingressclasses": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1/watch/ingressclasses/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the IngressClass", "in": "path", "name": "name", "required": true, @@ -60416,378 +64609,284 @@ "name": "pretty", "type": "string", "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified StorageVersion", - "operationId": "patchStorageVersion", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "401": { - "description": "Unauthorized" - } + ] + }, + "/apis/networking.k8s.io/v1/watch/ingresses": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified StorageVersion", - "operationId": "replaceStorageVersion", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified StorageVersion", - "operationId": "readStorageVersionStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}": { "parameters": [ { - "description": "name of the StorageVersion", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the Ingress", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified StorageVersion", - "operationId": "patchStorageVersionStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified StorageVersion", - "operationId": "replaceStorageVersionStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions": { + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -60824,6 +64923,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -60861,7 +64968,7 @@ } ] }, - "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}": { + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -60899,13 +65006,21 @@ "uniqueItems": true }, { - "description": "name of the StorageVersion", + "description": "name of the NetworkPolicy", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -60943,40 +65058,81 @@ } ] }, - "/apis/networking.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/networking.k8s.io/v1/watch/networkpolicies": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "networking" - ] - } + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/networking.k8s.io/v1/": { + "/apis/networking.k8s.io/v1alpha1/": { "get": { "consumes": [ "application/json", @@ -61005,17 +65161,17 @@ "https" ], "tags": [ - "networking_v1" + "networking_v1alpha1" ] } }, - "/apis/networking.k8s.io/v1/ingressclasses": { + "/apis/networking.k8s.io/v1alpha1/clustercidrs": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of IngressClass", - "operationId": "deleteCollectionIngressClass", + "description": "delete collection of ClusterCIDR", + "operationId": "deleteCollectionClusterCIDR", "parameters": [ { "in": "body", @@ -61122,13 +65278,13 @@ "https" ], "tags": [ - "networking_v1" + "networking_v1alpha1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" + "kind": "ClusterCIDR", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -61136,8 +65292,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind IngressClass", - "operationId": "listIngressClass", + "description": "list or watch objects of kind ClusterCIDR", + "operationId": "listClusterCIDR", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -61214,7 +65370,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressClassList" + "$ref": "#/definitions/v1alpha1.ClusterCIDRList" } }, "401": { @@ -61225,13 +65381,13 @@ "https" ], "tags": [ - "networking_v1" + "networking_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" + "kind": "ClusterCIDR", + "version": "v1alpha1" } }, "parameters": [ @@ -61247,15 +65403,15 @@ "consumes": [ "*/*" ], - "description": "create an IngressClass", - "operationId": "createIngressClass", + "description": "create a ClusterCIDR", + "operationId": "createClusterCIDR", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1alpha1.ClusterCIDR" } }, { @@ -61289,19 +65445,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1alpha1.ClusterCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1alpha1.ClusterCIDR" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1alpha1.ClusterCIDR" } }, "401": { @@ -61312,24 +65468,24 @@ "https" ], "tags": [ - "networking_v1" + "networking_v1alpha1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" + "kind": "ClusterCIDR", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/ingressclasses/{name}": { + "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an IngressClass", - "operationId": "deleteIngressClass", + "description": "delete a ClusterCIDR", + "operationId": "deleteClusterCIDR", "parameters": [ { "in": "body", @@ -61393,13 +65549,13 @@ "https" ], "tags": [ - "networking_v1" + "networking_v1alpha1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" + "kind": "ClusterCIDR", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -61407,8 +65563,8 @@ "consumes": [ "*/*" ], - "description": "read the specified IngressClass", - "operationId": "readIngressClass", + "description": "read the specified ClusterCIDR", + "operationId": "readClusterCIDR", "produces": [ "application/json", "application/yaml", @@ -61418,7 +65574,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1alpha1.ClusterCIDR" } }, "401": { @@ -61429,18 +65585,18 @@ "https" ], "tags": [ - "networking_v1" + "networking_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" + "kind": "ClusterCIDR", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the IngressClass", + "description": "name of the ClusterCIDR", "in": "path", "name": "name", "required": true, @@ -61462,8 +65618,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified IngressClass", - "operationId": "patchIngressClass", + "description": "partially update the specified ClusterCIDR", + "operationId": "patchClusterCIDR", "parameters": [ { "in": "body", @@ -61512,13 +65668,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1alpha1.ClusterCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1alpha1.ClusterCIDR" } }, "401": { @@ -61529,13 +65685,13 @@ "https" ], "tags": [ - "networking_v1" + "networking_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" + "kind": "ClusterCIDR", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -61543,15 +65699,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified IngressClass", - "operationId": "replaceIngressClass", + "description": "replace the specified ClusterCIDR", + "operationId": "replaceClusterCIDR", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1alpha1.ClusterCIDR" } }, { @@ -61585,13 +65741,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1alpha1.ClusterCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1alpha1.ClusterCIDR" } }, "401": { @@ -61602,55 +65758,92 @@ "https" ], "tags": [ - "networking_v1" + "networking_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" + "kind": "ClusterCIDR", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/ingresses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Ingress", - "operationId": "listIngressForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.IngressList" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/networking.k8s.io/v1alpha1/watch/clustercidrs": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/networking.k8s.io/v1alpha1/watch/clustercidrs/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -61687,6 +65880,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the ClusterCIDR", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -61724,13 +65925,79 @@ } ] }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses": { + "/apis/node.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node" + ] + } + }, + "/apis/node.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ] + } + }, + "/apis/node.k8s.io/v1/runtimeclasses": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of Ingress", - "operationId": "deleteCollectionNamespacedIngress", + "description": "delete collection of RuntimeClass", + "operationId": "deleteCollectionRuntimeClass", "parameters": [ { "in": "body", @@ -61837,12 +66104,12 @@ "https" ], "tags": [ - "networking_v1" + "node_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -61851,8 +66118,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind Ingress", - "operationId": "listNamespacedIngress", + "description": "list or watch objects of kind RuntimeClass", + "operationId": "listRuntimeClass", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -61929,7 +66196,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressList" + "$ref": "#/definitions/v1.RuntimeClassList" } }, "401": { @@ -61940,24 +66207,16 @@ "https" ], "tags": [ - "networking_v1" + "node_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -61970,15 +66229,15 @@ "consumes": [ "*/*" ], - "description": "create an Ingress", - "operationId": "createNamespacedIngress", + "description": "create a RuntimeClass", + "operationId": "createRuntimeClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1.RuntimeClass" } }, { @@ -62012,19 +66271,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1.RuntimeClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1.RuntimeClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1.RuntimeClass" } }, "401": { @@ -62035,24 +66294,24 @@ "https" ], "tags": [ - "networking_v1" + "node_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}": { + "/apis/node.k8s.io/v1/runtimeclasses/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an Ingress", - "operationId": "deleteNamespacedIngress", + "description": "delete a RuntimeClass", + "operationId": "deleteRuntimeClass", "parameters": [ { "in": "body", @@ -62116,12 +66375,12 @@ "https" ], "tags": [ - "networking_v1" + "node_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -62130,8 +66389,8 @@ "consumes": [ "*/*" ], - "description": "read the specified Ingress", - "operationId": "readNamespacedIngress", + "description": "read the specified RuntimeClass", + "operationId": "readRuntimeClass", "produces": [ "application/json", "application/yaml", @@ -62141,7 +66400,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1.RuntimeClass" } }, "401": { @@ -62152,32 +66411,24 @@ "https" ], "tags": [ - "networking_v1" + "node_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" } }, "parameters": [ { - "description": "name of the Ingress", + "description": "name of the RuntimeClass", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -62193,8 +66444,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified Ingress", - "operationId": "patchNamespacedIngress", + "description": "partially update the specified RuntimeClass", + "operationId": "patchRuntimeClass", "parameters": [ { "in": "body", @@ -62243,13 +66494,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1.RuntimeClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1.RuntimeClass" } }, "401": { @@ -62260,12 +66511,12 @@ "https" ], "tags": [ - "networking_v1" + "node_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -62274,15 +66525,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified Ingress", - "operationId": "replaceNamespacedIngress", + "description": "replace the specified RuntimeClass", + "operationId": "replaceRuntimeClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1.RuntimeClass" } }, { @@ -62316,13 +66567,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1.RuntimeClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1.RuntimeClass" } }, "401": { @@ -62333,66 +66584,132 @@ "https" ], "tags": [ - "networking_v1" + "node_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified Ingress", - "operationId": "readNamespacedIngressStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/node.k8s.io/v1/watch/runtimeclasses": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/node.k8s.io/v1/watch/runtimeclasses/{name}": { "parameters": [ { - "description": "name of the Ingress", - "in": "path", - "name": "name", - "required": true, + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the RuntimeClass", "in": "path", - "name": "namespace", + "name": "name", "required": true, "type": "string", "uniqueItems": true @@ -62403,56 +66720,46 @@ "name": "pretty", "type": "string", "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - ], - "patch": { + ] + }, + "/apis/policy/": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified Ingress", - "operationId": "patchNamespacedIngressStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], + "description": "get information of a group", + "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", @@ -62462,13 +66769,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { @@ -62479,53 +66780,19 @@ "https" ], "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { + "policy" + ] + } + }, + "/apis/policy/v1/": { + "get": { "consumes": [ - "*/*" - ], - "description": "replace status of the specified Ingress", - "operationId": "replaceNamespacedIngressStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Ingress" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -62535,13 +66802,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -62552,24 +66813,17 @@ "https" ], "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - }, - "x-codegen-request-body-name": "body" + "policy_v1" + ] } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies": { + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of NetworkPolicy", - "operationId": "deleteCollectionNamespacedNetworkPolicy", + "description": "delete collection of PodDisruptionBudget", + "operationId": "deleteCollectionNamespacedPodDisruptionBudget", "parameters": [ { "in": "body", @@ -62676,12 +66930,12 @@ "https" ], "tags": [ - "networking_v1" + "policy_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -62690,8 +66944,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind NetworkPolicy", - "operationId": "listNamespacedNetworkPolicy", + "description": "list or watch objects of kind PodDisruptionBudget", + "operationId": "listNamespacedPodDisruptionBudget", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -62768,7 +67022,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicyList" + "$ref": "#/definitions/v1.PodDisruptionBudgetList" } }, "401": { @@ -62779,12 +67033,12 @@ "https" ], "tags": [ - "networking_v1" + "policy_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, @@ -62809,15 +67063,15 @@ "consumes": [ "*/*" ], - "description": "create a NetworkPolicy", - "operationId": "createNamespacedNetworkPolicy", + "description": "create a PodDisruptionBudget", + "operationId": "createNamespacedPodDisruptionBudget", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, { @@ -62851,19 +67105,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "401": { @@ -62874,24 +67128,24 @@ "https" ], "tags": [ - "networking_v1" + "policy_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}": { + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a NetworkPolicy", - "operationId": "deleteNamespacedNetworkPolicy", + "description": "delete a PodDisruptionBudget", + "operationId": "deleteNamespacedPodDisruptionBudget", "parameters": [ { "in": "body", @@ -62955,12 +67209,12 @@ "https" ], "tags": [ - "networking_v1" + "policy_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -62969,8 +67223,8 @@ "consumes": [ "*/*" ], - "description": "read the specified NetworkPolicy", - "operationId": "readNamespacedNetworkPolicy", + "description": "read the specified PodDisruptionBudget", + "operationId": "readNamespacedPodDisruptionBudget", "produces": [ "application/json", "application/yaml", @@ -62980,7 +67234,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "401": { @@ -62991,18 +67245,18 @@ "https" ], "tags": [ - "networking_v1" + "policy_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, "parameters": [ { - "description": "name of the NetworkPolicy", + "description": "name of the PodDisruptionBudget", "in": "path", "name": "name", "required": true, @@ -63032,8 +67286,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified NetworkPolicy", - "operationId": "patchNamespacedNetworkPolicy", + "description": "partially update the specified PodDisruptionBudget", + "operationId": "patchNamespacedPodDisruptionBudget", "parameters": [ { "in": "body", @@ -63082,13 +67336,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "401": { @@ -63099,12 +67353,12 @@ "https" ], "tags": [ - "networking_v1" + "policy_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -63113,15 +67367,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified NetworkPolicy", - "operationId": "replaceNamespacedNetworkPolicy", + "description": "replace the specified PodDisruptionBudget", + "operationId": "replaceNamespacedPodDisruptionBudget", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, { @@ -63155,13 +67409,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "401": { @@ -63172,24 +67426,24 @@ "https" ], "tags": [ - "networking_v1" + "policy_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status": { + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified NetworkPolicy", - "operationId": "readNamespacedNetworkPolicyStatus", + "description": "read status of the specified PodDisruptionBudget", + "operationId": "readNamespacedPodDisruptionBudgetStatus", "produces": [ "application/json", "application/yaml", @@ -63199,7 +67453,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "401": { @@ -63210,18 +67464,18 @@ "https" ], "tags": [ - "networking_v1" + "policy_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, "parameters": [ { - "description": "name of the NetworkPolicy", + "description": "name of the PodDisruptionBudget", "in": "path", "name": "name", "required": true, @@ -63251,8 +67505,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified NetworkPolicy", - "operationId": "patchNamespacedNetworkPolicyStatus", + "description": "partially update status of the specified PodDisruptionBudget", + "operationId": "patchNamespacedPodDisruptionBudgetStatus", "parameters": [ { "in": "body", @@ -63301,13 +67555,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "401": { @@ -63318,12 +67572,12 @@ "https" ], "tags": [ - "networking_v1" + "policy_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -63332,15 +67586,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified NetworkPolicy", - "operationId": "replaceNamespacedNetworkPolicyStatus", + "description": "replace status of the specified PodDisruptionBudget", + "operationId": "replaceNamespacedPodDisruptionBudgetStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, { @@ -63374,13 +67628,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "401": { @@ -63391,24 +67645,24 @@ "https" ], "tags": [ - "networking_v1" + "policy_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/networkpolicies": { + "/apis/policy/v1/poddisruptionbudgets": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind NetworkPolicy", - "operationId": "listNetworkPolicyForAllNamespaces", + "description": "list or watch objects of kind PodDisruptionBudget", + "operationId": "listPodDisruptionBudgetForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -63420,7 +67674,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicyList" + "$ref": "#/definitions/v1.PodDisruptionBudgetList" } }, "401": { @@ -63431,12 +67685,12 @@ "https" ], "tags": [ - "networking_v1" + "policy_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, @@ -63513,237 +67767,7 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/ingressclasses": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/ingressclasses/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the IngressClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/ingresses": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses": { + "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -63825,7 +67849,7 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}": { + "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -63863,7 +67887,7 @@ "uniqueItems": true }, { - "description": "name of the Ingress", + "description": "name of the PodDisruptionBudget", "in": "path", "name": "name", "required": true, @@ -63915,89 +67939,7 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}": { + "/apis/policy/v1/watch/poddisruptionbudgets": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -64031,23 +67973,7 @@ "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", "in": "query", "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the NetworkPolicy", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", + "type": "integer", "uniqueItems": true }, { @@ -64087,89 +68013,639 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/networkpolicies": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true + "/apis/rbac.authorization.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization" + ] + } + }, + "/apis/rbac.authorization.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ] + } + }, + "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ClusterRoleBinding", + "operationId": "deleteCollectionClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ClusterRoleBinding", + "operationId": "listClusterRoleBinding", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBindingList" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + }, + "parameters": [ { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ClusterRoleBinding", + "operationId": "createClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ClusterRoleBinding", + "operationId": "deleteClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ClusterRoleBinding", + "operationId": "readClusterRoleBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + }, + "parameters": [ { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", + "description": "name of the ClusterRoleBinding", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "description": "If 'true', then the output is pretty printed.", "in": "query", - "name": "resourceVersionMatch", + "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/networking.k8s.io/v1alpha1/": { - "get": { + ], + "patch": { "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ClusterRoleBinding", + "operationId": "patchClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "description": "get available resources", - "operationId": "getAPIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ClusterRoleBinding", + "operationId": "replaceClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", @@ -64179,7 +68655,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" } }, "401": { @@ -64190,17 +68672,24 @@ "https" ], "tags": [ - "networking_v1alpha1" - ] + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1alpha1/clustercidrs": { + "/apis/rbac.authorization.k8s.io/v1/clusterroles": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ClusterCIDR", - "operationId": "deleteCollectionClusterCIDR", + "description": "delete collection of ClusterRole", + "operationId": "deleteCollectionClusterRole", "parameters": [ { "in": "body", @@ -64307,13 +68796,13 @@ "https" ], "tags": [ - "networking_v1alpha1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ClusterCIDR", - "version": "v1alpha1" + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -64321,8 +68810,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ClusterCIDR", - "operationId": "listClusterCIDR", + "description": "list or watch objects of kind ClusterRole", + "operationId": "listClusterRole", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -64399,7 +68888,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterCIDRList" + "$ref": "#/definitions/v1.ClusterRoleList" } }, "401": { @@ -64410,13 +68899,13 @@ "https" ], "tags": [ - "networking_v1alpha1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ClusterCIDR", - "version": "v1alpha1" + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" } }, "parameters": [ @@ -64432,15 +68921,15 @@ "consumes": [ "*/*" ], - "description": "create a ClusterCIDR", - "operationId": "createClusterCIDR", + "description": "create a ClusterRole", + "operationId": "createClusterRole", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.ClusterCIDR" + "$ref": "#/definitions/v1.ClusterRole" } }, { @@ -64474,19 +68963,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterCIDR" + "$ref": "#/definitions/v1.ClusterRole" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterCIDR" + "$ref": "#/definitions/v1.ClusterRole" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterCIDR" + "$ref": "#/definitions/v1.ClusterRole" } }, "401": { @@ -64497,24 +68986,24 @@ "https" ], "tags": [ - "networking_v1alpha1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ClusterCIDR", - "version": "v1alpha1" + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}": { + "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ClusterCIDR", - "operationId": "deleteClusterCIDR", + "description": "delete a ClusterRole", + "operationId": "deleteClusterRole", "parameters": [ { "in": "body", @@ -64578,13 +69067,13 @@ "https" ], "tags": [ - "networking_v1alpha1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ClusterCIDR", - "version": "v1alpha1" + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -64592,8 +69081,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ClusterCIDR", - "operationId": "readClusterCIDR", + "description": "read the specified ClusterRole", + "operationId": "readClusterRole", "produces": [ "application/json", "application/yaml", @@ -64603,7 +69092,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterCIDR" + "$ref": "#/definitions/v1.ClusterRole" } }, "401": { @@ -64614,18 +69103,18 @@ "https" ], "tags": [ - "networking_v1alpha1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ClusterCIDR", - "version": "v1alpha1" + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" } }, "parameters": [ { - "description": "name of the ClusterCIDR", + "description": "name of the ClusterRole", "in": "path", "name": "name", "required": true, @@ -64647,8 +69136,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified ClusterCIDR", - "operationId": "patchClusterCIDR", + "description": "partially update the specified ClusterRole", + "operationId": "patchClusterRole", "parameters": [ { "in": "body", @@ -64697,13 +69186,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterCIDR" + "$ref": "#/definitions/v1.ClusterRole" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterCIDR" + "$ref": "#/definitions/v1.ClusterRole" } }, "401": { @@ -64714,13 +69203,13 @@ "https" ], "tags": [ - "networking_v1alpha1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ClusterCIDR", - "version": "v1alpha1" + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -64728,15 +69217,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ClusterCIDR", - "operationId": "replaceClusterCIDR", + "description": "replace the specified ClusterRole", + "operationId": "replaceClusterRole", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.ClusterCIDR" + "$ref": "#/definitions/v1.ClusterRole" } }, { @@ -64770,13 +69259,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterCIDR" + "$ref": "#/definitions/v1.ClusterRole" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterCIDR" + "$ref": "#/definitions/v1.ClusterRole" } }, "401": { @@ -64787,246 +69276,24 @@ "https" ], "tags": [ - "networking_v1alpha1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ClusterCIDR", - "version": "v1alpha1" + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1alpha1/watch/clustercidrs": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1alpha1/watch/clustercidrs/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ClusterCIDR", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/node.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node" - ] - } - }, - "/apis/node.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1" - ] - } - }, - "/apis/node.k8s.io/v1/runtimeclasses": { + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of RuntimeClass", - "operationId": "deleteCollectionRuntimeClass", + "description": "delete collection of RoleBinding", + "operationId": "deleteCollectionNamespacedRoleBinding", "parameters": [ { "in": "body", @@ -65133,12 +69400,12 @@ "https" ], "tags": [ - "node_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -65147,8 +69414,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind RuntimeClass", - "operationId": "listRuntimeClass", + "description": "list or watch objects of kind RoleBinding", + "operationId": "listNamespacedRoleBinding", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -65225,7 +69492,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RuntimeClassList" + "$ref": "#/definitions/v1.RoleBindingList" } }, "401": { @@ -65236,16 +69503,24 @@ "https" ], "tags": [ - "node_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -65258,15 +69533,15 @@ "consumes": [ "*/*" ], - "description": "create a RuntimeClass", - "operationId": "createRuntimeClass", + "description": "create a RoleBinding", + "operationId": "createNamespacedRoleBinding", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.RoleBinding" } }, { @@ -65300,19 +69575,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.RoleBinding" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.RoleBinding" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.RoleBinding" } }, "401": { @@ -65323,24 +69598,24 @@ "https" ], "tags": [ - "node_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/node.k8s.io/v1/runtimeclasses/{name}": { + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a RuntimeClass", - "operationId": "deleteRuntimeClass", + "description": "delete a RoleBinding", + "operationId": "deleteNamespacedRoleBinding", "parameters": [ { "in": "body", @@ -65404,12 +69679,12 @@ "https" ], "tags": [ - "node_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -65418,8 +69693,8 @@ "consumes": [ "*/*" ], - "description": "read the specified RuntimeClass", - "operationId": "readRuntimeClass", + "description": "read the specified RoleBinding", + "operationId": "readNamespacedRoleBinding", "produces": [ "application/json", "application/yaml", @@ -65429,7 +69704,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.RoleBinding" } }, "401": { @@ -65440,24 +69715,32 @@ "https" ], "tags": [ - "node_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, "parameters": [ { - "description": "name of the RuntimeClass", + "description": "name of the RoleBinding", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -65473,8 +69756,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified RuntimeClass", - "operationId": "patchRuntimeClass", + "description": "partially update the specified RoleBinding", + "operationId": "patchNamespacedRoleBinding", "parameters": [ { "in": "body", @@ -65523,13 +69806,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.RoleBinding" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.RoleBinding" } }, "401": { @@ -65540,12 +69823,12 @@ "https" ], "tags": [ - "node_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -65554,15 +69837,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified RuntimeClass", - "operationId": "replaceRuntimeClass", + "description": "replace the specified RoleBinding", + "operationId": "replaceNamespacedRoleBinding", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.RoleBinding" } }, { @@ -65596,13 +69879,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.RoleBinding" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.RoleBinding" } }, "401": { @@ -65613,246 +69896,24 @@ "https" ], "tags": [ - "node_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/node.k8s.io/v1/watch/runtimeclasses": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/node.k8s.io/v1/watch/runtimeclasses/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the RuntimeClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/policy/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy" - ] - } - }, - "/apis/policy/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ] - } - }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets": { + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of PodDisruptionBudget", - "operationId": "deleteCollectionNamespacedPodDisruptionBudget", + "description": "delete collection of Role", + "operationId": "deleteCollectionNamespacedRole", "parameters": [ { "in": "body", @@ -65959,12 +70020,12 @@ "https" ], "tags": [ - "policy_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -65973,8 +70034,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listNamespacedPodDisruptionBudget", + "description": "list or watch objects of kind Role", + "operationId": "listNamespacedRole", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -66051,7 +70112,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudgetList" + "$ref": "#/definitions/v1.RoleList" } }, "401": { @@ -66062,12 +70123,12 @@ "https" ], "tags": [ - "policy_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -66092,15 +70153,15 @@ "consumes": [ "*/*" ], - "description": "create a PodDisruptionBudget", - "operationId": "createNamespacedPodDisruptionBudget", + "description": "create a Role", + "operationId": "createNamespacedRole", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.Role" } }, { @@ -66134,19 +70195,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.Role" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.Role" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.Role" } }, "401": { @@ -66157,24 +70218,24 @@ "https" ], "tags": [ - "policy_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a PodDisruptionBudget", - "operationId": "deleteNamespacedPodDisruptionBudget", + "description": "delete a Role", + "operationId": "deleteNamespacedRole", "parameters": [ { "in": "body", @@ -66238,12 +70299,12 @@ "https" ], "tags": [ - "policy_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -66252,8 +70313,8 @@ "consumes": [ "*/*" ], - "description": "read the specified PodDisruptionBudget", - "operationId": "readNamespacedPodDisruptionBudget", + "description": "read the specified Role", + "operationId": "readNamespacedRole", "produces": [ "application/json", "application/yaml", @@ -66263,7 +70324,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.Role" } }, "401": { @@ -66274,18 +70335,18 @@ "https" ], "tags": [ - "policy_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, "parameters": [ { - "description": "name of the PodDisruptionBudget", + "description": "name of the Role", "in": "path", "name": "name", "required": true, @@ -66315,8 +70376,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified PodDisruptionBudget", - "operationId": "patchNamespacedPodDisruptionBudget", + "description": "partially update the specified Role", + "operationId": "patchNamespacedRole", "parameters": [ { "in": "body", @@ -66365,13 +70426,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.Role" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.Role" } }, "401": { @@ -66382,12 +70443,12 @@ "https" ], "tags": [ - "policy_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -66396,15 +70457,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified PodDisruptionBudget", - "operationId": "replaceNamespacedPodDisruptionBudget", + "description": "replace the specified Role", + "operationId": "replaceNamespacedRole", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.Role" } }, { @@ -66438,79 +70499,605 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.Role" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.Role" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/rbac.authorization.k8s.io/v1/rolebindings": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind RoleBinding", + "operationId": "listRoleBindingForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBindingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/roles": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Role", + "operationId": "listRoleForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleList" } }, "401": { "description": "Unauthorized" } }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ClusterRoleBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified PodDisruptionBudget", - "operationId": "readNamespacedPodDisruptionBudgetStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}": { "parameters": [ { - "description": "name of the PodDisruptionBudget", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ClusterRole", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -66525,204 +71112,38 @@ "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified PodDisruptionBudget", - "operationId": "patchNamespacedPodDisruptionBudgetStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified PodDisruptionBudget", - "operationId": "replaceNamespacedPodDisruptionBudgetStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/policy/v1/poddisruptionbudgets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listPodDisruptionBudgetForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -66759,6 +71180,22 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the RoleBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -66796,7 +71233,7 @@ } ] }, - "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets": { + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -66878,7 +71315,7 @@ } ] }, - "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -66916,7 +71353,7 @@ "uniqueItems": true }, { - "description": "name of the PodDisruptionBudget", + "description": "name of the Role", "in": "path", "name": "name", "required": true, @@ -66968,7 +71405,7 @@ } ] }, - "/apis/policy/v1/watch/poddisruptionbudgets": { + "/apis/rbac.authorization.k8s.io/v1/watch/rolebindings": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -67042,7 +71479,81 @@ } ] }, - "/apis/rbac.authorization.k8s.io/": { + "/apis/rbac.authorization.k8s.io/v1/watch/roles": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/": { "get": { "consumes": [ "application/json", @@ -67071,11 +71582,11 @@ "https" ], "tags": [ - "rbacAuthorization" + "resource" ] } }, - "/apis/rbac.authorization.k8s.io/v1/": { + "/apis/resource.k8s.io/v1alpha1/": { "get": { "consumes": [ "application/json", @@ -67104,17 +71615,17 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ] } }, - "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings": { + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ClusterRoleBinding", - "operationId": "deleteCollectionClusterRoleBinding", + "description": "delete collection of PodScheduling", + "operationId": "deleteCollectionNamespacedPodScheduling", "parameters": [ { "in": "body", @@ -67221,13 +71732,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -67235,8 +71746,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ClusterRoleBinding", - "operationId": "listClusterRoleBinding", + "description": "list or watch objects of kind PodScheduling", + "operationId": "listNamespacedPodScheduling", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -67313,7 +71824,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBindingList" + "$ref": "#/definitions/v1alpha1.PodSchedulingList" } }, "401": { @@ -67324,16 +71835,24 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -67346,15 +71865,15 @@ "consumes": [ "*/*" ], - "description": "create a ClusterRoleBinding", - "operationId": "createClusterRoleBinding", + "description": "create a PodScheduling", + "operationId": "createNamespacedPodScheduling", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1alpha1.PodScheduling" } }, { @@ -67388,19 +71907,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1alpha1.PodScheduling" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1alpha1.PodScheduling" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1alpha1.PodScheduling" } }, "401": { @@ -67411,24 +71930,24 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}": { + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ClusterRoleBinding", - "operationId": "deleteClusterRoleBinding", + "description": "delete a PodScheduling", + "operationId": "deleteNamespacedPodScheduling", "parameters": [ { "in": "body", @@ -67475,13 +71994,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1alpha1.PodScheduling" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1alpha1.PodScheduling" } }, "401": { @@ -67492,13 +72011,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -67506,8 +72025,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ClusterRoleBinding", - "operationId": "readClusterRoleBinding", + "description": "read the specified PodScheduling", + "operationId": "readNamespacedPodScheduling", "produces": [ "application/json", "application/yaml", @@ -67517,7 +72036,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1alpha1.PodScheduling" } }, "401": { @@ -67528,24 +72047,32 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the ClusterRoleBinding", + "description": "name of the PodScheduling", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -67561,8 +72088,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified ClusterRoleBinding", - "operationId": "patchClusterRoleBinding", + "description": "partially update the specified PodScheduling", + "operationId": "patchNamespacedPodScheduling", "parameters": [ { "in": "body", @@ -67611,13 +72138,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1alpha1.PodScheduling" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1alpha1.PodScheduling" } }, "401": { @@ -67628,13 +72155,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -67642,15 +72169,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ClusterRoleBinding", - "operationId": "replaceClusterRoleBinding", + "description": "replace the specified PodScheduling", + "operationId": "replaceNamespacedPodScheduling", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1alpha1.PodScheduling" } }, { @@ -67684,13 +72211,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1alpha1.PodScheduling" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1alpha1.PodScheduling" } }, "401": { @@ -67701,24 +72228,243 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/rbac.authorization.k8s.io/v1/clusterroles": { + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified PodScheduling", + "operationId": "readNamespacedPodSchedulingStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the PodScheduling", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified PodScheduling", + "operationId": "patchNamespacedPodSchedulingStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified PodScheduling", + "operationId": "replaceNamespacedPodSchedulingStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ClusterRole", - "operationId": "deleteCollectionClusterRole", + "description": "delete collection of ResourceClaim", + "operationId": "deleteCollectionNamespacedResourceClaim", "parameters": [ { "in": "body", @@ -67825,13 +72571,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -67839,8 +72585,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ClusterRole", - "operationId": "listClusterRole", + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listNamespacedResourceClaim", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -67917,7 +72663,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRoleList" + "$ref": "#/definitions/v1alpha1.ResourceClaimList" } }, "401": { @@ -67928,16 +72674,24 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -67950,15 +72704,15 @@ "consumes": [ "*/*" ], - "description": "create a ClusterRole", - "operationId": "createClusterRole", + "description": "create a ResourceClaim", + "operationId": "createNamespacedResourceClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1alpha1.ResourceClaim" } }, { @@ -67992,19 +72746,244 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1alpha1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1alpha1.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ResourceClaim", + "operationId": "deleteNamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceClaim", + "operationId": "readNamespacedResourceClaim", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ResourceClaim", + "operationId": "patchNamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" } }, "401": { @@ -68015,30 +72994,29 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" - } - }, - "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}": { - "delete": { + }, + "put": { "consumes": [ "*/*" ], - "description": "delete a ClusterRole", - "operationId": "deleteClusterRole", + "description": "replace the specified ResourceClaim", + "operationId": "replaceNamespacedResourceClaim", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1alpha1.ResourceClaim" } }, { @@ -68049,23 +73027,16 @@ "uniqueItems": true }, { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", "in": "query", - "name": "orphanDependents", - "type": "boolean", + "name": "fieldManager", + "type": "string", "uniqueItems": true }, { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", "in": "query", - "name": "propagationPolicy", + "name": "fieldValidation", "type": "string", "uniqueItems": true } @@ -68079,13 +73050,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1alpha1.ResourceClaim" } }, - "202": { - "description": "Accepted", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1alpha1.ResourceClaim" } }, "401": { @@ -68096,22 +73067,24 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" - }, + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read the specified ClusterRole", - "operationId": "readClusterRole", + "description": "read status of the specified ResourceClaim", + "operationId": "readNamespacedResourceClaimStatus", "produces": [ "application/json", "application/yaml", @@ -68121,7 +73094,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1alpha1.ResourceClaim" } }, "401": { @@ -68132,24 +73105,32 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the ClusterRole", + "description": "name of the ResourceClaim", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -68165,8 +73146,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified ClusterRole", - "operationId": "patchClusterRole", + "description": "partially update status of the specified ResourceClaim", + "operationId": "patchNamespacedResourceClaimStatus", "parameters": [ { "in": "body", @@ -68215,13 +73196,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1alpha1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1alpha1.ResourceClaim" } }, "401": { @@ -68232,13 +73213,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -68246,15 +73227,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ClusterRole", - "operationId": "replaceClusterRole", + "description": "replace status of the specified ResourceClaim", + "operationId": "replaceNamespacedResourceClaimStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1alpha1.ResourceClaim" } }, { @@ -68288,13 +73269,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1alpha1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1alpha1.ResourceClaim" } }, "401": { @@ -68305,24 +73286,24 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings": { + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of RoleBinding", - "operationId": "deleteCollectionNamespacedRoleBinding", + "description": "delete collection of ResourceClaimTemplate", + "operationId": "deleteCollectionNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", @@ -68429,13 +73410,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -68443,8 +73424,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind RoleBinding", - "operationId": "listNamespacedRoleBinding", + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listNamespacedResourceClaimTemplate", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -68521,7 +73502,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RoleBindingList" + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplateList" } }, "401": { @@ -68532,13 +73513,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" } }, "parameters": [ @@ -68562,15 +73543,15 @@ "consumes": [ "*/*" ], - "description": "create a RoleBinding", - "operationId": "createNamespacedRoleBinding", + "description": "create a ResourceClaimTemplate", + "operationId": "createNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.RoleBinding" + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" } }, { @@ -68604,19 +73585,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RoleBinding" + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.RoleBinding" + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.RoleBinding" + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" } }, "401": { @@ -68627,24 +73608,24 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}": { + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a RoleBinding", - "operationId": "deleteNamespacedRoleBinding", + "description": "delete a ResourceClaimTemplate", + "operationId": "deleteNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", @@ -68691,49 +73672,492 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceClaimTemplate", + "operationId": "readNamespacedResourceClaimTemplate", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ResourceClaimTemplate", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ResourceClaimTemplate", + "operationId": "patchNamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceClaimTemplate", + "operationId": "replaceNamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1alpha1/podschedulings": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodScheduling", + "operationId": "listPodSchedulingForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.PodSchedulingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/resourceclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceClaimForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimList" } }, "401": { "description": "Unauthorized" } }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/resourceclaimtemplates": { "get": { "consumes": [ "*/*" ], - "description": "read the specified RoleBinding", - "operationId": "readNamespacedRoleBinding", + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceClaimTemplateForAllNamespaces", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RoleBinding" + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplateList" } }, "401": { @@ -68744,205 +74168,95 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the RoleBinding", - "in": "path", - "name": "name", - "required": true, + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", "type": "string", "uniqueItems": true }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified RoleBinding", - "operationId": "patchNamespacedRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified RoleBinding", - "operationId": "replaceNamespacedRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles": { + "/apis/resource.k8s.io/v1alpha1/resourceclasses": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of Role", - "operationId": "deleteCollectionNamespacedRole", + "description": "delete collection of ResourceClass", + "operationId": "deleteCollectionResourceClass", "parameters": [ { "in": "body", @@ -69049,13 +74363,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -69063,8 +74377,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind Role", - "operationId": "listNamespacedRole", + "description": "list or watch objects of kind ResourceClass", + "operationId": "listResourceClass", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -69141,7 +74455,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RoleList" + "$ref": "#/definitions/v1alpha1.ResourceClassList" } }, "401": { @@ -69152,24 +74466,16 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -69182,15 +74488,15 @@ "consumes": [ "*/*" ], - "description": "create a Role", - "operationId": "createNamespacedRole", + "description": "create a ResourceClass", + "operationId": "createResourceClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Role" + "$ref": "#/definitions/v1alpha1.ResourceClass" } }, { @@ -69224,19 +74530,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Role" + "$ref": "#/definitions/v1alpha1.ResourceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Role" + "$ref": "#/definitions/v1alpha1.ResourceClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Role" + "$ref": "#/definitions/v1alpha1.ResourceClass" } }, "401": { @@ -69247,24 +74553,24 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}": { + "/apis/resource.k8s.io/v1alpha1/resourceclasses/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a Role", - "operationId": "deleteNamespacedRole", + "description": "delete a ResourceClass", + "operationId": "deleteResourceClass", "parameters": [ { "in": "body", @@ -69311,13 +74617,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1alpha1.ResourceClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1alpha1.ResourceClass" } }, "401": { @@ -69328,13 +74634,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -69342,8 +74648,8 @@ "consumes": [ "*/*" ], - "description": "read the specified Role", - "operationId": "readNamespacedRole", + "description": "read the specified ResourceClass", + "operationId": "readResourceClass", "produces": [ "application/json", "application/yaml", @@ -69353,7 +74659,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Role" + "$ref": "#/definitions/v1alpha1.ResourceClass" } }, "401": { @@ -69364,32 +74670,24 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the Role", + "description": "name of the ResourceClass", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -69405,8 +74703,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified Role", - "operationId": "patchNamespacedRole", + "description": "partially update the specified ResourceClass", + "operationId": "patchResourceClass", "parameters": [ { "in": "body", @@ -69455,13 +74753,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Role" + "$ref": "#/definitions/v1alpha1.ResourceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Role" + "$ref": "#/definitions/v1alpha1.ResourceClass" } }, "401": { @@ -69472,13 +74770,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -69486,15 +74784,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified Role", - "operationId": "replaceNamespacedRole", + "description": "replace the specified ResourceClass", + "operationId": "replaceResourceClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Role" + "$ref": "#/definitions/v1alpha1.ResourceClass" } }, { @@ -69528,13 +74826,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Role" + "$ref": "#/definitions/v1alpha1.ResourceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Role" + "$ref": "#/definitions/v1alpha1.ResourceClass" } }, "401": { @@ -69545,55 +74843,18 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/rbac.authorization.k8s.io/v1/rolebindings": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind RoleBinding", - "operationId": "listRoleBindingForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/podschedulings": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -69630,6 +74891,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -69667,44 +74936,97 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/roles": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Role", - "operationId": "listRoleForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/podschedulings/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the PodScheduling", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/resourceclaims": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -69742,79 +75064,13 @@ "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -69852,7 +75108,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}": { + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/resourceclaims/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -69890,7 +75146,7 @@ "uniqueItems": true }, { - "description": "name of the ClusterRoleBinding", + "description": "name of the ResourceClaim", "in": "path", "name": "name", "required": true, @@ -69898,79 +75154,13 @@ "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -70008,7 +75198,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}": { + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/resourceclaimtemplates": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -70046,9 +75236,9 @@ "uniqueItems": true }, { - "description": "name of the ClusterRole", + "description": "object name and auth scope, such as for teams and projects", "in": "path", - "name": "name", + "name": "namespace", "required": true, "type": "string", "uniqueItems": true @@ -70090,7 +75280,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings": { + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -70127,6 +75317,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the ResourceClaimTemplate", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -70172,7 +75370,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}": { + "/apis/resource.k8s.io/v1alpha1/watch/podschedulings": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -70209,22 +75407,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the RoleBinding", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -70262,7 +75444,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles": { + "/apis/resource.k8s.io/v1alpha1/watch/resourceclaims": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -70299,14 +75481,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -70344,7 +75518,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}": { + "/apis/resource.k8s.io/v1alpha1/watch/resourceclaimtemplates": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -70381,22 +75555,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the Role", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -70434,7 +75592,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/rolebindings": { + "/apis/resource.k8s.io/v1alpha1/watch/resourceclasses": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -70508,7 +75666,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/roles": { + "/apis/resource.k8s.io/v1alpha1/watch/resourceclasses/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -70545,6 +75703,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the ResourceClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -76809,6 +81975,51 @@ ] } }, + "/apis/{group}/{version}": { + "parameters": [ + { + "name": "group", + "in": "path", + "required": true, + "description": "The custom resource's group name", + "type": "string" + }, + { + "name": "version", + "in": "path", + "required": true, + "description": "The custom resource's version", + "type": "string" + } + ], + "get": { + "operationId": "getAPIResources", + "description": "get available resources", + "tags": [ + "custom_objects" + ], + "consumes": [ + "*/*" + ], + "produces": [ + "application/json" + ], + "schemes": [ + "https" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + } + } + }, "/apis/{group}/{version}/{plural}": { "parameters": [ { diff --git a/kubernetes/swagger.json.unprocessed b/kubernetes/swagger.json.unprocessed index 496b7ea6..f274347d 100644 --- a/kubernetes/swagger.json.unprocessed +++ b/kubernetes/swagger.json.unprocessed @@ -140,28 +140,32 @@ "items": { "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, "apiVersions": { "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", "items": { "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, "operations": { "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", "items": { "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, "resources": { "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", "items": { "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, "scope": { "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", @@ -344,6 +348,312 @@ }, "type": "object" }, + "io.k8s.api.admissionregistration.v1alpha1.MatchResources": { + "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "properties": { + "excludeResourceRules": { + "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + "type": "string" + }, + "namespaceSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "resourceRules": { + "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations": { + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1alpha1.ParamKind": { + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": "string" + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1alpha1.ParamRef": { + "description": "ParamRef references a parameter resource", + "properties": { + "name": { + "description": "Name of the resource being referenced.", + "type": "string" + }, + "namespace": { + "description": "Namespace of the referenced resource. Should be empty for the cluster-scoped resources", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy": { + "description": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding": { + "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList": { + "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of PolicyBinding.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBindingList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingSpec": { + "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", + "properties": { + "matchResources": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.MatchResources", + "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." + }, + "paramRef": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ParamRef", + "description": "ParamRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied." + }, + "policyName": { + "description": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList": { + "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec": { + "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", + "properties": { + "failurePolicy": { + "description": "FailurePolicy defines how to handle failures for the admission policy. Failures can occur from invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. Allowed values are Ignore or Fail. Defaults to Fail.", + "type": "string" + }, + "matchConstraints": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.MatchResources", + "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." + }, + "paramKind": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ParamKind", + "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + }, + "validations": { + "description": "Validations contain CEL expressions which is used to apply the validation. A minimum of one validation is required for a policy definition. Required.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.Validation" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "validations" + ], + "type": "object" + }, + "io.k8s.api.admissionregistration.v1alpha1.Validation": { + "description": "Validation specifies the CEL expression which is used to apply the validation.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the Admission request/response, organized into CEL variables as well as some other useful variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + "type": "string" + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + "type": "string" + }, + "reason": { + "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + "type": "string" + } + }, + "required": [ + "expression" + ], + "type": "object" + }, "io.k8s.api.apiserverinternal.v1alpha1.ServerStorageVersion": { "description": "An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.", "properties": { @@ -1163,7 +1473,7 @@ "type": "integer" }, "replicas": { - "description": "Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", + "description": "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", "format": "int32", "type": "integer" } @@ -1314,6 +1624,17 @@ } ] }, + "io.k8s.api.apps.v1.StatefulSetOrdinals": { + "description": "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.", + "properties": { + "start": { + "description": "start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:\n [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).\nIf unset, defaults to 0. Replica indices will be in the range:\n [0, .spec.replicas).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy": { "description": "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.", "properties": { @@ -1336,6 +1657,10 @@ "format": "int32", "type": "integer" }, + "ordinals": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetOrdinals", + "description": "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested. Using the ordinals field requires the StatefulSetStartOrdinal feature gate to be enabled, which is alpha." + }, "persistentVolumeClaimRetentionPolicy": { "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy", "description": "persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. +optional" @@ -1364,7 +1689,7 @@ }, "template": { "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec", - "description": "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet." + "description": "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format -. For example, a pod in a StatefulSet named \"web\" with index number \"3\" would be named \"web-3\"." }, "updateStrategy": { "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetUpdateStrategy", @@ -1670,6 +1995,45 @@ }, "type": "object" }, + "io.k8s.api.authentication.v1alpha1.SelfSubjectReview": { + "description": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.authentication.v1alpha1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.authentication.v1alpha1.SelfSubjectReviewStatus": { + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", + "properties": { + "userInfo": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.UserInfo", + "description": "User attributes of the user making this request." + } + }, + "type": "object" + }, "io.k8s.api.authorization.v1.LocalSubjectAccessReview": { "description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", "properties": { @@ -2051,7 +2415,7 @@ "type": "string" }, "kind": { - "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", + "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "name": { @@ -2313,7 +2677,7 @@ "type": "string" }, "kind": { - "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", + "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "name": { @@ -2854,159 +3218,143 @@ ], "type": "object" }, - "io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricSource": { - "description": "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", + "io.k8s.api.batch.v1.CronJob": { + "description": "CronJob represents the configuration of a single cron job.", "properties": { - "container": { - "description": "container is the name of the container in the pods of the scaling target", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "name": { - "description": "name is the name of the resource in question.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, - "target": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" - } - }, - "required": [ - "name", - "target", - "container" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricStatus": { - "description": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "properties": { - "container": { - "description": "Container is the name of the container in the pods of the scaling target", - "type": "string" + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "current": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" + "spec": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJobSpec", + "description": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, - "name": { - "description": "Name is the name of the resource in question.", - "type": "string" + "status": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJobStatus", + "description": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "required": [ - "name", - "current", - "container" - ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + ] }, - "io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "io.k8s.api.batch.v1.CronJobList": { + "description": "CronJobList is a collection of cron jobs.", "properties": { "apiVersion": { - "description": "API version of the referent", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, + "items": { + "description": "items is the list of CronJobs.", + "items": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + }, + "type": "array" + }, "kind": { - "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, - "name": { - "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ - "kind", - "name" + "items" ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.ExternalMetricSource": { - "description": "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).", - "properties": { - "metric": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - }, - "target": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "CronJobList", + "version": "v1" } - }, - "required": [ - "metric", - "target" - ], - "type": "object" + ] }, - "io.k8s.api.autoscaling.v2beta2.ExternalMetricStatus": { - "description": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.", + "io.k8s.api.batch.v1.CronJobSpec": { + "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", "properties": { - "current": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" + "concurrencyPolicy": { + "description": "Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one\n\n", + "type": "string" }, - "metric": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - } - }, - "required": [ - "metric", - "current" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.HPAScalingPolicy": { - "description": "HPAScalingPolicy is a single policy which must hold true for a specified past interval.", - "properties": { - "periodSeconds": { - "description": "PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).", + "failedJobsHistoryLimit": { + "description": "The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.", "format": "int32", "type": "integer" }, - "type": { - "description": "Type is used to specify the scaling policy.", + "jobTemplate": { + "$ref": "#/definitions/io.k8s.api.batch.v1.JobTemplateSpec", + "description": "Specifies the job that will be created when executing a CronJob." + }, + "schedule": { + "description": "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", "type": "string" }, - "value": { - "description": "Value contains the amount of change which is permitted by the policy. It must be greater than zero", + "startingDeadlineSeconds": { + "description": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", + "format": "int64", + "type": "integer" + }, + "successfulJobsHistoryLimit": { + "description": "The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.", "format": "int32", "type": "integer" + }, + "suspend": { + "description": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", + "type": "boolean" + }, + "timeZone": { + "description": "The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones This is beta field and must be enabled via the `CronJobTimeZone` feature gate.", + "type": "string" } }, "required": [ - "type", - "value", - "periodSeconds" + "schedule", + "jobTemplate" ], "type": "object" }, - "io.k8s.api.autoscaling.v2beta2.HPAScalingRules": { - "description": "HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.", + "io.k8s.api.batch.v1.CronJobStatus": { + "description": "CronJobStatus represents the current state of a cron job.", "properties": { - "policies": { - "description": "policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid", + "active": { + "description": "A list of pointers to currently running jobs.", "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HPAScalingPolicy" + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "selectPolicy": { - "description": "selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used.", - "type": "string" + "lastScheduleTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Information when was the last time the job was successfully scheduled." }, - "stabilizationWindowSeconds": { - "description": "StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).", - "format": "int32", - "type": "integer" + "lastSuccessfulTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Information when was the last time the job successfully completed." } }, "type": "object" }, - "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler": { - "description": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.", + "io.k8s.api.batch.v1.Job": { + "description": "Job represents the configuration of a single job.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", @@ -3018,61 +3366,51 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec", - "description": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + "$ref": "#/definitions/io.k8s.api.batch.v1.JobSpec", + "description": "Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, "status": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerStatus", - "description": "status is the current information about the autoscaler." + "$ref": "#/definitions/io.k8s.api.batch.v1.JobStatus", + "description": "Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "batch", + "kind": "Job", + "version": "v1" } ] }, - "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerBehavior": { - "description": "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).", + "io.k8s.api.batch.v1.JobCondition": { + "description": "JobCondition describes current state of a job.", "properties": { - "scaleDown": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HPAScalingRules", - "description": "scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used)." + "lastProbeTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition was checked." }, - "scaleUp": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HPAScalingRules", - "description": "scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:\n * increase no more than 4 pods per 60 seconds\n * double the number of pods per 60 seconds\nNo stabilization is used." - } - }, - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerCondition": { - "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", - "properties": { "lastTransitionTime": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "lastTransitionTime is the last time the condition transitioned from one status to another" + "description": "Last time the condition transit from one status to another." }, "message": { - "description": "message is a human-readable explanation containing details about the transition", + "description": "Human readable message indicating details about last transition.", "type": "string" }, "reason": { - "description": "reason is the reason for the condition's last transition.", + "description": "(brief) reason for the condition's last transition.", "type": "string" }, "status": { - "description": "status is the status of the condition (True, False, Unknown)", + "description": "Status of the condition, one of True, False, Unknown.", "type": "string" }, "type": { - "description": "type describes the current condition", + "description": "Type of job condition, Complete or Failed.", "type": "string" } }, @@ -3082,17 +3420,17 @@ ], "type": "object" }, - "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList": { - "description": "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.", + "io.k8s.api.batch.v1.JobList": { + "description": "JobList is a collection of jobs.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "items is the list of horizontal pod autoscaler objects.", + "description": "items is the list of Jobs.", "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.batch.v1.Job" }, "type": "array" }, @@ -3102,7 +3440,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "metadata is the standard list metadata." + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -3111,336 +3449,433 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "autoscaling", - "kind": "HorizontalPodAutoscalerList", - "version": "v2beta2" + "group": "batch", + "kind": "JobList", + "version": "v1" } ] }, - "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec": { - "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", + "io.k8s.api.batch.v1.JobSpec": { + "description": "JobSpec describes how the job execution will look like.", "properties": { - "behavior": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerBehavior", - "description": "behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used." + "activeDeadlineSeconds": { + "description": "Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.", + "format": "int64", + "type": "integer" }, - "maxReplicas": { - "description": "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.", + "backoffLimit": { + "description": "Specifies the number of retries before marking this job failed. Defaults to 6", "format": "int32", "type": "integer" }, - "metrics": { - "description": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricSpec" - }, - "type": "array" + "completionMode": { + "description": "CompletionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\n\n`NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.\n\n`Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.\n\nMore completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.", + "type": "string" }, - "minReplicas": { - "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", + "completions": { + "description": "Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", "format": "int32", "type": "integer" }, - "scaleTargetRef": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference", - "description": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count." + "manualSelector": { + "description": "manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector", + "type": "boolean" + }, + "parallelism": { + "description": "Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + "format": "int32", + "type": "integer" + }, + "podFailurePolicy": { + "$ref": "#/definitions/io.k8s.api.batch.v1.PodFailurePolicy", + "description": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.\n\nThis field is alpha-level. To use this field, you must enable the `JobPodFailurePolicy` feature gate (disabled by default)." + }, + "selector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "suspend": { + "description": "Suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.", + "type": "boolean" + }, + "template": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/" + }, + "ttlSecondsAfterFinished": { + "description": "ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.", + "format": "int32", + "type": "integer" } }, "required": [ - "scaleTargetRef", - "maxReplicas" + "template" ], "type": "object" }, - "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerStatus": { - "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", + "io.k8s.api.batch.v1.JobStatus": { + "description": "JobStatus represents the current state of a Job.", "properties": { - "conditions": { - "description": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerCondition" - }, - "type": "array" + "active": { + "description": "The number of pending and running pods.", + "format": "int32", + "type": "integer" }, - "currentMetrics": { - "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", + "completedIndexes": { + "description": "CompletedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\".", + "type": "string" + }, + "completionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is only set when the job finishes successfully." + }, + "conditions": { + "description": "The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricStatus" + "$ref": "#/definitions/io.k8s.api.batch.v1.JobCondition" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" }, - "currentReplicas": { - "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", + "failed": { + "description": "The number of pods which reached phase Failed.", "format": "int32", "type": "integer" }, - "desiredReplicas": { - "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", + "ready": { + "description": "The number of pods which have a Ready condition.\n\nThis field is beta-level. The job controller populates the field when the feature gate JobReadyPods is enabled (enabled by default).", "format": "int32", "type": "integer" }, - "lastScaleTime": { + "startTime": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed." + "description": "Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC." }, - "observedGeneration": { - "description": "observedGeneration is the most recent generation observed by this autoscaler.", - "format": "int64", + "succeeded": { + "description": "The number of pods which reached phase Succeeded.", + "format": "int32", "type": "integer" + }, + "uncountedTerminatedPods": { + "$ref": "#/definitions/io.k8s.api.batch.v1.UncountedTerminatedPods", + "description": "UncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status: (1) Add the pod UID to the arrays in this field. (2) Remove the pod finalizer. (3) Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nOld jobs might not be tracked using this field, in which case the field remains null." } }, - "required": [ - "currentReplicas", - "desiredReplicas" - ], "type": "object" }, - "io.k8s.api.autoscaling.v2beta2.MetricIdentifier": { - "description": "MetricIdentifier defines the name and optionally selector for a metric", + "io.k8s.api.batch.v1.JobTemplateSpec": { + "description": "JobTemplateSpec describes the data a Job should have when created from a template", "properties": { - "name": { - "description": "name is the name of the given metric", - "type": "string" + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "selector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." + "spec": { + "$ref": "#/definitions/io.k8s.api.batch.v1.JobSpec", + "description": "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "required": [ - "name" - ], "type": "object" }, - "io.k8s.api.autoscaling.v2beta2.MetricSpec": { - "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", + "io.k8s.api.batch.v1.PodFailurePolicy": { + "description": "PodFailurePolicy describes how failed pods influence the backoffLimit.", "properties": { - "containerResource": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricSource", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag." - }, - "external": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ExternalMetricSource", - "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." - }, - "object": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ObjectMetricSource", - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." - }, - "pods": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.PodsMetricSource", - "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." - }, - "resource": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ResourceMetricSource", - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." - }, - "type": { - "description": "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", - "type": "string" + "rules": { + "description": "A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.", + "items": { + "$ref": "#/definitions/io.k8s.api.batch.v1.PodFailurePolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "required": [ - "type" + "rules" ], "type": "object" }, - "io.k8s.api.autoscaling.v2beta2.MetricStatus": { - "description": "MetricStatus describes the last-read state of a single metric.", + "io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement": { + "description": "PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.", "properties": { - "containerResource": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricStatus", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." - }, - "external": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ExternalMetricStatus", - "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." - }, - "object": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ObjectMetricStatus", - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." - }, - "pods": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.PodsMetricStatus", - "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." - }, - "resource": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ResourceMetricStatus", - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + "containerName": { + "description": "Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.", + "type": "string" }, - "type": { - "description": "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", + "operator": { + "description": "Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: - In: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is in the set of specified values.\n- NotIn: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is not in the set of specified values.\nAdditional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.\n\n", "type": "string" + }, + "values": { + "description": "Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array", + "x-kubernetes-list-type": "set" } }, "required": [ - "type" + "operator", + "values" ], "type": "object" }, - "io.k8s.api.autoscaling.v2beta2.MetricTarget": { - "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric", + "io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern": { + "description": "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.", "properties": { - "averageUtilization": { - "description": "averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type", - "format": "int32", - "type": "integer" - }, - "averageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)" + "status": { + "description": "Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.", + "type": "string" }, "type": { - "description": "type represents whether the metric type is Utilization, Value, or AverageValue", + "description": "Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.", "type": "string" - }, - "value": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "value is the target value of the metric (as a quantity)." } }, "required": [ - "type" + "type", + "status" ], "type": "object" }, - "io.k8s.api.autoscaling.v2beta2.MetricValueStatus": { - "description": "MetricValueStatus holds the current value for a metric", + "io.k8s.api.batch.v1.PodFailurePolicyRule": { + "description": "PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of OnExitCodes and onPodConditions, but not both, can be used in each rule.", "properties": { - "averageUtilization": { - "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", - "format": "int32", - "type": "integer" + "action": { + "description": "Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all\n running pods are terminated.\n- Ignore: indicates that the counter towards the .backoffLimit is not\n incremented and a replacement pod is created.\n- Count: indicates that the pod is handled in the default way - the\n counter towards the .backoffLimit is incremented.\nAdditional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.\n\n", + "type": "string" }, - "averageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)" + "onExitCodes": { + "$ref": "#/definitions/io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement", + "description": "Represents the requirement on the container exit codes." }, - "value": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "value is the current value of the metric (as a quantity)." + "onPodConditions": { + "description": "Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.", + "items": { + "$ref": "#/definitions/io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, + "required": [ + "action", + "onPodConditions" + ], "type": "object" }, - "io.k8s.api.autoscaling.v2beta2.ObjectMetricSource": { - "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "io.k8s.api.batch.v1.UncountedTerminatedPods": { + "description": "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.", "properties": { - "describedObject": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference" - }, - "metric": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" + "failed": { + "description": "Failed holds UIDs of failed Pods.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" }, - "target": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" + "succeeded": { + "description": "Succeeded holds UIDs of succeeded Pods.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" } }, - "required": [ - "describedObject", - "target", - "metric" - ], "type": "object" }, - "io.k8s.api.autoscaling.v2beta2.ObjectMetricStatus": { - "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "io.k8s.api.certificates.v1.CertificateSigningRequest": { + "description": "CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued.\n\nKubelets use this API to obtain:\n 1. client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client-kubelet\" signerName).\n 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the \"kubernetes.io/kubelet-serving\" signerName).\n\nThis API can be used to request client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client\" signerName), or to obtain certificates from custom non-Kubernetes signers.", "properties": { - "current": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" }, - "describedObject": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference" + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" }, - "metric": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequestSpec", + "description": "spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequestStatus", + "description": "status contains information about whether the request is approved or denied, and the certificate issued by the signer, or the failure condition indicating signer failure." } }, "required": [ - "metric", - "current", - "describedObject" + "spec" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + ] }, - "io.k8s.api.autoscaling.v2beta2.PodsMetricSource": { - "description": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", + "io.k8s.api.certificates.v1.CertificateSigningRequestCondition": { + "description": "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object", "properties": { - "metric": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time." }, - "target": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" + "lastUpdateTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastUpdateTime is the time of the last update to this condition" + }, + "message": { + "description": "message contains a human readable message with details about the request state", + "type": "string" + }, + "reason": { + "description": "reason indicates a brief reason for the request state", + "type": "string" + }, + "status": { + "description": "status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\".", + "type": "string" + }, + "type": { + "description": "type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\".\n\nAn \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer.\n\nA \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer.\n\nA \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate.\n\nApproved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added.\n\nOnly one condition of a given type is allowed.", + "type": "string" } }, "required": [ - "metric", - "target" + "type", + "status" ], "type": "object" }, - "io.k8s.api.autoscaling.v2beta2.PodsMetricStatus": { - "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", + "io.k8s.api.certificates.v1.CertificateSigningRequestList": { + "description": "CertificateSigningRequestList is a collection of CertificateSigningRequest objects", "properties": { - "current": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" }, - "metric": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" + "items": { + "description": "items is a collection of CertificateSigningRequest objects", + "items": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" } }, "required": [ - "metric", - "current" + "items" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequestList", + "version": "v1" + } + ] }, - "io.k8s.api.autoscaling.v2beta2.ResourceMetricSource": { - "description": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", + "io.k8s.api.certificates.v1.CertificateSigningRequestSpec": { + "description": "CertificateSigningRequestSpec contains the certificate request.", "properties": { - "name": { - "description": "name is the name of the resource in question.", + "expirationSeconds": { + "description": "expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration.\n\nThe v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager.\n\nCertificate signers may not honor this field for various reasons:\n\n 1. Old signer that is unaware of the field (such as the in-tree\n implementations prior to v1.22)\n 2. Signer whose configured maximum is shorter than the requested duration\n 3. Signer whose configured minimum is longer than the requested duration\n\nThe minimum valid value for expirationSeconds is 600, i.e. 10 minutes.", + "format": "int32", + "type": "integer" + }, + "extra": { + "additionalProperties": { + "items": { + "type": "string" + }, + "type": "array" + }, + "description": "extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": "object" + }, + "groups": { + "description": "groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "request": { + "description": "request contains an x509 certificate signing request encoded in a \"CERTIFICATE REQUEST\" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded.", + "format": "byte", + "type": "string", + "x-kubernetes-list-type": "atomic" + }, + "signerName": { + "description": "signerName indicates the requested signer, and is a qualified name.\n\nList/watch requests for CertificateSigningRequests can filter on this field using a \"spec.signerName=NAME\" fieldSelector.\n\nWell-known Kubernetes signers are:\n 1. \"kubernetes.io/kube-apiserver-client\": issues client certificates that can be used to authenticate to kube-apiserver.\n Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 2. \"kubernetes.io/kube-apiserver-client-kubelet\": issues client certificates that kubelets use to authenticate to kube-apiserver.\n Requests for this signer can be auto-approved by the \"csrapproving\" controller in kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 3. \"kubernetes.io/kubelet-serving\" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely.\n Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n\nMore details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers\n\nCustom signerNames can also be specified. The signer defines:\n 1. Trust distribution: how trust (CA bundles) are distributed.\n 2. Permitted subjects: and behavior when a disallowed subject is requested.\n 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested.\n 4. Required, permitted, or forbidden key usages / extended key usages.\n 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin.\n 6. Whether or not requests for CA certificates are allowed.", "type": "string" }, - "target": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" + "uid": { + "description": "uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": "string" + }, + "usages": { + "description": "usages specifies a set of key usages requested in the issued certificate.\n\nRequests for TLS client certificates typically request: \"digital signature\", \"key encipherment\", \"client auth\".\n\nRequests for TLS serving certificates typically request: \"key encipherment\", \"digital signature\", \"server auth\".\n\nValid values are:\n \"signing\", \"digital signature\", \"content commitment\",\n \"key encipherment\", \"key agreement\", \"data encipherment\",\n \"cert sign\", \"crl sign\", \"encipher only\", \"decipher only\", \"any\",\n \"server auth\", \"client auth\",\n \"code signing\", \"email protection\", \"s/mime\",\n \"ipsec end system\", \"ipsec tunnel\", \"ipsec user\",\n \"timestamping\", \"ocsp signing\", \"microsoft sgc\", \"netscape sgc\"", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "username": { + "description": "username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": "string" } }, "required": [ - "name", - "target" + "request", + "signerName" ], "type": "object" }, - "io.k8s.api.autoscaling.v2beta2.ResourceMetricStatus": { - "description": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", + "io.k8s.api.certificates.v1.CertificateSigningRequestStatus": { + "description": "CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.", "properties": { - "current": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" + "certificate": { + "description": "certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable.\n\nIf the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty.\n\nValidation requirements:\n 1. certificate must contain one or more PEM blocks.\n 2. All PEM blocks must have the \"CERTIFICATE\" label, contain no headers, and the encoded data\n must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280.\n 3. Non-PEM content may appear before or after the \"CERTIFICATE\" PEM blocks and is unvalidated,\n to allow for explanatory text as described in section 5.2 of RFC7468.\n\nIf more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes.\n\nThe certificate is encoded in PEM format.\n\nWhen serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of:\n\n base64(\n -----BEGIN CERTIFICATE-----\n ...\n -----END CERTIFICATE-----\n )", + "format": "byte", + "type": "string", + "x-kubernetes-list-type": "atomic" }, - "name": { - "description": "Name is the name of the resource in question.", - "type": "string" + "conditions": { + "description": "conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\".", + "items": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequestCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" } }, - "required": [ - "name", - "current" - ], "type": "object" }, - "io.k8s.api.batch.v1.CronJob": { - "description": "CronJob represents the configuration of a single cron job.", + "io.k8s.api.coordination.v1.Lease": { + "description": "Lease defines a lease concept.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", @@ -3452,37 +3887,33 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJobSpec", - "description": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJobStatus", - "description": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/io.k8s.api.coordination.v1.LeaseSpec", + "description": "Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "batch", - "kind": "CronJob", + "group": "coordination.k8s.io", + "kind": "Lease", "version": "v1" } ] }, - "io.k8s.api.batch.v1.CronJobList": { - "description": "CronJobList is a collection of cron jobs.", + "io.k8s.api.coordination.v1.LeaseList": { + "description": "LeaseList is a list of Lease objects.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "items is the list of CronJobs.", + "description": "Items is a list of schema objects.", "items": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" }, "type": "array" }, @@ -3501,475 +3932,485 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "batch", - "kind": "CronJobList", + "group": "coordination.k8s.io", + "kind": "LeaseList", "version": "v1" } ] }, - "io.k8s.api.batch.v1.CronJobSpec": { - "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", + "io.k8s.api.coordination.v1.LeaseSpec": { + "description": "LeaseSpec is a specification of a Lease.", "properties": { - "concurrencyPolicy": { - "description": "Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one\n\n", + "acquireTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "acquireTime is a time when the current lease was acquired." + }, + "holderIdentity": { + "description": "holderIdentity contains the identity of the holder of a current lease.", "type": "string" }, - "failedJobsHistoryLimit": { - "description": "The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.", + "leaseDurationSeconds": { + "description": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime.", "format": "int32", "type": "integer" }, - "jobTemplate": { - "$ref": "#/definitions/io.k8s.api.batch.v1.JobTemplateSpec", - "description": "Specifies the job that will be created when executing a CronJob." + "leaseTransitions": { + "description": "leaseTransitions is the number of transitions of a lease between holders.", + "format": "int32", + "type": "integer" }, - "schedule": { - "description": "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", + "renewTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "renewTime is a time when the current holder of a lease has last updated the lease." + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource": { + "description": "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", "type": "string" }, - "startingDeadlineSeconds": { - "description": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", - "format": "int64", - "type": "integer" - }, - "successfulJobsHistoryLimit": { - "description": "The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.", + "partition": { + "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", "format": "int32", "type": "integer" }, - "suspend": { - "description": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", + "readOnly": { + "description": "readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", "type": "boolean" }, - "timeZone": { - "description": "The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones This is beta field and must be enabled via the `CronJobTimeZone` feature gate.", + "volumeID": { + "description": "volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", "type": "string" } }, "required": [ - "schedule", - "jobTemplate" + "volumeID" ], "type": "object" }, - "io.k8s.api.batch.v1.CronJobStatus": { - "description": "CronJobStatus represents the current state of a cron job.", + "io.k8s.api.core.v1.Affinity": { + "description": "Affinity is a group of affinity scheduling rules.", "properties": { - "active": { - "description": "A list of pointers to currently running jobs.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "nodeAffinity": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeAffinity", + "description": "Describes node affinity scheduling rules for the pod." }, - "lastScheduleTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Information when was the last time the job was successfully scheduled." + "podAffinity": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinity", + "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s))." }, - "lastSuccessfulTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Information when was the last time the job successfully completed." + "podAntiAffinity": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodAntiAffinity", + "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s))." } }, "type": "object" }, - "io.k8s.api.batch.v1.Job": { - "description": "Job represents the configuration of a single job.", + "io.k8s.api.core.v1.AttachedVolume": { + "description": "AttachedVolume describes a volume attached to a node", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "devicePath": { + "description": "DevicePath represents the device path where the volume should be available", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "name": { + "description": "Name of the attached volume", + "type": "string" + } + }, + "required": [ + "name", + "devicePath" + ], + "type": "object" + }, + "io.k8s.api.core.v1.AzureDiskVolumeSource": { + "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + "properties": { + "cachingMode": { + "description": "cachingMode is the Host Caching mode: None, Read Only, Read Write.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "diskName": { + "description": "diskName is the Name of the data disk in the blob storage", + "type": "string" }, - "spec": { - "$ref": "#/definitions/io.k8s.api.batch.v1.JobSpec", - "description": "Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "diskURI": { + "description": "diskURI is the URI of data disk in the blob storage", + "type": "string" }, - "status": { - "$ref": "#/definitions/io.k8s.api.batch.v1.JobStatus", - "description": "Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "fsType": { + "description": "fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "kind": { + "description": "kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared", + "type": "string" + }, + "readOnly": { + "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" } }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "Job", - "version": "v1" - } - ] + "required": [ + "diskName", + "diskURI" + ], + "type": "object" }, - "io.k8s.api.batch.v1.JobCondition": { - "description": "JobCondition describes current state of a job.", + "io.k8s.api.core.v1.AzureFilePersistentVolumeSource": { + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", "properties": { - "lastProbeTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Last time the condition was checked." + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" }, - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Last time the condition transit from one status to another." + "secretName": { + "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", + "type": "string" }, - "message": { - "description": "Human readable message indicating details about last transition.", + "secretNamespace": { + "description": "secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod", "type": "string" }, - "reason": { - "description": "(brief) reason for the condition's last transition.", + "shareName": { + "description": "shareName is the azure Share Name", "type": "string" + } + }, + "required": [ + "secretName", + "shareName" + ], + "type": "object" + }, + "io.k8s.api.core.v1.AzureFileVolumeSource": { + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "properties": { + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", + "secretName": { + "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", "type": "string" }, - "type": { - "description": "Type of job condition, Complete or Failed.", + "shareName": { + "description": "shareName is the azure share Name", "type": "string" } }, "required": [ - "type", - "status" + "secretName", + "shareName" ], "type": "object" }, - "io.k8s.api.batch.v1.JobList": { - "description": "JobList is a collection of jobs.", + "io.k8s.api.core.v1.Binding": { + "description": "Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "items": { - "description": "items is the list of Jobs.", - "items": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - }, - "type": "array" - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "target": { + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", + "description": "The target object that you want to bind to the standard object." } }, "required": [ - "items" + "target" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "batch", - "kind": "JobList", + "group": "", + "kind": "Binding", "version": "v1" } ] }, - "io.k8s.api.batch.v1.JobSpec": { - "description": "JobSpec describes how the job execution will look like.", + "io.k8s.api.core.v1.CSIPersistentVolumeSource": { + "description": "Represents storage that is managed by an external CSI volume driver (Beta feature)", "properties": { - "activeDeadlineSeconds": { - "description": "Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.", - "format": "int64", - "type": "integer" + "controllerExpandSecretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an beta field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." }, - "backoffLimit": { - "description": "Specifies the number of retries before marking this job failed. Defaults to 6", - "format": "int32", - "type": "integer" + "controllerPublishSecretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." }, - "completionMode": { - "description": "CompletionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\n\n`NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.\n\n`Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.\n\nMore completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.", + "driver": { + "description": "driver is the name of the driver to use for this volume. Required.", "type": "string" }, - "completions": { - "description": "Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", - "format": "int32", - "type": "integer" - }, - "manualSelector": { - "description": "manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector", - "type": "boolean" + "fsType": { + "description": "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", + "type": "string" }, - "parallelism": { - "description": "Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", - "format": "int32", - "type": "integer" + "nodeExpandSecretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This is an alpha field and requires enabling CSINodeExpandSecret feature gate. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed." }, - "podFailurePolicy": { - "$ref": "#/definitions/io.k8s.api.batch.v1.PodFailurePolicy", - "description": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.\n\nThis field is alpha-level. To use this field, you must enable the `JobPodFailurePolicy` feature gate (disabled by default)." + "nodePublishSecretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." }, - "selector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + "nodeStageSecretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." }, - "suspend": { - "description": "Suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.", + "readOnly": { + "description": "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", "type": "boolean" }, - "template": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec", - "description": "Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/" + "volumeAttributes": { + "additionalProperties": { + "type": "string" + }, + "description": "volumeAttributes of the volume to publish.", + "type": "object" }, - "ttlSecondsAfterFinished": { - "description": "ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.", - "format": "int32", - "type": "integer" - } - }, + "volumeHandle": { + "description": "volumeHandle is the unique volume name returned by the CSI volume plugin\u2019s CreateVolume to refer to the volume on all subsequent calls. Required.", + "type": "string" + } + }, "required": [ - "template" + "driver", + "volumeHandle" ], "type": "object" }, - "io.k8s.api.batch.v1.JobStatus": { - "description": "JobStatus represents the current state of a Job.", + "io.k8s.api.core.v1.CSIVolumeSource": { + "description": "Represents a source location of a volume to mount, managed by an external CSI driver", "properties": { - "active": { - "description": "The number of pending and running pods.", - "format": "int32", - "type": "integer" - }, - "completedIndexes": { - "description": "CompletedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\".", + "driver": { + "description": "driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", "type": "string" }, - "completionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is only set when the job finishes successfully." - }, - "conditions": { - "description": "The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", - "items": { - "$ref": "#/definitions/io.k8s.api.batch.v1.JobCondition" - }, - "type": "array", - "x-kubernetes-list-type": "atomic", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "failed": { - "description": "The number of pods which reached phase Failed.", - "format": "int32", - "type": "integer" - }, - "ready": { - "description": "The number of pods which have a Ready condition.\n\nThis field is beta-level. The job controller populates the field when the feature gate JobReadyPods is enabled (enabled by default).", - "format": "int32", - "type": "integer" + "fsType": { + "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.", + "type": "string" }, - "startTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC." + "nodePublishSecretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", + "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed." }, - "succeeded": { - "description": "The number of pods which reached phase Succeeded.", - "format": "int32", - "type": "integer" + "readOnly": { + "description": "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).", + "type": "boolean" }, - "uncountedTerminatedPods": { - "$ref": "#/definitions/io.k8s.api.batch.v1.UncountedTerminatedPods", - "description": "UncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status: (1) Add the pod UID to the arrays in this field. (2) Remove the pod finalizer. (3) Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nThis field is beta-level. The job controller only makes use of this field when the feature gate JobTrackingWithFinalizers is enabled (enabled by default). Old jobs might not be tracked using this field, in which case the field remains null." + "volumeAttributes": { + "additionalProperties": { + "type": "string" + }, + "description": "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", + "type": "object" } }, + "required": [ + "driver" + ], "type": "object" }, - "io.k8s.api.batch.v1.JobTemplateSpec": { - "description": "JobTemplateSpec describes the data a Job should have when created from a template", + "io.k8s.api.core.v1.Capabilities": { + "description": "Adds and removes POSIX capabilities from running containers.", "properties": { - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "add": { + "description": "Added capabilities", + "items": { + "type": "string" + }, + "type": "array" }, - "spec": { - "$ref": "#/definitions/io.k8s.api.batch.v1.JobSpec", - "description": "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "drop": { + "description": "Removed capabilities", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" }, - "io.k8s.api.batch.v1.PodFailurePolicy": { - "description": "PodFailurePolicy describes how failed pods influence the backoffLimit.", + "io.k8s.api.core.v1.CephFSPersistentVolumeSource": { + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", "properties": { - "rules": { - "description": "A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.", + "monitors": { + "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", "items": { - "$ref": "#/definitions/io.k8s.api.batch.v1.PodFailurePolicyRule" + "type": "string" }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "type": "array" + }, + "path": { + "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", + "type": "string" + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "boolean" + }, + "secretFile": { + "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "string" + }, + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" + }, + "user": { + "description": "user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "string" } }, "required": [ - "rules" + "monitors" ], "type": "object" }, - "io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement": { - "description": "PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.", + "io.k8s.api.core.v1.CephFSVolumeSource": { + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", "properties": { - "containerName": { - "description": "Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.", + "monitors": { + "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "items": { + "type": "string" + }, + "type": "array" + }, + "path": { + "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", "type": "string" }, - "operator": { - "description": "Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: - In: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is in the set of specified values.\n- NotIn: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is not in the set of specified values.\nAdditional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.\n\n", + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "boolean" + }, + "secretFile": { + "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", "type": "string" }, - "values": { - "description": "Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.", - "items": { - "format": "int32", - "type": "integer" - }, - "type": "array", - "x-kubernetes-list-type": "set" + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" + }, + "user": { + "description": "user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "string" } }, "required": [ - "operator", - "values" + "monitors" ], "type": "object" }, - "io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern": { - "description": "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.", + "io.k8s.api.core.v1.CinderPersistentVolumeSource": { + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", "properties": { - "status": { - "description": "Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.", + "fsType": { + "description": "fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", "type": "string" }, - "type": { - "description": "Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.", + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack." + }, + "volumeID": { + "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", "type": "string" } }, "required": [ - "type", - "status" + "volumeID" ], "type": "object" }, - "io.k8s.api.batch.v1.PodFailurePolicyRule": { - "description": "PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of OnExitCodes and onPodConditions, but not both, can be used in each rule.", + "io.k8s.api.core.v1.CinderVolumeSource": { + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", "properties": { - "action": { - "description": "Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all\n running pods are terminated.\n- Ignore: indicates that the counter towards the .backoffLimit is not\n incremented and a replacement pod is created.\n- Count: indicates that the pod is handled in the default way - the\n counter towards the .backoffLimit is incremented.\nAdditional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.\n\n", + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", "type": "string" }, - "onExitCodes": { - "$ref": "#/definitions/io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement", - "description": "Represents the requirement on the container exit codes." + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "boolean" }, - "onPodConditions": { - "description": "Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.", - "items": { - "$ref": "#/definitions/io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack." + }, + "volumeID": { + "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "string" } }, "required": [ - "action", - "onPodConditions" + "volumeID" ], "type": "object" }, - "io.k8s.api.batch.v1.UncountedTerminatedPods": { - "description": "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.", + "io.k8s.api.core.v1.ClaimSource": { + "description": "ClaimSource describes a reference to a ResourceClaim.\n\nExactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value.", "properties": { - "failed": { - "description": "Failed holds UIDs of failed Pods.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" + "resourceClaimName": { + "description": "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.", + "type": "string" }, - "succeeded": { - "description": "Succeeded holds UIDs of succeeded Pods.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" + "resourceClaimTemplateName": { + "description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The name of the ResourceClaim will be -, where is the PodResourceClaim.Name. Pod validation will reject the pod if the concatenated name is not valid for a ResourceClaim (e.g. too long).\n\nAn existing ResourceClaim with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated resource by mistake. Scheduling and pod startup are then blocked until the unrelated ResourceClaim is removed.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.", + "type": "string" } }, "type": "object" }, - "io.k8s.api.certificates.v1.CertificateSigningRequest": { - "description": "CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued.\n\nKubelets use this API to obtain:\n 1. client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client-kubelet\" signerName).\n 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the \"kubernetes.io/kubelet-serving\" signerName).\n\nThis API can be used to request client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client\" signerName), or to obtain certificates from custom non-Kubernetes signers.", + "io.k8s.api.core.v1.ClientIPConfig": { + "description": "ClientIPConfig represents the configurations of Client IP based session affinity.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequestSpec", - "description": "spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users." - }, - "status": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequestStatus", - "description": "status contains information about whether the request is approved or denied, and the certificate issued by the signer, or the failure condition indicating signer failure." + "timeoutSeconds": { + "description": "timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).", + "format": "int32", + "type": "integer" } }, - "required": [ - "spec" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - ] + "type": "object" }, - "io.k8s.api.certificates.v1.CertificateSigningRequestCondition": { - "description": "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object", + "io.k8s.api.core.v1.ComponentCondition": { + "description": "Information about the condition of a component.", "properties": { - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time." - }, - "lastUpdateTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "lastUpdateTime is the time of the last update to this condition" - }, - "message": { - "description": "message contains a human readable message with details about the request state", + "error": { + "description": "Condition error code for a component. For example, a health check error code.", "type": "string" }, - "reason": { - "description": "reason indicates a brief reason for the request state", + "message": { + "description": "Message about the condition for a component. For example, information about a health check.", "type": "string" }, "status": { - "description": "status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\".", + "description": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", "type": "string" }, "type": { - "description": "type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\".\n\nAn \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer.\n\nA \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer.\n\nA \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate.\n\nApproved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added.\n\nOnly one condition of a given type is allowed.", + "description": "Type of condition for a component. Valid value: \"Healthy\"", "type": "string" } }, @@ -3979,17 +4420,51 @@ ], "type": "object" }, - "io.k8s.api.certificates.v1.CertificateSigningRequestList": { - "description": "CertificateSigningRequestList is a collection of CertificateSigningRequest objects", + "io.k8s.api.core.v1.ComponentStatus": { + "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "conditions": { + "description": "List of component conditions observed", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ComponentCondition" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ComponentStatus", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ComponentStatusList": { + "description": "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "items is a collection of CertificateSigningRequest objects", + "description": "List of ComponentStatus objects.", "items": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + "$ref": "#/definitions/io.k8s.api.core.v1.ComponentStatus" }, "type": "array" }, @@ -3998,7 +4473,8 @@ "type": "string" }, "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -4007,134 +4483,103 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequestList", + "group": "", + "kind": "ComponentStatusList", "version": "v1" } ] }, - "io.k8s.api.certificates.v1.CertificateSigningRequestSpec": { - "description": "CertificateSigningRequestSpec contains the certificate request.", + "io.k8s.api.core.v1.ConfigMap": { + "description": "ConfigMap holds configuration data for pods to consume.", "properties": { - "expirationSeconds": { - "description": "expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration.\n\nThe v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager.\n\nCertificate signers may not honor this field for various reasons:\n\n 1. Old signer that is unaware of the field (such as the in-tree\n implementations prior to v1.22)\n 2. Signer whose configured maximum is shorter than the requested duration\n 3. Signer whose configured minimum is longer than the requested duration\n\nThe minimum valid value for expirationSeconds is 600, i.e. 10 minutes.", - "format": "int32", - "type": "integer" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" }, - "extra": { + "binaryData": { "additionalProperties": { - "items": { - "type": "string" - }, - "type": "array" + "format": "byte", + "type": "string" }, - "description": "extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "description": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.", "type": "object" }, - "groups": { - "description": "groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", - "items": { + "data": { + "additionalProperties": { "type": "string" }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "request": { - "description": "request contains an x509 certificate signing request encoded in a \"CERTIFICATE REQUEST\" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded.", - "format": "byte", - "type": "string", - "x-kubernetes-list-type": "atomic" + "description": "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.", + "type": "object" }, - "signerName": { - "description": "signerName indicates the requested signer, and is a qualified name.\n\nList/watch requests for CertificateSigningRequests can filter on this field using a \"spec.signerName=NAME\" fieldSelector.\n\nWell-known Kubernetes signers are:\n 1. \"kubernetes.io/kube-apiserver-client\": issues client certificates that can be used to authenticate to kube-apiserver.\n Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 2. \"kubernetes.io/kube-apiserver-client-kubelet\": issues client certificates that kubelets use to authenticate to kube-apiserver.\n Requests for this signer can be auto-approved by the \"csrapproving\" controller in kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 3. \"kubernetes.io/kubelet-serving\" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely.\n Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n\nMore details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers\n\nCustom signerNames can also be specified. The signer defines:\n 1. Trust distribution: how trust (CA bundles) are distributed.\n 2. Permitted subjects: and behavior when a disallowed subject is requested.\n 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested.\n 4. Required, permitted, or forbidden key usages / extended key usages.\n 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin.\n 6. Whether or not requests for CA certificates are allowed.", - "type": "string" + "immutable": { + "description": "Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.", + "type": "boolean" }, - "uid": { - "description": "uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, - "usages": { - "description": "usages specifies a set of key usages requested in the issued certificate.\n\nRequests for TLS client certificates typically request: \"digital signature\", \"key encipherment\", \"client auth\".\n\nRequests for TLS serving certificates typically request: \"key encipherment\", \"digital signature\", \"server auth\".\n\nValid values are:\n \"signing\", \"digital signature\", \"content commitment\",\n \"key encipherment\", \"key agreement\", \"data encipherment\",\n \"cert sign\", \"crl sign\", \"encipher only\", \"decipher only\", \"any\",\n \"server auth\", \"client auth\",\n \"code signing\", \"email protection\", \"s/mime\",\n \"ipsec end system\", \"ipsec tunnel\", \"ipsec user\",\n \"timestamping\", \"ocsp signing\", \"microsoft sgc\", \"netscape sgc\"", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "username": { - "description": "username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", - "type": "string" + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, - "required": [ - "request", - "signerName" - ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ConfigMap", + "version": "v1" + } + ] }, - "io.k8s.api.certificates.v1.CertificateSigningRequestStatus": { - "description": "CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.", + "io.k8s.api.core.v1.ConfigMapEnvSource": { + "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", "properties": { - "certificate": { - "description": "certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable.\n\nIf the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty.\n\nValidation requirements:\n 1. certificate must contain one or more PEM blocks.\n 2. All PEM blocks must have the \"CERTIFICATE\" label, contain no headers, and the encoded data\n must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280.\n 3. Non-PEM content may appear before or after the \"CERTIFICATE\" PEM blocks and is unvalidated,\n to allow for explanatory text as described in section 5.2 of RFC7468.\n\nIf more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes.\n\nThe certificate is encoded in PEM format.\n\nWhen serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of:\n\n base64(\n -----BEGIN CERTIFICATE-----\n ...\n -----END CERTIFICATE-----\n )", - "format": "byte", - "type": "string", - "x-kubernetes-list-type": "atomic" + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" }, - "conditions": { - "description": "conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\".", - "items": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequestCondition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" + "optional": { + "description": "Specify whether the ConfigMap must be defined", + "type": "boolean" } }, "type": "object" }, - "io.k8s.api.coordination.v1.Lease": { - "description": "Lease defines a lease concept.", + "io.k8s.api.core.v1.ConfigMapKeySelector": { + "description": "Selects a key from a ConfigMap.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "key": { + "description": "The key to select.", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", "type": "string" }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.LeaseSpec", - "description": "Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "optional": { + "description": "Specify whether the ConfigMap or its key must be defined", + "type": "boolean" } }, + "required": [ + "key" + ], "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - ] + "x-kubernetes-map-type": "atomic" }, - "io.k8s.api.coordination.v1.LeaseList": { - "description": "LeaseList is a list of Lease objects.", + "io.k8s.api.core.v1.ConfigMapList": { + "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "Items is a list of schema objects.", + "description": "Items is the list of ConfigMaps.", "items": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" }, "type": "array" }, @@ -4144,7 +4589,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -4153,575 +4598,573 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "coordination.k8s.io", - "kind": "LeaseList", + "group": "", + "kind": "ConfigMapList", "version": "v1" } ] }, - "io.k8s.api.coordination.v1.LeaseSpec": { - "description": "LeaseSpec is a specification of a Lease.", + "io.k8s.api.core.v1.ConfigMapNodeConfigSource": { + "description": "ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration", "properties": { - "acquireTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "acquireTime is a time when the current lease was acquired." + "kubeletConfigKey": { + "description": "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.", + "type": "string" }, - "holderIdentity": { - "description": "holderIdentity contains the identity of the holder of a current lease.", + "name": { + "description": "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.", "type": "string" }, - "leaseDurationSeconds": { - "description": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime.", - "format": "int32", - "type": "integer" - }, - "leaseTransitions": { - "description": "leaseTransitions is the number of transitions of a lease between holders.", - "format": "int32", - "type": "integer" - }, - "renewTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "renewTime is a time when the current holder of a lease has last updated the lease." - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource": { - "description": "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.", - "properties": { - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "namespace": { + "description": "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.", "type": "string" }, - "partition": { - "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", - "format": "int32", - "type": "integer" - }, - "readOnly": { - "description": "readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "type": "boolean" + "resourceVersion": { + "description": "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", + "type": "string" }, - "volumeID": { - "description": "volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "uid": { + "description": "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", "type": "string" } }, "required": [ - "volumeID" + "namespace", + "name", + "kubeletConfigKey" ], "type": "object" }, - "io.k8s.api.core.v1.Affinity": { - "description": "Affinity is a group of affinity scheduling rules.", + "io.k8s.api.core.v1.ConfigMapProjection": { + "description": "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.", "properties": { - "nodeAffinity": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeAffinity", - "description": "Describes node affinity scheduling rules for the pod." + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.KeyToPath" + }, + "type": "array" }, - "podAffinity": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinity", - "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s))." + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" }, - "podAntiAffinity": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodAntiAffinity", - "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s))." + "optional": { + "description": "optional specify whether the ConfigMap or its keys must be defined", + "type": "boolean" } }, "type": "object" }, - "io.k8s.api.core.v1.AttachedVolume": { - "description": "AttachedVolume describes a volume attached to a node", + "io.k8s.api.core.v1.ConfigMapVolumeSource": { + "description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", "properties": { - "devicePath": { - "description": "DevicePath represents the device path where the volume should be available", - "type": "string" + "defaultMode": { + "description": "defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.KeyToPath" + }, + "type": "array" }, "name": { - "description": "Name of the attached volume", + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", "type": "string" + }, + "optional": { + "description": "optional specify whether the ConfigMap or its keys must be defined", + "type": "boolean" } }, - "required": [ - "name", - "devicePath" - ], "type": "object" }, - "io.k8s.api.core.v1.AzureDiskVolumeSource": { - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + "io.k8s.api.core.v1.Container": { + "description": "A single application container that you want to run within a pod.", "properties": { - "cachingMode": { - "description": "cachingMode is the Host Caching mode: None, Read Only, Read Write.", + "args": { + "description": "Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": "string" + }, + "type": "array" + }, + "command": { + "description": "Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": "string" + }, + "type": "array" + }, + "env": { + "description": "List of environment variables to set in the container. Cannot be updated.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.EnvVar" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "envFrom": { + "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.EnvFromSource" + }, + "type": "array" + }, + "image": { + "description": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.", "type": "string" }, - "diskName": { - "description": "diskName is the Name of the data disk in the blob storage", + "imagePullPolicy": { + "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images\n\n", "type": "string" }, - "diskURI": { - "description": "diskURI is the URI of data disk in the blob storage", + "lifecycle": { + "$ref": "#/definitions/io.k8s.api.core.v1.Lifecycle", + "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated." + }, + "livenessProbe": { + "$ref": "#/definitions/io.k8s.api.core.v1.Probe", + "description": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "name": { + "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", "type": "string" }, - "fsType": { - "description": "fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "ports": { + "description": "List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerPort" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "containerPort", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "containerPort", + "x-kubernetes-patch-strategy": "merge" + }, + "readinessProbe": { + "$ref": "#/definitions/io.k8s.api.core.v1.Probe", + "description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "resources": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements", + "description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + }, + "securityContext": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecurityContext", + "description": "SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/" + }, + "startupProbe": { + "$ref": "#/definitions/io.k8s.api.core.v1.Probe", + "description": "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "stdin": { + "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", + "type": "boolean" + }, + "stdinOnce": { + "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", + "type": "boolean" + }, + "terminationMessagePath": { + "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", "type": "string" }, - "kind": { - "description": "kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared", + "terminationMessagePolicy": { + "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.\n\n", "type": "string" }, - "readOnly": { - "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "tty": { + "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", "type": "boolean" + }, + "volumeDevices": { + "description": "volumeDevices is the list of block devices to be used by the container.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.VolumeDevice" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "devicePath", + "x-kubernetes-patch-strategy": "merge" + }, + "volumeMounts": { + "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.VolumeMount" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + }, + "workingDir": { + "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", + "type": "string" } }, "required": [ - "diskName", - "diskURI" + "name" ], "type": "object" }, - "io.k8s.api.core.v1.AzureFilePersistentVolumeSource": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "io.k8s.api.core.v1.ContainerImage": { + "description": "Describe a container image", "properties": { - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" + "names": { + "description": "Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"]", + "items": { + "type": "string" + }, + "type": "array" }, - "secretName": { - "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", + "sizeBytes": { + "description": "The size of the image in bytes.", + "format": "int64", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ContainerPort": { + "description": "ContainerPort represents a network port in a single container.", + "properties": { + "containerPort": { + "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", + "format": "int32", + "type": "integer" + }, + "hostIP": { + "description": "What host IP to bind the external port to.", "type": "string" }, - "secretNamespace": { - "description": "secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod", + "hostPort": { + "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.", + "format": "int32", + "type": "integer" + }, + "name": { + "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.", "type": "string" }, - "shareName": { - "description": "shareName is the azure Share Name", + "protocol": { + "description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".\n\n", "type": "string" } }, "required": [ - "secretName", - "shareName" + "containerPort" ], "type": "object" }, - "io.k8s.api.core.v1.AzureFileVolumeSource": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "io.k8s.api.core.v1.ContainerState": { + "description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", "properties": { - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" + "running": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateRunning", + "description": "Details about a running container" }, - "secretName": { - "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", - "type": "string" + "terminated": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateTerminated", + "description": "Details about a terminated container" }, - "shareName": { - "description": "shareName is the azure share Name", - "type": "string" + "waiting": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateWaiting", + "description": "Details about a waiting container" } }, - "required": [ - "secretName", - "shareName" - ], "type": "object" }, - "io.k8s.api.core.v1.Binding": { - "description": "Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.", + "io.k8s.api.core.v1.ContainerStateRunning": { + "description": "ContainerStateRunning is a running state of a container.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "startedAt": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which the container was last (re-)started" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ContainerStateTerminated": { + "description": "ContainerStateTerminated is a terminated state of a container.", + "properties": { + "containerID": { + "description": "Container's ID in the format '://'", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "exitCode": { + "description": "Exit status from the last termination of the container", + "format": "int32", + "type": "integer" + }, + "finishedAt": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which the container last terminated" + }, + "message": { + "description": "Message regarding the last termination of the container", "type": "string" }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "reason": { + "description": "(brief) reason from the last termination of the container", + "type": "string" }, - "target": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", - "description": "The target object that you want to bind to the standard object." + "signal": { + "description": "Signal from the last termination of the container", + "format": "int32", + "type": "integer" + }, + "startedAt": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which previous execution of the container started" } }, "required": [ - "target" + "exitCode" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Binding", - "version": "v1" - } - ] + "type": "object" }, - "io.k8s.api.core.v1.CSIPersistentVolumeSource": { - "description": "Represents storage that is managed by an external CSI volume driver (Beta feature)", + "io.k8s.api.core.v1.ContainerStateWaiting": { + "description": "ContainerStateWaiting is a waiting state of a container.", "properties": { - "controllerExpandSecretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", - "description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an beta field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." - }, - "controllerPublishSecretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", - "description": "controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + "message": { + "description": "Message regarding why the container is not yet running.", + "type": "string" }, - "driver": { - "description": "driver is the name of the driver to use for this volume. Required.", + "reason": { + "description": "(brief) reason the container is not yet running.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.ContainerStatus": { + "description": "ContainerStatus contains details for the current status of this container.", + "properties": { + "containerID": { + "description": "Container's ID in the format '://'.", "type": "string" }, - "fsType": { - "description": "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", + "image": { + "description": "The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images.", "type": "string" }, - "nodeExpandSecretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", - "description": "nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This is an alpha field and requires enabling CSINodeExpandSecret feature gate. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed." + "imageID": { + "description": "ImageID of the container's image.", + "type": "string" }, - "nodePublishSecretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", - "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + "lastState": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerState", + "description": "Details about the container's last termination condition." }, - "nodeStageSecretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", - "description": "nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + "name": { + "description": "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.", + "type": "string" }, - "readOnly": { - "description": "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", + "ready": { + "description": "Specifies whether the container has passed its readiness probe.", "type": "boolean" }, - "volumeAttributes": { - "additionalProperties": { - "type": "string" - }, - "description": "volumeAttributes of the volume to publish.", - "type": "object" + "restartCount": { + "description": "The number of times the container has been restarted.", + "format": "int32", + "type": "integer" }, - "volumeHandle": { - "description": "volumeHandle is the unique volume name returned by the CSI volume plugin\u2019s CreateVolume to refer to the volume on all subsequent calls. Required.", - "type": "string" + "started": { + "description": "Specifies whether the container has passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. Is always true when no startupProbe is defined.", + "type": "boolean" + }, + "state": { + "$ref": "#/definitions/io.k8s.api.core.v1.ContainerState", + "description": "Details about the container's current condition." } }, "required": [ - "driver", - "volumeHandle" + "name", + "ready", + "restartCount", + "image", + "imageID" ], "type": "object" }, - "io.k8s.api.core.v1.CSIVolumeSource": { - "description": "Represents a source location of a volume to mount, managed by an external CSI driver", + "io.k8s.api.core.v1.DaemonEndpoint": { + "description": "DaemonEndpoint contains information about a single Daemon endpoint.", "properties": { - "driver": { - "description": "driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", - "type": "string" - }, - "fsType": { - "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.", - "type": "string" - }, - "nodePublishSecretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", - "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed." - }, - "readOnly": { - "description": "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).", - "type": "boolean" - }, - "volumeAttributes": { - "additionalProperties": { - "type": "string" - }, - "description": "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", - "type": "object" + "Port": { + "description": "Port number of the given endpoint.", + "format": "int32", + "type": "integer" } }, "required": [ - "driver" + "Port" ], "type": "object" }, - "io.k8s.api.core.v1.Capabilities": { - "description": "Adds and removes POSIX capabilities from running containers.", + "io.k8s.api.core.v1.DownwardAPIProjection": { + "description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.", "properties": { - "add": { - "description": "Added capabilities", - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "description": "Removed capabilities", + "items": { + "description": "Items is a list of DownwardAPIVolume file", "items": { - "type": "string" + "$ref": "#/definitions/io.k8s.api.core.v1.DownwardAPIVolumeFile" }, "type": "array" } }, "type": "object" }, - "io.k8s.api.core.v1.CephFSPersistentVolumeSource": { - "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "io.k8s.api.core.v1.DownwardAPIVolumeFile": { + "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", "properties": { - "monitors": { - "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "items": { - "type": "string" - }, - "type": "array" + "fieldRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectFieldSelector", + "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported." + }, + "mode": { + "description": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" }, "path": { - "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", + "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", "type": "string" }, - "readOnly": { - "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "boolean" - }, - "secretFile": { - "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", - "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" - }, - "user": { - "description": "user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" + "resourceFieldRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceFieldSelector", + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported." } }, "required": [ - "monitors" + "path" ], "type": "object" }, - "io.k8s.api.core.v1.CephFSVolumeSource": { - "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "io.k8s.api.core.v1.DownwardAPIVolumeSource": { + "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", "properties": { - "monitors": { - "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "defaultMode": { + "description": "Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "items": { + "description": "Items is a list of downward API volume file", "items": { - "type": "string" + "$ref": "#/definitions/io.k8s.api.core.v1.DownwardAPIVolumeFile" }, "type": "array" - }, - "path": { - "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", - "type": "string" - }, - "readOnly": { - "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "boolean" - }, - "secretFile": { - "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", - "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" - }, - "user": { - "description": "user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" } }, - "required": [ - "monitors" - ], "type": "object" }, - "io.k8s.api.core.v1.CinderPersistentVolumeSource": { - "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "io.k8s.api.core.v1.EmptyDirVolumeSource": { + "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", "properties": { - "fsType": { - "description": "fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "medium": { + "description": "medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", "type": "string" }, - "readOnly": { - "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", - "description": "secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack." - }, - "volumeID": { - "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "string" + "sizeLimit": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir" } }, - "required": [ - "volumeID" - ], "type": "object" }, - "io.k8s.api.core.v1.CinderVolumeSource": { - "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "io.k8s.api.core.v1.EndpointAddress": { + "description": "EndpointAddress is a tuple that describes single IP address.", "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "hostname": { + "description": "The Hostname of this endpoint", "type": "string" }, - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", - "description": "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack." + "ip": { + "description": "The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready.", + "type": "string" }, - "volumeID": { - "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "nodeName": { + "description": "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", "type": "string" + }, + "targetRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", + "description": "Reference to object providing the endpoint." } }, "required": [ - "volumeID" + "ip" ], - "type": "object" - }, - "io.k8s.api.core.v1.ClientIPConfig": { - "description": "ClientIPConfig represents the configurations of Client IP based session affinity.", - "properties": { - "timeoutSeconds": { - "description": "timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).", - "format": "int32", - "type": "integer" - } - }, - "type": "object" + "type": "object", + "x-kubernetes-map-type": "atomic" }, - "io.k8s.api.core.v1.ComponentCondition": { - "description": "Information about the condition of a component.", + "io.k8s.api.core.v1.EndpointPort": { + "description": "EndpointPort is a tuple that describes a single port.", "properties": { - "error": { - "description": "Condition error code for a component. For example, a health check error code.", + "appProtocol": { + "description": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.", "type": "string" }, - "message": { - "description": "Message about the condition for a component. For example, information about a health check.", + "name": { + "description": "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.", "type": "string" }, - "status": { - "description": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", - "type": "string" + "port": { + "description": "The port number of the endpoint.", + "format": "int32", + "type": "integer" }, - "type": { - "description": "Type of condition for a component. Valid value: \"Healthy\"", + "protocol": { + "description": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.\n\n", "type": "string" } }, "required": [ - "type", - "status" + "port" ], - "type": "object" + "type": "object", + "x-kubernetes-map-type": "atomic" }, - "io.k8s.api.core.v1.ComponentStatus": { - "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+", + "io.k8s.api.core.v1.EndpointSubset": { + "description": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n\n\t{\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t}\n\nThe resulting set of endpoints can be viewed as:\n\n\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n\tb: [ 10.10.1.1:309, 10.10.2.2:309 ]", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "conditions": { - "description": "List of component conditions observed", + "addresses": { + "description": "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.", "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ComponentCondition" + "$ref": "#/definitions/io.k8s.api.core.v1.EndpointAddress" }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ComponentStatus", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.ComponentStatusList": { - "description": "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" + "type": "array" }, - "items": { - "description": "List of ComponentStatus objects.", + "notReadyAddresses": { + "description": "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.", "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ComponentStatus" + "$ref": "#/definitions/io.k8s.api.core.v1.EndpointAddress" }, "type": "array" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "ports": { + "description": "Port numbers available on the related IP addresses.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.EndpointPort" + }, + "type": "array" } }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ComponentStatusList", - "version": "v1" - } - ] + "type": "object" }, - "io.k8s.api.core.v1.ConfigMap": { - "description": "ConfigMap holds configuration data for pods to consume.", + "io.k8s.api.core.v1.Endpoints": { + "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n\n\t Name: \"mysvc\",\n\t Subsets: [\n\t {\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t },\n\t {\n\t Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t },\n\t]", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "binaryData": { - "additionalProperties": { - "format": "byte", - "type": "string" - }, - "description": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.", - "type": "object" - }, - "data": { - "additionalProperties": { - "type": "string" - }, - "description": "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.", - "type": "object" - }, - "immutable": { - "description": "Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.", - "type": "boolean" - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" @@ -4729,64 +5172,35 @@ "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "subsets": { + "description": "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.EndpointSubset" + }, + "type": "array" } }, "type": "object", "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "ConfigMap", + "kind": "Endpoints", "version": "v1" } ] }, - "io.k8s.api.core.v1.ConfigMapEnvSource": { - "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", - "properties": { - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap must be defined", - "type": "boolean" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.ConfigMapKeySelector": { - "description": "Selects a key from a ConfigMap.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "io.k8s.api.core.v1.ConfigMapList": { - "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", + "io.k8s.api.core.v1.EndpointsList": { + "description": "EndpointsList is a list of endpoints.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "Items is the list of ConfigMaps.", + "description": "List of endpoints.", "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" + "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" }, "type": "array" }, @@ -4796,7 +5210,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -4806,101 +5220,84 @@ "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "ConfigMapList", + "kind": "EndpointsList", "version": "v1" } ] }, - "io.k8s.api.core.v1.ConfigMapNodeConfigSource": { - "description": "ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration", + "io.k8s.api.core.v1.EnvFromSource": { + "description": "EnvFromSource represents the source of a set of ConfigMaps", "properties": { - "kubeletConfigKey": { - "description": "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.", - "type": "string" - }, - "name": { - "description": "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.", - "type": "string" - }, - "namespace": { - "description": "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.", - "type": "string" + "configMapRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapEnvSource", + "description": "The ConfigMap to select from" }, - "resourceVersion": { - "description": "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", + "prefix": { + "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", "type": "string" }, - "uid": { - "description": "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", - "type": "string" + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretEnvSource", + "description": "The Secret to select from" } }, - "required": [ - "namespace", - "name", - "kubeletConfigKey" - ], "type": "object" }, - "io.k8s.api.core.v1.ConfigMapProjection": { - "description": "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.", + "io.k8s.api.core.v1.EnvVar": { + "description": "EnvVar represents an environment variable present in a Container.", "properties": { - "items": { - "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.KeyToPath" - }, - "type": "array" - }, "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "description": "Name of the environment variable. Must be a C_IDENTIFIER.", "type": "string" }, - "optional": { - "description": "optional specify whether the ConfigMap or its keys must be defined", - "type": "boolean" + "value": { + "description": "Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", + "type": "string" + }, + "valueFrom": { + "$ref": "#/definitions/io.k8s.api.core.v1.EnvVarSource", + "description": "Source for the environment variable's value. Cannot be used if value is not empty." } }, + "required": [ + "name" + ], "type": "object" }, - "io.k8s.api.core.v1.ConfigMapVolumeSource": { - "description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", + "io.k8s.api.core.v1.EnvVarSource": { + "description": "EnvVarSource represents a source for the value of an EnvVar.", "properties": { - "defaultMode": { - "description": "defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" + "configMapKeyRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapKeySelector", + "description": "Selects a key of a ConfigMap." }, - "items": { - "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.KeyToPath" - }, - "type": "array" + "fieldRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectFieldSelector", + "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs." }, - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" + "resourceFieldRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceFieldSelector", + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported." }, - "optional": { - "description": "optional specify whether the ConfigMap or its keys must be defined", - "type": "boolean" + "secretKeyRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", + "description": "Selects a key of a secret in the pod's namespace" } }, "type": "object" }, - "io.k8s.api.core.v1.Container": { - "description": "A single application container that you want to run within a pod.", + "io.k8s.api.core.v1.EphemeralContainer": { + "description": "An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation.\n\nTo add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.", "properties": { "args": { - "description": "Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "description": "Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", "items": { "type": "string" }, "type": "array" }, "command": { - "description": "Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "description": "Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", "items": { "type": "string" }, @@ -4923,7 +5320,7 @@ "type": "array" }, "image": { - "description": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.", + "description": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images", "type": "string" }, "imagePullPolicy": { @@ -4932,18 +5329,18 @@ }, "lifecycle": { "$ref": "#/definitions/io.k8s.api.core.v1.Lifecycle", - "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated." + "description": "Lifecycle is not allowed for ephemeral containers." }, "livenessProbe": { "$ref": "#/definitions/io.k8s.api.core.v1.Probe", - "description": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + "description": "Probes are not allowed for ephemeral containers." }, "name": { - "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", + "description": "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", "type": "string" }, "ports": { - "description": "List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.", + "description": "Ports are not allowed for ephemeral containers.", "items": { "$ref": "#/definitions/io.k8s.api.core.v1.ContainerPort" }, @@ -4958,19 +5355,19 @@ }, "readinessProbe": { "$ref": "#/definitions/io.k8s.api.core.v1.Probe", - "description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + "description": "Probes are not allowed for ephemeral containers." }, "resources": { "$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements", - "description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + "description": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod." }, "securityContext": { "$ref": "#/definitions/io.k8s.api.core.v1.SecurityContext", - "description": "SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/" + "description": "Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext." }, "startupProbe": { "$ref": "#/definitions/io.k8s.api.core.v1.Probe", - "description": "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + "description": "Probes are not allowed for ephemeral containers." }, "stdin": { "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", @@ -4980,6 +5377,10 @@ "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", "type": "boolean" }, + "targetContainerName": { + "description": "If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec.\n\nThe container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined.", + "type": "string" + }, "terminationMessagePath": { "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", "type": "string" @@ -5002,7 +5403,7 @@ "x-kubernetes-patch-strategy": "merge" }, "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", + "description": "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.", "items": { "$ref": "#/definitions/io.k8s.api.core.v1.VolumeMount" }, @@ -5020,721 +5421,747 @@ ], "type": "object" }, - "io.k8s.api.core.v1.ContainerImage": { - "description": "Describe a container image", + "io.k8s.api.core.v1.EphemeralVolumeSource": { + "description": "Represents an ephemeral volume that is handled by a normal storage driver.", "properties": { - "names": { - "description": "Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"]", - "items": { - "type": "string" - }, - "type": "array" - }, - "sizeBytes": { - "description": "The size of the image in bytes.", - "format": "int64", - "type": "integer" + "volumeClaimTemplate": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimTemplate", + "description": "Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `-` where `` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.\n\nRequired, must not be nil." } }, "type": "object" }, - "io.k8s.api.core.v1.ContainerPort": { - "description": "ContainerPort represents a network port in a single container.", + "io.k8s.api.core.v1.Event": { + "description": "Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", "properties": { - "containerPort": { - "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", - "format": "int32", - "type": "integer" + "action": { + "description": "What action was taken/failed regarding to the Regarding object.", + "type": "string" }, - "hostIP": { - "description": "What host IP to bind the external port to.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "hostPort": { - "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.", + "count": { + "description": "The number of times this event has occurred.", "format": "int32", "type": "integer" }, - "name": { - "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.", + "eventTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "Time when this Event was first observed." + }, + "firstTimestamp": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)" + }, + "involvedObject": { + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", + "description": "The object that this event is about." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, - "protocol": { - "description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".\n\n", + "lastTimestamp": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The time at which the most recent occurrence of this event was recorded." + }, + "message": { + "description": "A human-readable description of the status of this operation.", "type": "string" - } - }, - "required": [ - "containerPort" - ], - "type": "object" - }, - "io.k8s.api.core.v1.ContainerState": { - "description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", - "properties": { - "running": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateRunning", - "description": "Details about a running container" }, - "terminated": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateTerminated", - "description": "Details about a terminated container" + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "waiting": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateWaiting", - "description": "Details about a waiting container" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.ContainerStateRunning": { - "description": "ContainerStateRunning is a running state of a container.", - "properties": { - "startedAt": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Time at which the container was last (re-)started" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.ContainerStateTerminated": { - "description": "ContainerStateTerminated is a terminated state of a container.", - "properties": { - "containerID": { - "description": "Container's ID in the format '://'", + "reason": { + "description": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", "type": "string" }, - "exitCode": { - "description": "Exit status from the last termination of the container", - "format": "int32", - "type": "integer" - }, - "finishedAt": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Time at which the container last terminated" + "related": { + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", + "description": "Optional secondary object for more complex actions." }, - "message": { - "description": "Message regarding the last termination of the container", + "reportingComponent": { + "description": "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.", "type": "string" }, - "reason": { - "description": "(brief) reason from the last termination of the container", + "reportingInstance": { + "description": "ID of the controller instance, e.g. `kubelet-xyzf`.", "type": "string" }, - "signal": { - "description": "Signal from the last termination of the container", - "format": "int32", - "type": "integer" + "series": { + "$ref": "#/definitions/io.k8s.api.core.v1.EventSeries", + "description": "Data about the Event series this event represents or nil if it's a singleton Event." }, - "startedAt": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Time at which previous execution of the container started" + "source": { + "$ref": "#/definitions/io.k8s.api.core.v1.EventSource", + "description": "The component reporting this event. Should be a short machine understandable string." + }, + "type": { + "description": "Type of this event (Normal, Warning), new types could be added in the future", + "type": "string" } }, "required": [ - "exitCode" + "metadata", + "involvedObject" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Event", + "version": "v1" + } + ] }, - "io.k8s.api.core.v1.ContainerStateWaiting": { - "description": "ContainerStateWaiting is a waiting state of a container.", + "io.k8s.api.core.v1.EventList": { + "description": "EventList is a list of events.", "properties": { - "message": { - "description": "Message regarding why the container is not yet running.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "reason": { - "description": "(brief) reason the container is not yet running.", + "items": { + "description": "List of events", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Event" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, - "type": "object" + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "EventList", + "version": "v1" + } + ] }, - "io.k8s.api.core.v1.ContainerStatus": { - "description": "ContainerStatus contains details for the current status of this container.", + "io.k8s.api.core.v1.EventSeries": { + "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", "properties": { - "containerID": { - "description": "Container's ID in the format '://'.", - "type": "string" - }, - "image": { - "description": "The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images.", - "type": "string" - }, - "imageID": { - "description": "ImageID of the container's image.", - "type": "string" - }, - "lastState": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerState", - "description": "Details about the container's last termination condition." - }, - "name": { - "description": "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.", - "type": "string" - }, - "ready": { - "description": "Specifies whether the container has passed its readiness probe.", - "type": "boolean" - }, - "restartCount": { - "description": "The number of times the container has been restarted.", + "count": { + "description": "Number of occurrences in this series up to the last heartbeat time", "format": "int32", "type": "integer" }, - "started": { - "description": "Specifies whether the container has passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. Is always true when no startupProbe is defined.", - "type": "boolean" - }, - "state": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerState", - "description": "Details about the container's current condition." + "lastObservedTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "Time of the last occurrence observed" } }, - "required": [ - "name", - "ready", - "restartCount", - "image", - "imageID" - ], "type": "object" }, - "io.k8s.api.core.v1.DaemonEndpoint": { - "description": "DaemonEndpoint contains information about a single Daemon endpoint.", + "io.k8s.api.core.v1.EventSource": { + "description": "EventSource contains information for an event.", "properties": { - "Port": { - "description": "Port number of the given endpoint.", - "format": "int32", - "type": "integer" + "component": { + "description": "Component from which the event is generated.", + "type": "string" + }, + "host": { + "description": "Node name on which the event is generated.", + "type": "string" } }, - "required": [ - "Port" - ], "type": "object" }, - "io.k8s.api.core.v1.DownwardAPIProjection": { - "description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.", + "io.k8s.api.core.v1.ExecAction": { + "description": "ExecAction describes a \"run in container\" action.", "properties": { - "items": { - "description": "Items is a list of DownwardAPIVolume file", + "command": { + "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.DownwardAPIVolumeFile" + "type": "string" }, "type": "array" } }, "type": "object" }, - "io.k8s.api.core.v1.DownwardAPIVolumeFile": { - "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", + "io.k8s.api.core.v1.FCVolumeSource": { + "description": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.", "properties": { - "fieldRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectFieldSelector", - "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported." + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" }, - "mode": { - "description": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "lun": { + "description": "lun is Optional: FC target lun number", "format": "int32", "type": "integer" }, - "path": { - "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "targetWWNs": { + "description": "targetWWNs is Optional: FC target worldwide names (WWNs)", + "items": { + "type": "string" + }, + "type": "array" + }, + "wwids": { + "description": "wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.FlexPersistentVolumeSource": { + "description": "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.", + "properties": { + "driver": { + "description": "driver is the name of the driver to use for this volume.", "type": "string" }, - "resourceFieldRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceFieldSelector", - "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported." + "fsType": { + "description": "fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", + "type": "string" + }, + "options": { + "additionalProperties": { + "type": "string" + }, + "description": "options is Optional: this field holds extra command options if any.", + "type": "object" + }, + "readOnly": { + "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." } }, "required": [ - "path" + "driver" ], "type": "object" }, - "io.k8s.api.core.v1.DownwardAPIVolumeSource": { - "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", + "io.k8s.api.core.v1.FlexVolumeSource": { + "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", "properties": { - "defaultMode": { - "description": "Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" + "driver": { + "description": "driver is the name of the driver to use for this volume.", + "type": "string" }, - "items": { - "description": "Items is a list of downward API volume file", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.DownwardAPIVolumeFile" + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", + "type": "string" + }, + "options": { + "additionalProperties": { + "type": "string" }, - "type": "array" + "description": "options is Optional: this field holds extra command options if any.", + "type": "object" + }, + "readOnly": { + "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." } }, + "required": [ + "driver" + ], "type": "object" }, - "io.k8s.api.core.v1.EmptyDirVolumeSource": { - "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", + "io.k8s.api.core.v1.FlockerVolumeSource": { + "description": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.", "properties": { - "medium": { - "description": "medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", + "datasetName": { + "description": "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", "type": "string" }, - "sizeLimit": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir" + "datasetUUID": { + "description": "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset", + "type": "string" } }, "type": "object" }, - "io.k8s.api.core.v1.EndpointAddress": { - "description": "EndpointAddress is a tuple that describes single IP address.", + "io.k8s.api.core.v1.GCEPersistentDiskVolumeSource": { + "description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", "properties": { - "hostname": { - "description": "The Hostname of this endpoint", + "fsType": { + "description": "fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", "type": "string" }, - "ip": { - "description": "The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready.", - "type": "string" + "partition": { + "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "format": "int32", + "type": "integer" }, - "nodeName": { - "description": "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", + "pdName": { + "description": "pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", "type": "string" }, - "targetRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", - "description": "Reference to object providing the endpoint." + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": "boolean" } }, "required": [ - "ip" + "pdName" ], - "type": "object", - "x-kubernetes-map-type": "atomic" + "type": "object" }, - "io.k8s.api.core.v1.EndpointPort": { - "description": "EndpointPort is a tuple that describes a single port.", + "io.k8s.api.core.v1.GRPCAction": { "properties": { - "appProtocol": { - "description": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.", - "type": "string" - }, - "name": { - "description": "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.", - "type": "string" - }, "port": { - "description": "The port number of the endpoint.", + "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", "format": "int32", "type": "integer" }, - "protocol": { - "description": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.\n\n", + "service": { + "description": "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", "type": "string" } }, "required": [ "port" ], - "type": "object", - "x-kubernetes-map-type": "atomic" + "type": "object" }, - "io.k8s.api.core.v1.EndpointSubset": { - "description": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n\n\t{\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t}\n\nThe resulting set of endpoints can be viewed as:\n\n\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n\tb: [ 10.10.1.1:309, 10.10.2.2:309 ]", + "io.k8s.api.core.v1.GitRepoVolumeSource": { + "description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.\n\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", "properties": { - "addresses": { - "description": "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EndpointAddress" - }, - "type": "array" + "directory": { + "description": "directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", + "type": "string" }, - "notReadyAddresses": { - "description": "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EndpointAddress" - }, - "type": "array" + "repository": { + "description": "repository is the URL", + "type": "string" }, - "ports": { - "description": "Port numbers available on the related IP addresses.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EndpointPort" - }, - "type": "array" + "revision": { + "description": "revision is the commit hash for the specified revision.", + "type": "string" } }, + "required": [ + "repository" + ], "type": "object" }, - "io.k8s.api.core.v1.Endpoints": { - "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n\n\t Name: \"mysvc\",\n\t Subsets: [\n\t {\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t },\n\t {\n\t Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t },\n\t]", + "io.k8s.api.core.v1.GlusterfsPersistentVolumeSource": { + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "endpoints": { + "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "endpointsNamespace": { + "description": "endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", "type": "string" }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "path": { + "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" }, - "subsets": { - "description": "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EndpointSubset" - }, - "type": "array" + "readOnly": { + "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "boolean" } }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - ] + "required": [ + "endpoints", + "path" + ], + "type": "object" }, - "io.k8s.api.core.v1.EndpointsList": { - "description": "EndpointsList is a list of endpoints.", + "io.k8s.api.core.v1.GlusterfsVolumeSource": { + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "endpoints": { + "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", "type": "string" }, - "items": { - "description": "List of endpoints.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "path": { + "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", "type": "string" }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "readOnly": { + "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "boolean" } }, "required": [ - "items" + "endpoints", + "path" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "EndpointsList", - "version": "v1" - } - ] + "type": "object" }, - "io.k8s.api.core.v1.EnvFromSource": { - "description": "EnvFromSource represents the source of a set of ConfigMaps", + "io.k8s.api.core.v1.HTTPGetAction": { + "description": "HTTPGetAction describes an action based on HTTP Get requests.", "properties": { - "configMapRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapEnvSource", - "description": "The ConfigMap to select from" + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "type": "string" }, - "prefix": { - "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.HTTPHeader" + }, + "type": "array" + }, + "path": { + "description": "Path to access on the HTTP server.", "type": "string" }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretEnvSource", - "description": "The Secret to select from" + "port": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." + }, + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.\n\n", + "type": "string" } }, + "required": [ + "port" + ], "type": "object" }, - "io.k8s.api.core.v1.EnvVar": { - "description": "EnvVar represents an environment variable present in a Container.", + "io.k8s.api.core.v1.HTTPHeader": { + "description": "HTTPHeader describes a custom header to be used in HTTP probes", "properties": { "name": { - "description": "Name of the environment variable. Must be a C_IDENTIFIER.", + "description": "The header field name", "type": "string" }, "value": { - "description": "Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", + "description": "The header field value", "type": "string" - }, - "valueFrom": { - "$ref": "#/definitions/io.k8s.api.core.v1.EnvVarSource", - "description": "Source for the environment variable's value. Cannot be used if value is not empty." } }, "required": [ - "name" + "name", + "value" ], "type": "object" }, - "io.k8s.api.core.v1.EnvVarSource": { - "description": "EnvVarSource represents a source for the value of an EnvVar.", + "io.k8s.api.core.v1.HostAlias": { + "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", "properties": { - "configMapKeyRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapKeySelector", - "description": "Selects a key of a ConfigMap." - }, - "fieldRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectFieldSelector", - "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs." - }, - "resourceFieldRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceFieldSelector", - "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported." + "hostnames": { + "description": "Hostnames for the above IP address.", + "items": { + "type": "string" + }, + "type": "array" }, - "secretKeyRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", - "description": "Selects a key of a secret in the pod's namespace" + "ip": { + "description": "IP address of the host file entry.", + "type": "string" } }, "type": "object" }, - "io.k8s.api.core.v1.EphemeralContainer": { - "description": "An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation.\n\nTo add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.", + "io.k8s.api.core.v1.HostPathVolumeSource": { + "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", "properties": { - "args": { - "description": "Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array" - }, - "command": { - "description": "Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array" + "path": { + "description": "path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "type": "string" }, - "env": { - "description": "List of environment variables to set in the container. Cannot be updated.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EnvVar" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" + "type": { + "description": "type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "type": "string" + } + }, + "required": [ + "path" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ISCSIPersistentVolumeSource": { + "description": "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "properties": { + "chapAuthDiscovery": { + "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", + "type": "boolean" }, - "envFrom": { - "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EnvFromSource" - }, - "type": "array" + "chapAuthSession": { + "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", + "type": "boolean" }, - "image": { - "description": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images", + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", "type": "string" }, - "imagePullPolicy": { - "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images\n\n", + "initiatorName": { + "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", "type": "string" }, - "lifecycle": { - "$ref": "#/definitions/io.k8s.api.core.v1.Lifecycle", - "description": "Lifecycle is not allowed for ephemeral containers." - }, - "livenessProbe": { - "$ref": "#/definitions/io.k8s.api.core.v1.Probe", - "description": "Probes are not allowed for ephemeral containers." + "iqn": { + "description": "iqn is Target iSCSI Qualified Name.", + "type": "string" }, - "name": { - "description": "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", + "iscsiInterface": { + "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", "type": "string" }, - "ports": { - "description": "Ports are not allowed for ephemeral containers.", + "lun": { + "description": "lun is iSCSI Target Lun number.", + "format": "int32", + "type": "integer" + }, + "portals": { + "description": "portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerPort" + "type": "string" }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "containerPort", - "protocol" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "containerPort", - "x-kubernetes-patch-strategy": "merge" - }, - "readinessProbe": { - "$ref": "#/definitions/io.k8s.api.core.v1.Probe", - "description": "Probes are not allowed for ephemeral containers." - }, - "resources": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements", - "description": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod." + "type": "array" }, - "securityContext": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecurityContext", - "description": "Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext." + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", + "type": "boolean" }, - "startupProbe": { - "$ref": "#/definitions/io.k8s.api.core.v1.Probe", - "description": "Probes are not allowed for ephemeral containers." + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication" }, - "stdin": { - "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", + "targetPortal": { + "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "type": "string" + } + }, + "required": [ + "targetPortal", + "iqn", + "lun" + ], + "type": "object" + }, + "io.k8s.api.core.v1.ISCSIVolumeSource": { + "description": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "properties": { + "chapAuthDiscovery": { + "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", "type": "boolean" }, - "stdinOnce": { - "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", + "chapAuthSession": { + "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", "type": "boolean" }, - "targetContainerName": { - "description": "If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec.\n\nThe container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined.", + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", "type": "string" }, - "terminationMessagePath": { - "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", + "initiatorName": { + "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", "type": "string" }, - "terminationMessagePolicy": { - "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.\n\n", + "iqn": { + "description": "iqn is the target iSCSI Qualified Name.", "type": "string" }, - "tty": { - "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", - "type": "boolean" + "iscsiInterface": { + "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", + "type": "string" }, - "volumeDevices": { - "description": "volumeDevices is the list of block devices to be used by the container.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.VolumeDevice" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "devicePath", - "x-kubernetes-patch-strategy": "merge" + "lun": { + "description": "lun represents iSCSI Target Lun number.", + "format": "int32", + "type": "integer" }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.", + "portals": { + "description": "portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.VolumeMount" + "type": "string" }, - "type": "array", - "x-kubernetes-patch-merge-key": "mountPath", - "x-kubernetes-patch-strategy": "merge" + "type": "array" }, - "workingDir": { - "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication" + }, + "targetPortal": { + "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", "type": "string" } }, "required": [ - "name" + "targetPortal", + "iqn", + "lun" ], "type": "object" }, - "io.k8s.api.core.v1.EphemeralVolumeSource": { - "description": "Represents an ephemeral volume that is handled by a normal storage driver.", + "io.k8s.api.core.v1.KeyToPath": { + "description": "Maps a string key to a path within a volume.", "properties": { - "volumeClaimTemplate": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimTemplate", - "description": "Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `-` where `` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.\n\nRequired, must not be nil." + "key": { + "description": "key is the key to project.", + "type": "string" + }, + "mode": { + "description": "mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "path": { + "description": "path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", + "type": "string" } }, + "required": [ + "key", + "path" + ], "type": "object" }, - "io.k8s.api.core.v1.Event": { - "description": "Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", + "io.k8s.api.core.v1.Lifecycle": { + "description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", "properties": { - "action": { - "description": "What action was taken/failed regarding to the Regarding object.", - "type": "string" + "postStart": { + "$ref": "#/definitions/io.k8s.api.core.v1.LifecycleHandler", + "description": "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks" + }, + "preStop": { + "$ref": "#/definitions/io.k8s.api.core.v1.LifecycleHandler", + "description": "PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks" + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.LifecycleHandler": { + "description": "LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.", + "properties": { + "exec": { + "$ref": "#/definitions/io.k8s.api.core.v1.ExecAction", + "description": "Exec specifies the action to take." + }, + "httpGet": { + "$ref": "#/definitions/io.k8s.api.core.v1.HTTPGetAction", + "description": "HTTPGet specifies the http request to perform." }, + "tcpSocket": { + "$ref": "#/definitions/io.k8s.api.core.v1.TCPSocketAction", + "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified." + } + }, + "type": "object" + }, + "io.k8s.api.core.v1.LimitRange": { + "description": "LimitRange sets resource usage limits for each kind of resource in a Namespace.", + "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "count": { - "description": "The number of times this event has occurred.", - "format": "int32", - "type": "integer" - }, - "eventTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "Time when this Event was first observed." - }, - "firstTimestamp": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)" - }, - "involvedObject": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", - "description": "The object that this event is about." - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, - "lastTimestamp": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "The time at which the most recent occurrence of this event was recorded." - }, - "message": { - "description": "A human-readable description of the status of this operation.", - "type": "string" - }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "reason": { - "description": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", - "type": "string" - }, - "related": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", - "description": "Optional secondary object for more complex actions." + "spec": { + "$ref": "#/definitions/io.k8s.api.core.v1.LimitRangeSpec", + "description": "Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "LimitRange", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.LimitRangeItem": { + "description": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", + "properties": { + "default": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Default resource requirement limit value by resource name if resource limit is omitted.", + "type": "object" }, - "reportingComponent": { - "description": "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.", - "type": "string" + "defaultRequest": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", + "type": "object" }, - "reportingInstance": { - "description": "ID of the controller instance, e.g. `kubelet-xyzf`.", - "type": "string" + "max": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Max usage constraints on this kind by resource name.", + "type": "object" }, - "series": { - "$ref": "#/definitions/io.k8s.api.core.v1.EventSeries", - "description": "Data about the Event series this event represents or nil if it's a singleton Event." + "maxLimitRequestRatio": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.", + "type": "object" }, - "source": { - "$ref": "#/definitions/io.k8s.api.core.v1.EventSource", - "description": "The component reporting this event. Should be a short machine understandable string." + "min": { + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Min usage constraints on this kind by resource name.", + "type": "object" }, "type": { - "description": "Type of this event (Normal, Warning), new types could be added in the future", + "description": "Type of resource that this limit applies to.", "type": "string" } }, "required": [ - "metadata", - "involvedObject" + "type" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Event", - "version": "v1" - } - ] + "type": "object" }, - "io.k8s.api.core.v1.EventList": { - "description": "EventList is a list of events.", + "io.k8s.api.core.v1.LimitRangeList": { + "description": "LimitRangeList is a list of LimitRange items.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "List of events", + "description": "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Event" + "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" }, "type": "array" }, @@ -5754,1075 +6181,441 @@ "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "EventList", + "kind": "LimitRangeList", "version": "v1" } ] }, - "io.k8s.api.core.v1.EventSeries": { - "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", + "io.k8s.api.core.v1.LimitRangeSpec": { + "description": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", "properties": { - "count": { - "description": "Number of occurrences in this series up to the last heartbeat time", - "format": "int32", - "type": "integer" - }, - "lastObservedTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "Time of the last occurrence observed" + "limits": { + "description": "Limits is the list of LimitRangeItem objects that are enforced.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.LimitRangeItem" + }, + "type": "array" } }, + "required": [ + "limits" + ], "type": "object" }, - "io.k8s.api.core.v1.EventSource": { - "description": "EventSource contains information for an event.", + "io.k8s.api.core.v1.LoadBalancerIngress": { + "description": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", "properties": { - "component": { - "description": "Component from which the event is generated.", + "hostname": { + "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", "type": "string" }, - "host": { - "description": "Node name on which the event is generated.", + "ip": { + "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", "type": "string" + }, + "ports": { + "description": "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PortStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "type": "object" }, - "io.k8s.api.core.v1.ExecAction": { - "description": "ExecAction describes a \"run in container\" action.", + "io.k8s.api.core.v1.LoadBalancerStatus": { + "description": "LoadBalancerStatus represents the status of a load-balancer.", "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", + "ingress": { + "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", "items": { - "type": "string" + "$ref": "#/definitions/io.k8s.api.core.v1.LoadBalancerIngress" }, "type": "array" } }, "type": "object" }, - "io.k8s.api.core.v1.FCVolumeSource": { - "description": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.", + "io.k8s.api.core.v1.LocalObjectReference": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", "type": "string" - }, - "lun": { - "description": "lun is Optional: FC target lun number", - "format": "int32", - "type": "integer" - }, - "readOnly": { - "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "targetWWNs": { - "description": "targetWWNs is Optional: FC target worldwide names (WWNs)", - "items": { - "type": "string" - }, - "type": "array" - }, - "wwids": { - "description": "wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", - "items": { - "type": "string" - }, - "type": "array" } }, - "type": "object" + "type": "object", + "x-kubernetes-map-type": "atomic" }, - "io.k8s.api.core.v1.FlexPersistentVolumeSource": { - "description": "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.", + "io.k8s.api.core.v1.LocalVolumeSource": { + "description": "Local represents directly-attached storage with node affinity (Beta feature)", "properties": { - "driver": { - "description": "driver is the name of the driver to use for this volume.", - "type": "string" - }, "fsType": { - "description": "fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", + "description": "fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified.", "type": "string" }, - "options": { - "additionalProperties": { - "type": "string" - }, - "description": "options is Optional: this field holds extra command options if any.", - "type": "object" - }, - "readOnly": { - "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", - "description": "secretRef is Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." + "path": { + "description": "path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).", + "type": "string" } }, "required": [ - "driver" + "path" ], "type": "object" }, - "io.k8s.api.core.v1.FlexVolumeSource": { - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + "io.k8s.api.core.v1.NFSVolumeSource": { + "description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", "properties": { - "driver": { - "description": "driver is the name of the driver to use for this volume.", + "path": { + "description": "path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", "type": "string" }, - "fsType": { - "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", - "type": "string" - }, - "options": { - "additionalProperties": { - "type": "string" - }, - "description": "options is Optional: this field holds extra command options if any.", - "type": "object" - }, "readOnly": { - "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "description": "readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", "type": "boolean" }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", - "description": "secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." + "server": { + "description": "server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "type": "string" } }, "required": [ - "driver" + "server", + "path" ], "type": "object" }, - "io.k8s.api.core.v1.FlockerVolumeSource": { - "description": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.", + "io.k8s.api.core.v1.Namespace": { + "description": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", "properties": { - "datasetName": { - "description": "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "datasetUUID": { - "description": "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.GCEPersistentDiskVolumeSource": { - "description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", - "properties": { - "fsType": { - "description": "fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, - "partition": { - "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "format": "int32", - "type": "integer" + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "pdName": { - "description": "pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "string" + "spec": { + "$ref": "#/definitions/io.k8s.api.core.v1.NamespaceSpec", + "description": "Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "boolean" + "status": { + "$ref": "#/definitions/io.k8s.api.core.v1.NamespaceStatus", + "description": "Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "required": [ - "pdName" - ], - "type": "object" - }, - "io.k8s.api.core.v1.GRPCAction": { - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Namespace", + "version": "v1" } - }, - "required": [ - "port" - ], - "type": "object" + ] }, - "io.k8s.api.core.v1.GitRepoVolumeSource": { - "description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.\n\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", + "io.k8s.api.core.v1.NamespaceCondition": { + "description": "NamespaceCondition contains details about state of namespace.", "properties": { - "directory": { - "description": "directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", - "type": "string" + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" }, - "repository": { - "description": "repository is the URL", + "message": { "type": "string" }, - "revision": { - "description": "revision is the commit hash for the specified revision.", - "type": "string" - } - }, - "required": [ - "repository" - ], - "type": "object" - }, - "io.k8s.api.core.v1.GlusterfsPersistentVolumeSource": { - "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", - "properties": { - "endpoints": { - "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "reason": { "type": "string" }, - "endpointsNamespace": { - "description": "endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "status": { + "description": "Status of the condition, one of True, False, Unknown.", "type": "string" }, - "path": { - "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": { + "description": "Type of namespace controller condition.", "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "boolean" } }, "required": [ - "endpoints", - "path" + "type", + "status" ], "type": "object" }, - "io.k8s.api.core.v1.GlusterfsVolumeSource": { - "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", + "io.k8s.api.core.v1.NamespaceList": { + "description": "NamespaceList is a list of Namespaces.", "properties": { - "endpoints": { - "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "path": { - "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "items": { + "description": "Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, - "readOnly": { - "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "boolean" + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ - "endpoints", - "path" + "items" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "NamespaceList", + "version": "v1" + } + ] }, - "io.k8s.api.core.v1.HTTPGetAction": { - "description": "HTTPGetAction describes an action based on HTTP Get requests.", + "io.k8s.api.core.v1.NamespaceSpec": { + "description": "NamespaceSpec describes the attributes on a Namespace.", "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "finalizers": { + "description": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.HTTPHeader" + "type": "string" }, "type": "array" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", - "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." - }, - "scheme": { - "description": "Scheme to use for connecting to the host. Defaults to HTTP.\n\n", - "type": "string" } }, - "required": [ - "port" - ], "type": "object" }, - "io.k8s.api.core.v1.HTTPHeader": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "io.k8s.api.core.v1.NamespaceStatus": { + "description": "NamespaceStatus is information about the current status of a Namespace.", "properties": { - "name": { - "description": "The header field name", - "type": "string" + "conditions": { + "description": "Represents the latest available observations of a namespace's current state.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.NamespaceCondition" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" }, - "value": { - "description": "The header field value", + "phase": { + "description": "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/\n\n", "type": "string" } }, - "required": [ - "name", - "value" - ], "type": "object" }, - "io.k8s.api.core.v1.HostAlias": { - "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", + "io.k8s.api.core.v1.Node": { + "description": "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", "properties": { - "hostnames": { - "description": "Hostnames for the above IP address.", - "items": { - "type": "string" - }, - "type": "array" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" }, - "ip": { - "description": "IP address of the host file entry.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSpec", + "description": "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeStatus", + "description": "Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Node", + "version": "v1" + } + ] }, - "io.k8s.api.core.v1.HostPathVolumeSource": { - "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", + "io.k8s.api.core.v1.NodeAddress": { + "description": "NodeAddress contains information for the node's address.", "properties": { - "path": { - "description": "path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "address": { + "description": "The node address.", "type": "string" }, "type": { - "description": "type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "description": "Node address type, one of Hostname, ExternalIP or InternalIP.", "type": "string" } }, "required": [ - "path" + "type", + "address" ], "type": "object" }, - "io.k8s.api.core.v1.ISCSIPersistentVolumeSource": { - "description": "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "io.k8s.api.core.v1.NodeAffinity": { + "description": "Node affinity is a group of node affinity scheduling rules.", "properties": { - "chapAuthDiscovery": { - "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", - "type": "boolean" - }, - "chapAuthSession": { - "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", - "type": "boolean" - }, - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", - "type": "string" - }, - "initiatorName": { - "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", - "type": "string" - }, - "iqn": { - "description": "iqn is Target iSCSI Qualified Name.", - "type": "string" - }, - "iscsiInterface": { - "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", - "type": "string" - }, - "lun": { - "description": "lun is iSCSI Target Lun number.", - "format": "int32", - "type": "integer" - }, - "portals": { - "description": "portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", "items": { - "type": "string" + "$ref": "#/definitions/io.k8s.api.core.v1.PreferredSchedulingTerm" }, "type": "array" }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", - "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication" - }, - "targetPortal": { - "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", - "type": "string" + "requiredDuringSchedulingIgnoredDuringExecution": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector", + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node." } }, - "required": [ - "targetPortal", - "iqn", - "lun" - ], "type": "object" }, - "io.k8s.api.core.v1.ISCSIVolumeSource": { - "description": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "io.k8s.api.core.v1.NodeCondition": { + "description": "NodeCondition contains condition information for a node.", "properties": { - "chapAuthDiscovery": { - "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", - "type": "boolean" - }, - "chapAuthSession": { - "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", - "type": "boolean" + "lastHeartbeatTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time we got an update on a given condition." }, - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", - "type": "string" + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transit from one status to another." }, - "initiatorName": { - "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", + "message": { + "description": "Human readable message indicating details about last transition.", "type": "string" }, - "iqn": { - "description": "iqn is the target iSCSI Qualified Name.", + "reason": { + "description": "(brief) reason for the condition's last transition.", "type": "string" }, - "iscsiInterface": { - "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", + "status": { + "description": "Status of the condition, one of True, False, Unknown.", "type": "string" }, - "lun": { - "description": "lun represents iSCSI Target Lun number.", - "format": "int32", - "type": "integer" - }, - "portals": { - "description": "portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", - "items": { - "type": "string" - }, - "type": "array" - }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", - "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication" - }, - "targetPortal": { - "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "type": { + "description": "Type of node condition.", "type": "string" } }, "required": [ - "targetPortal", - "iqn", - "lun" + "type", + "status" ], "type": "object" }, - "io.k8s.api.core.v1.KeyToPath": { - "description": "Maps a string key to a path within a volume.", + "io.k8s.api.core.v1.NodeConfigSource": { + "description": "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22", "properties": { - "key": { - "description": "key is the key to project.", - "type": "string" - }, - "mode": { - "description": "mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", - "type": "string" + "configMap": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapNodeConfigSource", + "description": "ConfigMap is a reference to a Node's ConfigMap" } }, - "required": [ - "key", - "path" - ], "type": "object" }, - "io.k8s.api.core.v1.Lifecycle": { - "description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", + "io.k8s.api.core.v1.NodeConfigStatus": { + "description": "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.", "properties": { - "postStart": { - "$ref": "#/definitions/io.k8s.api.core.v1.LifecycleHandler", - "description": "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks" + "active": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeConfigSource", + "description": "Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error." }, - "preStop": { - "$ref": "#/definitions/io.k8s.api.core.v1.LifecycleHandler", - "description": "PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks" + "assigned": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeConfigSource", + "description": "Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned." + }, + "error": { + "description": "Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions.", + "type": "string" + }, + "lastKnownGood": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeConfigSource", + "description": "LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future." } }, "type": "object" }, - "io.k8s.api.core.v1.LifecycleHandler": { - "description": "LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.", + "io.k8s.api.core.v1.NodeDaemonEndpoints": { + "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", "properties": { - "exec": { - "$ref": "#/definitions/io.k8s.api.core.v1.ExecAction", - "description": "Exec specifies the action to take." - }, - "httpGet": { - "$ref": "#/definitions/io.k8s.api.core.v1.HTTPGetAction", - "description": "HTTPGet specifies the http request to perform." - }, - "tcpSocket": { - "$ref": "#/definitions/io.k8s.api.core.v1.TCPSocketAction", - "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified." + "kubeletEndpoint": { + "$ref": "#/definitions/io.k8s.api.core.v1.DaemonEndpoint", + "description": "Endpoint on which Kubelet is listening." } }, "type": "object" }, - "io.k8s.api.core.v1.LimitRange": { - "description": "LimitRange sets resource usage limits for each kind of resource in a Namespace.", + "io.k8s.api.core.v1.NodeList": { + "description": "NodeList is the whole list of all Nodes which have been registered with master.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, + "items": { + "description": "List of nodes", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Node" + }, + "type": "array" + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRangeSpec", - "description": "Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, + "required": [ + "items" + ], "type": "object", "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "LimitRange", + "kind": "NodeList", "version": "v1" } ] }, - "io.k8s.api.core.v1.LimitRangeItem": { - "description": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", + "io.k8s.api.core.v1.NodeSelector": { + "description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", "properties": { - "default": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + "nodeSelectorTerms": { + "description": "Required. A list of node selector terms. The terms are ORed.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelectorTerm" }, - "description": "Default resource requirement limit value by resource name if resource limit is omitted.", - "type": "object" - }, - "defaultRequest": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", - "type": "object" - }, - "max": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "description": "Max usage constraints on this kind by resource name.", - "type": "object" - }, - "maxLimitRequestRatio": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "description": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.", - "type": "object" - }, - "min": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "description": "Min usage constraints on this kind by resource name.", - "type": "object" - }, - "type": { - "description": "Type of resource that this limit applies to.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "io.k8s.api.core.v1.LimitRangeList": { - "description": "LimitRangeList is a list of LimitRange items.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "LimitRangeList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.LimitRangeSpec": { - "description": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", - "properties": { - "limits": { - "description": "Limits is the list of LimitRangeItem objects that are enforced.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRangeItem" - }, - "type": "array" - } - }, - "required": [ - "limits" - ], - "type": "object" - }, - "io.k8s.api.core.v1.LoadBalancerIngress": { - "description": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", - "properties": { - "hostname": { - "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", - "type": "string" - }, - "ip": { - "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", - "type": "string" - }, - "ports": { - "description": "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PortStatus" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.LoadBalancerStatus": { - "description": "LoadBalancerStatus represents the status of a load-balancer.", - "properties": { - "ingress": { - "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.LoadBalancerIngress" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.LocalObjectReference": { - "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", - "properties": { - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "io.k8s.api.core.v1.LocalVolumeSource": { - "description": "Local represents directly-attached storage with node affinity (Beta feature)", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified.", - "type": "string" - }, - "path": { - "description": "path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).", - "type": "string" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "io.k8s.api.core.v1.NFSVolumeSource": { - "description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", - "properties": { - "path": { - "description": "path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "boolean" - }, - "server": { - "description": "server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "string" - } - }, - "required": [ - "server", - "path" - ], - "type": "object" - }, - "io.k8s.api.core.v1.Namespace": { - "description": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.core.v1.NamespaceSpec", - "description": "Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.core.v1.NamespaceStatus", - "description": "Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Namespace", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.NamespaceCondition": { - "description": "NamespaceCondition contains details about state of namespace.", - "properties": { - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "message": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "Type of namespace controller condition.", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "io.k8s.api.core.v1.NamespaceList": { - "description": "NamespaceList is a list of Namespaces.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "NamespaceList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.NamespaceSpec": { - "description": "NamespaceSpec describes the attributes on a Namespace.", - "properties": { - "finalizers": { - "description": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.NamespaceStatus": { - "description": "NamespaceStatus is information about the current status of a Namespace.", - "properties": { - "conditions": { - "description": "Represents the latest available observations of a namespace's current state.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.NamespaceCondition" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "phase": { - "description": "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/\n\n", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.Node": { - "description": "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSpec", - "description": "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeStatus", - "description": "Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Node", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.NodeAddress": { - "description": "NodeAddress contains information for the node's address.", - "properties": { - "address": { - "description": "The node address.", - "type": "string" - }, - "type": { - "description": "Node address type, one of Hostname, ExternalIP or InternalIP.", - "type": "string" - } - }, - "required": [ - "type", - "address" - ], - "type": "object" - }, - "io.k8s.api.core.v1.NodeAffinity": { - "description": "Node affinity is a group of node affinity scheduling rules.", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PreferredSchedulingTerm" - }, - "type": "array" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector", - "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node." - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.NodeCondition": { - "description": "NodeCondition contains condition information for a node.", - "properties": { - "lastHeartbeatTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Last time we got an update on a given condition." - }, - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Last time the condition transit from one status to another." - }, - "message": { - "description": "Human readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "(brief) reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "Type of node condition.", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "io.k8s.api.core.v1.NodeConfigSource": { - "description": "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22", - "properties": { - "configMap": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapNodeConfigSource", - "description": "ConfigMap is a reference to a Node's ConfigMap" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.NodeConfigStatus": { - "description": "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.", - "properties": { - "active": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeConfigSource", - "description": "Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error." - }, - "assigned": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeConfigSource", - "description": "Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned." - }, - "error": { - "description": "Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions.", - "type": "string" - }, - "lastKnownGood": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeConfigSource", - "description": "LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future." - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.NodeDaemonEndpoints": { - "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", - "properties": { - "kubeletEndpoint": { - "$ref": "#/definitions/io.k8s.api.core.v1.DaemonEndpoint", - "description": "Endpoint on which Kubelet is listening." - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.NodeList": { - "description": "NodeList is the whole list of all Nodes which have been registered with master.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of nodes", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "NodeList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.NodeSelector": { - "description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", - "properties": { - "nodeSelectorTerms": { - "description": "Required. A list of node selector terms. The terms are ORed.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelectorTerm" - }, - "type": "array" - } - }, - "required": [ - "nodeSelectorTerms" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "io.k8s.api.core.v1.NodeSelectorRequirement": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" + "type": "array" + } + }, + "required": [ + "nodeSelectorTerms" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.NodeSelectorRequirement": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" }, "operator": { "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.\n\n", @@ -6868,7 +6661,7 @@ "properties": { "configSource": { "$ref": "#/definitions/io.k8s.api.core.v1.NodeConfigSource", - "description": "Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed from Kubelets as of 1.24 and will be fully removed in 1.26." + "description": "Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed." }, "externalID": { "description": "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966", @@ -6908,7 +6701,7 @@ "description": "NodeStatus is information about the current status of a node.", "properties": { "addresses": { - "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See http://pr.k8s.io/79391 for an example.", + "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example.", "items": { "$ref": "#/definitions/io.k8s.api.core.v1.NodeAddress" }, @@ -7235,11 +7028,11 @@ }, "dataSource": { "$ref": "#/definitions/io.k8s.api.core.v1.TypedLocalObjectReference", - "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field." + "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource." }, "dataSourceRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.TypedLocalObjectReference", - "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While DataSource ignores disallowed values (dropping them), DataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled." + "$ref": "#/definitions/io.k8s.api.core.v1.TypedObjectReference", + "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled." }, "resources": { "$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements", @@ -7794,16 +7587,46 @@ ], "type": "object" }, - "io.k8s.api.core.v1.PodSecurityContext": { - "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", + "io.k8s.api.core.v1.PodResourceClaim": { + "description": "PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.", "properties": { - "fsGroup": { - "description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows.", + "name": { + "description": "Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.", + "type": "string" + }, + "source": { + "$ref": "#/definitions/io.k8s.api.core.v1.ClaimSource", + "description": "Source describes where to find the ResourceClaim." + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.core.v1.PodSchedulingGate": { + "description": "PodSchedulingGate is associated to a Pod to guard its scheduling.", + "properties": { + "name": { + "description": "Name of the scheduling gate. Each scheduling gate must have a unique name field.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.core.v1.PodSecurityContext": { + "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", + "properties": { + "fsGroup": { + "description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": "integer" + }, + "fsGroupChangePolicy": { + "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows.", "type": "string" }, "runAsGroup": { @@ -7829,7 +7652,7 @@ "description": "The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows." }, "supplementalGroups": { - "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. Note that this field cannot be set when spec.os.name is windows.", + "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.", "items": { "format": "int64", "type": "integer" @@ -7986,6 +7809,19 @@ }, "type": "array" }, + "resourceClaims": { + "description": "ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodResourceClaim" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + }, "restartPolicy": { "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy\n\n", "type": "string" @@ -7998,6 +7834,19 @@ "description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", "type": "string" }, + "schedulingGates": { + "description": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. More info: https://git.k8s.io/enhancements/keps/sig-scheduling/3521-pod-scheduling-readiness.\n\nThis is an alpha-level feature enabled by PodSchedulingReadiness feature gate.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodSchedulingGate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, "securityContext": { "$ref": "#/definitions/io.k8s.api.core.v1.PodSecurityContext", "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." @@ -8633,7 +8482,7 @@ "type": "integer" }, "replicas": { - "description": "Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", + "description": "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", "format": "int32", "type": "integer" } @@ -8643,6 +8492,19 @@ ], "type": "object" }, + "io.k8s.api.core.v1.ResourceClaim": { + "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", + "properties": { + "name": { + "description": "Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, "io.k8s.api.core.v1.ResourceFieldSelector": { "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", "properties": { @@ -8780,6 +8642,17 @@ "io.k8s.api.core.v1.ResourceRequirements": { "description": "ResourceRequirements describes the compute resource requirements.", "properties": { + "claims": { + "description": "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceClaim" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, "limits": { "additionalProperties": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" @@ -9768,11 +9641,11 @@ "type": "integer" }, "nodeAffinityPolicy": { - "description": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", + "description": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", "type": "string" }, "nodeTaintsPolicy": { - "description": "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", + "description": "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", "type": "string" }, "topologyKey": { @@ -9814,6 +9687,31 @@ "type": "object", "x-kubernetes-map-type": "atomic" }, + "io.k8s.api.core.v1.TypedObjectReference": { + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, "io.k8s.api.core.v1.Volume": { "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", "properties": { @@ -10149,11 +10047,11 @@ "type": "boolean" }, "serving": { - "description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.", + "description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.", "type": "boolean" }, "terminating": { - "description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.", + "description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.", "type": "boolean" } }, @@ -10433,7 +10331,7 @@ ], "type": "object" }, - "io.k8s.api.flowcontrol.v1beta1.FlowDistinguisherMethod": { + "io.k8s.api.flowcontrol.v1beta2.FlowDistinguisherMethod": { "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", "properties": { "type": { @@ -10446,7 +10344,7 @@ ], "type": "object" }, - "io.k8s.api.flowcontrol.v1beta1.FlowSchema": { + "io.k8s.api.flowcontrol.v1beta2.FlowSchema": { "description": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", "properties": { "apiVersion": { @@ -10462,11 +10360,11 @@ "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchemaSpec", "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, "status": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchemaStatus", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchemaStatus", "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, @@ -10475,11 +10373,11 @@ { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta1" + "version": "v1beta2" } ] }, - "io.k8s.api.flowcontrol.v1beta1.FlowSchemaCondition": { + "io.k8s.api.flowcontrol.v1beta2.FlowSchemaCondition": { "description": "FlowSchemaCondition describes conditions for a FlowSchema.", "properties": { "lastTransitionTime": { @@ -10505,7 +10403,7 @@ }, "type": "object" }, - "io.k8s.api.flowcontrol.v1beta1.FlowSchemaList": { + "io.k8s.api.flowcontrol.v1beta2.FlowSchemaList": { "description": "FlowSchemaList is a list of FlowSchema objects.", "properties": { "apiVersion": { @@ -10515,7 +10413,7 @@ "items": { "description": "`items` is a list of FlowSchemas.", "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" }, "type": "array" }, @@ -10536,15 +10434,15 @@ { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchemaList", - "version": "v1beta1" + "version": "v1beta2" } ] }, - "io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec": { + "io.k8s.api.flowcontrol.v1beta2.FlowSchemaSpec": { "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", "properties": { "distinguisherMethod": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowDistinguisherMethod", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowDistinguisherMethod", "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." }, "matchingPrecedence": { @@ -10553,13 +10451,13 @@ "type": "integer" }, "priorityLevelConfiguration": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationReference", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationReference", "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." }, "rules": { "description": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PolicyRulesWithSubjects" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PolicyRulesWithSubjects" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -10570,13 +10468,13 @@ ], "type": "object" }, - "io.k8s.api.flowcontrol.v1beta1.FlowSchemaStatus": { + "io.k8s.api.flowcontrol.v1beta2.FlowSchemaStatus": { "description": "FlowSchemaStatus represents the current state of a FlowSchema.", "properties": { "conditions": { "description": "`conditions` is a list of the current states of FlowSchema.", "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchemaCondition" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchemaCondition" }, "type": "array", "x-kubernetes-list-map-keys": [ @@ -10587,7 +10485,7 @@ }, "type": "object" }, - "io.k8s.api.flowcontrol.v1beta1.GroupSubject": { + "io.k8s.api.flowcontrol.v1beta2.GroupSubject": { "description": "GroupSubject holds detailed information for group-kind subject.", "properties": { "name": { @@ -10600,11 +10498,11 @@ ], "type": "object" }, - "io.k8s.api.flowcontrol.v1beta1.LimitResponse": { + "io.k8s.api.flowcontrol.v1beta2.LimitResponse": { "description": "LimitResponse defines how to handle requests that can not be executed right now.", "properties": { "queuing": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.QueuingConfiguration", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.QueuingConfiguration", "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." }, "type": { @@ -10625,7 +10523,7 @@ } ] }, - "io.k8s.api.flowcontrol.v1beta1.LimitedPriorityLevelConfiguration": { + "io.k8s.api.flowcontrol.v1beta2.LimitedPriorityLevelConfiguration": { "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", "properties": { "assuredConcurrencyShares": { @@ -10633,14 +10531,24 @@ "format": "int32", "type": "integer" }, + "borrowingLimitPercent": { + "description": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", + "format": "int32", + "type": "integer" + }, + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": "integer" + }, "limitResponse": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.LimitResponse", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.LimitResponse", "description": "`limitResponse` indicates what to do with requests that can not be executed right now" } }, "type": "object" }, - "io.k8s.api.flowcontrol.v1beta1.NonResourcePolicyRule": { + "io.k8s.api.flowcontrol.v1beta2.NonResourcePolicyRule": { "description": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", "properties": { "nonResourceURLs": { @@ -10666,13 +10574,13 @@ ], "type": "object" }, - "io.k8s.api.flowcontrol.v1beta1.PolicyRulesWithSubjects": { + "io.k8s.api.flowcontrol.v1beta2.PolicyRulesWithSubjects": { "description": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", "properties": { "nonResourceRules": { "description": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.NonResourcePolicyRule" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.NonResourcePolicyRule" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -10680,7 +10588,7 @@ "resourceRules": { "description": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.ResourcePolicyRule" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -10688,7 +10596,7 @@ "subjects": { "description": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.Subject" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.Subject" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -10699,7 +10607,7 @@ ], "type": "object" }, - "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration": { + "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration": { "description": "PriorityLevelConfiguration represents the configuration of a priority level.", "properties": { "apiVersion": { @@ -10715,11 +10623,11 @@ "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationSpec", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationSpec", "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, "status": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationStatus", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationStatus", "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, @@ -10728,11 +10636,11 @@ { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "version": "v1beta2" } ] }, - "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationCondition": { + "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationCondition": { "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", "properties": { "lastTransitionTime": { @@ -10758,7 +10666,7 @@ }, "type": "object" }, - "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList": { + "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationList": { "description": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", "properties": { "apiVersion": { @@ -10768,7 +10676,7 @@ "items": { "description": "`items` is a list of request-priorities.", "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" }, "type": "array" }, @@ -10789,11 +10697,11 @@ { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfigurationList", - "version": "v1beta1" + "version": "v1beta2" } ] }, - "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationReference": { + "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationReference": { "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", "properties": { "name": { @@ -10806,11 +10714,11 @@ ], "type": "object" }, - "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationSpec": { + "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationSpec": { "description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", "properties": { "limited": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.LimitedPriorityLevelConfiguration", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.LimitedPriorityLevelConfiguration", "description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`." }, "type": { @@ -10831,13 +10739,13 @@ } ] }, - "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationStatus": { + "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationStatus": { "description": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", "properties": { "conditions": { "description": "`conditions` is the current state of \"request-priority\".", "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationCondition" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationCondition" }, "type": "array", "x-kubernetes-list-map-keys": [ @@ -10848,7 +10756,7 @@ }, "type": "object" }, - "io.k8s.api.flowcontrol.v1beta1.QueuingConfiguration": { + "io.k8s.api.flowcontrol.v1beta2.QueuingConfiguration": { "description": "QueuingConfiguration holds the configuration parameters for queuing", "properties": { "handSize": { @@ -10869,7 +10777,7 @@ }, "type": "object" }, - "io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule": { + "io.k8s.api.flowcontrol.v1beta2.ResourcePolicyRule": { "description": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", "properties": { "apiGroups": { @@ -10916,7 +10824,7 @@ ], "type": "object" }, - "io.k8s.api.flowcontrol.v1beta1.ServiceAccountSubject": { + "io.k8s.api.flowcontrol.v1beta2.ServiceAccountSubject": { "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", "properties": { "name": { @@ -10934,11 +10842,11 @@ ], "type": "object" }, - "io.k8s.api.flowcontrol.v1beta1.Subject": { + "io.k8s.api.flowcontrol.v1beta2.Subject": { "description": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", "properties": { "group": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.GroupSubject", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.GroupSubject", "description": "`group` matches based on user group name." }, "kind": { @@ -10946,11 +10854,11 @@ "type": "string" }, "serviceAccount": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.ServiceAccountSubject", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.ServiceAccountSubject", "description": "`serviceAccount` matches ServiceAccounts." }, "user": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.UserSubject", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.UserSubject", "description": "`user` matches based on username." } }, @@ -10969,7 +10877,7 @@ } ] }, - "io.k8s.api.flowcontrol.v1beta1.UserSubject": { + "io.k8s.api.flowcontrol.v1beta2.UserSubject": { "description": "UserSubject holds detailed information for user-kind subject.", "properties": { "name": { @@ -10982,7 +10890,7 @@ ], "type": "object" }, - "io.k8s.api.flowcontrol.v1beta2.FlowDistinguisherMethod": { + "io.k8s.api.flowcontrol.v1beta3.FlowDistinguisherMethod": { "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", "properties": { "type": { @@ -10995,7 +10903,7 @@ ], "type": "object" }, - "io.k8s.api.flowcontrol.v1beta2.FlowSchema": { + "io.k8s.api.flowcontrol.v1beta3.FlowSchema": { "description": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", "properties": { "apiVersion": { @@ -11011,11 +10919,11 @@ "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchemaSpec", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchemaSpec", "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, "status": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchemaStatus", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchemaStatus", "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, @@ -11024,11 +10932,11 @@ { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta2" + "version": "v1beta3" } ] }, - "io.k8s.api.flowcontrol.v1beta2.FlowSchemaCondition": { + "io.k8s.api.flowcontrol.v1beta3.FlowSchemaCondition": { "description": "FlowSchemaCondition describes conditions for a FlowSchema.", "properties": { "lastTransitionTime": { @@ -11054,7 +10962,7 @@ }, "type": "object" }, - "io.k8s.api.flowcontrol.v1beta2.FlowSchemaList": { + "io.k8s.api.flowcontrol.v1beta3.FlowSchemaList": { "description": "FlowSchemaList is a list of FlowSchema objects.", "properties": { "apiVersion": { @@ -11064,7 +10972,7 @@ "items": { "description": "`items` is a list of FlowSchemas.", "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" }, "type": "array" }, @@ -11085,15 +10993,15 @@ { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchemaList", - "version": "v1beta2" + "version": "v1beta3" } ] }, - "io.k8s.api.flowcontrol.v1beta2.FlowSchemaSpec": { + "io.k8s.api.flowcontrol.v1beta3.FlowSchemaSpec": { "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", "properties": { "distinguisherMethod": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowDistinguisherMethod", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowDistinguisherMethod", "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." }, "matchingPrecedence": { @@ -11102,13 +11010,13 @@ "type": "integer" }, "priorityLevelConfiguration": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationReference", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationReference", "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." }, "rules": { "description": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PolicyRulesWithSubjects" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PolicyRulesWithSubjects" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -11119,24 +11027,26 @@ ], "type": "object" }, - "io.k8s.api.flowcontrol.v1beta2.FlowSchemaStatus": { + "io.k8s.api.flowcontrol.v1beta3.FlowSchemaStatus": { "description": "FlowSchemaStatus represents the current state of a FlowSchema.", "properties": { "conditions": { "description": "`conditions` is a list of the current states of FlowSchema.", "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchemaCondition" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchemaCondition" }, "type": "array", "x-kubernetes-list-map-keys": [ "type" ], - "x-kubernetes-list-type": "map" + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" } }, "type": "object" }, - "io.k8s.api.flowcontrol.v1beta2.GroupSubject": { + "io.k8s.api.flowcontrol.v1beta3.GroupSubject": { "description": "GroupSubject holds detailed information for group-kind subject.", "properties": { "name": { @@ -11149,11 +11059,11 @@ ], "type": "object" }, - "io.k8s.api.flowcontrol.v1beta2.LimitResponse": { + "io.k8s.api.flowcontrol.v1beta3.LimitResponse": { "description": "LimitResponse defines how to handle requests that can not be executed right now.", "properties": { "queuing": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.QueuingConfiguration", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.QueuingConfiguration", "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." }, "type": { @@ -11174,22 +11084,32 @@ } ] }, - "io.k8s.api.flowcontrol.v1beta2.LimitedPriorityLevelConfiguration": { + "io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration": { "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", "properties": { - "assuredConcurrencyShares": { - "description": "`assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level:\n\n ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) )\n\nbigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30.", + "borrowingLimitPercent": { + "description": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", + "format": "int32", + "type": "integer" + }, + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", "format": "int32", "type": "integer" }, "limitResponse": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.LimitResponse", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.LimitResponse", "description": "`limitResponse` indicates what to do with requests that can not be executed right now" + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[limited priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other Limited priority level. This field has a default value of 30.", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "io.k8s.api.flowcontrol.v1beta2.NonResourcePolicyRule": { + "io.k8s.api.flowcontrol.v1beta3.NonResourcePolicyRule": { "description": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", "properties": { "nonResourceURLs": { @@ -11215,13 +11135,13 @@ ], "type": "object" }, - "io.k8s.api.flowcontrol.v1beta2.PolicyRulesWithSubjects": { + "io.k8s.api.flowcontrol.v1beta3.PolicyRulesWithSubjects": { "description": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", "properties": { "nonResourceRules": { "description": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.NonResourcePolicyRule" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.NonResourcePolicyRule" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -11229,7 +11149,7 @@ "resourceRules": { "description": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.ResourcePolicyRule" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.ResourcePolicyRule" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -11237,7 +11157,7 @@ "subjects": { "description": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.Subject" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.Subject" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -11248,7 +11168,7 @@ ], "type": "object" }, - "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration": { + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration": { "description": "PriorityLevelConfiguration represents the configuration of a priority level.", "properties": { "apiVersion": { @@ -11264,11 +11184,11 @@ "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationSpec", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationSpec", "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, "status": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationStatus", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationStatus", "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, @@ -11277,11 +11197,11 @@ { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "version": "v1beta3" } ] }, - "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationCondition": { + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationCondition": { "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", "properties": { "lastTransitionTime": { @@ -11307,7 +11227,7 @@ }, "type": "object" }, - "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationList": { + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationList": { "description": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", "properties": { "apiVersion": { @@ -11317,7 +11237,7 @@ "items": { "description": "`items` is a list of request-priorities.", "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" }, "type": "array" }, @@ -11338,11 +11258,11 @@ { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfigurationList", - "version": "v1beta2" + "version": "v1beta3" } ] }, - "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationReference": { + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationReference": { "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", "properties": { "name": { @@ -11355,11 +11275,11 @@ ], "type": "object" }, - "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationSpec": { + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationSpec": { "description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", "properties": { "limited": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.LimitedPriorityLevelConfiguration", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration", "description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`." }, "type": { @@ -11380,24 +11300,26 @@ } ] }, - "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationStatus": { + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationStatus": { "description": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", "properties": { "conditions": { "description": "`conditions` is the current state of \"request-priority\".", "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationCondition" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationCondition" }, "type": "array", "x-kubernetes-list-map-keys": [ "type" ], - "x-kubernetes-list-type": "map" + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" } }, "type": "object" }, - "io.k8s.api.flowcontrol.v1beta2.QueuingConfiguration": { + "io.k8s.api.flowcontrol.v1beta3.QueuingConfiguration": { "description": "QueuingConfiguration holds the configuration parameters for queuing", "properties": { "handSize": { @@ -11418,7 +11340,7 @@ }, "type": "object" }, - "io.k8s.api.flowcontrol.v1beta2.ResourcePolicyRule": { + "io.k8s.api.flowcontrol.v1beta3.ResourcePolicyRule": { "description": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", "properties": { "apiGroups": { @@ -11465,7 +11387,7 @@ ], "type": "object" }, - "io.k8s.api.flowcontrol.v1beta2.ServiceAccountSubject": { + "io.k8s.api.flowcontrol.v1beta3.ServiceAccountSubject": { "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", "properties": { "name": { @@ -11483,11 +11405,11 @@ ], "type": "object" }, - "io.k8s.api.flowcontrol.v1beta2.Subject": { + "io.k8s.api.flowcontrol.v1beta3.Subject": { "description": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", "properties": { "group": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.GroupSubject", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.GroupSubject", "description": "`group` matches based on user group name." }, "kind": { @@ -11495,11 +11417,11 @@ "type": "string" }, "serviceAccount": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.ServiceAccountSubject", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.ServiceAccountSubject", "description": "`serviceAccount` matches ServiceAccounts." }, "user": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.UserSubject", + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.UserSubject", "description": "`user` matches based on username." } }, @@ -11518,7 +11440,7 @@ } ] }, - "io.k8s.api.flowcontrol.v1beta2.UserSubject": { + "io.k8s.api.flowcontrol.v1beta3.UserSubject": { "description": "UserSubject holds detailed information for user-kind subject.", "properties": { "name": { @@ -11571,14 +11493,14 @@ "type": "object" }, "io.k8s.api.networking.v1.IPBlock": { - "description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\",\"2001:db9::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", + "description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", "properties": { "cidr": { - "description": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\"", + "description": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"", "type": "string" }, "except": { - "description": "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\" Except values will be rejected if they are outside the CIDR range", + "description": "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the CIDR range", "items": { "type": "string" }, @@ -11780,6 +11702,64 @@ } ] }, + "io.k8s.api.networking.v1.IngressLoadBalancerIngress": { + "description": "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", + "properties": { + "hostname": { + "description": "Hostname is set for load-balancer ingress points that are DNS based.", + "type": "string" + }, + "ip": { + "description": "IP is set for load-balancer ingress points that are IP based.", + "type": "string" + }, + "ports": { + "description": "Ports provides information about the ports exposed by this LoadBalancer.", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressPortStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.networking.v1.IngressLoadBalancerStatus": { + "description": "IngressLoadBalancerStatus represents the status of a load-balancer.", + "properties": { + "ingress": { + "description": "Ingress is a list containing ingress points for the load-balancer.", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressLoadBalancerIngress" + }, + "type": "array" + } + }, + "type": "object" + }, + "io.k8s.api.networking.v1.IngressPortStatus": { + "description": "IngressPortStatus represents the error condition of a service port", + "properties": { + "error": { + "description": "Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", + "type": "string" + }, + "port": { + "description": "Port is the port number of the ingress port.", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "Protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"\n\n", + "type": "string" + } + }, + "required": [ + "port", + "protocol" + ], + "type": "object" + }, "io.k8s.api.networking.v1.IngressRule": { "description": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", "properties": { @@ -11844,7 +11824,7 @@ "description": "IngressStatus describe the current state of the Ingress.", "properties": { "loadBalancer": { - "$ref": "#/definitions/io.k8s.api.core.v1.LoadBalancerStatus", + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressLoadBalancerStatus", "description": "LoadBalancer contains the current status of the load-balancer." } }, @@ -12153,7 +12133,7 @@ "type": "string" }, "ipv6": { - "description": "IPv6 defines an IPv6 IP block in CIDR notation(e.g. \"fd12:3456:789a:1::/64\"). At least one of IPv4 and IPv6 must be specified. This field is immutable.", + "description": "IPv6 defines an IPv6 IP block in CIDR notation(e.g. \"2001:db8::/64\"). At least one of IPv4 and IPv6 must be specified. This field is immutable.", "type": "string" }, "nodeSelector": { @@ -12393,6 +12373,10 @@ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", "description": "Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", "x-kubernetes-patch-strategy": "replace" + }, + "unhealthyPodEvictionPolicy": { + "description": "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.\n\nThis field is alpha-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (disabled by default).", + "type": "string" } }, "type": "object" @@ -12848,20 +12832,30 @@ "type": "object", "x-kubernetes-map-type": "atomic" }, - "io.k8s.api.scheduling.v1.PriorityClass": { - "description": "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.", + "io.k8s.api.resource.v1alpha1.AllocationResult": { + "description": "AllocationResult contains attributed of an allocated resource.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" + "availableOnNodes": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector", + "description": "This field will get set by the resource driver after it has allocated the resource driver to inform the scheduler where it can schedule Pods using the ResourceClaim.\n\nSetting this field is optional. If null, the resource is available everywhere." }, - "description": { - "description": "description is an arbitrary string that usually provides guidelines on when this priority class should be used.", + "resourceHandle": { + "description": "ResourceHandle contains arbitrary data returned by the driver after a successful allocation. This is opaque for Kubernetes. Driver documentation may explain to users how to interpret this data if needed.\n\nThe maximum size of this field is 16KiB. This may get increased in the future, but not reduced.", "type": "string" }, - "globalDefault": { - "description": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.", + "shareable": { + "description": "Shareable determines whether the resource supports more than one consumer at a time.", "type": "boolean" + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1alpha1.PodScheduling": { + "description": "PodScheduling objects hold information that is needed to schedule a Pod with ResourceClaims that use \"WaitForFirstConsumer\" allocation mode.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", @@ -12869,41 +12863,40 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object metadata" }, - "preemptionPolicy": { - "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", - "type": "string" + "spec": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodSchedulingSpec", + "description": "Spec describes where resources for the Pod are needed." }, - "value": { - "description": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", - "format": "int32", - "type": "integer" + "status": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodSchedulingStatus", + "description": "Status describes where resources for the Pod can be allocated." } }, "required": [ - "value" + "spec" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" } ] }, - "io.k8s.api.scheduling.v1.PriorityClassList": { - "description": "PriorityClassList is a collection of priority classes.", + "io.k8s.api.resource.v1alpha1.PodSchedulingList": { + "description": "PodSchedulingList is a collection of Pod scheduling objects.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "items is the list of PriorityClasses", + "description": "Items is the list of PodScheduling objects.", "items": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" }, "type": "array" }, @@ -12913,7 +12906,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata" } }, "required": [ @@ -12922,14 +12915,49 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "scheduling.k8s.io", - "kind": "PriorityClassList", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodSchedulingList", + "version": "v1alpha1" } ] }, - "io.k8s.api.storage.v1.CSIDriver": { - "description": "CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.", + "io.k8s.api.resource.v1alpha1.PodSchedulingSpec": { + "description": "PodSchedulingSpec describes where resources for the Pod are needed.", + "properties": { + "potentialNodes": { + "description": "PotentialNodes lists nodes where the Pod might be able to run.\n\nThe size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "selectedNode": { + "description": "SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1alpha1.PodSchedulingStatus": { + "description": "PodSchedulingStatus describes where resources for the Pod can be allocated.", + "properties": { + "resourceClaims": { + "description": "ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimSchedulingStatus" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1alpha1.ResourceClaim": { + "description": "ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", @@ -12941,11 +12969,15 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object metadata" }, "spec": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriverSpec", - "description": "Specification of the CSI Driver." + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimSpec", + "description": "Spec describes the desired attributes of a resource that then needs to be allocated. It can only be set once when creating the ResourceClaim." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimStatus", + "description": "Status describes whether the resource is available and with which attributes." } }, "required": [ @@ -12954,23 +12986,50 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "CSIDriver", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" } ] }, - "io.k8s.api.storage.v1.CSIDriverList": { - "description": "CSIDriverList is a collection of CSIDriver objects.", + "io.k8s.api.resource.v1alpha1.ResourceClaimConsumerReference": { + "description": "ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced.", + "type": "string" + }, + "resource": { + "description": "Resource is the type of resource being referenced, for example \"pods\".", + "type": "string" + }, + "uid": { + "description": "UID identifies exactly one incarnation of the resource.", + "type": "string" + } + }, + "required": [ + "resource", + "name", + "uid" + ], + "type": "object" + }, + "io.k8s.api.resource.v1alpha1.ResourceClaimList": { + "description": "ResourceClaimList is a collection of claims.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "items is the list of CSIDriver", + "description": "Items is the list of resource claims.", "items": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" }, "type": "array" }, @@ -12980,7 +13039,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata" } }, "required": [ @@ -12989,60 +13048,104 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "CSIDriverList", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaimList", + "version": "v1alpha1" } ] }, - "io.k8s.api.storage.v1.CSIDriverSpec": { - "description": "CSIDriverSpec is the specification of a CSIDriver.", + "io.k8s.api.resource.v1alpha1.ResourceClaimParametersReference": { + "description": "ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim.", "properties": { - "attachRequired": { - "description": "attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.\n\nThis field is immutable.", - "type": "boolean" + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", + "type": "string" }, - "fsGroupPolicy": { - "description": "Defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details.\n\nThis field is immutable.\n\nDefaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.", + "kind": { + "description": "Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \"ConfigMap\".", "type": "string" }, - "podInfoOnMount": { - "description": "If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" if the volume is an ephemeral inline volume\n defined by a CSIVolumeSource, otherwise \"false\"\n\n\"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver.\n\nThis field is immutable.", - "type": "boolean" + "name": { + "description": "Name is the name of resource being referenced.", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, + "io.k8s.api.resource.v1alpha1.ResourceClaimSchedulingStatus": { + "description": "ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode.", + "properties": { + "name": { + "description": "Name matches the pod.spec.resourceClaims[*].Name field.", + "type": "string" }, - "requiresRepublish": { - "description": "RequiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.\n\nNote: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.", - "type": "boolean" + "unsuitableNodes": { + "description": "UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.\n\nThe size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1alpha1.ResourceClaimSpec": { + "description": "ResourceClaimSpec defines how a resource is to be allocated.", + "properties": { + "allocationMode": { + "description": "Allocation can start immediately or when a Pod wants to use the resource. \"WaitForFirstConsumer\" is the default.", + "type": "string" }, - "seLinuxMount": { - "description": "SELinuxMount specifies if the CSI driver supports \"-o context\" mount option.\n\nWhen \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context.\n\nWhen \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem.\n\nDefault is \"false\".", - "type": "boolean" + "parametersRef": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimParametersReference", + "description": "ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim.\n\nThe object must be in the same namespace as the ResourceClaim." }, - "storageCapacity": { - "description": "If set to true, storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information.\n\nThe check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.\n\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\n\nThis field was immutable in Kubernetes <= 1.22 and now is mutable.", + "resourceClassName": { + "description": "ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.", + "type": "string" + } + }, + "required": [ + "resourceClassName" + ], + "type": "object" + }, + "io.k8s.api.resource.v1alpha1.ResourceClaimStatus": { + "description": "ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.", + "properties": { + "allocation": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.AllocationResult", + "description": "Allocation is set by the resource driver once a resource has been allocated successfully. If this is not specified, the resource is not yet allocated." + }, + "deallocationRequested": { + "description": "DeallocationRequested indicates that a ResourceClaim is to be deallocated.\n\nThe driver then must deallocate this claim and reset the field together with clearing the Allocation field.\n\nWhile DeallocationRequested is set, no new consumers may be added to ReservedFor.", "type": "boolean" }, - "tokenRequests": { - "description": "TokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": {\n \"\": {\n \"token\": ,\n \"expirationTimestamp\": ,\n },\n ...\n}\n\nNote: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.", - "items": { - "$ref": "#/definitions/io.k8s.api.storage.v1.TokenRequest" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "driverName": { + "description": "DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.", + "type": "string" }, - "volumeLifecycleModes": { - "description": "volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \"Persistent\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is \"Ephemeral\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta.\n\nThis field is immutable.", + "reservedFor": { + "description": "ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started.\n\nThere can be at most 32 such reservations. This may get increased in the future, but not reduced.", "items": { - "type": "string" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimConsumerReference" }, "type": "array", - "x-kubernetes-list-type": "set" + "x-kubernetes-list-map-keys": [ + "uid" + ], + "x-kubernetes-list-type": "map" } }, "type": "object" }, - "io.k8s.api.storage.v1.CSINode": { - "description": "CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.", + "io.k8s.api.resource.v1alpha1.ResourceClaimTemplate": { + "description": "ResourceClaimTemplate is used to produce ResourceClaim objects.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", @@ -13054,11 +13157,11 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "metadata.name must be the Kubernetes node name." + "description": "Standard object metadata" }, "spec": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSINodeSpec", - "description": "spec is the specification of CSINode" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplateSpec", + "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." } }, "required": [ @@ -13067,52 +13170,23 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "CSINode", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" } ] }, - "io.k8s.api.storage.v1.CSINodeDriver": { - "description": "CSINodeDriver holds information about the specification of one CSI driver installed on a node", - "properties": { - "allocatable": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeNodeResources", - "description": "allocatable represents the volume resources of a node that are available for scheduling. This field is beta." - }, - "name": { - "description": "This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.", - "type": "string" - }, - "nodeID": { - "description": "nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required.", - "type": "string" - }, - "topologyKeys": { - "description": "topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "name", - "nodeID" - ], - "type": "object" - }, - "io.k8s.api.storage.v1.CSINodeList": { - "description": "CSINodeList is a collection of CSINode objects.", + "io.k8s.api.resource.v1alpha1.ResourceClaimTemplateList": { + "description": "ResourceClaimTemplateList is a collection of claim templates.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "items is the list of CSINode", + "description": "Items is the list of resource claim templates.", "items": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" }, "type": "array" }, @@ -13122,7 +13196,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata" } }, "required": [ @@ -13131,58 +13205,465 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "CSINodeList", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplateList", + "version": "v1alpha1" } ] }, - "io.k8s.api.storage.v1.CSINodeSpec": { - "description": "CSINodeSpec holds information about the specification of all CSI drivers installed on a node", + "io.k8s.api.resource.v1alpha1.ResourceClaimTemplateSpec": { + "description": "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.", "properties": { - "drivers": { - "description": "drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.", - "items": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSINodeDriver" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimSpec", + "description": "Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here." } }, "required": [ - "drivers" + "spec" ], "type": "object" }, - "io.k8s.api.storage.v1.CSIStorageCapacity": { - "description": "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes.\n\nFor example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\"\n\nThe following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.", + "io.k8s.api.resource.v1alpha1.ResourceClass": { + "description": "ResourceClass is used by administrators to influence how resources are allocated.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "capacity": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable." + "driverName": { + "description": "DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class.\n\nResource drivers have a unique name in forward domain order (acme.example.com).", + "type": "string" }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, - "maximumVolumeSize": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim." - }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object metadata" }, - "nodeTopology": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "NodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable." + "parametersRef": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClassParametersReference", + "description": "ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec." }, - "storageClassName": { + "suitableNodes": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector", + "description": "Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet.\n\nSetting this field is optional. If null, all nodes are candidates." + } + }, + "required": [ + "driverName" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.resource.v1alpha1.ResourceClassList": { + "description": "ResourceClassList is a collection of classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of resource classes.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClassList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.resource.v1alpha1.ResourceClassParametersReference": { + "description": "ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced.", + "type": "string" + }, + "namespace": { + "description": "Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1.PriorityClass": { + "description": "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "description": { + "description": "description is an arbitrary string that usually provides guidelines on when this priority class should be used.", + "type": "string" + }, + "globalDefault": { + "description": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.", + "type": "boolean" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", + "type": "string" + }, + "value": { + "description": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "value" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + ] + }, + "io.k8s.api.scheduling.v1.PriorityClassList": { + "description": "PriorityClassList is a collection of priority classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of PriorityClasses", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "PriorityClassList", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSIDriver": { + "description": "CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriverSpec", + "description": "Specification of the CSI Driver." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIDriver", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSIDriverList": { + "description": "CSIDriverList is a collection of CSIDriver objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of CSIDriver", + "items": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIDriverList", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSIDriverSpec": { + "description": "CSIDriverSpec is the specification of a CSIDriver.", + "properties": { + "attachRequired": { + "description": "attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.\n\nThis field is immutable.", + "type": "boolean" + }, + "fsGroupPolicy": { + "description": "Defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details.\n\nThis field is immutable.\n\nDefaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.", + "type": "string" + }, + "podInfoOnMount": { + "description": "If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" if the volume is an ephemeral inline volume\n defined by a CSIVolumeSource, otherwise \"false\"\n\n\"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver.\n\nThis field is immutable.", + "type": "boolean" + }, + "requiresRepublish": { + "description": "RequiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.\n\nNote: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.", + "type": "boolean" + }, + "seLinuxMount": { + "description": "SELinuxMount specifies if the CSI driver supports \"-o context\" mount option.\n\nWhen \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context.\n\nWhen \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem.\n\nDefault is \"false\".", + "type": "boolean" + }, + "storageCapacity": { + "description": "If set to true, storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information.\n\nThe check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.\n\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\n\nThis field was immutable in Kubernetes <= 1.22 and now is mutable.", + "type": "boolean" + }, + "tokenRequests": { + "description": "TokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": {\n \"\": {\n \"token\": ,\n \"expirationTimestamp\": ,\n },\n ...\n}\n\nNote: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.", + "items": { + "$ref": "#/definitions/io.k8s.api.storage.v1.TokenRequest" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "volumeLifecycleModes": { + "description": "volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \"Persistent\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is \"Ephemeral\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta.\n\nThis field is immutable.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "type": "object" + }, + "io.k8s.api.storage.v1.CSINode": { + "description": "CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "metadata.name must be the Kubernetes node name." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINodeSpec", + "description": "spec is the specification of CSINode" + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSINodeDriver": { + "description": "CSINodeDriver holds information about the specification of one CSI driver installed on a node", + "properties": { + "allocatable": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeNodeResources", + "description": "allocatable represents the volume resources of a node that are available for scheduling. This field is beta." + }, + "name": { + "description": "This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.", + "type": "string" + }, + "nodeID": { + "description": "nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required.", + "type": "string" + }, + "topologyKeys": { + "description": "topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "name", + "nodeID" + ], + "type": "object" + }, + "io.k8s.api.storage.v1.CSINodeList": { + "description": "CSINodeList is a collection of CSINode objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is the list of CSINode", + "items": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSINodeList", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSINodeSpec": { + "description": "CSINodeSpec holds information about the specification of all CSI drivers installed on a node", + "properties": { + "drivers": { + "description": "drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.", + "items": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINodeDriver" + }, + "type": "array", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "required": [ + "drivers" + ], + "type": "object" + }, + "io.k8s.api.storage.v1.CSIStorageCapacity": { + "description": "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes.\n\nFor example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\"\n\nThe following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "capacity": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "maximumVolumeSize": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim." + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "nodeTopology": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable." + }, + "storageClassName": { "description": "The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.", "type": "string" } @@ -13811,7 +14292,7 @@ "description": "names specify the resource and kind names for the custom resource." }, "preserveUnknownFields": { - "description": "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details.", + "description": "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details.", "type": "boolean" }, "scope": { @@ -14575,6 +15056,11 @@ "kind": "DeleteOptions", "version": "v1" }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, { "group": "admissionregistration.k8s.io", "kind": "DeleteOptions", @@ -14620,6 +15106,11 @@ "kind": "DeleteOptions", "version": "v1" }, + { + "group": "authentication.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, { "group": "authentication.k8s.io", "kind": "DeleteOptions", @@ -14725,6 +15216,11 @@ "kind": "DeleteOptions", "version": "v1beta2" }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta3" + }, { "group": "imagepolicy.k8s.io", "kind": "DeleteOptions", @@ -14790,6 +15286,11 @@ "kind": "DeleteOptions", "version": "v1beta1" }, + { + "group": "resource.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, { "group": "scheduling.k8s.io", "kind": "DeleteOptions", @@ -15156,6 +15657,11 @@ "group": "", "kind": "Status", "version": "v1" + }, + { + "group": "resource.k8s.io", + "kind": "Status", + "version": "v1alpha1" } ] }, @@ -15253,6 +15759,11 @@ "kind": "WatchEvent", "version": "v1" }, + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, { "group": "admissionregistration.k8s.io", "kind": "WatchEvent", @@ -15298,6 +15809,11 @@ "kind": "WatchEvent", "version": "v1" }, + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, { "group": "authentication.k8s.io", "kind": "WatchEvent", @@ -15403,6 +15919,11 @@ "kind": "WatchEvent", "version": "v1beta2" }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta3" + }, { "group": "imagepolicy.k8s.io", "kind": "WatchEvent", @@ -15468,6 +15989,11 @@ "kind": "WatchEvent", "version": "v1beta1" }, + { + "group": "resource.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, { "group": "scheduling.k8s.io", "kind": "WatchEvent", @@ -37752,40 +38278,7 @@ } ] }, - "/apis/apiextensions.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getApiextensionsAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiextensions" - ] - } - }, - "/apis/apiextensions.k8s.io/v1/": { + "/apis/admissionregistration.k8s.io/v1alpha1/": { "get": { "consumes": [ "application/json", @@ -37793,7 +38286,7 @@ "application/vnd.kubernetes.protobuf" ], "description": "get available resources", - "operationId": "getApiextensionsV1APIResources", + "operationId": "getAdmissionregistrationV1alpha1APIResources", "produces": [ "application/json", "application/yaml", @@ -37814,17 +38307,17 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ] } }, - "/apis/apiextensions.k8s.io/v1/customresourcedefinitions": { + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of CustomResourceDefinition", - "operationId": "deleteApiextensionsV1CollectionCustomResourceDefinition", + "description": "delete collection of ValidatingAdmissionPolicy", + "operationId": "deleteAdmissionregistrationV1alpha1CollectionValidatingAdmissionPolicy", "parameters": [ { "in": "body", @@ -37931,21 +38424,21 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind CustomResourceDefinition", - "operationId": "listApiextensionsV1CustomResourceDefinition", + "description": "list or watch objects of kind ValidatingAdmissionPolicy", + "operationId": "listAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -38022,7 +38515,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList" + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList" } }, "401": { @@ -38033,13 +38526,13 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" } }, "parameters": [ @@ -38055,15 +38548,15 @@ "consumes": [ "*/*" ], - "description": "create a CustomResourceDefinition", - "operationId": "createApiextensionsV1CustomResourceDefinition", + "description": "create a ValidatingAdmissionPolicy", + "operationId": "createAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" } }, { @@ -38097,19 +38590,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" } }, "401": { @@ -38120,23 +38613,23 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" } } }, - "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}": { + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a CustomResourceDefinition", - "operationId": "deleteApiextensionsV1CustomResourceDefinition", + "description": "delete a ValidatingAdmissionPolicy", + "operationId": "deleteAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", "parameters": [ { "in": "body", @@ -38200,21 +38693,21 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified CustomResourceDefinition", - "operationId": "readApiextensionsV1CustomResourceDefinition", + "description": "read the specified ValidatingAdmissionPolicy", + "operationId": "readAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", "produces": [ "application/json", "application/yaml", @@ -38224,7 +38717,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" } }, "401": { @@ -38235,18 +38728,18 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the CustomResourceDefinition", + "description": "name of the ValidatingAdmissionPolicy", "in": "path", "name": "name", "required": true, @@ -38268,8 +38761,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified CustomResourceDefinition", - "operationId": "patchApiextensionsV1CustomResourceDefinition", + "description": "partially update the specified ValidatingAdmissionPolicy", + "operationId": "patchAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", "parameters": [ { "in": "body", @@ -38317,13 +38810,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" } }, "401": { @@ -38334,28 +38827,28 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified CustomResourceDefinition", - "operationId": "replaceApiextensionsV1CustomResourceDefinition", + "description": "replace the specified ValidatingAdmissionPolicy", + "operationId": "replaceAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" } }, { @@ -38389,13 +38882,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" } }, "401": { @@ -38406,23 +38899,109 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" } } }, - "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status": { - "get": { + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings": { + "delete": { "consumes": [ "*/*" ], - "description": "read status of the specified CustomResourceDefinition", - "operationId": "readApiextensionsV1CustomResourceDefinitionStatus", + "description": "delete collection of ValidatingAdmissionPolicyBinding", + "operationId": "deleteAdmissionregistrationV1alpha1CollectionValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", @@ -38432,7 +39011,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -38443,75 +39022,82 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" } }, - "parameters": [ - { - "description": "name of the CustomResourceDefinition", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" + "*/*" ], - "description": "partially update status of the specified CustomResourceDefinition", - "operationId": "patchApiextensionsV1CustomResourceDefinitionStatus", + "description": "list or watch objects of kind ValidatingAdmissionPolicyBinding", + "operationId": "listAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", "parameters": [ { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", - "name": "dryRun", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", - "name": "fieldManager", + "name": "fieldSelector", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", - "name": "fieldValidation", + "name": "labelSelector", "type": "string", "uniqueItems": true }, { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", "in": "query", - "name": "force", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", "type": "boolean", "uniqueItems": true } @@ -38519,19 +39105,15 @@ "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList" } }, "401": { @@ -38542,28 +39124,37 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" } }, - "put": { + "parameters": [ + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { "consumes": [ "*/*" ], - "description": "replace status of the specified CustomResourceDefinition", - "operationId": "replaceApiextensionsV1CustomResourceDefinitionStatus", + "description": "create a ValidatingAdmissionPolicyBinding", + "operationId": "createAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" } }, { @@ -38597,13 +39188,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" } }, "401": { @@ -38614,23 +39211,309 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ValidatingAdmissionPolicyBinding", + "operationId": "deleteAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ValidatingAdmissionPolicyBinding", + "operationId": "readAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ValidatingAdmissionPolicyBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ValidatingAdmissionPolicyBinding", + "operationId": "patchAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ValidatingAdmissionPolicyBinding", + "operationId": "replaceAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" } } }, - "/apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions": { + "/apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicies": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of CustomResourceDefinition. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchApiextensionsV1CustomResourceDefinitionList", + "description": "watch individual changes to a list of ValidatingAdmissionPolicy. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAdmissionregistrationV1alpha1ValidatingAdmissionPolicyList", "produces": [ "application/json", "application/yaml", @@ -38653,13 +39536,13 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" } }, "parameters": [ @@ -38735,13 +39618,13 @@ } ] }, - "/apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions/{name}": { + "/apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicies/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind CustomResourceDefinition. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchApiextensionsV1CustomResourceDefinition", + "description": "watch changes to an object of kind ValidatingAdmissionPolicy. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", "produces": [ "application/json", "application/yaml", @@ -38764,13 +39647,13 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" } }, "parameters": [ @@ -38810,7 +39693,7 @@ "uniqueItems": true }, { - "description": "name of the CustomResourceDefinition", + "description": "name of the ValidatingAdmissionPolicy", "in": "path", "name": "name", "required": true, @@ -38854,25 +39737,136 @@ } ] }, - "/apis/apiregistration.k8s.io/": { + "/apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicybindings": { "get": { "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ValidatingAdmissionPolicyBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingList", + "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], - "description": "get information of a group", - "operationId": "getApiregistrationAPIGroup", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicybindings/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ValidatingAdmissionPolicyBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -38883,19 +39877,105 @@ "https" ], "tags": [ - "apiregistration" - ] - } + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ValidatingAdmissionPolicyBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/apiregistration.k8s.io/v1/": { + "/apis/apiextensions.k8s.io/": { "get": { "consumes": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "description": "get available resources", - "operationId": "getApiregistrationV1APIResources", + "description": "get information of a group", + "operationId": "getApiextensionsAPIGroup", "produces": [ "application/json", "application/yaml", @@ -38905,7 +39985,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" } }, "401": { @@ -38916,17 +39996,50 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions" ] } }, - "/apis/apiregistration.k8s.io/v1/apiservices": { - "delete": { + "/apis/apiextensions.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getApiextensionsV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiextensions_v1" + ] + } + }, + "/apis/apiextensions.k8s.io/v1/customresourcedefinitions": { + "delete": { "consumes": [ "*/*" ], - "description": "delete collection of APIService", - "operationId": "deleteApiregistrationV1CollectionAPIService", + "description": "delete collection of CustomResourceDefinition", + "operationId": "deleteApiextensionsV1CollectionCustomResourceDefinition", "parameters": [ { "in": "body", @@ -39033,12 +40146,12 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" } }, @@ -39046,8 +40159,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind APIService", - "operationId": "listApiregistrationV1APIService", + "description": "list or watch objects of kind CustomResourceDefinition", + "operationId": "listApiextensionsV1CustomResourceDefinition", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -39124,7 +40237,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList" + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList" } }, "401": { @@ -39135,12 +40248,12 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" } }, @@ -39157,15 +40270,15 @@ "consumes": [ "*/*" ], - "description": "create an APIService", - "operationId": "createApiregistrationV1APIService", + "description": "create a CustomResourceDefinition", + "operationId": "createApiextensionsV1CustomResourceDefinition", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" } }, { @@ -39199,19 +40312,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" } }, "401": { @@ -39222,23 +40335,23 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" } } }, - "/apis/apiregistration.k8s.io/v1/apiservices/{name}": { + "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an APIService", - "operationId": "deleteApiregistrationV1APIService", + "description": "delete a CustomResourceDefinition", + "operationId": "deleteApiextensionsV1CustomResourceDefinition", "parameters": [ { "in": "body", @@ -39302,12 +40415,12 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" } }, @@ -39315,8 +40428,8 @@ "consumes": [ "*/*" ], - "description": "read the specified APIService", - "operationId": "readApiregistrationV1APIService", + "description": "read the specified CustomResourceDefinition", + "operationId": "readApiextensionsV1CustomResourceDefinition", "produces": [ "application/json", "application/yaml", @@ -39326,7 +40439,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" } }, "401": { @@ -39337,18 +40450,18 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" } }, "parameters": [ { - "description": "name of the APIService", + "description": "name of the CustomResourceDefinition", "in": "path", "name": "name", "required": true, @@ -39370,8 +40483,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified APIService", - "operationId": "patchApiregistrationV1APIService", + "description": "partially update the specified CustomResourceDefinition", + "operationId": "patchApiextensionsV1CustomResourceDefinition", "parameters": [ { "in": "body", @@ -39419,13 +40532,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" } }, "401": { @@ -39436,12 +40549,12 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" } }, @@ -39449,15 +40562,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified APIService", - "operationId": "replaceApiregistrationV1APIService", + "description": "replace the specified CustomResourceDefinition", + "operationId": "replaceApiextensionsV1CustomResourceDefinition", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" } }, { @@ -39491,13 +40604,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" } }, "401": { @@ -39508,23 +40621,23 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" } } }, - "/apis/apiregistration.k8s.io/v1/apiservices/{name}/status": { + "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified APIService", - "operationId": "readApiregistrationV1APIServiceStatus", + "description": "read status of the specified CustomResourceDefinition", + "operationId": "readApiextensionsV1CustomResourceDefinitionStatus", "produces": [ "application/json", "application/yaml", @@ -39534,7 +40647,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" } }, "401": { @@ -39545,18 +40658,18 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" } }, "parameters": [ { - "description": "name of the APIService", + "description": "name of the CustomResourceDefinition", "in": "path", "name": "name", "required": true, @@ -39578,8 +40691,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified APIService", - "operationId": "patchApiregistrationV1APIServiceStatus", + "description": "partially update status of the specified CustomResourceDefinition", + "operationId": "patchApiextensionsV1CustomResourceDefinitionStatus", "parameters": [ { "in": "body", @@ -39627,13 +40740,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" } }, "401": { @@ -39644,12 +40757,12 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" } }, @@ -39657,15 +40770,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified APIService", - "operationId": "replaceApiregistrationV1APIServiceStatus", + "description": "replace status of the specified CustomResourceDefinition", + "operationId": "replaceApiextensionsV1CustomResourceDefinitionStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" } }, { @@ -39699,13 +40812,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" } }, "401": { @@ -39716,23 +40829,23 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" } } }, - "/apis/apiregistration.k8s.io/v1/watch/apiservices": { + "/apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of APIService. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchApiregistrationV1APIServiceList", + "description": "watch individual changes to a list of CustomResourceDefinition. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchApiextensionsV1CustomResourceDefinitionList", "produces": [ "application/json", "application/yaml", @@ -39755,12 +40868,12 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" } }, @@ -39837,13 +40950,13 @@ } ] }, - "/apis/apiregistration.k8s.io/v1/watch/apiservices/{name}": { + "/apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind APIService. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchApiregistrationV1APIService", + "description": "watch changes to an object of kind CustomResourceDefinition. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchApiextensionsV1CustomResourceDefinition", "produces": [ "application/json", "application/yaml", @@ -39866,12 +40979,12 @@ "https" ], "tags": [ - "apiregistration_v1" + "apiextensions_v1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" } }, @@ -39912,7 +41025,7 @@ "uniqueItems": true }, { - "description": "name of the APIService", + "description": "name of the CustomResourceDefinition", "in": "path", "name": "name", "required": true, @@ -39956,7 +41069,7 @@ } ] }, - "/apis/apps/": { + "/apis/apiregistration.k8s.io/": { "get": { "consumes": [ "application/json", @@ -39964,7 +41077,7 @@ "application/vnd.kubernetes.protobuf" ], "description": "get information of a group", - "operationId": "getAppsAPIGroup", + "operationId": "getApiregistrationAPIGroup", "produces": [ "application/json", "application/yaml", @@ -39985,11 +41098,11 @@ "https" ], "tags": [ - "apps" + "apiregistration" ] } }, - "/apis/apps/v1/": { + "/apis/apiregistration.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -39997,7 +41110,7 @@ "application/vnd.kubernetes.protobuf" ], "description": "get available resources", - "operationId": "getAppsV1APIResources", + "operationId": "getApiregistrationV1APIResources", "produces": [ "application/json", "application/yaml", @@ -40018,29 +41131,113 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ] } }, - "/apis/apps/v1/controllerrevisions": { - "get": { + "/apis/apiregistration.k8s.io/v1/apiservices": { + "delete": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ControllerRevision", - "operationId": "listAppsV1ControllerRevisionForAllNamespaces", + "description": "delete collection of APIService", + "operationId": "deleteApiregistrationV1CollectionAPIService", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevisionList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -40051,95 +41248,86 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" } }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/daemonsets": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind DaemonSet", - "operationId": "listAppsV1DaemonSetForAllNamespaces", + "description": "list or watch objects of kind APIService", + "operationId": "listApiregistrationV1APIService", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", @@ -40151,7 +41339,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSetList" + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList" } }, "401": { @@ -40162,107 +41350,83 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" } }, "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/apps/v1/deployments": { - "get": { + ], + "post": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Deployment", - "operationId": "listAppsV1DeploymentForAllNamespaces", + "description": "create an APIService", + "operationId": "createApiregistrationV1APIService", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DeploymentList" + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" } }, "401": { @@ -40273,95 +41437,23 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + } }, - "/apis/apps/v1/namespaces/{namespace}/controllerrevisions": { + "/apis/apiregistration.k8s.io/v1/apiservices/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ControllerRevision", - "operationId": "deleteAppsV1CollectionNamespacedControllerRevision", + "description": "delete an APIService", + "operationId": "deleteApiregistrationV1APIService", "parameters": [ { "in": "body", @@ -40370,13 +41462,6 @@ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" } }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, { "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", "in": "query", @@ -40384,13 +41469,6 @@ "type": "string", "uniqueItems": true }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, { "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", "in": "query", @@ -40398,20 +41476,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "in": "query", @@ -40425,27 +41489,6 @@ "name": "propagationPolicy", "type": "string", "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true } ], "produces": [ @@ -40460,6 +41503,12 @@ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, "401": { "description": "Unauthorized" } @@ -40468,12 +41517,12 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" } }, @@ -40481,85 +41530,18 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ControllerRevision", - "operationId": "listAppsV1NamespacedControllerRevision", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], + "description": "read the specified APIService", + "operationId": "readApiregistrationV1APIService", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevisionList" + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" } }, "401": { @@ -40570,20 +41552,20 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" } }, "parameters": [ { - "description": "object name and auth scope, such as for teams and projects", + "description": "name of the APIService", "in": "path", - "name": "namespace", + "name": "name", "required": true, "type": "string", "uniqueItems": true @@ -40596,19 +41578,22 @@ "uniqueItems": true } ], - "post": { + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" ], - "description": "create a ControllerRevision", - "operationId": "createAppsV1NamespacedControllerRevision", + "description": "partially update the specified APIService", + "operationId": "patchApiregistrationV1APIService", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" } }, { @@ -40619,7 +41604,7 @@ "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", "in": "query", "name": "fieldManager", "type": "string", @@ -40631,6 +41616,13 @@ "name": "fieldValidation", "type": "string", "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true } ], "produces": [ @@ -40642,19 +41634,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" } }, "401": { @@ -40665,29 +41651,28 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" } - } - }, - "/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}": { - "delete": { + }, + "put": { "consumes": [ "*/*" ], - "description": "delete a ControllerRevision", - "operationId": "deleteAppsV1NamespacedControllerRevision", + "description": "replace the specified APIService", + "operationId": "replaceApiregistrationV1APIService", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" } }, { @@ -40698,23 +41683,16 @@ "uniqueItems": true }, { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", "in": "query", - "name": "orphanDependents", - "type": "boolean", + "name": "fieldManager", + "type": "string", "uniqueItems": true }, { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", "in": "query", - "name": "propagationPolicy", + "name": "fieldValidation", "type": "string", "uniqueItems": true } @@ -40728,13 +41706,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" } }, - "202": { - "description": "Accepted", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" } }, "401": { @@ -40745,21 +41723,23 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" } - }, + } + }, + "/apis/apiregistration.k8s.io/v1/apiservices/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read the specified ControllerRevision", - "operationId": "readAppsV1NamespacedControllerRevision", + "description": "read status of the specified APIService", + "operationId": "readApiregistrationV1APIServiceStatus", "produces": [ "application/json", "application/yaml", @@ -40769,7 +41749,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" } }, "401": { @@ -40780,32 +41760,24 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" } }, "parameters": [ { - "description": "name of the ControllerRevision", + "description": "name of the APIService", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -40821,8 +41793,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified ControllerRevision", - "operationId": "patchAppsV1NamespacedControllerRevision", + "description": "partially update status of the specified APIService", + "operationId": "patchApiregistrationV1APIServiceStatus", "parameters": [ { "in": "body", @@ -40870,13 +41842,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" } }, "401": { @@ -40887,12 +41859,12 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" } }, @@ -40900,15 +41872,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ControllerRevision", - "operationId": "replaceAppsV1NamespacedControllerRevision", + "description": "replace status of the specified APIService", + "operationId": "replaceApiregistrationV1APIServiceStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" } }, { @@ -40942,13 +41914,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" } }, "401": { @@ -40959,119 +41931,35 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" } } }, - "/apis/apps/v1/namespaces/{namespace}/daemonsets": { - "delete": { + "/apis/apiregistration.k8s.io/v1/watch/apiservices": { + "get": { "consumes": [ "*/*" ], - "description": "delete collection of DaemonSet", - "operationId": "deleteAppsV1CollectionNamespacedDaemonSet", - "parameters": [ - { - "in": "body", - "name": "body", + "description": "watch individual changes to a list of APIService. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchApiregistrationV1APIServiceList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -41082,86 +41970,95 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" } }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apiregistration.k8s.io/v1/watch/apiservices/{name}": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind DaemonSet", - "operationId": "listAppsV1NamespacedDaemonSet", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], + "description": "watch changes to an object of kind APIService. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchApiregistrationV1APIService", "produces": [ "application/json", "application/yaml", @@ -41173,7 +42070,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSetList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -41184,20 +42081,55 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" } }, "parameters": [ { - "description": "object name and auth scope, such as for teams and projects", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the APIService", "in": "path", - "name": "namespace", + "name": "name", "required": true, "type": "string", "uniqueItems": true @@ -41208,45 +42140,46 @@ "name": "pretty", "type": "string", "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - ], - "post": { + ] + }, + "/apis/apps/": { + "get": { "consumes": [ - "*/*" - ], - "description": "create a DaemonSet", - "operationId": "createAppsV1NamespacedDaemonSet", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], + "description": "get information of a group", + "operationId": "getAppsAPIGroup", "produces": [ "application/json", "application/yaml", @@ -41256,19 +42189,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" } }, "401": { @@ -41279,60 +42200,19 @@ "https" ], "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } + "apps" + ] } }, - "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}": { - "delete": { + "/apis/apps/v1/": { + "get": { "consumes": [ - "*/*" - ], - "description": "delete a DaemonSet", - "operationId": "deleteAppsV1NamespacedDaemonSet", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], + "description": "get available resources", + "operationId": "getAppsV1APIResources", "produces": [ "application/json", "application/yaml", @@ -41342,13 +42222,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" } }, "401": { @@ -41360,30 +42234,28 @@ ], "tags": [ "apps_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } - }, + ] + } + }, + "/apis/apps/v1/controllerrevisions": { "get": { "consumes": [ "*/*" ], - "description": "read the specified DaemonSet", - "operationId": "readAppsV1NamespacedDaemonSet", + "description": "list or watch objects of kind ControllerRevision", + "operationId": "listAppsV1ControllerRevisionForAllNamespaces", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevisionList" } }, "401": { @@ -41396,101 +42268,105 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "DaemonSet", + "kind": "ControllerRevision", "version": "v1" } }, "parameters": [ { - "description": "name of the DaemonSet", - "in": "path", - "name": "name", - "required": true, + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", "type": "string", "uniqueItems": true }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified DaemonSet", - "operationId": "patchAppsV1NamespacedDaemonSet", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } + ] + }, + "/apis/apps/v1/daemonsets": { + "get": { + "consumes": [ + "*/*" ], + "description": "list or watch objects of kind DaemonSet", + "operationId": "listAppsV1DaemonSetForAllNamespaces", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSetList" } }, "401": { @@ -41503,103 +42379,105 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "apps", "kind": "DaemonSet", "version": "v1" } }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified DaemonSet", - "operationId": "replaceAppsV1NamespacedDaemonSet", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - } + ] }, - "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status": { + "/apis/apps/v1/deployments": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified DaemonSet", - "operationId": "readAppsV1NamespacedDaemonSetStatus", + "description": "list or watch objects of kind Deployment", + "operationId": "listAppsV1DeploymentForAllNamespaces", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.DeploymentList" } }, "401": { @@ -41612,200 +42490,93 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "DaemonSet", + "kind": "Deployment", "version": "v1" } }, "parameters": [ { - "description": "name of the DaemonSet", - "in": "path", - "name": "name", - "required": true, + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", "type": "string", "uniqueItems": true }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified DaemonSet", - "operationId": "patchAppsV1NamespacedDaemonSetStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified DaemonSet", - "operationId": "replaceAppsV1NamespacedDaemonSetStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - } + ] }, - "/apis/apps/v1/namespaces/{namespace}/deployments": { + "/apis/apps/v1/namespaces/{namespace}/controllerrevisions": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of Deployment", - "operationId": "deleteAppsV1CollectionNamespacedDeployment", + "description": "delete collection of ControllerRevision", + "operationId": "deleteAppsV1CollectionNamespacedControllerRevision", "parameters": [ { "in": "body", @@ -41917,7 +42688,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" } }, @@ -41925,8 +42696,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind Deployment", - "operationId": "listAppsV1NamespacedDeployment", + "description": "list or watch objects of kind ControllerRevision", + "operationId": "listAppsV1NamespacedControllerRevision", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -42003,7 +42774,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DeploymentList" + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevisionList" } }, "401": { @@ -42019,7 +42790,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" } }, @@ -42044,15 +42815,15 @@ "consumes": [ "*/*" ], - "description": "create a Deployment", - "operationId": "createAppsV1NamespacedDeployment", + "description": "create a ControllerRevision", + "operationId": "createAppsV1NamespacedControllerRevision", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" } }, { @@ -42086,19 +42857,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" } }, "401": { @@ -42114,18 +42885,18 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" } } }, - "/apis/apps/v1/namespaces/{namespace}/deployments/{name}": { + "/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a Deployment", - "operationId": "deleteAppsV1NamespacedDeployment", + "description": "delete a ControllerRevision", + "operationId": "deleteAppsV1NamespacedControllerRevision", "parameters": [ { "in": "body", @@ -42194,7 +42965,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" } }, @@ -42202,8 +42973,8 @@ "consumes": [ "*/*" ], - "description": "read the specified Deployment", - "operationId": "readAppsV1NamespacedDeployment", + "description": "read the specified ControllerRevision", + "operationId": "readAppsV1NamespacedControllerRevision", "produces": [ "application/json", "application/yaml", @@ -42213,7 +42984,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" } }, "401": { @@ -42229,13 +43000,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" } }, "parameters": [ { - "description": "name of the Deployment", + "description": "name of the ControllerRevision", "in": "path", "name": "name", "required": true, @@ -42265,8 +43036,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified Deployment", - "operationId": "patchAppsV1NamespacedDeployment", + "description": "partially update the specified ControllerRevision", + "operationId": "patchAppsV1NamespacedControllerRevision", "parameters": [ { "in": "body", @@ -42314,13 +43085,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" } }, "401": { @@ -42336,7 +43107,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" } }, @@ -42344,15 +43115,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified Deployment", - "operationId": "replaceAppsV1NamespacedDeployment", + "description": "replace the specified ControllerRevision", + "operationId": "replaceAppsV1NamespacedControllerRevision", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" } }, { @@ -42386,13 +43157,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" } }, "401": { @@ -42408,19 +43179,105 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" } } }, - "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale": { - "get": { + "/apis/apps/v1/namespaces/{namespace}/daemonsets": { + "delete": { "consumes": [ "*/*" ], - "description": "read scale of the specified Deployment", - "operationId": "readAppsV1NamespacedDeploymentScale", - "produces": [ + "description": "delete collection of DaemonSet", + "operationId": "deleteAppsV1CollectionNamespacedDaemonSet", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" @@ -42429,7 +43286,319 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind DaemonSet", + "operationId": "listAppsV1NamespacedDaemonSet", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + }, + "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a DaemonSet", + "operationId": "createAppsV1NamespacedDaemonSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + } + }, + "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a DaemonSet", + "operationId": "deleteAppsV1NamespacedDaemonSet", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified DaemonSet", + "operationId": "readAppsV1NamespacedDaemonSet", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" } }, "401": { @@ -42444,14 +43613,14 @@ ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", + "group": "apps", + "kind": "DaemonSet", "version": "v1" } }, "parameters": [ { - "description": "name of the Scale", + "description": "name of the DaemonSet", "in": "path", "name": "name", "required": true, @@ -42481,8 +43650,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update scale of the specified Deployment", - "operationId": "patchAppsV1NamespacedDeploymentScale", + "description": "partially update the specified DaemonSet", + "operationId": "patchAppsV1NamespacedDaemonSet", "parameters": [ { "in": "body", @@ -42530,13 +43699,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" } }, "401": { @@ -42551,8 +43720,8 @@ ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", + "group": "apps", + "kind": "DaemonSet", "version": "v1" } }, @@ -42560,15 +43729,15 @@ "consumes": [ "*/*" ], - "description": "replace scale of the specified Deployment", - "operationId": "replaceAppsV1NamespacedDeploymentScale", + "description": "replace the specified DaemonSet", + "operationId": "replaceAppsV1NamespacedDaemonSet", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" } }, { @@ -42602,13 +43771,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" } }, "401": { @@ -42623,19 +43792,19 @@ ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", + "group": "apps", + "kind": "DaemonSet", "version": "v1" } } }, - "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status": { + "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified Deployment", - "operationId": "readAppsV1NamespacedDeploymentStatus", + "description": "read status of the specified DaemonSet", + "operationId": "readAppsV1NamespacedDaemonSetStatus", "produces": [ "application/json", "application/yaml", @@ -42645,7 +43814,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" } }, "401": { @@ -42661,13 +43830,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "DaemonSet", "version": "v1" } }, "parameters": [ { - "description": "name of the Deployment", + "description": "name of the DaemonSet", "in": "path", "name": "name", "required": true, @@ -42697,8 +43866,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified Deployment", - "operationId": "patchAppsV1NamespacedDeploymentStatus", + "description": "partially update status of the specified DaemonSet", + "operationId": "patchAppsV1NamespacedDaemonSetStatus", "parameters": [ { "in": "body", @@ -42746,13 +43915,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" } }, "401": { @@ -42768,7 +43937,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "DaemonSet", "version": "v1" } }, @@ -42776,15 +43945,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified Deployment", - "operationId": "replaceAppsV1NamespacedDeploymentStatus", + "description": "replace status of the specified DaemonSet", + "operationId": "replaceAppsV1NamespacedDaemonSetStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" } }, { @@ -42818,13 +43987,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" } }, "401": { @@ -42840,18 +44009,18 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "DaemonSet", "version": "v1" } } }, - "/apis/apps/v1/namespaces/{namespace}/replicasets": { + "/apis/apps/v1/namespaces/{namespace}/deployments": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ReplicaSet", - "operationId": "deleteAppsV1CollectionNamespacedReplicaSet", + "description": "delete collection of Deployment", + "operationId": "deleteAppsV1CollectionNamespacedDeployment", "parameters": [ { "in": "body", @@ -42963,7 +44132,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "Deployment", "version": "v1" } }, @@ -42971,8 +44140,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ReplicaSet", - "operationId": "listAppsV1NamespacedReplicaSet", + "description": "list or watch objects of kind Deployment", + "operationId": "listAppsV1NamespacedDeployment", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -43049,7 +44218,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSetList" + "$ref": "#/definitions/io.k8s.api.apps.v1.DeploymentList" } }, "401": { @@ -43065,7 +44234,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "Deployment", "version": "v1" } }, @@ -43090,15 +44259,15 @@ "consumes": [ "*/*" ], - "description": "create a ReplicaSet", - "operationId": "createAppsV1NamespacedReplicaSet", + "description": "create a Deployment", + "operationId": "createAppsV1NamespacedDeployment", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" } }, { @@ -43132,19 +44301,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" } }, "401": { @@ -43160,18 +44329,18 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "Deployment", "version": "v1" } } }, - "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}": { + "/apis/apps/v1/namespaces/{namespace}/deployments/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ReplicaSet", - "operationId": "deleteAppsV1NamespacedReplicaSet", + "description": "delete a Deployment", + "operationId": "deleteAppsV1NamespacedDeployment", "parameters": [ { "in": "body", @@ -43240,7 +44409,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "Deployment", "version": "v1" } }, @@ -43248,8 +44417,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ReplicaSet", - "operationId": "readAppsV1NamespacedReplicaSet", + "description": "read the specified Deployment", + "operationId": "readAppsV1NamespacedDeployment", "produces": [ "application/json", "application/yaml", @@ -43259,7 +44428,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" } }, "401": { @@ -43275,13 +44444,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "Deployment", "version": "v1" } }, "parameters": [ { - "description": "name of the ReplicaSet", + "description": "name of the Deployment", "in": "path", "name": "name", "required": true, @@ -43311,8 +44480,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified ReplicaSet", - "operationId": "patchAppsV1NamespacedReplicaSet", + "description": "partially update the specified Deployment", + "operationId": "patchAppsV1NamespacedDeployment", "parameters": [ { "in": "body", @@ -43360,13 +44529,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" } }, "401": { @@ -43382,7 +44551,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "Deployment", "version": "v1" } }, @@ -43390,15 +44559,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ReplicaSet", - "operationId": "replaceAppsV1NamespacedReplicaSet", + "description": "replace the specified Deployment", + "operationId": "replaceAppsV1NamespacedDeployment", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" } }, { @@ -43432,13 +44601,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" } }, "401": { @@ -43454,18 +44623,18 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "Deployment", "version": "v1" } } }, - "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale": { + "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale": { "get": { "consumes": [ "*/*" ], - "description": "read scale of the specified ReplicaSet", - "operationId": "readAppsV1NamespacedReplicaSetScale", + "description": "read scale of the specified Deployment", + "operationId": "readAppsV1NamespacedDeploymentScale", "produces": [ "application/json", "application/yaml", @@ -43527,8 +44696,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update scale of the specified ReplicaSet", - "operationId": "patchAppsV1NamespacedReplicaSetScale", + "description": "partially update scale of the specified Deployment", + "operationId": "patchAppsV1NamespacedDeploymentScale", "parameters": [ { "in": "body", @@ -43606,8 +44775,8 @@ "consumes": [ "*/*" ], - "description": "replace scale of the specified ReplicaSet", - "operationId": "replaceAppsV1NamespacedReplicaSetScale", + "description": "replace scale of the specified Deployment", + "operationId": "replaceAppsV1NamespacedDeploymentScale", "parameters": [ { "in": "body", @@ -43675,13 +44844,13 @@ } } }, - "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status": { + "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified ReplicaSet", - "operationId": "readAppsV1NamespacedReplicaSetStatus", + "description": "read status of the specified Deployment", + "operationId": "readAppsV1NamespacedDeploymentStatus", "produces": [ "application/json", "application/yaml", @@ -43691,7 +44860,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" } }, "401": { @@ -43707,13 +44876,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "Deployment", "version": "v1" } }, "parameters": [ { - "description": "name of the ReplicaSet", + "description": "name of the Deployment", "in": "path", "name": "name", "required": true, @@ -43743,8 +44912,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified ReplicaSet", - "operationId": "patchAppsV1NamespacedReplicaSetStatus", + "description": "partially update status of the specified Deployment", + "operationId": "patchAppsV1NamespacedDeploymentStatus", "parameters": [ { "in": "body", @@ -43792,13 +44961,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" } }, "401": { @@ -43814,7 +44983,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "Deployment", "version": "v1" } }, @@ -43822,15 +44991,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified ReplicaSet", - "operationId": "replaceAppsV1NamespacedReplicaSetStatus", + "description": "replace status of the specified Deployment", + "operationId": "replaceAppsV1NamespacedDeploymentStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" } }, { @@ -43864,13 +45033,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" } }, "401": { @@ -43886,18 +45055,18 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "Deployment", "version": "v1" } } }, - "/apis/apps/v1/namespaces/{namespace}/statefulsets": { + "/apis/apps/v1/namespaces/{namespace}/replicasets": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of StatefulSet", - "operationId": "deleteAppsV1CollectionNamespacedStatefulSet", + "description": "delete collection of ReplicaSet", + "operationId": "deleteAppsV1CollectionNamespacedReplicaSet", "parameters": [ { "in": "body", @@ -44009,7 +45178,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "ReplicaSet", "version": "v1" } }, @@ -44017,8 +45186,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind StatefulSet", - "operationId": "listAppsV1NamespacedStatefulSet", + "description": "list or watch objects of kind ReplicaSet", + "operationId": "listAppsV1NamespacedReplicaSet", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -44095,7 +45264,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetList" + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSetList" } }, "401": { @@ -44111,7 +45280,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "ReplicaSet", "version": "v1" } }, @@ -44136,15 +45305,15 @@ "consumes": [ "*/*" ], - "description": "create a StatefulSet", - "operationId": "createAppsV1NamespacedStatefulSet", + "description": "create a ReplicaSet", + "operationId": "createAppsV1NamespacedReplicaSet", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" } }, { @@ -44178,19 +45347,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" } }, "401": { @@ -44206,18 +45375,18 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "ReplicaSet", "version": "v1" } } }, - "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}": { + "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a StatefulSet", - "operationId": "deleteAppsV1NamespacedStatefulSet", + "description": "delete a ReplicaSet", + "operationId": "deleteAppsV1NamespacedReplicaSet", "parameters": [ { "in": "body", @@ -44286,7 +45455,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "ReplicaSet", "version": "v1" } }, @@ -44294,8 +45463,8 @@ "consumes": [ "*/*" ], - "description": "read the specified StatefulSet", - "operationId": "readAppsV1NamespacedStatefulSet", + "description": "read the specified ReplicaSet", + "operationId": "readAppsV1NamespacedReplicaSet", "produces": [ "application/json", "application/yaml", @@ -44305,7 +45474,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" } }, "401": { @@ -44321,13 +45490,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "ReplicaSet", "version": "v1" } }, "parameters": [ { - "description": "name of the StatefulSet", + "description": "name of the ReplicaSet", "in": "path", "name": "name", "required": true, @@ -44357,8 +45526,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified StatefulSet", - "operationId": "patchAppsV1NamespacedStatefulSet", + "description": "partially update the specified ReplicaSet", + "operationId": "patchAppsV1NamespacedReplicaSet", "parameters": [ { "in": "body", @@ -44406,13 +45575,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" } }, "401": { @@ -44428,7 +45597,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "ReplicaSet", "version": "v1" } }, @@ -44436,15 +45605,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified StatefulSet", - "operationId": "replaceAppsV1NamespacedStatefulSet", + "description": "replace the specified ReplicaSet", + "operationId": "replaceAppsV1NamespacedReplicaSet", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" } }, { @@ -44478,13 +45647,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" } }, "401": { @@ -44500,18 +45669,18 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "ReplicaSet", "version": "v1" } } }, - "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale": { + "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale": { "get": { "consumes": [ "*/*" ], - "description": "read scale of the specified StatefulSet", - "operationId": "readAppsV1NamespacedStatefulSetScale", + "description": "read scale of the specified ReplicaSet", + "operationId": "readAppsV1NamespacedReplicaSetScale", "produces": [ "application/json", "application/yaml", @@ -44573,8 +45742,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update scale of the specified StatefulSet", - "operationId": "patchAppsV1NamespacedStatefulSetScale", + "description": "partially update scale of the specified ReplicaSet", + "operationId": "patchAppsV1NamespacedReplicaSetScale", "parameters": [ { "in": "body", @@ -44652,8 +45821,8 @@ "consumes": [ "*/*" ], - "description": "replace scale of the specified StatefulSet", - "operationId": "replaceAppsV1NamespacedStatefulSetScale", + "description": "replace scale of the specified ReplicaSet", + "operationId": "replaceAppsV1NamespacedReplicaSetScale", "parameters": [ { "in": "body", @@ -44721,13 +45890,13 @@ } } }, - "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status": { + "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified StatefulSet", - "operationId": "readAppsV1NamespacedStatefulSetStatus", + "description": "read status of the specified ReplicaSet", + "operationId": "readAppsV1NamespacedReplicaSetStatus", "produces": [ "application/json", "application/yaml", @@ -44737,7 +45906,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" } }, "401": { @@ -44753,13 +45922,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "ReplicaSet", "version": "v1" } }, "parameters": [ { - "description": "name of the StatefulSet", + "description": "name of the ReplicaSet", "in": "path", "name": "name", "required": true, @@ -44789,8 +45958,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified StatefulSet", - "operationId": "patchAppsV1NamespacedStatefulSetStatus", + "description": "partially update status of the specified ReplicaSet", + "operationId": "patchAppsV1NamespacedReplicaSetStatus", "parameters": [ { "in": "body", @@ -44838,13 +46007,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" } }, "401": { @@ -44860,7 +46029,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "ReplicaSet", "version": "v1" } }, @@ -44868,15 +46037,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified StatefulSet", - "operationId": "replaceAppsV1NamespacedStatefulSetStatus", + "description": "replace status of the specified ReplicaSet", + "operationId": "replaceAppsV1NamespacedReplicaSetStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" } }, { @@ -44910,13 +46079,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" } }, "401": { @@ -44932,30 +46101,114 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "ReplicaSet", "version": "v1" } } }, - "/apis/apps/v1/replicasets": { - "get": { + "/apis/apps/v1/namespaces/{namespace}/statefulsets": { + "delete": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ReplicaSet", - "operationId": "listAppsV1ReplicaSetForAllNamespaces", + "description": "delete collection of StatefulSet", + "operationId": "deleteAppsV1CollectionNamespacedStatefulSet", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSetList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -44968,93 +46221,84 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "StatefulSet", "version": "v1" } }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/statefulsets": { "get": { "consumes": [ "*/*" ], "description": "list or watch objects of kind StatefulSet", - "operationId": "listAppsV1StatefulSetForAllNamespaces", + "operationId": "listAppsV1NamespacedStatefulSet", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", @@ -45088,96 +46332,80 @@ }, "parameters": [ { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/apps/v1/watch/controllerrevisions": { - "get": { + ], + "post": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ControllerRevision. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAppsV1ControllerRevisionListForAllNamespaces", + "description": "create a StatefulSet", + "operationId": "createAppsV1NamespacedStatefulSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" } }, "401": { @@ -45190,105 +46418,74 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ControllerRevision", + "kind": "StatefulSet", "version": "v1" } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + } }, - "/apis/apps/v1/watch/daemonsets": { - "get": { + "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}": { + "delete": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of DaemonSet. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAppsV1DaemonSetListForAllNamespaces", + "description": "delete a StatefulSet", + "operationId": "deleteAppsV1NamespacedStatefulSet", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -45301,105 +46498,29 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "DaemonSet", + "kind": "StatefulSet", "version": "v1" } }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/deployments": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of Deployment. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAppsV1DeploymentListForAllNamespaces", + "description": "read the specified StatefulSet", + "operationId": "readAppsV1NamespacedStatefulSet", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" } }, "401": { @@ -45412,105 +46533,101 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "StatefulSet", "version": "v1" } }, "parameters": [ { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", + "description": "name of the StatefulSet", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions": { - "get": { + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified StatefulSet", + "operationId": "patchAppsV1NamespacedStatefulSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } ], - "description": "watch individual changes to a list of ControllerRevision. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAppsV1NamespacedControllerRevisionList", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" } }, "401": { @@ -45523,113 +46640,103 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ControllerRevision", + "kind": "StatefulSet", "version": "v1" } }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified StatefulSet", + "operationId": "replaceAppsV1NamespacedStatefulSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" } - ] + } }, - "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions/{name}": { + "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ControllerRevision. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchAppsV1NamespacedControllerRevision", + "description": "read scale of the specified StatefulSet", + "operationId": "readAppsV1NamespacedStatefulSetScale", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" } }, "401": { @@ -45642,51 +46749,16 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "autoscaling", + "kind": "Scale", "version": "v1" } }, "parameters": [ { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ControllerRevision", + "description": "name of the Scale", "in": "path", "name": "name", "required": true, @@ -45707,56 +46779,71 @@ "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets": { - "get": { + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update scale of the specified StatefulSet", + "operationId": "patchAppsV1NamespacedStatefulSetScale", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } ], - "description": "watch individual changes to a list of DaemonSet. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAppsV1NamespacedDaemonSetList", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" } }, "401": { @@ -45769,113 +46856,103 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", + "group": "autoscaling", + "kind": "Scale", "version": "v1" } }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "put": { + "consumes": [ + "*/*" + ], + "description": "replace scale of the specified StatefulSet", + "operationId": "replaceAppsV1NamespacedStatefulSetScale", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" } - ] + } }, - "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets/{name}": { + "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind DaemonSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchAppsV1NamespacedDaemonSet", + "description": "read status of the specified StatefulSet", + "operationId": "readAppsV1NamespacedStatefulSetStatus", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" } }, "401": { @@ -45888,51 +46965,16 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "DaemonSet", + "kind": "StatefulSet", "version": "v1" } }, "parameters": [ { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the DaemonSet", + "description": "name of the StatefulSet", "in": "path", "name": "name", "required": true, @@ -45953,44 +46995,170 @@ "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/deployments": { - "get": { + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" ], - "description": "watch individual changes to a list of Deployment. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAppsV1NamespacedDeploymentList", + "description": "partially update status of the specified StatefulSet", + "operationId": "patchAppsV1NamespacedStatefulSetStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified StatefulSet", + "operationId": "replaceAppsV1NamespacedStatefulSetStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + } + }, + "/apis/apps/v1/replicasets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ReplicaSet", + "operationId": "listAppsV1ReplicaSetForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -46002,7 +47170,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSetList" } }, "401": { @@ -46015,10 +47183,10 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ReplicaSet", "version": "v1" } }, @@ -46058,14 +47226,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -46103,13 +47263,13 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/deployments/{name}": { + "/apis/apps/v1/statefulsets": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind Deployment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchAppsV1NamespacedDeployment", + "description": "list or watch objects of kind StatefulSet", + "operationId": "listAppsV1StatefulSetForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -46121,7 +47281,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetList" } }, "401": { @@ -46134,10 +47294,10 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "StatefulSet", "version": "v1" } }, @@ -46177,22 +47337,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the Deployment", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -46230,13 +47374,13 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/replicasets": { + "/apis/apps/v1/watch/controllerrevisions": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ReplicaSet. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAppsV1NamespacedReplicaSetList", + "description": "watch individual changes to a list of ControllerRevision. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAppsV1ControllerRevisionListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -46264,7 +47408,7 @@ "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "ControllerRevision", "version": "v1" } }, @@ -46304,14 +47448,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -46349,13 +47485,13 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name}": { + "/apis/apps/v1/watch/daemonsets": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ReplicaSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchAppsV1NamespacedReplicaSet", + "description": "watch individual changes to a list of DaemonSet. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAppsV1DaemonSetListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -46380,10 +47516,10 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "DaemonSet", "version": "v1" } }, @@ -46423,22 +47559,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the ReplicaSet", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -46476,13 +47596,13 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets": { + "/apis/apps/v1/watch/deployments": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of StatefulSet. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAppsV1NamespacedStatefulSetList", + "description": "watch individual changes to a list of Deployment. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAppsV1DeploymentListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -46510,7 +47630,7 @@ "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" } }, @@ -46550,14 +47670,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -46595,13 +47707,13 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name}": { + "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind StatefulSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchAppsV1NamespacedStatefulSet", + "description": "watch individual changes to a list of ControllerRevision. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAppsV1NamespacedControllerRevisionList", "produces": [ "application/json", "application/yaml", @@ -46626,10 +47738,10 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "ControllerRevision", "version": "v1" } }, @@ -46669,14 +47781,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the StatefulSet", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -46722,13 +47826,13 @@ } ] }, - "/apis/apps/v1/watch/replicasets": { + "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ReplicaSet. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAppsV1ReplicaSetListForAllNamespaces", + "description": "watch changes to an object of kind ControllerRevision. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAppsV1NamespacedControllerRevision", "produces": [ "application/json", "application/yaml", @@ -46753,10 +47857,10 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "ControllerRevision", "version": "v1" } }, @@ -46796,6 +47900,22 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the ControllerRevision", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -46833,13 +47953,13 @@ } ] }, - "/apis/apps/v1/watch/statefulsets": { + "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of StatefulSet. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAppsV1StatefulSetListForAllNamespaces", + "description": "watch individual changes to a list of DaemonSet. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAppsV1NamespacedDaemonSetList", "produces": [ "application/json", "application/yaml", @@ -46867,7 +47987,7 @@ "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "DaemonSet", "version": "v1" } }, @@ -46907,6 +48027,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -46944,25 +48072,25 @@ } ] }, - "/apis/authentication.k8s.io/": { + "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets/{name}": { "get": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], - "description": "get information of a group", - "operationId": "getAuthenticationAPIGroup", + "description": "watch changes to an object of kind DaemonSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAppsV1NamespacedDaemonSet", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -46973,63 +48101,64 @@ "https" ], "tags": [ - "authentication" - ] - } - }, - "/apis/authentication.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAuthenticationV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" + "apps_v1" ], - "tags": [ - "authentication_v1" - ] - } - }, - "/apis/authentication.k8s.io/v1/tokenreviews": { + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + }, "parameters": [ { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", "in": "query", - "name": "dryRun", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", - "name": "fieldManager", + "name": "fieldSelector", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", - "name": "fieldValidation", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the DaemonSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, @@ -47039,46 +48168,56 @@ "name": "pretty", "type": "string", "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - ], - "post": { + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/deployments": { + "get": { "consumes": [ "*/*" ], - "description": "create a TokenReview", - "operationId": "createAuthenticationV1TokenReview", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReview" - } - } - ], + "description": "watch individual changes to a list of Deployment. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAppsV1NamespacedDeploymentList", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReview" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReview" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReview" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -47089,68 +48228,115 @@ "https" ], "tags": [ - "authentication_v1" + "apps_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "authentication.k8s.io", - "kind": "TokenReview", + "group": "apps", + "kind": "Deployment", "version": "v1" } - } - }, - "/apis/authorization.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAuthorizationAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "authorization" - ] - } + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/authorization.k8s.io/v1/": { + "/apis/apps/v1/watch/namespaces/{namespace}/deployments/{name}": { "get": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], - "description": "get available resources", - "operationId": "getAuthorizationV1APIResources", + "description": "watch changes to an object of kind Deployment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAppsV1NamespacedDeployment", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -47161,30 +48347,56 @@ "https" ], "tags": [ - "authorization_v1" - ] - } - }, - "/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews": { + "apps_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + }, "parameters": [ { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", "in": "query", - "name": "dryRun", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", - "name": "fieldManager", + "name": "fieldSelector", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", - "name": "fieldValidation", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the Deployment", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, @@ -47202,46 +48414,56 @@ "name": "pretty", "type": "string", "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - ], - "post": { + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/replicasets": { + "get": { "consumes": [ "*/*" ], - "description": "create a LocalSubjectAccessReview", - "operationId": "createAuthorizationV1NamespacedLocalSubjectAccessReview", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.LocalSubjectAccessReview" - } - } - ], + "description": "watch individual changes to a list of ReplicaSet. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAppsV1NamespacedReplicaSetList", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.LocalSubjectAccessReview" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.LocalSubjectAccessReview" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.LocalSubjectAccessReview" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -47252,85 +48474,115 @@ "https" ], "tags": [ - "authorization_v1" + "apps_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "LocalSubjectAccessReview", + "group": "apps", + "kind": "ReplicaSet", "version": "v1" } - } - }, - "/apis/authorization.k8s.io/v1/selfsubjectaccessreviews": { + }, "parameters": [ { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", "in": "query", - "name": "dryRun", - "type": "string", + "name": "allowWatchBookmarks", + "type": "boolean", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", - "name": "fieldManager", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", - "name": "fieldValidation", + "name": "fieldSelector", "type": "string", "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed.", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", - "name": "pretty", + "name": "labelSelector", "type": "string", "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a SelfSubjectAccessReview", - "operationId": "createAuthorizationV1SelfSubjectAccessReview", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReview" - } - } + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name}": { + "get": { + "consumes": [ + "*/*" ], + "description": "watch changes to an object of kind ReplicaSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAppsV1NamespacedReplicaSet", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReview" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReview" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReview" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -47341,36 +48593,64 @@ "https" ], "tags": [ - "authorization_v1" + "apps_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SelfSubjectAccessReview", + "group": "apps", + "kind": "ReplicaSet", "version": "v1" } - } - }, - "/apis/authorization.k8s.io/v1/selfsubjectrulesreviews": { + }, "parameters": [ { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", "in": "query", - "name": "dryRun", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", - "name": "fieldManager", + "name": "fieldSelector", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", - "name": "fieldValidation", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ReplicaSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, @@ -47380,46 +48660,56 @@ "name": "pretty", "type": "string", "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - ], - "post": { + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets": { + "get": { "consumes": [ "*/*" ], - "description": "create a SelfSubjectRulesReview", - "operationId": "createAuthorizationV1SelfSubjectRulesReview", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReview" - } - } - ], + "description": "watch individual changes to a list of StatefulSet. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAppsV1NamespacedStatefulSetList", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReview" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReview" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReview" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -47430,36 +48720,56 @@ "https" ], "tags": [ - "authorization_v1" + "apps_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SelfSubjectRulesReview", + "group": "apps", + "kind": "StatefulSet", "version": "v1" } - } - }, - "/apis/authorization.k8s.io/v1/subjectaccessreviews": { + }, "parameters": [ { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", "in": "query", - "name": "dryRun", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", - "name": "fieldManager", + "name": "fieldSelector", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", - "name": "fieldValidation", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, @@ -47469,46 +48779,56 @@ "name": "pretty", "type": "string", "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - ], - "post": { + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name}": { + "get": { "consumes": [ "*/*" ], - "description": "create a SubjectAccessReview", - "operationId": "createAuthorizationV1SubjectAccessReview", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReview" - } - } - ], + "description": "watch changes to an object of kind StatefulSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAppsV1NamespacedStatefulSet", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReview" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReview" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReview" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -47519,89 +48839,111 @@ "https" ], "tags": [ - "authorization_v1" + "apps_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SubjectAccessReview", + "group": "apps", + "kind": "StatefulSet", "version": "v1" } - } - }, - "/apis/autoscaling/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAutoscalingAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling" - ] - } - }, - "/apis/autoscaling/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAutoscalingV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ] - } + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the StatefulSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/autoscaling/v1/horizontalpodautoscalers": { + "/apis/apps/v1/watch/replicasets": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listAutoscalingV1HorizontalPodAutoscalerForAllNamespaces", + "description": "watch individual changes to a list of ReplicaSet. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAppsV1ReplicaSetListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -47613,7 +48955,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -47624,12 +48966,12 @@ "https" ], "tags": [ - "autoscaling_v1" + "apps_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", + "group": "apps", + "kind": "ReplicaSet", "version": "v1" } }, @@ -47706,109 +49048,25 @@ } ] }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers": { - "delete": { + "/apis/apps/v1/watch/statefulsets": { + "get": { "consumes": [ "*/*" ], - "description": "delete collection of HorizontalPodAutoscaler", - "operationId": "deleteAutoscalingV1CollectionNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], + "description": "watch individual changes to a list of StatefulSet. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAppsV1StatefulSetListForAllNamespaces", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -47819,98 +49077,140 @@ "https" ], "tags": [ - "autoscaling_v1" + "apps_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", + "group": "apps", + "kind": "StatefulSet", "version": "v1" } }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/authentication.k8s.io/": { "get": { "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listAutoscalingV1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "description": "get information of a group", + "operationId": "getAuthenticationAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true + "401": { + "description": "Unauthorized" } + }, + "schemes": [ + "https" + ], + "tags": [ + "authentication" + ] + } + }, + "/apis/authentication.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], + "description": "get available resources", + "operationId": "getAuthenticationV1APIResources", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" } }, "401": { @@ -47921,21 +49221,30 @@ "https" ], "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, + "authentication_v1" + ] + } + }, + "/apis/authentication.k8s.io/v1/tokenreviews": { "parameters": [ { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", "type": "string", "uniqueItems": true }, @@ -47951,37 +49260,16 @@ "consumes": [ "*/*" ], - "description": "create a HorizontalPodAutoscaler", - "operationId": "createAutoscalingV1NamespacedHorizontalPodAutoscaler", + "description": "create a TokenReview", + "operationId": "createAuthenticationV1TokenReview", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReview" } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true } ], "produces": [ @@ -47993,19 +49281,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReview" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReview" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReview" } }, "401": { @@ -48016,101 +49304,25 @@ "https" ], "tags": [ - "autoscaling_v1" + "authentication_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", + "group": "authentication.k8s.io", + "kind": "TokenReview", "version": "v1" } } }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "delete": { + "/apis/authentication.k8s.io/v1alpha1/": { + "get": { "consumes": [ - "*/*" - ], - "description": "delete a HorizontalPodAutoscaler", - "operationId": "deleteAutoscalingV1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified HorizontalPodAutoscaler", - "operationId": "readAutoscalingV1NamespacedHorizontalPodAutoscaler", + "description": "get available resources", + "operationId": "getAuthenticationV1alpha1APIResources", "produces": [ "application/json", "application/yaml", @@ -48120,7 +49332,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" } }, "401": { @@ -48131,29 +49343,30 @@ "https" ], "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, + "authentication_v1alpha1" + ] + } + }, + "/apis/authentication.k8s.io/v1alpha1/selfsubjectreviews": { "parameters": [ { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", "type": "string", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", "type": "string", "uniqueItems": true }, @@ -48165,51 +49378,20 @@ "uniqueItems": true } ], - "patch": { + "post": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" + "*/*" ], - "description": "partially update the specified HorizontalPodAutoscaler", - "operationId": "patchAutoscalingV1NamespacedHorizontalPodAutoscaler", + "description": "create a SelfSubjectReview", + "operationId": "createAuthenticationV1alpha1SelfSubjectReview", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + "$ref": "#/definitions/io.k8s.api.authentication.v1alpha1.SelfSubjectReview" } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -48221,13 +49403,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.authentication.v1alpha1.SelfSubjectReview" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.authentication.v1alpha1.SelfSubjectReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1alpha1.SelfSubjectReview" } }, "401": { @@ -48238,50 +49426,135 @@ "https" ], "tags": [ - "autoscaling_v1" + "authentication_v1alpha1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1alpha1" } - }, - "put": { + } + }, + "/apis/authorization.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAuthorizationAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authorization" + ] + } + }, + "/apis/authorization.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAuthorizationV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authorization_v1" + ] + } + }, + "/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { "consumes": [ "*/*" ], - "description": "replace the specified HorizontalPodAutoscaler", - "operationId": "replaceAutoscalingV1NamespacedHorizontalPodAutoscaler", + "description": "create a LocalSubjectAccessReview", + "operationId": "createAuthorizationV1NamespacedLocalSubjectAccessReview", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.authorization.v1.LocalSubjectAccessReview" } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true } ], "produces": [ @@ -48293,13 +49566,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.authorization.v1.LocalSubjectAccessReview" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.authorization.v1.LocalSubjectAccessReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.LocalSubjectAccessReview" } }, "401": { @@ -48310,23 +49589,63 @@ "https" ], "tags": [ - "autoscaling_v1" + "authorization_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", + "group": "authorization.k8s.io", + "kind": "LocalSubjectAccessReview", "version": "v1" } } }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { - "get": { + "/apis/authorization.k8s.io/v1/selfsubjectaccessreviews": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { "consumes": [ "*/*" ], - "description": "read status of the specified HorizontalPodAutoscaler", - "operationId": "readAutoscalingV1NamespacedHorizontalPodAutoscalerStatus", + "description": "create a SelfSubjectAccessReview", + "operationId": "createAuthorizationV1SelfSubjectAccessReview", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReview" + } + } + ], "produces": [ "application/json", "application/yaml", @@ -48336,7 +49655,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReview" } }, "401": { @@ -48347,29 +49678,36 @@ "https" ], "tags": [ - "autoscaling_v1" + "authorization_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", + "group": "authorization.k8s.io", + "kind": "SelfSubjectAccessReview", "version": "v1" } - }, + } + }, + "/apis/authorization.k8s.io/v1/selfsubjectrulesreviews": { "parameters": [ { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", "type": "string", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", "type": "string", "uniqueItems": true }, @@ -48381,51 +49719,20 @@ "uniqueItems": true } ], - "patch": { + "post": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" + "*/*" ], - "description": "partially update status of the specified HorizontalPodAutoscaler", - "operationId": "patchAutoscalingV1NamespacedHorizontalPodAutoscalerStatus", + "description": "create a SelfSubjectRulesReview", + "operationId": "createAuthorizationV1SelfSubjectRulesReview", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReview" } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -48437,13 +49744,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReview" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReview" } }, "401": { @@ -48454,50 +49767,61 @@ "https" ], "tags": [ - "autoscaling_v1" + "authorization_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", + "group": "authorization.k8s.io", + "kind": "SelfSubjectRulesReview", "version": "v1" } - }, - "put": { + } + }, + "/apis/authorization.k8s.io/v1/subjectaccessreviews": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { "consumes": [ "*/*" ], - "description": "replace status of the specified HorizontalPodAutoscaler", - "operationId": "replaceAutoscalingV1NamespacedHorizontalPodAutoscalerStatus", + "description": "create a SubjectAccessReview", + "operationId": "createAuthorizationV1SubjectAccessReview", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReview" } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true } ], "produces": [ @@ -48509,13 +49833,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReview" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReview" } }, "401": { @@ -48526,23 +49856,89 @@ "https" ], "tags": [ - "autoscaling_v1" + "authorization_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", + "group": "authorization.k8s.io", + "kind": "SubjectAccessReview", "version": "v1" } } }, - "/apis/autoscaling/v1/watch/horizontalpodautoscalers": { + "/apis/autoscaling/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAutoscalingAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling" + ] + } + }, + "/apis/autoscaling/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAutoscalingV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ] + } + }, + "/apis/autoscaling/v1/horizontalpodautoscalers": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAutoscalingV1HorizontalPodAutoscalerListForAllNamespaces", + "description": "list or watch objects of kind HorizontalPodAutoscaler", + "operationId": "listAutoscalingV1HorizontalPodAutoscalerForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -48554,7 +49950,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" } }, "401": { @@ -48567,7 +49963,7 @@ "tags": [ "autoscaling_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", @@ -48647,409 +50043,19 @@ } ] }, - "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers": { - "get": { + "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers": { + "delete": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAutoscalingV1NamespacedHorizontalPodAutoscalerList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", + "description": "delete collection of HorizontalPodAutoscaler", + "operationId": "deleteAutoscalingV1CollectionNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "in": "body", + "name": "body", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchAutoscalingV1NamespacedHorizontalPodAutoscaler", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAutoscalingV2APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2" - ] - } - }, - "/apis/autoscaling/v2/horizontalpodautoscalers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listAutoscalingV2HorizontalPodAutoscalerForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of HorizontalPodAutoscaler", - "operationId": "deleteAutoscalingV2CollectionNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" } }, { @@ -49150,13 +50156,13 @@ "https" ], "tags": [ - "autoscaling_v2" + "autoscaling_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2" + "version": "v1" } }, "get": { @@ -49164,7 +50170,7 @@ "*/*" ], "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listAutoscalingV2NamespacedHorizontalPodAutoscaler", + "operationId": "listAutoscalingV1NamespacedHorizontalPodAutoscaler", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -49241,7 +50247,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList" + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" } }, "401": { @@ -49252,13 +50258,13 @@ "https" ], "tags": [ - "autoscaling_v2" + "autoscaling_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2" + "version": "v1" } }, "parameters": [ @@ -49283,14 +50289,14 @@ "*/*" ], "description": "create a HorizontalPodAutoscaler", - "operationId": "createAutoscalingV2NamespacedHorizontalPodAutoscaler", + "operationId": "createAutoscalingV1NamespacedHorizontalPodAutoscaler", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" } }, { @@ -49324,19 +50330,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" } }, "401": { @@ -49347,23 +50353,23 @@ "https" ], "tags": [ - "autoscaling_v2" + "autoscaling_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2" + "version": "v1" } } }, - "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "delete": { "consumes": [ "*/*" ], "description": "delete a HorizontalPodAutoscaler", - "operationId": "deleteAutoscalingV2NamespacedHorizontalPodAutoscaler", + "operationId": "deleteAutoscalingV1NamespacedHorizontalPodAutoscaler", "parameters": [ { "in": "body", @@ -49427,13 +50433,13 @@ "https" ], "tags": [ - "autoscaling_v2" + "autoscaling_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2" + "version": "v1" } }, "get": { @@ -49441,7 +50447,7 @@ "*/*" ], "description": "read the specified HorizontalPodAutoscaler", - "operationId": "readAutoscalingV2NamespacedHorizontalPodAutoscaler", + "operationId": "readAutoscalingV1NamespacedHorizontalPodAutoscaler", "produces": [ "application/json", "application/yaml", @@ -49451,7 +50457,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" } }, "401": { @@ -49462,13 +50468,13 @@ "https" ], "tags": [ - "autoscaling_v2" + "autoscaling_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2" + "version": "v1" } }, "parameters": [ @@ -49504,7 +50510,7 @@ "application/apply-patch+yaml" ], "description": "partially update the specified HorizontalPodAutoscaler", - "operationId": "patchAutoscalingV2NamespacedHorizontalPodAutoscaler", + "operationId": "patchAutoscalingV1NamespacedHorizontalPodAutoscaler", "parameters": [ { "in": "body", @@ -49552,13 +50558,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" } }, "401": { @@ -49569,13 +50575,13 @@ "https" ], "tags": [ - "autoscaling_v2" + "autoscaling_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2" + "version": "v1" } }, "put": { @@ -49583,14 +50589,14 @@ "*/*" ], "description": "replace the specified HorizontalPodAutoscaler", - "operationId": "replaceAutoscalingV2NamespacedHorizontalPodAutoscaler", + "operationId": "replaceAutoscalingV1NamespacedHorizontalPodAutoscaler", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" } }, { @@ -49624,13 +50630,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" } }, "401": { @@ -49641,23 +50647,23 @@ "https" ], "tags": [ - "autoscaling_v2" + "autoscaling_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2" + "version": "v1" } } }, - "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { + "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { "get": { "consumes": [ "*/*" ], "description": "read status of the specified HorizontalPodAutoscaler", - "operationId": "readAutoscalingV2NamespacedHorizontalPodAutoscalerStatus", + "operationId": "readAutoscalingV1NamespacedHorizontalPodAutoscalerStatus", "produces": [ "application/json", "application/yaml", @@ -49667,7 +50673,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" } }, "401": { @@ -49678,13 +50684,13 @@ "https" ], "tags": [ - "autoscaling_v2" + "autoscaling_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2" + "version": "v1" } }, "parameters": [ @@ -49720,7 +50726,7 @@ "application/apply-patch+yaml" ], "description": "partially update status of the specified HorizontalPodAutoscaler", - "operationId": "patchAutoscalingV2NamespacedHorizontalPodAutoscalerStatus", + "operationId": "patchAutoscalingV1NamespacedHorizontalPodAutoscalerStatus", "parameters": [ { "in": "body", @@ -49768,13 +50774,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" } }, "401": { @@ -49785,13 +50791,13 @@ "https" ], "tags": [ - "autoscaling_v2" + "autoscaling_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2" + "version": "v1" } }, "put": { @@ -49799,14 +50805,14 @@ "*/*" ], "description": "replace status of the specified HorizontalPodAutoscaler", - "operationId": "replaceAutoscalingV2NamespacedHorizontalPodAutoscalerStatus", + "operationId": "replaceAutoscalingV1NamespacedHorizontalPodAutoscalerStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" } }, { @@ -49840,13 +50846,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" } }, "401": { @@ -49857,23 +50863,23 @@ "https" ], "tags": [ - "autoscaling_v2" + "autoscaling_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2" + "version": "v1" } } }, - "/apis/autoscaling/v2/watch/horizontalpodautoscalers": { + "/apis/autoscaling/v1/watch/horizontalpodautoscalers": { "get": { "consumes": [ "*/*" ], "description": "watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAutoscalingV2HorizontalPodAutoscalerListForAllNamespaces", + "operationId": "watchAutoscalingV1HorizontalPodAutoscalerListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -49896,13 +50902,13 @@ "https" ], "tags": [ - "autoscaling_v2" + "autoscaling_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2" + "version": "v1" } }, "parameters": [ @@ -49978,13 +50984,13 @@ } ] }, - "/apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers": { + "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers": { "get": { "consumes": [ "*/*" ], "description": "watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAutoscalingV2NamespacedHorizontalPodAutoscalerList", + "operationId": "watchAutoscalingV1NamespacedHorizontalPodAutoscalerList", "produces": [ "application/json", "application/yaml", @@ -50007,13 +51013,13 @@ "https" ], "tags": [ - "autoscaling_v2" + "autoscaling_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2" + "version": "v1" } }, "parameters": [ @@ -50097,13 +51103,13 @@ } ] }, - "/apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "get": { "consumes": [ "*/*" ], "description": "watch changes to an object of kind HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchAutoscalingV2NamespacedHorizontalPodAutoscaler", + "operationId": "watchAutoscalingV1NamespacedHorizontalPodAutoscaler", "produces": [ "application/json", "application/yaml", @@ -50126,13 +51132,13 @@ "https" ], "tags": [ - "autoscaling_v2" + "autoscaling_v1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2" + "version": "v1" } }, "parameters": [ @@ -50224,7 +51230,7 @@ } ] }, - "/apis/autoscaling/v2beta2/": { + "/apis/autoscaling/v2/": { "get": { "consumes": [ "application/json", @@ -50232,7 +51238,7 @@ "application/vnd.kubernetes.protobuf" ], "description": "get available resources", - "operationId": "getAutoscalingV2beta2APIResources", + "operationId": "getAutoscalingV2APIResources", "produces": [ "application/json", "application/yaml", @@ -50253,17 +51259,17 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "autoscaling_v2" ] } }, - "/apis/autoscaling/v2beta2/horizontalpodautoscalers": { + "/apis/autoscaling/v2/horizontalpodautoscalers": { "get": { "consumes": [ "*/*" ], "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespaces", + "operationId": "listAutoscalingV2HorizontalPodAutoscalerForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -50275,7 +51281,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList" + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList" } }, "401": { @@ -50286,13 +51292,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "autoscaling_v2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "version": "v2" } }, "parameters": [ @@ -50368,13 +51374,13 @@ } ] }, - "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers": { + "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers": { "delete": { "consumes": [ "*/*" ], "description": "delete collection of HorizontalPodAutoscaler", - "operationId": "deleteAutoscalingV2beta2CollectionNamespacedHorizontalPodAutoscaler", + "operationId": "deleteAutoscalingV2CollectionNamespacedHorizontalPodAutoscaler", "parameters": [ { "in": "body", @@ -50481,13 +51487,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "autoscaling_v2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "version": "v2" } }, "get": { @@ -50495,7 +51501,7 @@ "*/*" ], "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", + "operationId": "listAutoscalingV2NamespacedHorizontalPodAutoscaler", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -50572,7 +51578,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList" + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList" } }, "401": { @@ -50583,13 +51589,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "autoscaling_v2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "version": "v2" } }, "parameters": [ @@ -50614,14 +51620,14 @@ "*/*" ], "description": "create a HorizontalPodAutoscaler", - "operationId": "createAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", + "operationId": "createAutoscalingV2NamespacedHorizontalPodAutoscaler", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" } }, { @@ -50655,19 +51661,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" } }, "401": { @@ -50678,23 +51684,23 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "autoscaling_v2" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "version": "v2" } } }, - "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "delete": { "consumes": [ "*/*" ], "description": "delete a HorizontalPodAutoscaler", - "operationId": "deleteAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", + "operationId": "deleteAutoscalingV2NamespacedHorizontalPodAutoscaler", "parameters": [ { "in": "body", @@ -50758,13 +51764,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "autoscaling_v2" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "version": "v2" } }, "get": { @@ -50772,7 +51778,7 @@ "*/*" ], "description": "read the specified HorizontalPodAutoscaler", - "operationId": "readAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", + "operationId": "readAutoscalingV2NamespacedHorizontalPodAutoscaler", "produces": [ "application/json", "application/yaml", @@ -50782,7 +51788,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" } }, "401": { @@ -50793,13 +51799,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "autoscaling_v2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "version": "v2" } }, "parameters": [ @@ -50835,7 +51841,7 @@ "application/apply-patch+yaml" ], "description": "partially update the specified HorizontalPodAutoscaler", - "operationId": "patchAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", + "operationId": "patchAutoscalingV2NamespacedHorizontalPodAutoscaler", "parameters": [ { "in": "body", @@ -50883,13 +51889,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" } }, "401": { @@ -50900,13 +51906,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "autoscaling_v2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "version": "v2" } }, "put": { @@ -50914,14 +51920,14 @@ "*/*" ], "description": "replace the specified HorizontalPodAutoscaler", - "operationId": "replaceAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", + "operationId": "replaceAutoscalingV2NamespacedHorizontalPodAutoscaler", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" } }, { @@ -50955,13 +51961,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" } }, "401": { @@ -50972,23 +51978,23 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "autoscaling_v2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "version": "v2" } } }, - "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { + "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { "get": { "consumes": [ "*/*" ], "description": "read status of the specified HorizontalPodAutoscaler", - "operationId": "readAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatus", + "operationId": "readAutoscalingV2NamespacedHorizontalPodAutoscalerStatus", "produces": [ "application/json", "application/yaml", @@ -50998,7 +52004,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" } }, "401": { @@ -51009,13 +52015,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "autoscaling_v2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "version": "v2" } }, "parameters": [ @@ -51051,7 +52057,7 @@ "application/apply-patch+yaml" ], "description": "partially update status of the specified HorizontalPodAutoscaler", - "operationId": "patchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatus", + "operationId": "patchAutoscalingV2NamespacedHorizontalPodAutoscalerStatus", "parameters": [ { "in": "body", @@ -51099,13 +52105,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" } }, "401": { @@ -51116,13 +52122,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "autoscaling_v2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "version": "v2" } }, "put": { @@ -51130,14 +52136,14 @@ "*/*" ], "description": "replace status of the specified HorizontalPodAutoscaler", - "operationId": "replaceAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatus", + "operationId": "replaceAutoscalingV2NamespacedHorizontalPodAutoscalerStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" } }, { @@ -51171,13 +52177,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" } }, "401": { @@ -51188,23 +52194,23 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "autoscaling_v2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "version": "v2" } } }, - "/apis/autoscaling/v2beta2/watch/horizontalpodautoscalers": { + "/apis/autoscaling/v2/watch/horizontalpodautoscalers": { "get": { "consumes": [ "*/*" ], "description": "watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNamespaces", + "operationId": "watchAutoscalingV2HorizontalPodAutoscalerListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -51227,13 +52233,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "autoscaling_v2" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "version": "v2" } }, "parameters": [ @@ -51309,13 +52315,13 @@ } ] }, - "/apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers": { + "/apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers": { "get": { "consumes": [ "*/*" ], "description": "watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerList", + "operationId": "watchAutoscalingV2NamespacedHorizontalPodAutoscalerList", "produces": [ "application/json", "application/yaml", @@ -51338,13 +52344,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "autoscaling_v2" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "version": "v2" } }, "parameters": [ @@ -51428,13 +52434,13 @@ } ] }, - "/apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "/apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "get": { "consumes": [ "*/*" ], "description": "watch changes to an object of kind HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", + "operationId": "watchAutoscalingV2NamespacedHorizontalPodAutoscaler", "produces": [ "application/json", "application/yaml", @@ -51457,13 +52463,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "autoscaling_v2" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "version": "v2" } }, "parameters": [ @@ -59004,7 +60010,7 @@ ] } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/": { "get": { "consumes": [ "application/json", @@ -59012,7 +60018,7 @@ "application/vnd.kubernetes.protobuf" ], "description": "get available resources", - "operationId": "getFlowcontrolApiserverV1beta1APIResources", + "operationId": "getFlowcontrolApiserverV1beta2APIResources", "produces": [ "application/json", "application/yaml", @@ -59033,17 +60039,17 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ] } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas": { "delete": { "consumes": [ "*/*" ], "description": "delete collection of FlowSchema", - "operationId": "deleteFlowcontrolApiserverV1beta1CollectionFlowSchema", + "operationId": "deleteFlowcontrolApiserverV1beta2CollectionFlowSchema", "parameters": [ { "in": "body", @@ -59150,13 +60156,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta1" + "version": "v1beta2" } }, "get": { @@ -59164,7 +60170,7 @@ "*/*" ], "description": "list or watch objects of kind FlowSchema", - "operationId": "listFlowcontrolApiserverV1beta1FlowSchema", + "operationId": "listFlowcontrolApiserverV1beta2FlowSchema", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -59241,7 +60247,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchemaList" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchemaList" } }, "401": { @@ -59252,13 +60258,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -59275,14 +60281,14 @@ "*/*" ], "description": "create a FlowSchema", - "operationId": "createFlowcontrolApiserverV1beta1FlowSchema", + "operationId": "createFlowcontrolApiserverV1beta2FlowSchema", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" } }, { @@ -59316,19 +60322,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" } }, "401": { @@ -59339,23 +60345,23 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta1" + "version": "v1beta2" } } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}": { "delete": { "consumes": [ "*/*" ], "description": "delete a FlowSchema", - "operationId": "deleteFlowcontrolApiserverV1beta1FlowSchema", + "operationId": "deleteFlowcontrolApiserverV1beta2FlowSchema", "parameters": [ { "in": "body", @@ -59419,13 +60425,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta1" + "version": "v1beta2" } }, "get": { @@ -59433,7 +60439,7 @@ "*/*" ], "description": "read the specified FlowSchema", - "operationId": "readFlowcontrolApiserverV1beta1FlowSchema", + "operationId": "readFlowcontrolApiserverV1beta2FlowSchema", "produces": [ "application/json", "application/yaml", @@ -59443,7 +60449,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" } }, "401": { @@ -59454,13 +60460,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -59488,7 +60494,7 @@ "application/apply-patch+yaml" ], "description": "partially update the specified FlowSchema", - "operationId": "patchFlowcontrolApiserverV1beta1FlowSchema", + "operationId": "patchFlowcontrolApiserverV1beta2FlowSchema", "parameters": [ { "in": "body", @@ -59536,13 +60542,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" } }, "401": { @@ -59553,13 +60559,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta1" + "version": "v1beta2" } }, "put": { @@ -59567,14 +60573,14 @@ "*/*" ], "description": "replace the specified FlowSchema", - "operationId": "replaceFlowcontrolApiserverV1beta1FlowSchema", + "operationId": "replaceFlowcontrolApiserverV1beta2FlowSchema", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" } }, { @@ -59608,13 +60614,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" } }, "401": { @@ -59625,23 +60631,23 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta1" + "version": "v1beta2" } } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status": { "get": { "consumes": [ "*/*" ], "description": "read status of the specified FlowSchema", - "operationId": "readFlowcontrolApiserverV1beta1FlowSchemaStatus", + "operationId": "readFlowcontrolApiserverV1beta2FlowSchemaStatus", "produces": [ "application/json", "application/yaml", @@ -59651,7 +60657,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" } }, "401": { @@ -59662,13 +60668,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -59696,7 +60702,7 @@ "application/apply-patch+yaml" ], "description": "partially update status of the specified FlowSchema", - "operationId": "patchFlowcontrolApiserverV1beta1FlowSchemaStatus", + "operationId": "patchFlowcontrolApiserverV1beta2FlowSchemaStatus", "parameters": [ { "in": "body", @@ -59744,13 +60750,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" } }, "401": { @@ -59761,13 +60767,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta1" + "version": "v1beta2" } }, "put": { @@ -59775,14 +60781,14 @@ "*/*" ], "description": "replace status of the specified FlowSchema", - "operationId": "replaceFlowcontrolApiserverV1beta1FlowSchemaStatus", + "operationId": "replaceFlowcontrolApiserverV1beta2FlowSchemaStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" } }, { @@ -59816,13 +60822,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" } }, "401": { @@ -59833,23 +60839,23 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta1" + "version": "v1beta2" } } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations": { "delete": { "consumes": [ "*/*" ], "description": "delete collection of PriorityLevelConfiguration", - "operationId": "deleteFlowcontrolApiserverV1beta1CollectionPriorityLevelConfiguration", + "operationId": "deleteFlowcontrolApiserverV1beta2CollectionPriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -59956,13 +60962,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "version": "v1beta2" } }, "get": { @@ -59970,7 +60976,7 @@ "*/*" ], "description": "list or watch objects of kind PriorityLevelConfiguration", - "operationId": "listFlowcontrolApiserverV1beta1PriorityLevelConfiguration", + "operationId": "listFlowcontrolApiserverV1beta2PriorityLevelConfiguration", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -60047,7 +61053,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationList" } }, "401": { @@ -60058,13 +61064,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -60081,14 +61087,14 @@ "*/*" ], "description": "create a PriorityLevelConfiguration", - "operationId": "createFlowcontrolApiserverV1beta1PriorityLevelConfiguration", + "operationId": "createFlowcontrolApiserverV1beta2PriorityLevelConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" } }, { @@ -60122,19 +61128,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" } }, "401": { @@ -60145,23 +61151,23 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "version": "v1beta2" } } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}": { "delete": { "consumes": [ "*/*" ], "description": "delete a PriorityLevelConfiguration", - "operationId": "deleteFlowcontrolApiserverV1beta1PriorityLevelConfiguration", + "operationId": "deleteFlowcontrolApiserverV1beta2PriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -60225,13 +61231,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "version": "v1beta2" } }, "get": { @@ -60239,7 +61245,7 @@ "*/*" ], "description": "read the specified PriorityLevelConfiguration", - "operationId": "readFlowcontrolApiserverV1beta1PriorityLevelConfiguration", + "operationId": "readFlowcontrolApiserverV1beta2PriorityLevelConfiguration", "produces": [ "application/json", "application/yaml", @@ -60249,7 +61255,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" } }, "401": { @@ -60260,13 +61266,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -60294,7 +61300,7 @@ "application/apply-patch+yaml" ], "description": "partially update the specified PriorityLevelConfiguration", - "operationId": "patchFlowcontrolApiserverV1beta1PriorityLevelConfiguration", + "operationId": "patchFlowcontrolApiserverV1beta2PriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -60342,13 +61348,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" } }, "401": { @@ -60359,13 +61365,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "version": "v1beta2" } }, "put": { @@ -60373,14 +61379,14 @@ "*/*" ], "description": "replace the specified PriorityLevelConfiguration", - "operationId": "replaceFlowcontrolApiserverV1beta1PriorityLevelConfiguration", + "operationId": "replaceFlowcontrolApiserverV1beta2PriorityLevelConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" } }, { @@ -60414,13 +61420,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" } }, "401": { @@ -60431,23 +61437,23 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "version": "v1beta2" } } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status": { "get": { "consumes": [ "*/*" ], "description": "read status of the specified PriorityLevelConfiguration", - "operationId": "readFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatus", + "operationId": "readFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatus", "produces": [ "application/json", "application/yaml", @@ -60457,7 +61463,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" } }, "401": { @@ -60468,13 +61474,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -60502,7 +61508,7 @@ "application/apply-patch+yaml" ], "description": "partially update status of the specified PriorityLevelConfiguration", - "operationId": "patchFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatus", + "operationId": "patchFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatus", "parameters": [ { "in": "body", @@ -60550,13 +61556,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" } }, "401": { @@ -60567,13 +61573,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "version": "v1beta2" } }, "put": { @@ -60581,14 +61587,14 @@ "*/*" ], "description": "replace status of the specified PriorityLevelConfiguration", - "operationId": "replaceFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatus", + "operationId": "replaceFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" } }, { @@ -60622,13 +61628,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" } }, "401": { @@ -60639,23 +61645,23 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "version": "v1beta2" } } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas": { "get": { "consumes": [ "*/*" ], "description": "watch individual changes to a list of FlowSchema. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchFlowcontrolApiserverV1beta1FlowSchemaList", + "operationId": "watchFlowcontrolApiserverV1beta2FlowSchemaList", "produces": [ "application/json", "application/yaml", @@ -60678,13 +61684,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -60760,13 +61766,13 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas/{name}": { "get": { "consumes": [ "*/*" ], "description": "watch changes to an object of kind FlowSchema. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchFlowcontrolApiserverV1beta1FlowSchema", + "operationId": "watchFlowcontrolApiserverV1beta2FlowSchema", "produces": [ "application/json", "application/yaml", @@ -60789,13 +61795,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -60879,13 +61885,13 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations": { "get": { "consumes": [ "*/*" ], "description": "watch individual changes to a list of PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchFlowcontrolApiserverV1beta1PriorityLevelConfigurationList", + "operationId": "watchFlowcontrolApiserverV1beta2PriorityLevelConfigurationList", "produces": [ "application/json", "application/yaml", @@ -60908,13 +61914,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -60990,13 +61996,13 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations/{name}": { "get": { "consumes": [ "*/*" ], "description": "watch changes to an object of kind PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchFlowcontrolApiserverV1beta1PriorityLevelConfiguration", + "operationId": "watchFlowcontrolApiserverV1beta2PriorityLevelConfiguration", "produces": [ "application/json", "application/yaml", @@ -61019,13 +62025,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -61109,7 +62115,7 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/": { "get": { "consumes": [ "application/json", @@ -61117,7 +62123,7 @@ "application/vnd.kubernetes.protobuf" ], "description": "get available resources", - "operationId": "getFlowcontrolApiserverV1beta2APIResources", + "operationId": "getFlowcontrolApiserverV1beta3APIResources", "produces": [ "application/json", "application/yaml", @@ -61138,17 +62144,17 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ] } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas": { "delete": { "consumes": [ "*/*" ], "description": "delete collection of FlowSchema", - "operationId": "deleteFlowcontrolApiserverV1beta2CollectionFlowSchema", + "operationId": "deleteFlowcontrolApiserverV1beta3CollectionFlowSchema", "parameters": [ { "in": "body", @@ -61255,13 +62261,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta2" + "version": "v1beta3" } }, "get": { @@ -61269,7 +62275,7 @@ "*/*" ], "description": "list or watch objects of kind FlowSchema", - "operationId": "listFlowcontrolApiserverV1beta2FlowSchema", + "operationId": "listFlowcontrolApiserverV1beta3FlowSchema", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -61346,7 +62352,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchemaList" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchemaList" } }, "401": { @@ -61357,13 +62363,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta2" + "version": "v1beta3" } }, "parameters": [ @@ -61380,14 +62386,14 @@ "*/*" ], "description": "create a FlowSchema", - "operationId": "createFlowcontrolApiserverV1beta2FlowSchema", + "operationId": "createFlowcontrolApiserverV1beta3FlowSchema", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" } }, { @@ -61421,19 +62427,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" } }, "401": { @@ -61444,23 +62450,23 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta2" + "version": "v1beta3" } } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}": { "delete": { "consumes": [ "*/*" ], "description": "delete a FlowSchema", - "operationId": "deleteFlowcontrolApiserverV1beta2FlowSchema", + "operationId": "deleteFlowcontrolApiserverV1beta3FlowSchema", "parameters": [ { "in": "body", @@ -61524,13 +62530,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta2" + "version": "v1beta3" } }, "get": { @@ -61538,7 +62544,7 @@ "*/*" ], "description": "read the specified FlowSchema", - "operationId": "readFlowcontrolApiserverV1beta2FlowSchema", + "operationId": "readFlowcontrolApiserverV1beta3FlowSchema", "produces": [ "application/json", "application/yaml", @@ -61548,7 +62554,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" } }, "401": { @@ -61559,13 +62565,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta2" + "version": "v1beta3" } }, "parameters": [ @@ -61593,7 +62599,7 @@ "application/apply-patch+yaml" ], "description": "partially update the specified FlowSchema", - "operationId": "patchFlowcontrolApiserverV1beta2FlowSchema", + "operationId": "patchFlowcontrolApiserverV1beta3FlowSchema", "parameters": [ { "in": "body", @@ -61641,13 +62647,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" } }, "401": { @@ -61658,13 +62664,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta2" + "version": "v1beta3" } }, "put": { @@ -61672,14 +62678,14 @@ "*/*" ], "description": "replace the specified FlowSchema", - "operationId": "replaceFlowcontrolApiserverV1beta2FlowSchema", + "operationId": "replaceFlowcontrolApiserverV1beta3FlowSchema", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" } }, { @@ -61713,13 +62719,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" } }, "401": { @@ -61730,23 +62736,23 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta2" + "version": "v1beta3" } } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status": { "get": { "consumes": [ "*/*" ], "description": "read status of the specified FlowSchema", - "operationId": "readFlowcontrolApiserverV1beta2FlowSchemaStatus", + "operationId": "readFlowcontrolApiserverV1beta3FlowSchemaStatus", "produces": [ "application/json", "application/yaml", @@ -61756,7 +62762,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" } }, "401": { @@ -61767,13 +62773,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta2" + "version": "v1beta3" } }, "parameters": [ @@ -61801,7 +62807,7 @@ "application/apply-patch+yaml" ], "description": "partially update status of the specified FlowSchema", - "operationId": "patchFlowcontrolApiserverV1beta2FlowSchemaStatus", + "operationId": "patchFlowcontrolApiserverV1beta3FlowSchemaStatus", "parameters": [ { "in": "body", @@ -61849,13 +62855,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" } }, "401": { @@ -61866,13 +62872,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta2" + "version": "v1beta3" } }, "put": { @@ -61880,14 +62886,14 @@ "*/*" ], "description": "replace status of the specified FlowSchema", - "operationId": "replaceFlowcontrolApiserverV1beta2FlowSchemaStatus", + "operationId": "replaceFlowcontrolApiserverV1beta3FlowSchemaStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" } }, { @@ -61921,13 +62927,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowSchema" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" } }, "401": { @@ -61938,23 +62944,23 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta2" + "version": "v1beta3" } } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations": { "delete": { "consumes": [ "*/*" ], "description": "delete collection of PriorityLevelConfiguration", - "operationId": "deleteFlowcontrolApiserverV1beta2CollectionPriorityLevelConfiguration", + "operationId": "deleteFlowcontrolApiserverV1beta3CollectionPriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -62061,13 +63067,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "version": "v1beta3" } }, "get": { @@ -62075,7 +63081,7 @@ "*/*" ], "description": "list or watch objects of kind PriorityLevelConfiguration", - "operationId": "listFlowcontrolApiserverV1beta2PriorityLevelConfiguration", + "operationId": "listFlowcontrolApiserverV1beta3PriorityLevelConfiguration", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -62152,7 +63158,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationList" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationList" } }, "401": { @@ -62163,13 +63169,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "version": "v1beta3" } }, "parameters": [ @@ -62186,14 +63192,14 @@ "*/*" ], "description": "create a PriorityLevelConfiguration", - "operationId": "createFlowcontrolApiserverV1beta2PriorityLevelConfiguration", + "operationId": "createFlowcontrolApiserverV1beta3PriorityLevelConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" } }, { @@ -62227,19 +63233,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" } }, "401": { @@ -62250,23 +63256,23 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "version": "v1beta3" } } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}": { "delete": { "consumes": [ "*/*" ], "description": "delete a PriorityLevelConfiguration", - "operationId": "deleteFlowcontrolApiserverV1beta2PriorityLevelConfiguration", + "operationId": "deleteFlowcontrolApiserverV1beta3PriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -62330,13 +63336,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "version": "v1beta3" } }, "get": { @@ -62344,7 +63350,7 @@ "*/*" ], "description": "read the specified PriorityLevelConfiguration", - "operationId": "readFlowcontrolApiserverV1beta2PriorityLevelConfiguration", + "operationId": "readFlowcontrolApiserverV1beta3PriorityLevelConfiguration", "produces": [ "application/json", "application/yaml", @@ -62354,7 +63360,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" } }, "401": { @@ -62365,13 +63371,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "version": "v1beta3" } }, "parameters": [ @@ -62399,7 +63405,7 @@ "application/apply-patch+yaml" ], "description": "partially update the specified PriorityLevelConfiguration", - "operationId": "patchFlowcontrolApiserverV1beta2PriorityLevelConfiguration", + "operationId": "patchFlowcontrolApiserverV1beta3PriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -62447,13 +63453,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" } }, "401": { @@ -62464,13 +63470,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "version": "v1beta3" } }, "put": { @@ -62478,14 +63484,14 @@ "*/*" ], "description": "replace the specified PriorityLevelConfiguration", - "operationId": "replaceFlowcontrolApiserverV1beta2PriorityLevelConfiguration", + "operationId": "replaceFlowcontrolApiserverV1beta3PriorityLevelConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" } }, { @@ -62519,13 +63525,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" } }, "401": { @@ -62536,23 +63542,23 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "version": "v1beta3" } } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status": { "get": { "consumes": [ "*/*" ], "description": "read status of the specified PriorityLevelConfiguration", - "operationId": "readFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatus", + "operationId": "readFlowcontrolApiserverV1beta3PriorityLevelConfigurationStatus", "produces": [ "application/json", "application/yaml", @@ -62562,7 +63568,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" } }, "401": { @@ -62573,13 +63579,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "version": "v1beta3" } }, "parameters": [ @@ -62607,7 +63613,7 @@ "application/apply-patch+yaml" ], "description": "partially update status of the specified PriorityLevelConfiguration", - "operationId": "patchFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatus", + "operationId": "patchFlowcontrolApiserverV1beta3PriorityLevelConfigurationStatus", "parameters": [ { "in": "body", @@ -62655,13 +63661,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" } }, "401": { @@ -62672,13 +63678,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "version": "v1beta3" } }, "put": { @@ -62686,14 +63692,14 @@ "*/*" ], "description": "replace status of the specified PriorityLevelConfiguration", - "operationId": "replaceFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatus", + "operationId": "replaceFlowcontrolApiserverV1beta3PriorityLevelConfigurationStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" } }, { @@ -62727,13 +63733,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" } }, "401": { @@ -62744,23 +63750,23 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "version": "v1beta3" } } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/flowschemas": { "get": { "consumes": [ "*/*" ], "description": "watch individual changes to a list of FlowSchema. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchFlowcontrolApiserverV1beta2FlowSchemaList", + "operationId": "watchFlowcontrolApiserverV1beta3FlowSchemaList", "produces": [ "application/json", "application/yaml", @@ -62783,13 +63789,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta2" + "version": "v1beta3" } }, "parameters": [ @@ -62865,13 +63871,13 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/flowschemas/{name}": { "get": { "consumes": [ "*/*" ], "description": "watch changes to an object of kind FlowSchema. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchFlowcontrolApiserverV1beta2FlowSchema", + "operationId": "watchFlowcontrolApiserverV1beta3FlowSchema", "produces": [ "application/json", "application/yaml", @@ -62894,13 +63900,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "FlowSchema", - "version": "v1beta2" + "version": "v1beta3" } }, "parameters": [ @@ -62984,13 +63990,13 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/prioritylevelconfigurations": { "get": { "consumes": [ "*/*" ], "description": "watch individual changes to a list of PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchFlowcontrolApiserverV1beta2PriorityLevelConfigurationList", + "operationId": "watchFlowcontrolApiserverV1beta3PriorityLevelConfigurationList", "produces": [ "application/json", "application/yaml", @@ -63013,13 +64019,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "version": "v1beta3" } }, "parameters": [ @@ -63095,13 +64101,13 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/prioritylevelconfigurations/{name}": { "get": { "consumes": [ "*/*" ], "description": "watch changes to an object of kind PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchFlowcontrolApiserverV1beta2PriorityLevelConfiguration", + "operationId": "watchFlowcontrolApiserverV1beta3PriorityLevelConfiguration", "produces": [ "application/json", "application/yaml", @@ -63124,13 +64130,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "flowcontrolApiserver_v1beta3" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", "kind": "PriorityLevelConfiguration", - "version": "v1beta2" + "version": "v1beta3" } }, "parameters": [ @@ -67804,17 +68810,3755 @@ "type": "boolean", "uniqueItems": true } - ] - }, - "/apis/networking.k8s.io/v1alpha1/": { - "get": { + ] + }, + "/apis/networking.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getNetworkingV1alpha1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ] + } + }, + "/apis/networking.k8s.io/v1alpha1/clustercidrs": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ClusterCIDR", + "operationId": "deleteNetworkingV1alpha1CollectionClusterCIDR", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ClusterCIDR", + "operationId": "listNetworkingV1alpha1ClusterCIDR", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDRList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ClusterCIDR", + "operationId": "createNetworkingV1alpha1ClusterCIDR", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" + } + } + }, + "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ClusterCIDR", + "operationId": "deleteNetworkingV1alpha1ClusterCIDR", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ClusterCIDR", + "operationId": "readNetworkingV1alpha1ClusterCIDR", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ClusterCIDR", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ClusterCIDR", + "operationId": "patchNetworkingV1alpha1ClusterCIDR", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ClusterCIDR", + "operationId": "replaceNetworkingV1alpha1ClusterCIDR", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" + } + } + }, + "/apis/networking.k8s.io/v1alpha1/watch/clustercidrs": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ClusterCIDR. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1alpha1ClusterCIDRList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1alpha1/watch/clustercidrs/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ClusterCIDR. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchNetworkingV1alpha1ClusterCIDR", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ClusterCIDR", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/node.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getNodeAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node" + ] + } + }, + "/apis/node.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getNodeV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ] + } + }, + "/apis/node.k8s.io/v1/runtimeclasses": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of RuntimeClass", + "operationId": "deleteNodeV1CollectionRuntimeClass", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind RuntimeClass", + "operationId": "listNodeV1RuntimeClass", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClassList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "parameters": [ + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a RuntimeClass", + "operationId": "createNodeV1RuntimeClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + } + }, + "/apis/node.k8s.io/v1/runtimeclasses/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a RuntimeClass", + "operationId": "deleteNodeV1RuntimeClass", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified RuntimeClass", + "operationId": "readNodeV1RuntimeClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the RuntimeClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified RuntimeClass", + "operationId": "patchNodeV1RuntimeClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified RuntimeClass", + "operationId": "replaceNodeV1RuntimeClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + } + }, + "/apis/node.k8s.io/v1/watch/runtimeclasses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNodeV1RuntimeClassList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/node.k8s.io/v1/watch/runtimeclasses/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchNodeV1RuntimeClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the RuntimeClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/policy/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getPolicyAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy" + ] + } + }, + "/apis/policy/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getPolicyV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ] + } + }, + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PodDisruptionBudget", + "operationId": "deletePolicyV1CollectionNamespacedPodDisruptionBudget", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodDisruptionBudget", + "operationId": "listPolicyV1NamespacedPodDisruptionBudget", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudgetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a PodDisruptionBudget", + "operationId": "createPolicyV1NamespacedPodDisruptionBudget", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + } + }, + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a PodDisruptionBudget", + "operationId": "deletePolicyV1NamespacedPodDisruptionBudget", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified PodDisruptionBudget", + "operationId": "readPolicyV1NamespacedPodDisruptionBudget", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PodDisruptionBudget", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified PodDisruptionBudget", + "operationId": "patchPolicyV1NamespacedPodDisruptionBudget", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified PodDisruptionBudget", + "operationId": "replacePolicyV1NamespacedPodDisruptionBudget", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + } + }, + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified PodDisruptionBudget", + "operationId": "readPolicyV1NamespacedPodDisruptionBudgetStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PodDisruptionBudget", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified PodDisruptionBudget", + "operationId": "patchPolicyV1NamespacedPodDisruptionBudgetStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified PodDisruptionBudget", + "operationId": "replacePolicyV1NamespacedPodDisruptionBudgetStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + } + }, + "/apis/policy/v1/poddisruptionbudgets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodDisruptionBudget", + "operationId": "listPolicyV1PodDisruptionBudgetForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudgetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchPolicyV1NamespacedPodDisruptionBudgetList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchPolicyV1NamespacedPodDisruptionBudget", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the PodDisruptionBudget", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/policy/v1/watch/poddisruptionbudgets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchPolicyV1PodDisruptionBudgetListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getRbacAuthorizationAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization" + ] + } + }, + "/apis/rbac.authorization.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getRbacAuthorizationV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ] + } + }, + "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ClusterRoleBinding", + "operationId": "deleteRbacAuthorizationV1CollectionClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ClusterRoleBinding", + "operationId": "listRbacAuthorizationV1ClusterRoleBinding", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBindingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + }, + "parameters": [ + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ClusterRoleBinding", + "operationId": "createRbacAuthorizationV1ClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + } + }, + "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ClusterRoleBinding", + "operationId": "deleteRbacAuthorizationV1ClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ClusterRoleBinding", + "operationId": "readRbacAuthorizationV1ClusterRoleBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ClusterRoleBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ClusterRoleBinding", + "operationId": "patchRbacAuthorizationV1ClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + }, + "put": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" + ], + "description": "replace the specified ClusterRoleBinding", + "operationId": "replaceRbacAuthorizationV1ClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } ], - "description": "get available resources", - "operationId": "getNetworkingV1alpha1APIResources", "produces": [ "application/json", "application/yaml", @@ -67824,7 +72568,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" } }, "401": { @@ -67835,17 +72585,23 @@ "https" ], "tags": [ - "networking_v1alpha1" - ] + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } } }, - "/apis/networking.k8s.io/v1alpha1/clustercidrs": { + "/apis/rbac.authorization.k8s.io/v1/clusterroles": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ClusterCIDR", - "operationId": "deleteNetworkingV1alpha1CollectionClusterCIDR", + "description": "delete collection of ClusterRole", + "operationId": "deleteRbacAuthorizationV1CollectionClusterRole", "parameters": [ { "in": "body", @@ -67952,21 +72708,21 @@ "https" ], "tags": [ - "networking_v1alpha1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ClusterCIDR", - "version": "v1alpha1" + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ClusterCIDR", - "operationId": "listNetworkingV1alpha1ClusterCIDR", + "description": "list or watch objects of kind ClusterRole", + "operationId": "listRbacAuthorizationV1ClusterRole", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -68043,7 +72799,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDRList" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleList" } }, "401": { @@ -68054,13 +72810,13 @@ "https" ], "tags": [ - "networking_v1alpha1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ClusterCIDR", - "version": "v1alpha1" + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" } }, "parameters": [ @@ -68076,15 +72832,15 @@ "consumes": [ "*/*" ], - "description": "create a ClusterCIDR", - "operationId": "createNetworkingV1alpha1ClusterCIDR", + "description": "create a ClusterRole", + "operationId": "createRbacAuthorizationV1ClusterRole", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, { @@ -68118,19 +72874,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "401": { @@ -68141,23 +72897,23 @@ "https" ], "tags": [ - "networking_v1alpha1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ClusterCIDR", - "version": "v1alpha1" + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" } } }, - "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}": { + "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ClusterCIDR", - "operationId": "deleteNetworkingV1alpha1ClusterCIDR", + "description": "delete a ClusterRole", + "operationId": "deleteRbacAuthorizationV1ClusterRole", "parameters": [ { "in": "body", @@ -68221,21 +72977,21 @@ "https" ], "tags": [ - "networking_v1alpha1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ClusterCIDR", - "version": "v1alpha1" + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified ClusterCIDR", - "operationId": "readNetworkingV1alpha1ClusterCIDR", + "description": "read the specified ClusterRole", + "operationId": "readRbacAuthorizationV1ClusterRole", "produces": [ "application/json", "application/yaml", @@ -68245,7 +73001,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "401": { @@ -68256,18 +73012,18 @@ "https" ], "tags": [ - "networking_v1alpha1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ClusterCIDR", - "version": "v1alpha1" + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" } }, "parameters": [ { - "description": "name of the ClusterCIDR", + "description": "name of the ClusterRole", "in": "path", "name": "name", "required": true, @@ -68289,8 +73045,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified ClusterCIDR", - "operationId": "patchNetworkingV1alpha1ClusterCIDR", + "description": "partially update the specified ClusterRole", + "operationId": "patchRbacAuthorizationV1ClusterRole", "parameters": [ { "in": "body", @@ -68315,367 +73071,20 @@ "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1alpha1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ClusterCIDR", - "version": "v1alpha1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ClusterCIDR", - "operationId": "replaceNetworkingV1alpha1ClusterCIDR", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1alpha1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ClusterCIDR", - "version": "v1alpha1" - } - } - }, - "/apis/networking.k8s.io/v1alpha1/watch/clustercidrs": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ClusterCIDR. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1alpha1ClusterCIDRList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1alpha1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ClusterCIDR", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1alpha1/watch/clustercidrs/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind ClusterCIDR. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNetworkingV1alpha1ClusterCIDR", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1alpha1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ClusterCIDR", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ClusterCIDR", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/node.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } ], - "description": "get information of a group", - "operationId": "getNodeAPIGroup", "produces": [ "application/json", "application/yaml", @@ -68685,7 +73094,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "401": { @@ -68696,19 +73111,52 @@ "https" ], "tags": [ - "node" - ] - } - }, - "/apis/node.k8s.io/v1/": { - "get": { + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + } + }, + "put": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" + ], + "description": "replace the specified ClusterRole", + "operationId": "replaceRbacAuthorizationV1ClusterRole", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } ], - "description": "get available resources", - "operationId": "getNodeV1APIResources", "produces": [ "application/json", "application/yaml", @@ -68718,7 +73166,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "401": { @@ -68729,17 +73183,23 @@ "https" ], "tags": [ - "node_v1" - ] + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + } } }, - "/apis/node.k8s.io/v1/runtimeclasses": { + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of RuntimeClass", - "operationId": "deleteNodeV1CollectionRuntimeClass", + "description": "delete collection of RoleBinding", + "operationId": "deleteRbacAuthorizationV1CollectionNamespacedRoleBinding", "parameters": [ { "in": "body", @@ -68846,12 +73306,12 @@ "https" ], "tags": [ - "node_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, @@ -68859,8 +73319,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind RuntimeClass", - "operationId": "listNodeV1RuntimeClass", + "description": "list or watch objects of kind RoleBinding", + "operationId": "listRbacAuthorizationV1NamespacedRoleBinding", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -68937,7 +73397,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClassList" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBindingList" } }, "401": { @@ -68948,16 +73408,24 @@ "https" ], "tags": [ - "node_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -68970,15 +73438,15 @@ "consumes": [ "*/*" ], - "description": "create a RuntimeClass", - "operationId": "createNodeV1RuntimeClass", + "description": "create a RoleBinding", + "operationId": "createRbacAuthorizationV1NamespacedRoleBinding", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, { @@ -69012,19 +73480,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "401": { @@ -69035,23 +73503,23 @@ "https" ], "tags": [ - "node_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } } }, - "/apis/node.k8s.io/v1/runtimeclasses/{name}": { + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a RuntimeClass", - "operationId": "deleteNodeV1RuntimeClass", + "description": "delete a RoleBinding", + "operationId": "deleteRbacAuthorizationV1NamespacedRoleBinding", "parameters": [ { "in": "body", @@ -69115,12 +73583,12 @@ "https" ], "tags": [ - "node_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, @@ -69128,8 +73596,8 @@ "consumes": [ "*/*" ], - "description": "read the specified RuntimeClass", - "operationId": "readNodeV1RuntimeClass", + "description": "read the specified RoleBinding", + "operationId": "readRbacAuthorizationV1NamespacedRoleBinding", "produces": [ "application/json", "application/yaml", @@ -69139,7 +73607,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "401": { @@ -69150,24 +73618,32 @@ "https" ], "tags": [ - "node_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, "parameters": [ { - "description": "name of the RuntimeClass", + "description": "name of the RoleBinding", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -69183,8 +73659,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified RuntimeClass", - "operationId": "patchNodeV1RuntimeClass", + "description": "partially update the specified RoleBinding", + "operationId": "patchRbacAuthorizationV1NamespacedRoleBinding", "parameters": [ { "in": "body", @@ -69232,13 +73708,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "401": { @@ -69249,12 +73725,12 @@ "https" ], "tags": [ - "node_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, @@ -69262,347 +73738,39 @@ "consumes": [ "*/*" ], - "description": "replace the specified RuntimeClass", - "operationId": "replaceNodeV1RuntimeClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1" - } - } - }, - "/apis/node.k8s.io/v1/watch/runtimeclasses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNodeV1RuntimeClassList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/node.k8s.io/v1/watch/runtimeclasses/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNodeV1RuntimeClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the RuntimeClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/policy/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getPolicyAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", + "description": "replace the specified RoleBinding", + "operationId": "replaceRbacAuthorizationV1NamespacedRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, - "401": { - "description": "Unauthorized" + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true } - }, - "schemes": [ - "https" ], - "tags": [ - "policy" - ] - } - }, - "/apis/policy/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getPolicyV1APIResources", "produces": [ "application/json", "application/yaml", @@ -69612,7 +73780,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "401": { @@ -69623,17 +73797,23 @@ "https" ], "tags": [ - "policy_v1" - ] + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } } }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets": { + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of PodDisruptionBudget", - "operationId": "deletePolicyV1CollectionNamespacedPodDisruptionBudget", + "description": "delete collection of Role", + "operationId": "deleteRbacAuthorizationV1CollectionNamespacedRole", "parameters": [ { "in": "body", @@ -69740,12 +73920,12 @@ "https" ], "tags": [ - "policy_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -69753,8 +73933,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listPolicyV1NamespacedPodDisruptionBudget", + "description": "list or watch objects of kind Role", + "operationId": "listRbacAuthorizationV1NamespacedRole", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -69831,7 +74011,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudgetList" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleList" } }, "401": { @@ -69842,12 +74022,12 @@ "https" ], "tags": [ - "policy_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -69872,15 +74052,15 @@ "consumes": [ "*/*" ], - "description": "create a PodDisruptionBudget", - "operationId": "createPolicyV1NamespacedPodDisruptionBudget", + "description": "create a Role", + "operationId": "createRbacAuthorizationV1NamespacedRole", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, { @@ -69914,19 +74094,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, "401": { @@ -69937,76 +74117,440 @@ "https" ], "tags": [ - "policy_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } } }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a PodDisruptionBudget", - "operationId": "deletePolicyV1NamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], + "description": "delete a Role", + "operationId": "deleteRbacAuthorizationV1NamespacedRole", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified Role", + "operationId": "readRbacAuthorizationV1NamespacedRole", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Role", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified Role", + "operationId": "patchRbacAuthorizationV1NamespacedRole", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified Role", + "operationId": "replaceRbacAuthorizationV1NamespacedRole", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + } + }, + "/apis/rbac.authorization.k8s.io/v1/rolebindings": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind RoleBinding", + "operationId": "listRbacAuthorizationV1RoleBindingForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBindingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/roles": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Role", + "operationId": "listRbacAuthorizationV1RoleForAllNamespaces", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleList" } }, "401": { @@ -70017,31 +74561,107 @@ "https" ], "tags": [ - "policy_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings": { "get": { "consumes": [ "*/*" ], - "description": "read the specified PodDisruptionBudget", - "operationId": "readPolicyV1NamespacedPodDisruptionBudget", + "description": "watch individual changes to a list of ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1ClusterRoleBindingList", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -70052,103 +74672,107 @@ "https" ], "tags": [ - "policy_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", "version": "v1" } }, "parameters": [ { - "description": "name of the PodDisruptionBudget", - "in": "path", - "name": "name", - "required": true, + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", "type": "string", "uniqueItems": true }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - ], - "patch": { + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified PodDisruptionBudget", - "operationId": "patchPolicyV1NamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } + "*/*" ], + "description": "watch changes to an object of kind ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchRbacAuthorizationV1ClusterRoleBinding", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -70159,68 +74783,115 @@ "https" ], "tags": [ - "policy_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", "version": "v1" } }, - "put": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ClusterRoleBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles": { + "get": { "consumes": [ "*/*" ], - "description": "replace the specified PodDisruptionBudget", - "operationId": "replacePolicyV1NamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], + "description": "watch individual changes to a list of ClusterRole. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1ClusterRoleList", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -70231,33 +74902,107 @@ "https" ], "tags": [ - "policy_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } - } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { + "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified PodDisruptionBudget", - "operationId": "readPolicyV1NamespacedPodDisruptionBudgetStatus", + "description": "watch changes to an object of kind ClusterRole. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchRbacAuthorizationV1ClusterRole", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -70268,28 +75013,55 @@ "https" ], "tags": [ - "policy_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } }, "parameters": [ { - "description": "name of the PodDisruptionBudget", - "in": "path", - "name": "name", - "required": true, + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ClusterRole", "in": "path", - "name": "namespace", + "name": "name", "required": true, "type": "string", "uniqueItems": true @@ -70300,71 +75072,56 @@ "name": "pretty", "type": "string", "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - ], - "patch": { + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified PodDisruptionBudget", - "operationId": "patchPolicyV1NamespacedPodDisruptionBudgetStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } + "*/*" ], + "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1NamespacedRoleBindingList", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -70375,68 +75132,115 @@ "https" ], "tags": [ - "policy_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, - "put": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}": { + "get": { "consumes": [ "*/*" ], - "description": "replace status of the specified PodDisruptionBudget", - "operationId": "replacePolicyV1NamespacedPodDisruptionBudgetStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], + "description": "watch changes to an object of kind RoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchRbacAuthorizationV1NamespacedRoleBinding", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -70447,23 +75251,111 @@ "https" ], "tags": [ - "policy_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } - } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the RoleBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/policy/v1/poddisruptionbudgets": { + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listPolicyV1PodDisruptionBudgetForAllNamespaces", + "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1NamespacedRoleList", "produces": [ "application/json", "application/yaml", @@ -70475,7 +75367,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudgetList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -70486,12 +75378,12 @@ "https" ], "tags": [ - "policy_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -70531,6 +75423,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -70568,13 +75468,13 @@ } ] }, - "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets": { + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchPolicyV1NamespacedPodDisruptionBudgetList", + "description": "watch changes to an object of kind Role. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchRbacAuthorizationV1NamespacedRole", "produces": [ "application/json", "application/yaml", @@ -70597,12 +75497,12 @@ "https" ], "tags": [ - "policy_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -70642,6 +75542,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the Role", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -70687,13 +75595,13 @@ } ] }, - "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "/apis/rbac.authorization.k8s.io/v1/watch/rolebindings": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchPolicyV1NamespacedPodDisruptionBudget", + "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1RoleBindingListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -70716,12 +75624,12 @@ "https" ], "tags": [ - "policy_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, @@ -70761,22 +75669,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the PodDisruptionBudget", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -70814,13 +75706,13 @@ } ] }, - "/apis/policy/v1/watch/poddisruptionbudgets": { + "/apis/rbac.authorization.k8s.io/v1/watch/roles": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchPolicyV1PodDisruptionBudgetListForAllNamespaces", + "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1RoleListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -70843,12 +75735,12 @@ "https" ], "tags": [ - "policy_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -70925,7 +75817,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/": { + "/apis/resource.k8s.io/": { "get": { "consumes": [ "application/json", @@ -70933,7 +75825,7 @@ "application/vnd.kubernetes.protobuf" ], "description": "get information of a group", - "operationId": "getRbacAuthorizationAPIGroup", + "operationId": "getResourceAPIGroup", "produces": [ "application/json", "application/yaml", @@ -70954,11 +75846,11 @@ "https" ], "tags": [ - "rbacAuthorization" + "resource" ] } }, - "/apis/rbac.authorization.k8s.io/v1/": { + "/apis/resource.k8s.io/v1alpha1/": { "get": { "consumes": [ "application/json", @@ -70966,7 +75858,7 @@ "application/vnd.kubernetes.protobuf" ], "description": "get available resources", - "operationId": "getRbacAuthorizationV1APIResources", + "operationId": "getResourceV1alpha1APIResources", "produces": [ "application/json", "application/yaml", @@ -70987,17 +75879,17 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ] } }, - "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings": { + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ClusterRoleBinding", - "operationId": "deleteRbacAuthorizationV1CollectionClusterRoleBinding", + "description": "delete collection of PodScheduling", + "operationId": "deleteResourceV1alpha1CollectionNamespacedPodScheduling", "parameters": [ { "in": "body", @@ -71104,21 +75996,21 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ClusterRoleBinding", - "operationId": "listRbacAuthorizationV1ClusterRoleBinding", + "description": "list or watch objects of kind PodScheduling", + "operationId": "listResourceV1alpha1NamespacedPodScheduling", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -71195,7 +76087,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBindingList" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodSchedulingList" } }, "401": { @@ -71206,16 +76098,24 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -71228,15 +76128,15 @@ "consumes": [ "*/*" ], - "description": "create a ClusterRoleBinding", - "operationId": "createRbacAuthorizationV1ClusterRoleBinding", + "description": "create a PodScheduling", + "operationId": "createResourceV1alpha1NamespacedPodScheduling", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" } }, { @@ -71270,19 +76170,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" } }, "401": { @@ -71293,23 +76193,23 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" } } }, - "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}": { + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ClusterRoleBinding", - "operationId": "deleteRbacAuthorizationV1ClusterRoleBinding", + "description": "delete a PodScheduling", + "operationId": "deleteResourceV1alpha1NamespacedPodScheduling", "parameters": [ { "in": "body", @@ -71356,13 +76256,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" } }, "401": { @@ -71373,21 +76273,21 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified ClusterRoleBinding", - "operationId": "readRbacAuthorizationV1ClusterRoleBinding", + "description": "read the specified PodScheduling", + "operationId": "readResourceV1alpha1NamespacedPodScheduling", "produces": [ "application/json", "application/yaml", @@ -71397,7 +76297,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" } }, "401": { @@ -71408,24 +76308,32 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the ClusterRoleBinding", + "description": "name of the PodScheduling", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -71441,8 +76349,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified ClusterRoleBinding", - "operationId": "patchRbacAuthorizationV1ClusterRoleBinding", + "description": "partially update the specified PodScheduling", + "operationId": "patchResourceV1alpha1NamespacedPodScheduling", "parameters": [ { "in": "body", @@ -71490,13 +76398,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" } }, "401": { @@ -71507,28 +76415,28 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified ClusterRoleBinding", - "operationId": "replaceRbacAuthorizationV1ClusterRoleBinding", + "description": "replace the specified PodScheduling", + "operationId": "replaceResourceV1alpha1NamespacedPodScheduling", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" } }, { @@ -71562,13 +76470,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" } }, "401": { @@ -71579,23 +76487,239 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" } } }, - "/apis/rbac.authorization.k8s.io/v1/clusterroles": { + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified PodScheduling", + "operationId": "readResourceV1alpha1NamespacedPodSchedulingStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the PodScheduling", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified PodScheduling", + "operationId": "patchResourceV1alpha1NamespacedPodSchedulingStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified PodScheduling", + "operationId": "replaceResourceV1alpha1NamespacedPodSchedulingStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ClusterRole", - "operationId": "deleteRbacAuthorizationV1CollectionClusterRole", + "description": "delete collection of ResourceClaim", + "operationId": "deleteResourceV1alpha1CollectionNamespacedResourceClaim", "parameters": [ { "in": "body", @@ -71702,21 +76826,21 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ClusterRole", - "operationId": "listRbacAuthorizationV1ClusterRole", + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceV1alpha1NamespacedResourceClaim", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -71793,7 +76917,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleList" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimList" } }, "401": { @@ -71804,16 +76928,24 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -71826,15 +76958,15 @@ "consumes": [ "*/*" ], - "description": "create a ClusterRole", - "operationId": "createRbacAuthorizationV1ClusterRole", + "description": "create a ResourceClaim", + "operationId": "createResourceV1alpha1NamespacedResourceClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" } }, { @@ -71868,19 +77000,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" } }, "401": { @@ -71891,23 +77023,23 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" } } }, - "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}": { + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ClusterRole", - "operationId": "deleteRbacAuthorizationV1ClusterRole", + "description": "delete a ResourceClaim", + "operationId": "deleteResourceV1alpha1NamespacedResourceClaim", "parameters": [ { "in": "body", @@ -71954,13 +77086,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" } }, "401": { @@ -71971,21 +77103,21 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified ClusterRole", - "operationId": "readRbacAuthorizationV1ClusterRole", + "description": "read the specified ResourceClaim", + "operationId": "readResourceV1alpha1NamespacedResourceClaim", "produces": [ "application/json", "application/yaml", @@ -71995,7 +77127,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" } }, "401": { @@ -72006,24 +77138,32 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the ClusterRole", + "description": "name of the ResourceClaim", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -72039,8 +77179,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified ClusterRole", - "operationId": "patchRbacAuthorizationV1ClusterRole", + "description": "partially update the specified ResourceClaim", + "operationId": "patchResourceV1alpha1NamespacedResourceClaim", "parameters": [ { "in": "body", @@ -72088,13 +77228,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" } }, "401": { @@ -72105,28 +77245,28 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified ClusterRole", - "operationId": "replaceRbacAuthorizationV1ClusterRole", + "description": "replace the specified ResourceClaim", + "operationId": "replaceResourceV1alpha1NamespacedResourceClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" } }, { @@ -72160,13 +77300,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" } }, "401": { @@ -72177,23 +77317,239 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" } } }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings": { + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified ResourceClaim", + "operationId": "readResourceV1alpha1NamespacedResourceClaimStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified ResourceClaim", + "operationId": "patchResourceV1alpha1NamespacedResourceClaimStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified ResourceClaim", + "operationId": "replaceResourceV1alpha1NamespacedResourceClaimStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of RoleBinding", - "operationId": "deleteRbacAuthorizationV1CollectionNamespacedRoleBinding", + "description": "delete collection of ResourceClaimTemplate", + "operationId": "deleteResourceV1alpha1CollectionNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", @@ -72300,21 +77656,21 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind RoleBinding", - "operationId": "listRbacAuthorizationV1NamespacedRoleBinding", + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceV1alpha1NamespacedResourceClaimTemplate", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -72391,7 +77747,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBindingList" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplateList" } }, "401": { @@ -72402,13 +77758,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" } }, "parameters": [ @@ -72432,15 +77788,15 @@ "consumes": [ "*/*" ], - "description": "create a RoleBinding", - "operationId": "createRbacAuthorizationV1NamespacedRoleBinding", + "description": "create a ResourceClaimTemplate", + "operationId": "createResourceV1alpha1NamespacedResourceClaimTemplate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" } }, { @@ -72474,19 +77830,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" } }, "401": { @@ -72497,23 +77853,23 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" } } }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}": { + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a RoleBinding", - "operationId": "deleteRbacAuthorizationV1NamespacedRoleBinding", + "description": "delete a ResourceClaimTemplate", + "operationId": "deleteResourceV1alpha1NamespacedResourceClaimTemplate", "parameters": [ { "in": "body", @@ -72560,13 +77916,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" } }, "401": { @@ -72577,21 +77933,21 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified RoleBinding", - "operationId": "readRbacAuthorizationV1NamespacedRoleBinding", + "description": "read the specified ResourceClaimTemplate", + "operationId": "readResourceV1alpha1NamespacedResourceClaimTemplate", "produces": [ "application/json", "application/yaml", @@ -72601,7 +77957,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" } }, "401": { @@ -72612,18 +77968,18 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the RoleBinding", + "description": "name of the ResourceClaimTemplate", "in": "path", "name": "name", "required": true, @@ -72653,8 +78009,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified RoleBinding", - "operationId": "patchRbacAuthorizationV1NamespacedRoleBinding", + "description": "partially update the specified ResourceClaimTemplate", + "operationId": "patchResourceV1alpha1NamespacedResourceClaimTemplate", "parameters": [ { "in": "body", @@ -72702,13 +78058,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" } }, "401": { @@ -72719,28 +78075,28 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified RoleBinding", - "operationId": "replaceRbacAuthorizationV1NamespacedRoleBinding", + "description": "replace the specified ResourceClaimTemplate", + "operationId": "replaceResourceV1alpha1NamespacedResourceClaimTemplate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" } }, { @@ -72774,13 +78130,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" } }, "401": { @@ -72791,23 +78147,356 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" } } }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles": { + "/apis/resource.k8s.io/v1alpha1/podschedulings": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodScheduling", + "operationId": "listResourceV1alpha1PodSchedulingForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodSchedulingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/resourceclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceV1alpha1ResourceClaimForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/resourceclaimtemplates": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceV1alpha1ResourceClaimTemplateForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplateList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/resourceclasses": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of Role", - "operationId": "deleteRbacAuthorizationV1CollectionNamespacedRole", + "description": "delete collection of ResourceClass", + "operationId": "deleteResourceV1alpha1CollectionResourceClass", "parameters": [ { "in": "body", @@ -72914,21 +78603,21 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Role", - "operationId": "listRbacAuthorizationV1NamespacedRole", + "description": "list or watch objects of kind ResourceClass", + "operationId": "listResourceV1alpha1ResourceClass", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -73005,7 +78694,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleList" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClassList" } }, "401": { @@ -73016,24 +78705,16 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -73046,15 +78727,15 @@ "consumes": [ "*/*" ], - "description": "create a Role", - "operationId": "createRbacAuthorizationV1NamespacedRole", + "description": "create a ResourceClass", + "operationId": "createResourceV1alpha1ResourceClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" } }, { @@ -73088,19 +78769,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" } }, "401": { @@ -73111,23 +78792,23 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" } } }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}": { + "/apis/resource.k8s.io/v1alpha1/resourceclasses/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a Role", - "operationId": "deleteRbacAuthorizationV1NamespacedRole", + "description": "delete a ResourceClass", + "operationId": "deleteResourceV1alpha1ResourceClass", "parameters": [ { "in": "body", @@ -73174,13 +78855,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" } }, "401": { @@ -73191,21 +78872,21 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified Role", - "operationId": "readRbacAuthorizationV1NamespacedRole", + "description": "read the specified ResourceClass", + "operationId": "readResourceV1alpha1ResourceClass", "produces": [ "application/json", "application/yaml", @@ -73215,7 +78896,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" } }, "401": { @@ -73226,32 +78907,24 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the Role", + "description": "name of the ResourceClass", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -73267,8 +78940,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified Role", - "operationId": "patchRbacAuthorizationV1NamespacedRole", + "description": "partially update the specified ResourceClass", + "operationId": "patchResourceV1alpha1ResourceClass", "parameters": [ { "in": "body", @@ -73316,13 +78989,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" } }, "401": { @@ -73333,28 +79006,28 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified Role", - "operationId": "replaceRbacAuthorizationV1NamespacedRole", + "description": "replace the specified ResourceClass", + "operationId": "replaceResourceV1alpha1ResourceClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" } }, { @@ -73388,13 +79061,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" } }, "401": { @@ -73405,23 +79078,23 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" } } }, - "/apis/rbac.authorization.k8s.io/v1/rolebindings": { + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/podschedulings": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind RoleBinding", - "operationId": "listRbacAuthorizationV1RoleBindingForAllNamespaces", + "description": "watch individual changes to a list of PodScheduling. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha1NamespacedPodSchedulingList", "produces": [ "application/json", "application/yaml", @@ -73433,7 +79106,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBindingList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -73444,13 +79117,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" } }, "parameters": [ @@ -73489,6 +79162,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -73526,13 +79207,13 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/roles": { + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/podschedulings/{name}": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Role", - "operationId": "listRbacAuthorizationV1RoleForAllNamespaces", + "description": "watch changes to an object of kind PodScheduling. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1alpha1NamespacedPodScheduling", "produces": [ "application/json", "application/yaml", @@ -73544,7 +79225,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -73555,13 +79236,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" } }, "parameters": [ @@ -73600,6 +79281,22 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the PodScheduling", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -73637,13 +79334,13 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings": { + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/resourceclaims": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1ClusterRoleBindingList", + "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha1NamespacedResourceClaimList", "produces": [ "application/json", "application/yaml", @@ -73666,13 +79363,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" } }, "parameters": [ @@ -73711,6 +79408,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -73748,13 +79453,13 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}": { + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/resourceclaims/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchRbacAuthorizationV1ClusterRoleBinding", + "description": "watch changes to an object of kind ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1alpha1NamespacedResourceClaim", "produces": [ "application/json", "application/yaml", @@ -73777,13 +79482,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" } }, "parameters": [ @@ -73823,7 +79528,7 @@ "uniqueItems": true }, { - "description": "name of the ClusterRoleBinding", + "description": "name of the ResourceClaim", "in": "path", "name": "name", "required": true, @@ -73831,116 +79536,13 @@ "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ClusterRole. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1ClusterRoleList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -73978,13 +79580,13 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}": { + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/resourceclaimtemplates": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ClusterRole. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchRbacAuthorizationV1ClusterRole", + "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha1NamespacedResourceClaimTemplateList", "produces": [ "application/json", "application/yaml", @@ -74007,13 +79609,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" } }, "parameters": [ @@ -74053,9 +79655,9 @@ "uniqueItems": true }, { - "description": "name of the ClusterRole", + "description": "object name and auth scope, such as for teams and projects", "in": "path", - "name": "name", + "name": "namespace", "required": true, "type": "string", "uniqueItems": true @@ -74097,13 +79699,13 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings": { + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1NamespacedRoleBindingList", + "description": "watch changes to an object of kind ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1alpha1NamespacedResourceClaimTemplate", "produces": [ "application/json", "application/yaml", @@ -74126,13 +79728,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" } }, "parameters": [ @@ -74171,6 +79773,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the ResourceClaimTemplate", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -74216,13 +79826,13 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}": { + "/apis/resource.k8s.io/v1alpha1/watch/podschedulings": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind RoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchRbacAuthorizationV1NamespacedRoleBinding", + "description": "watch individual changes to a list of PodScheduling. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha1PodSchedulingListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -74245,13 +79855,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" } }, "parameters": [ @@ -74290,22 +79900,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the RoleBinding", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -74343,13 +79937,13 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles": { + "/apis/resource.k8s.io/v1alpha1/watch/resourceclaims": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1NamespacedRoleList", + "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha1ResourceClaimListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -74372,13 +79966,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" } }, "parameters": [ @@ -74417,14 +80011,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -74462,13 +80048,13 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}": { + "/apis/resource.k8s.io/v1alpha1/watch/resourceclaimtemplates": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind Role. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchRbacAuthorizationV1NamespacedRole", + "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha1ResourceClaimTemplateListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -74491,13 +80077,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" } }, "parameters": [ @@ -74536,22 +80122,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the Role", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -74589,13 +80159,13 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/rolebindings": { + "/apis/resource.k8s.io/v1alpha1/watch/resourceclasses": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1RoleBindingListForAllNamespaces", + "description": "watch individual changes to a list of ResourceClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha1ResourceClassList", "produces": [ "application/json", "application/yaml", @@ -74618,13 +80188,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" } }, "parameters": [ @@ -74700,13 +80270,13 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/roles": { + "/apis/resource.k8s.io/v1alpha1/watch/resourceclasses/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1RoleListForAllNamespaces", + "description": "watch changes to an object of kind ResourceClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1alpha1ResourceClass", "produces": [ "application/json", "application/yaml", @@ -74729,13 +80299,13 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1alpha1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" } }, "parameters": [ @@ -74774,6 +80344,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the ResourceClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", diff --git a/kubernetes/unit-test/test_v1_claim_source.c b/kubernetes/unit-test/test_v1_claim_source.c new file mode 100644 index 00000000..6259c067 --- /dev/null +++ b/kubernetes/unit-test/test_v1_claim_source.c @@ -0,0 +1,60 @@ +#ifndef v1_claim_source_TEST +#define v1_claim_source_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_claim_source_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_claim_source.h" +v1_claim_source_t* instantiate_v1_claim_source(int include_optional); + + + +v1_claim_source_t* instantiate_v1_claim_source(int include_optional) { + v1_claim_source_t* v1_claim_source = NULL; + if (include_optional) { + v1_claim_source = v1_claim_source_create( + "0", + "0" + ); + } else { + v1_claim_source = v1_claim_source_create( + "0", + "0" + ); + } + + return v1_claim_source; +} + + +#ifdef v1_claim_source_MAIN + +void test_v1_claim_source(int include_optional) { + v1_claim_source_t* v1_claim_source_1 = instantiate_v1_claim_source(include_optional); + + cJSON* jsonv1_claim_source_1 = v1_claim_source_convertToJSON(v1_claim_source_1); + printf("v1_claim_source :\n%s\n", cJSON_Print(jsonv1_claim_source_1)); + v1_claim_source_t* v1_claim_source_2 = v1_claim_source_parseFromJSON(jsonv1_claim_source_1); + cJSON* jsonv1_claim_source_2 = v1_claim_source_convertToJSON(v1_claim_source_2); + printf("repeating v1_claim_source:\n%s\n", cJSON_Print(jsonv1_claim_source_2)); +} + +int main() { + test_v1_claim_source(1); + test_v1_claim_source(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_claim_source_MAIN +#endif // v1_claim_source_TEST diff --git a/kubernetes/unit-test/test_v1_ingress_load_balancer_ingress.c b/kubernetes/unit-test/test_v1_ingress_load_balancer_ingress.c new file mode 100644 index 00000000..5f9943c0 --- /dev/null +++ b/kubernetes/unit-test/test_v1_ingress_load_balancer_ingress.c @@ -0,0 +1,62 @@ +#ifndef v1_ingress_load_balancer_ingress_TEST +#define v1_ingress_load_balancer_ingress_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_ingress_load_balancer_ingress_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_ingress_load_balancer_ingress.h" +v1_ingress_load_balancer_ingress_t* instantiate_v1_ingress_load_balancer_ingress(int include_optional); + + + +v1_ingress_load_balancer_ingress_t* instantiate_v1_ingress_load_balancer_ingress(int include_optional) { + v1_ingress_load_balancer_ingress_t* v1_ingress_load_balancer_ingress = NULL; + if (include_optional) { + v1_ingress_load_balancer_ingress = v1_ingress_load_balancer_ingress_create( + "0", + "0", + list_createList() + ); + } else { + v1_ingress_load_balancer_ingress = v1_ingress_load_balancer_ingress_create( + "0", + "0", + list_createList() + ); + } + + return v1_ingress_load_balancer_ingress; +} + + +#ifdef v1_ingress_load_balancer_ingress_MAIN + +void test_v1_ingress_load_balancer_ingress(int include_optional) { + v1_ingress_load_balancer_ingress_t* v1_ingress_load_balancer_ingress_1 = instantiate_v1_ingress_load_balancer_ingress(include_optional); + + cJSON* jsonv1_ingress_load_balancer_ingress_1 = v1_ingress_load_balancer_ingress_convertToJSON(v1_ingress_load_balancer_ingress_1); + printf("v1_ingress_load_balancer_ingress :\n%s\n", cJSON_Print(jsonv1_ingress_load_balancer_ingress_1)); + v1_ingress_load_balancer_ingress_t* v1_ingress_load_balancer_ingress_2 = v1_ingress_load_balancer_ingress_parseFromJSON(jsonv1_ingress_load_balancer_ingress_1); + cJSON* jsonv1_ingress_load_balancer_ingress_2 = v1_ingress_load_balancer_ingress_convertToJSON(v1_ingress_load_balancer_ingress_2); + printf("repeating v1_ingress_load_balancer_ingress:\n%s\n", cJSON_Print(jsonv1_ingress_load_balancer_ingress_2)); +} + +int main() { + test_v1_ingress_load_balancer_ingress(1); + test_v1_ingress_load_balancer_ingress(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_ingress_load_balancer_ingress_MAIN +#endif // v1_ingress_load_balancer_ingress_TEST diff --git a/kubernetes/unit-test/test_v1_ingress_load_balancer_status.c b/kubernetes/unit-test/test_v1_ingress_load_balancer_status.c new file mode 100644 index 00000000..151ab064 --- /dev/null +++ b/kubernetes/unit-test/test_v1_ingress_load_balancer_status.c @@ -0,0 +1,58 @@ +#ifndef v1_ingress_load_balancer_status_TEST +#define v1_ingress_load_balancer_status_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_ingress_load_balancer_status_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_ingress_load_balancer_status.h" +v1_ingress_load_balancer_status_t* instantiate_v1_ingress_load_balancer_status(int include_optional); + + + +v1_ingress_load_balancer_status_t* instantiate_v1_ingress_load_balancer_status(int include_optional) { + v1_ingress_load_balancer_status_t* v1_ingress_load_balancer_status = NULL; + if (include_optional) { + v1_ingress_load_balancer_status = v1_ingress_load_balancer_status_create( + list_createList() + ); + } else { + v1_ingress_load_balancer_status = v1_ingress_load_balancer_status_create( + list_createList() + ); + } + + return v1_ingress_load_balancer_status; +} + + +#ifdef v1_ingress_load_balancer_status_MAIN + +void test_v1_ingress_load_balancer_status(int include_optional) { + v1_ingress_load_balancer_status_t* v1_ingress_load_balancer_status_1 = instantiate_v1_ingress_load_balancer_status(include_optional); + + cJSON* jsonv1_ingress_load_balancer_status_1 = v1_ingress_load_balancer_status_convertToJSON(v1_ingress_load_balancer_status_1); + printf("v1_ingress_load_balancer_status :\n%s\n", cJSON_Print(jsonv1_ingress_load_balancer_status_1)); + v1_ingress_load_balancer_status_t* v1_ingress_load_balancer_status_2 = v1_ingress_load_balancer_status_parseFromJSON(jsonv1_ingress_load_balancer_status_1); + cJSON* jsonv1_ingress_load_balancer_status_2 = v1_ingress_load_balancer_status_convertToJSON(v1_ingress_load_balancer_status_2); + printf("repeating v1_ingress_load_balancer_status:\n%s\n", cJSON_Print(jsonv1_ingress_load_balancer_status_2)); +} + +int main() { + test_v1_ingress_load_balancer_status(1); + test_v1_ingress_load_balancer_status(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_ingress_load_balancer_status_MAIN +#endif // v1_ingress_load_balancer_status_TEST diff --git a/kubernetes/unit-test/test_v1_ingress_port_status.c b/kubernetes/unit-test/test_v1_ingress_port_status.c new file mode 100644 index 00000000..1a73e433 --- /dev/null +++ b/kubernetes/unit-test/test_v1_ingress_port_status.c @@ -0,0 +1,62 @@ +#ifndef v1_ingress_port_status_TEST +#define v1_ingress_port_status_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_ingress_port_status_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_ingress_port_status.h" +v1_ingress_port_status_t* instantiate_v1_ingress_port_status(int include_optional); + + + +v1_ingress_port_status_t* instantiate_v1_ingress_port_status(int include_optional) { + v1_ingress_port_status_t* v1_ingress_port_status = NULL; + if (include_optional) { + v1_ingress_port_status = v1_ingress_port_status_create( + "0", + 56, + "0" + ); + } else { + v1_ingress_port_status = v1_ingress_port_status_create( + "0", + 56, + "0" + ); + } + + return v1_ingress_port_status; +} + + +#ifdef v1_ingress_port_status_MAIN + +void test_v1_ingress_port_status(int include_optional) { + v1_ingress_port_status_t* v1_ingress_port_status_1 = instantiate_v1_ingress_port_status(include_optional); + + cJSON* jsonv1_ingress_port_status_1 = v1_ingress_port_status_convertToJSON(v1_ingress_port_status_1); + printf("v1_ingress_port_status :\n%s\n", cJSON_Print(jsonv1_ingress_port_status_1)); + v1_ingress_port_status_t* v1_ingress_port_status_2 = v1_ingress_port_status_parseFromJSON(jsonv1_ingress_port_status_1); + cJSON* jsonv1_ingress_port_status_2 = v1_ingress_port_status_convertToJSON(v1_ingress_port_status_2); + printf("repeating v1_ingress_port_status:\n%s\n", cJSON_Print(jsonv1_ingress_port_status_2)); +} + +int main() { + test_v1_ingress_port_status(1); + test_v1_ingress_port_status(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_ingress_port_status_MAIN +#endif // v1_ingress_port_status_TEST diff --git a/kubernetes/unit-test/test_v1_ingress_status.c b/kubernetes/unit-test/test_v1_ingress_status.c index 373c4f69..ac7d7f61 100644 --- a/kubernetes/unit-test/test_v1_ingress_status.c +++ b/kubernetes/unit-test/test_v1_ingress_status.c @@ -16,7 +16,7 @@ #include "../model/v1_ingress_status.h" v1_ingress_status_t* instantiate_v1_ingress_status(int include_optional); -#include "test_v1_load_balancer_status.c" +#include "test_v1_ingress_load_balancer_status.c" v1_ingress_status_t* instantiate_v1_ingress_status(int include_optional) { @@ -24,7 +24,7 @@ v1_ingress_status_t* instantiate_v1_ingress_status(int include_optional) { if (include_optional) { v1_ingress_status = v1_ingress_status_create( // false, not to have infinite recursion - instantiate_v1_load_balancer_status(0) + instantiate_v1_ingress_load_balancer_status(0) ); } else { v1_ingress_status = v1_ingress_status_create( diff --git a/kubernetes/unit-test/test_v1_persistent_volume_claim_spec.c b/kubernetes/unit-test/test_v1_persistent_volume_claim_spec.c index c0972aa6..bd122ff7 100644 --- a/kubernetes/unit-test/test_v1_persistent_volume_claim_spec.c +++ b/kubernetes/unit-test/test_v1_persistent_volume_claim_spec.c @@ -17,7 +17,7 @@ v1_persistent_volume_claim_spec_t* instantiate_v1_persistent_volume_claim_spec(int include_optional); #include "test_v1_typed_local_object_reference.c" -#include "test_v1_typed_local_object_reference.c" +#include "test_v1_typed_object_reference.c" #include "test_v1_resource_requirements.c" #include "test_v1_label_selector.c" @@ -30,7 +30,7 @@ v1_persistent_volume_claim_spec_t* instantiate_v1_persistent_volume_claim_spec(i // false, not to have infinite recursion instantiate_v1_typed_local_object_reference(0), // false, not to have infinite recursion - instantiate_v1_typed_local_object_reference(0), + instantiate_v1_typed_object_reference(0), // false, not to have infinite recursion instantiate_v1_resource_requirements(0), // false, not to have infinite recursion diff --git a/kubernetes/unit-test/test_v1_pod_disruption_budget_spec.c b/kubernetes/unit-test/test_v1_pod_disruption_budget_spec.c index eb0f7fd7..12f195ba 100644 --- a/kubernetes/unit-test/test_v1_pod_disruption_budget_spec.c +++ b/kubernetes/unit-test/test_v1_pod_disruption_budget_spec.c @@ -26,13 +26,15 @@ v1_pod_disruption_budget_spec_t* instantiate_v1_pod_disruption_budget_spec(int i "0", "0", // false, not to have infinite recursion - instantiate_v1_label_selector(0) + instantiate_v1_label_selector(0), + "0" ); } else { v1_pod_disruption_budget_spec = v1_pod_disruption_budget_spec_create( "0", "0", - NULL + NULL, + "0" ); } diff --git a/kubernetes/unit-test/test_v1_pod_resource_claim.c b/kubernetes/unit-test/test_v1_pod_resource_claim.c new file mode 100644 index 00000000..1cb4d6bd --- /dev/null +++ b/kubernetes/unit-test/test_v1_pod_resource_claim.c @@ -0,0 +1,62 @@ +#ifndef v1_pod_resource_claim_TEST +#define v1_pod_resource_claim_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_pod_resource_claim_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_pod_resource_claim.h" +v1_pod_resource_claim_t* instantiate_v1_pod_resource_claim(int include_optional); + +#include "test_v1_claim_source.c" + + +v1_pod_resource_claim_t* instantiate_v1_pod_resource_claim(int include_optional) { + v1_pod_resource_claim_t* v1_pod_resource_claim = NULL; + if (include_optional) { + v1_pod_resource_claim = v1_pod_resource_claim_create( + "0", + // false, not to have infinite recursion + instantiate_v1_claim_source(0) + ); + } else { + v1_pod_resource_claim = v1_pod_resource_claim_create( + "0", + NULL + ); + } + + return v1_pod_resource_claim; +} + + +#ifdef v1_pod_resource_claim_MAIN + +void test_v1_pod_resource_claim(int include_optional) { + v1_pod_resource_claim_t* v1_pod_resource_claim_1 = instantiate_v1_pod_resource_claim(include_optional); + + cJSON* jsonv1_pod_resource_claim_1 = v1_pod_resource_claim_convertToJSON(v1_pod_resource_claim_1); + printf("v1_pod_resource_claim :\n%s\n", cJSON_Print(jsonv1_pod_resource_claim_1)); + v1_pod_resource_claim_t* v1_pod_resource_claim_2 = v1_pod_resource_claim_parseFromJSON(jsonv1_pod_resource_claim_1); + cJSON* jsonv1_pod_resource_claim_2 = v1_pod_resource_claim_convertToJSON(v1_pod_resource_claim_2); + printf("repeating v1_pod_resource_claim:\n%s\n", cJSON_Print(jsonv1_pod_resource_claim_2)); +} + +int main() { + test_v1_pod_resource_claim(1); + test_v1_pod_resource_claim(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_pod_resource_claim_MAIN +#endif // v1_pod_resource_claim_TEST diff --git a/kubernetes/unit-test/test_v1_pod_scheduling_gate.c b/kubernetes/unit-test/test_v1_pod_scheduling_gate.c new file mode 100644 index 00000000..42d04949 --- /dev/null +++ b/kubernetes/unit-test/test_v1_pod_scheduling_gate.c @@ -0,0 +1,58 @@ +#ifndef v1_pod_scheduling_gate_TEST +#define v1_pod_scheduling_gate_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_pod_scheduling_gate_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_pod_scheduling_gate.h" +v1_pod_scheduling_gate_t* instantiate_v1_pod_scheduling_gate(int include_optional); + + + +v1_pod_scheduling_gate_t* instantiate_v1_pod_scheduling_gate(int include_optional) { + v1_pod_scheduling_gate_t* v1_pod_scheduling_gate = NULL; + if (include_optional) { + v1_pod_scheduling_gate = v1_pod_scheduling_gate_create( + "0" + ); + } else { + v1_pod_scheduling_gate = v1_pod_scheduling_gate_create( + "0" + ); + } + + return v1_pod_scheduling_gate; +} + + +#ifdef v1_pod_scheduling_gate_MAIN + +void test_v1_pod_scheduling_gate(int include_optional) { + v1_pod_scheduling_gate_t* v1_pod_scheduling_gate_1 = instantiate_v1_pod_scheduling_gate(include_optional); + + cJSON* jsonv1_pod_scheduling_gate_1 = v1_pod_scheduling_gate_convertToJSON(v1_pod_scheduling_gate_1); + printf("v1_pod_scheduling_gate :\n%s\n", cJSON_Print(jsonv1_pod_scheduling_gate_1)); + v1_pod_scheduling_gate_t* v1_pod_scheduling_gate_2 = v1_pod_scheduling_gate_parseFromJSON(jsonv1_pod_scheduling_gate_1); + cJSON* jsonv1_pod_scheduling_gate_2 = v1_pod_scheduling_gate_convertToJSON(v1_pod_scheduling_gate_2); + printf("repeating v1_pod_scheduling_gate:\n%s\n", cJSON_Print(jsonv1_pod_scheduling_gate_2)); +} + +int main() { + test_v1_pod_scheduling_gate(1); + test_v1_pod_scheduling_gate(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_pod_scheduling_gate_MAIN +#endif // v1_pod_scheduling_gate_TEST diff --git a/kubernetes/unit-test/test_v1_pod_spec.c b/kubernetes/unit-test/test_v1_pod_spec.c index 4ad97f64..07dcff9b 100644 --- a/kubernetes/unit-test/test_v1_pod_spec.c +++ b/kubernetes/unit-test/test_v1_pod_spec.c @@ -53,9 +53,11 @@ v1_pod_spec_t* instantiate_v1_pod_spec(int include_optional) { 56, "0", list_createList(), + list_createList(), "0", "0", "0", + list_createList(), // false, not to have infinite recursion instantiate_v1_pod_security_context(0), "0", @@ -94,9 +96,11 @@ v1_pod_spec_t* instantiate_v1_pod_spec(int include_optional) { 56, "0", list_createList(), + list_createList(), "0", "0", "0", + list_createList(), NULL, "0", "0", diff --git a/kubernetes/unit-test/test_v1_resource_claim.c b/kubernetes/unit-test/test_v1_resource_claim.c new file mode 100644 index 00000000..1cad8b5e --- /dev/null +++ b/kubernetes/unit-test/test_v1_resource_claim.c @@ -0,0 +1,58 @@ +#ifndef v1_resource_claim_TEST +#define v1_resource_claim_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_resource_claim_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_resource_claim.h" +v1_resource_claim_t* instantiate_v1_resource_claim(int include_optional); + + + +v1_resource_claim_t* instantiate_v1_resource_claim(int include_optional) { + v1_resource_claim_t* v1_resource_claim = NULL; + if (include_optional) { + v1_resource_claim = v1_resource_claim_create( + "0" + ); + } else { + v1_resource_claim = v1_resource_claim_create( + "0" + ); + } + + return v1_resource_claim; +} + + +#ifdef v1_resource_claim_MAIN + +void test_v1_resource_claim(int include_optional) { + v1_resource_claim_t* v1_resource_claim_1 = instantiate_v1_resource_claim(include_optional); + + cJSON* jsonv1_resource_claim_1 = v1_resource_claim_convertToJSON(v1_resource_claim_1); + printf("v1_resource_claim :\n%s\n", cJSON_Print(jsonv1_resource_claim_1)); + v1_resource_claim_t* v1_resource_claim_2 = v1_resource_claim_parseFromJSON(jsonv1_resource_claim_1); + cJSON* jsonv1_resource_claim_2 = v1_resource_claim_convertToJSON(v1_resource_claim_2); + printf("repeating v1_resource_claim:\n%s\n", cJSON_Print(jsonv1_resource_claim_2)); +} + +int main() { + test_v1_resource_claim(1); + test_v1_resource_claim(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_resource_claim_MAIN +#endif // v1_resource_claim_TEST diff --git a/kubernetes/unit-test/test_v1_resource_requirements.c b/kubernetes/unit-test/test_v1_resource_requirements.c index a1321412..24631f2e 100644 --- a/kubernetes/unit-test/test_v1_resource_requirements.c +++ b/kubernetes/unit-test/test_v1_resource_requirements.c @@ -22,11 +22,13 @@ v1_resource_requirements_t* instantiate_v1_resource_requirements(int include_opt v1_resource_requirements_t* v1_resource_requirements = NULL; if (include_optional) { v1_resource_requirements = v1_resource_requirements_create( + list_createList(), list_createList(), list_createList() ); } else { v1_resource_requirements = v1_resource_requirements_create( + list_createList(), list_createList(), list_createList() ); diff --git a/kubernetes/unit-test/test_v1_stateful_set_ordinals.c b/kubernetes/unit-test/test_v1_stateful_set_ordinals.c new file mode 100644 index 00000000..ba7530ca --- /dev/null +++ b/kubernetes/unit-test/test_v1_stateful_set_ordinals.c @@ -0,0 +1,58 @@ +#ifndef v1_stateful_set_ordinals_TEST +#define v1_stateful_set_ordinals_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_stateful_set_ordinals_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_stateful_set_ordinals.h" +v1_stateful_set_ordinals_t* instantiate_v1_stateful_set_ordinals(int include_optional); + + + +v1_stateful_set_ordinals_t* instantiate_v1_stateful_set_ordinals(int include_optional) { + v1_stateful_set_ordinals_t* v1_stateful_set_ordinals = NULL; + if (include_optional) { + v1_stateful_set_ordinals = v1_stateful_set_ordinals_create( + 56 + ); + } else { + v1_stateful_set_ordinals = v1_stateful_set_ordinals_create( + 56 + ); + } + + return v1_stateful_set_ordinals; +} + + +#ifdef v1_stateful_set_ordinals_MAIN + +void test_v1_stateful_set_ordinals(int include_optional) { + v1_stateful_set_ordinals_t* v1_stateful_set_ordinals_1 = instantiate_v1_stateful_set_ordinals(include_optional); + + cJSON* jsonv1_stateful_set_ordinals_1 = v1_stateful_set_ordinals_convertToJSON(v1_stateful_set_ordinals_1); + printf("v1_stateful_set_ordinals :\n%s\n", cJSON_Print(jsonv1_stateful_set_ordinals_1)); + v1_stateful_set_ordinals_t* v1_stateful_set_ordinals_2 = v1_stateful_set_ordinals_parseFromJSON(jsonv1_stateful_set_ordinals_1); + cJSON* jsonv1_stateful_set_ordinals_2 = v1_stateful_set_ordinals_convertToJSON(v1_stateful_set_ordinals_2); + printf("repeating v1_stateful_set_ordinals:\n%s\n", cJSON_Print(jsonv1_stateful_set_ordinals_2)); +} + +int main() { + test_v1_stateful_set_ordinals(1); + test_v1_stateful_set_ordinals(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_stateful_set_ordinals_MAIN +#endif // v1_stateful_set_ordinals_TEST diff --git a/kubernetes/unit-test/test_v1_stateful_set_spec.c b/kubernetes/unit-test/test_v1_stateful_set_spec.c index fecead68..1fd7d643 100644 --- a/kubernetes/unit-test/test_v1_stateful_set_spec.c +++ b/kubernetes/unit-test/test_v1_stateful_set_spec.c @@ -16,6 +16,7 @@ #include "../model/v1_stateful_set_spec.h" v1_stateful_set_spec_t* instantiate_v1_stateful_set_spec(int include_optional); +#include "test_v1_stateful_set_ordinals.c" #include "test_v1_stateful_set_persistent_volume_claim_retention_policy.c" #include "test_v1_label_selector.c" #include "test_v1_pod_template_spec.c" @@ -28,6 +29,8 @@ v1_stateful_set_spec_t* instantiate_v1_stateful_set_spec(int include_optional) { v1_stateful_set_spec = v1_stateful_set_spec_create( 56, // false, not to have infinite recursion + instantiate_v1_stateful_set_ordinals(0), + // false, not to have infinite recursion instantiate_v1_stateful_set_persistent_volume_claim_retention_policy(0), "0", 56, @@ -45,6 +48,7 @@ v1_stateful_set_spec_t* instantiate_v1_stateful_set_spec(int include_optional) { v1_stateful_set_spec = v1_stateful_set_spec_create( 56, NULL, + NULL, "0", 56, 56, diff --git a/kubernetes/unit-test/test_v1_typed_object_reference.c b/kubernetes/unit-test/test_v1_typed_object_reference.c new file mode 100644 index 00000000..ba758a9b --- /dev/null +++ b/kubernetes/unit-test/test_v1_typed_object_reference.c @@ -0,0 +1,64 @@ +#ifndef v1_typed_object_reference_TEST +#define v1_typed_object_reference_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_typed_object_reference_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_typed_object_reference.h" +v1_typed_object_reference_t* instantiate_v1_typed_object_reference(int include_optional); + + + +v1_typed_object_reference_t* instantiate_v1_typed_object_reference(int include_optional) { + v1_typed_object_reference_t* v1_typed_object_reference = NULL; + if (include_optional) { + v1_typed_object_reference = v1_typed_object_reference_create( + "0", + "0", + "0", + "0" + ); + } else { + v1_typed_object_reference = v1_typed_object_reference_create( + "0", + "0", + "0", + "0" + ); + } + + return v1_typed_object_reference; +} + + +#ifdef v1_typed_object_reference_MAIN + +void test_v1_typed_object_reference(int include_optional) { + v1_typed_object_reference_t* v1_typed_object_reference_1 = instantiate_v1_typed_object_reference(include_optional); + + cJSON* jsonv1_typed_object_reference_1 = v1_typed_object_reference_convertToJSON(v1_typed_object_reference_1); + printf("v1_typed_object_reference :\n%s\n", cJSON_Print(jsonv1_typed_object_reference_1)); + v1_typed_object_reference_t* v1_typed_object_reference_2 = v1_typed_object_reference_parseFromJSON(jsonv1_typed_object_reference_1); + cJSON* jsonv1_typed_object_reference_2 = v1_typed_object_reference_convertToJSON(v1_typed_object_reference_2); + printf("repeating v1_typed_object_reference:\n%s\n", cJSON_Print(jsonv1_typed_object_reference_2)); +} + +int main() { + test_v1_typed_object_reference(1); + test_v1_typed_object_reference(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_typed_object_reference_MAIN +#endif // v1_typed_object_reference_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_allocation_result.c b/kubernetes/unit-test/test_v1alpha1_allocation_result.c new file mode 100644 index 00000000..75ac23e1 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_allocation_result.c @@ -0,0 +1,64 @@ +#ifndef v1alpha1_allocation_result_TEST +#define v1alpha1_allocation_result_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_allocation_result_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_allocation_result.h" +v1alpha1_allocation_result_t* instantiate_v1alpha1_allocation_result(int include_optional); + +#include "test_v1_node_selector.c" + + +v1alpha1_allocation_result_t* instantiate_v1alpha1_allocation_result(int include_optional) { + v1alpha1_allocation_result_t* v1alpha1_allocation_result = NULL; + if (include_optional) { + v1alpha1_allocation_result = v1alpha1_allocation_result_create( + // false, not to have infinite recursion + instantiate_v1_node_selector(0), + "0", + 1 + ); + } else { + v1alpha1_allocation_result = v1alpha1_allocation_result_create( + NULL, + "0", + 1 + ); + } + + return v1alpha1_allocation_result; +} + + +#ifdef v1alpha1_allocation_result_MAIN + +void test_v1alpha1_allocation_result(int include_optional) { + v1alpha1_allocation_result_t* v1alpha1_allocation_result_1 = instantiate_v1alpha1_allocation_result(include_optional); + + cJSON* jsonv1alpha1_allocation_result_1 = v1alpha1_allocation_result_convertToJSON(v1alpha1_allocation_result_1); + printf("v1alpha1_allocation_result :\n%s\n", cJSON_Print(jsonv1alpha1_allocation_result_1)); + v1alpha1_allocation_result_t* v1alpha1_allocation_result_2 = v1alpha1_allocation_result_parseFromJSON(jsonv1alpha1_allocation_result_1); + cJSON* jsonv1alpha1_allocation_result_2 = v1alpha1_allocation_result_convertToJSON(v1alpha1_allocation_result_2); + printf("repeating v1alpha1_allocation_result:\n%s\n", cJSON_Print(jsonv1alpha1_allocation_result_2)); +} + +int main() { + test_v1alpha1_allocation_result(1); + test_v1alpha1_allocation_result(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_allocation_result_MAIN +#endif // v1alpha1_allocation_result_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_match_resources.c b/kubernetes/unit-test/test_v1alpha1_match_resources.c new file mode 100644 index 00000000..b8076402 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_match_resources.c @@ -0,0 +1,70 @@ +#ifndef v1alpha1_match_resources_TEST +#define v1alpha1_match_resources_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_match_resources_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_match_resources.h" +v1alpha1_match_resources_t* instantiate_v1alpha1_match_resources(int include_optional); + +#include "test_v1_label_selector.c" +#include "test_v1_label_selector.c" + + +v1alpha1_match_resources_t* instantiate_v1alpha1_match_resources(int include_optional) { + v1alpha1_match_resources_t* v1alpha1_match_resources = NULL; + if (include_optional) { + v1alpha1_match_resources = v1alpha1_match_resources_create( + list_createList(), + "0", + // false, not to have infinite recursion + instantiate_v1_label_selector(0), + // false, not to have infinite recursion + instantiate_v1_label_selector(0), + list_createList() + ); + } else { + v1alpha1_match_resources = v1alpha1_match_resources_create( + list_createList(), + "0", + NULL, + NULL, + list_createList() + ); + } + + return v1alpha1_match_resources; +} + + +#ifdef v1alpha1_match_resources_MAIN + +void test_v1alpha1_match_resources(int include_optional) { + v1alpha1_match_resources_t* v1alpha1_match_resources_1 = instantiate_v1alpha1_match_resources(include_optional); + + cJSON* jsonv1alpha1_match_resources_1 = v1alpha1_match_resources_convertToJSON(v1alpha1_match_resources_1); + printf("v1alpha1_match_resources :\n%s\n", cJSON_Print(jsonv1alpha1_match_resources_1)); + v1alpha1_match_resources_t* v1alpha1_match_resources_2 = v1alpha1_match_resources_parseFromJSON(jsonv1alpha1_match_resources_1); + cJSON* jsonv1alpha1_match_resources_2 = v1alpha1_match_resources_convertToJSON(v1alpha1_match_resources_2); + printf("repeating v1alpha1_match_resources:\n%s\n", cJSON_Print(jsonv1alpha1_match_resources_2)); +} + +int main() { + test_v1alpha1_match_resources(1); + test_v1alpha1_match_resources(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_match_resources_MAIN +#endif // v1alpha1_match_resources_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_named_rule_with_operations.c b/kubernetes/unit-test/test_v1alpha1_named_rule_with_operations.c new file mode 100644 index 00000000..2d2fc37c --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_named_rule_with_operations.c @@ -0,0 +1,68 @@ +#ifndef v1alpha1_named_rule_with_operations_TEST +#define v1alpha1_named_rule_with_operations_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_named_rule_with_operations_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_named_rule_with_operations.h" +v1alpha1_named_rule_with_operations_t* instantiate_v1alpha1_named_rule_with_operations(int include_optional); + + + +v1alpha1_named_rule_with_operations_t* instantiate_v1alpha1_named_rule_with_operations(int include_optional) { + v1alpha1_named_rule_with_operations_t* v1alpha1_named_rule_with_operations = NULL; + if (include_optional) { + v1alpha1_named_rule_with_operations = v1alpha1_named_rule_with_operations_create( + list_createList(), + list_createList(), + list_createList(), + list_createList(), + list_createList(), + "0" + ); + } else { + v1alpha1_named_rule_with_operations = v1alpha1_named_rule_with_operations_create( + list_createList(), + list_createList(), + list_createList(), + list_createList(), + list_createList(), + "0" + ); + } + + return v1alpha1_named_rule_with_operations; +} + + +#ifdef v1alpha1_named_rule_with_operations_MAIN + +void test_v1alpha1_named_rule_with_operations(int include_optional) { + v1alpha1_named_rule_with_operations_t* v1alpha1_named_rule_with_operations_1 = instantiate_v1alpha1_named_rule_with_operations(include_optional); + + cJSON* jsonv1alpha1_named_rule_with_operations_1 = v1alpha1_named_rule_with_operations_convertToJSON(v1alpha1_named_rule_with_operations_1); + printf("v1alpha1_named_rule_with_operations :\n%s\n", cJSON_Print(jsonv1alpha1_named_rule_with_operations_1)); + v1alpha1_named_rule_with_operations_t* v1alpha1_named_rule_with_operations_2 = v1alpha1_named_rule_with_operations_parseFromJSON(jsonv1alpha1_named_rule_with_operations_1); + cJSON* jsonv1alpha1_named_rule_with_operations_2 = v1alpha1_named_rule_with_operations_convertToJSON(v1alpha1_named_rule_with_operations_2); + printf("repeating v1alpha1_named_rule_with_operations:\n%s\n", cJSON_Print(jsonv1alpha1_named_rule_with_operations_2)); +} + +int main() { + test_v1alpha1_named_rule_with_operations(1); + test_v1alpha1_named_rule_with_operations(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_named_rule_with_operations_MAIN +#endif // v1alpha1_named_rule_with_operations_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_param_kind.c b/kubernetes/unit-test/test_v1alpha1_param_kind.c new file mode 100644 index 00000000..6bb53057 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_param_kind.c @@ -0,0 +1,60 @@ +#ifndef v1alpha1_param_kind_TEST +#define v1alpha1_param_kind_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_param_kind_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_param_kind.h" +v1alpha1_param_kind_t* instantiate_v1alpha1_param_kind(int include_optional); + + + +v1alpha1_param_kind_t* instantiate_v1alpha1_param_kind(int include_optional) { + v1alpha1_param_kind_t* v1alpha1_param_kind = NULL; + if (include_optional) { + v1alpha1_param_kind = v1alpha1_param_kind_create( + "0", + "0" + ); + } else { + v1alpha1_param_kind = v1alpha1_param_kind_create( + "0", + "0" + ); + } + + return v1alpha1_param_kind; +} + + +#ifdef v1alpha1_param_kind_MAIN + +void test_v1alpha1_param_kind(int include_optional) { + v1alpha1_param_kind_t* v1alpha1_param_kind_1 = instantiate_v1alpha1_param_kind(include_optional); + + cJSON* jsonv1alpha1_param_kind_1 = v1alpha1_param_kind_convertToJSON(v1alpha1_param_kind_1); + printf("v1alpha1_param_kind :\n%s\n", cJSON_Print(jsonv1alpha1_param_kind_1)); + v1alpha1_param_kind_t* v1alpha1_param_kind_2 = v1alpha1_param_kind_parseFromJSON(jsonv1alpha1_param_kind_1); + cJSON* jsonv1alpha1_param_kind_2 = v1alpha1_param_kind_convertToJSON(v1alpha1_param_kind_2); + printf("repeating v1alpha1_param_kind:\n%s\n", cJSON_Print(jsonv1alpha1_param_kind_2)); +} + +int main() { + test_v1alpha1_param_kind(1); + test_v1alpha1_param_kind(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_param_kind_MAIN +#endif // v1alpha1_param_kind_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_param_ref.c b/kubernetes/unit-test/test_v1alpha1_param_ref.c new file mode 100644 index 00000000..4b704f6b --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_param_ref.c @@ -0,0 +1,60 @@ +#ifndef v1alpha1_param_ref_TEST +#define v1alpha1_param_ref_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_param_ref_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_param_ref.h" +v1alpha1_param_ref_t* instantiate_v1alpha1_param_ref(int include_optional); + + + +v1alpha1_param_ref_t* instantiate_v1alpha1_param_ref(int include_optional) { + v1alpha1_param_ref_t* v1alpha1_param_ref = NULL; + if (include_optional) { + v1alpha1_param_ref = v1alpha1_param_ref_create( + "0", + "0" + ); + } else { + v1alpha1_param_ref = v1alpha1_param_ref_create( + "0", + "0" + ); + } + + return v1alpha1_param_ref; +} + + +#ifdef v1alpha1_param_ref_MAIN + +void test_v1alpha1_param_ref(int include_optional) { + v1alpha1_param_ref_t* v1alpha1_param_ref_1 = instantiate_v1alpha1_param_ref(include_optional); + + cJSON* jsonv1alpha1_param_ref_1 = v1alpha1_param_ref_convertToJSON(v1alpha1_param_ref_1); + printf("v1alpha1_param_ref :\n%s\n", cJSON_Print(jsonv1alpha1_param_ref_1)); + v1alpha1_param_ref_t* v1alpha1_param_ref_2 = v1alpha1_param_ref_parseFromJSON(jsonv1alpha1_param_ref_1); + cJSON* jsonv1alpha1_param_ref_2 = v1alpha1_param_ref_convertToJSON(v1alpha1_param_ref_2); + printf("repeating v1alpha1_param_ref:\n%s\n", cJSON_Print(jsonv1alpha1_param_ref_2)); +} + +int main() { + test_v1alpha1_param_ref(1); + test_v1alpha1_param_ref(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_param_ref_MAIN +#endif // v1alpha1_param_ref_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_pod_scheduling.c b/kubernetes/unit-test/test_v1alpha1_pod_scheduling.c new file mode 100644 index 00000000..d45d40fb --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_pod_scheduling.c @@ -0,0 +1,72 @@ +#ifndef v1alpha1_pod_scheduling_TEST +#define v1alpha1_pod_scheduling_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_pod_scheduling_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_pod_scheduling.h" +v1alpha1_pod_scheduling_t* instantiate_v1alpha1_pod_scheduling(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1alpha1_pod_scheduling_spec.c" +#include "test_v1alpha1_pod_scheduling_status.c" + + +v1alpha1_pod_scheduling_t* instantiate_v1alpha1_pod_scheduling(int include_optional) { + v1alpha1_pod_scheduling_t* v1alpha1_pod_scheduling = NULL; + if (include_optional) { + v1alpha1_pod_scheduling = v1alpha1_pod_scheduling_create( + "0", + "0", + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1alpha1_pod_scheduling_spec(0), + // false, not to have infinite recursion + instantiate_v1alpha1_pod_scheduling_status(0) + ); + } else { + v1alpha1_pod_scheduling = v1alpha1_pod_scheduling_create( + "0", + "0", + NULL, + NULL, + NULL + ); + } + + return v1alpha1_pod_scheduling; +} + + +#ifdef v1alpha1_pod_scheduling_MAIN + +void test_v1alpha1_pod_scheduling(int include_optional) { + v1alpha1_pod_scheduling_t* v1alpha1_pod_scheduling_1 = instantiate_v1alpha1_pod_scheduling(include_optional); + + cJSON* jsonv1alpha1_pod_scheduling_1 = v1alpha1_pod_scheduling_convertToJSON(v1alpha1_pod_scheduling_1); + printf("v1alpha1_pod_scheduling :\n%s\n", cJSON_Print(jsonv1alpha1_pod_scheduling_1)); + v1alpha1_pod_scheduling_t* v1alpha1_pod_scheduling_2 = v1alpha1_pod_scheduling_parseFromJSON(jsonv1alpha1_pod_scheduling_1); + cJSON* jsonv1alpha1_pod_scheduling_2 = v1alpha1_pod_scheduling_convertToJSON(v1alpha1_pod_scheduling_2); + printf("repeating v1alpha1_pod_scheduling:\n%s\n", cJSON_Print(jsonv1alpha1_pod_scheduling_2)); +} + +int main() { + test_v1alpha1_pod_scheduling(1); + test_v1alpha1_pod_scheduling(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_pod_scheduling_MAIN +#endif // v1alpha1_pod_scheduling_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_pod_scheduling_list.c b/kubernetes/unit-test/test_v1alpha1_pod_scheduling_list.c new file mode 100644 index 00000000..4be98851 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_pod_scheduling_list.c @@ -0,0 +1,66 @@ +#ifndef v1alpha1_pod_scheduling_list_TEST +#define v1alpha1_pod_scheduling_list_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_pod_scheduling_list_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_pod_scheduling_list.h" +v1alpha1_pod_scheduling_list_t* instantiate_v1alpha1_pod_scheduling_list(int include_optional); + +#include "test_v1_list_meta.c" + + +v1alpha1_pod_scheduling_list_t* instantiate_v1alpha1_pod_scheduling_list(int include_optional) { + v1alpha1_pod_scheduling_list_t* v1alpha1_pod_scheduling_list = NULL; + if (include_optional) { + v1alpha1_pod_scheduling_list = v1alpha1_pod_scheduling_list_create( + "0", + list_createList(), + "0", + // false, not to have infinite recursion + instantiate_v1_list_meta(0) + ); + } else { + v1alpha1_pod_scheduling_list = v1alpha1_pod_scheduling_list_create( + "0", + list_createList(), + "0", + NULL + ); + } + + return v1alpha1_pod_scheduling_list; +} + + +#ifdef v1alpha1_pod_scheduling_list_MAIN + +void test_v1alpha1_pod_scheduling_list(int include_optional) { + v1alpha1_pod_scheduling_list_t* v1alpha1_pod_scheduling_list_1 = instantiate_v1alpha1_pod_scheduling_list(include_optional); + + cJSON* jsonv1alpha1_pod_scheduling_list_1 = v1alpha1_pod_scheduling_list_convertToJSON(v1alpha1_pod_scheduling_list_1); + printf("v1alpha1_pod_scheduling_list :\n%s\n", cJSON_Print(jsonv1alpha1_pod_scheduling_list_1)); + v1alpha1_pod_scheduling_list_t* v1alpha1_pod_scheduling_list_2 = v1alpha1_pod_scheduling_list_parseFromJSON(jsonv1alpha1_pod_scheduling_list_1); + cJSON* jsonv1alpha1_pod_scheduling_list_2 = v1alpha1_pod_scheduling_list_convertToJSON(v1alpha1_pod_scheduling_list_2); + printf("repeating v1alpha1_pod_scheduling_list:\n%s\n", cJSON_Print(jsonv1alpha1_pod_scheduling_list_2)); +} + +int main() { + test_v1alpha1_pod_scheduling_list(1); + test_v1alpha1_pod_scheduling_list(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_pod_scheduling_list_MAIN +#endif // v1alpha1_pod_scheduling_list_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_pod_scheduling_spec.c b/kubernetes/unit-test/test_v1alpha1_pod_scheduling_spec.c new file mode 100644 index 00000000..1bec9535 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_pod_scheduling_spec.c @@ -0,0 +1,60 @@ +#ifndef v1alpha1_pod_scheduling_spec_TEST +#define v1alpha1_pod_scheduling_spec_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_pod_scheduling_spec_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_pod_scheduling_spec.h" +v1alpha1_pod_scheduling_spec_t* instantiate_v1alpha1_pod_scheduling_spec(int include_optional); + + + +v1alpha1_pod_scheduling_spec_t* instantiate_v1alpha1_pod_scheduling_spec(int include_optional) { + v1alpha1_pod_scheduling_spec_t* v1alpha1_pod_scheduling_spec = NULL; + if (include_optional) { + v1alpha1_pod_scheduling_spec = v1alpha1_pod_scheduling_spec_create( + list_createList(), + "0" + ); + } else { + v1alpha1_pod_scheduling_spec = v1alpha1_pod_scheduling_spec_create( + list_createList(), + "0" + ); + } + + return v1alpha1_pod_scheduling_spec; +} + + +#ifdef v1alpha1_pod_scheduling_spec_MAIN + +void test_v1alpha1_pod_scheduling_spec(int include_optional) { + v1alpha1_pod_scheduling_spec_t* v1alpha1_pod_scheduling_spec_1 = instantiate_v1alpha1_pod_scheduling_spec(include_optional); + + cJSON* jsonv1alpha1_pod_scheduling_spec_1 = v1alpha1_pod_scheduling_spec_convertToJSON(v1alpha1_pod_scheduling_spec_1); + printf("v1alpha1_pod_scheduling_spec :\n%s\n", cJSON_Print(jsonv1alpha1_pod_scheduling_spec_1)); + v1alpha1_pod_scheduling_spec_t* v1alpha1_pod_scheduling_spec_2 = v1alpha1_pod_scheduling_spec_parseFromJSON(jsonv1alpha1_pod_scheduling_spec_1); + cJSON* jsonv1alpha1_pod_scheduling_spec_2 = v1alpha1_pod_scheduling_spec_convertToJSON(v1alpha1_pod_scheduling_spec_2); + printf("repeating v1alpha1_pod_scheduling_spec:\n%s\n", cJSON_Print(jsonv1alpha1_pod_scheduling_spec_2)); +} + +int main() { + test_v1alpha1_pod_scheduling_spec(1); + test_v1alpha1_pod_scheduling_spec(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_pod_scheduling_spec_MAIN +#endif // v1alpha1_pod_scheduling_spec_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_pod_scheduling_status.c b/kubernetes/unit-test/test_v1alpha1_pod_scheduling_status.c new file mode 100644 index 00000000..0fe90daa --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_pod_scheduling_status.c @@ -0,0 +1,58 @@ +#ifndef v1alpha1_pod_scheduling_status_TEST +#define v1alpha1_pod_scheduling_status_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_pod_scheduling_status_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_pod_scheduling_status.h" +v1alpha1_pod_scheduling_status_t* instantiate_v1alpha1_pod_scheduling_status(int include_optional); + + + +v1alpha1_pod_scheduling_status_t* instantiate_v1alpha1_pod_scheduling_status(int include_optional) { + v1alpha1_pod_scheduling_status_t* v1alpha1_pod_scheduling_status = NULL; + if (include_optional) { + v1alpha1_pod_scheduling_status = v1alpha1_pod_scheduling_status_create( + list_createList() + ); + } else { + v1alpha1_pod_scheduling_status = v1alpha1_pod_scheduling_status_create( + list_createList() + ); + } + + return v1alpha1_pod_scheduling_status; +} + + +#ifdef v1alpha1_pod_scheduling_status_MAIN + +void test_v1alpha1_pod_scheduling_status(int include_optional) { + v1alpha1_pod_scheduling_status_t* v1alpha1_pod_scheduling_status_1 = instantiate_v1alpha1_pod_scheduling_status(include_optional); + + cJSON* jsonv1alpha1_pod_scheduling_status_1 = v1alpha1_pod_scheduling_status_convertToJSON(v1alpha1_pod_scheduling_status_1); + printf("v1alpha1_pod_scheduling_status :\n%s\n", cJSON_Print(jsonv1alpha1_pod_scheduling_status_1)); + v1alpha1_pod_scheduling_status_t* v1alpha1_pod_scheduling_status_2 = v1alpha1_pod_scheduling_status_parseFromJSON(jsonv1alpha1_pod_scheduling_status_1); + cJSON* jsonv1alpha1_pod_scheduling_status_2 = v1alpha1_pod_scheduling_status_convertToJSON(v1alpha1_pod_scheduling_status_2); + printf("repeating v1alpha1_pod_scheduling_status:\n%s\n", cJSON_Print(jsonv1alpha1_pod_scheduling_status_2)); +} + +int main() { + test_v1alpha1_pod_scheduling_status(1); + test_v1alpha1_pod_scheduling_status(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_pod_scheduling_status_MAIN +#endif // v1alpha1_pod_scheduling_status_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_claim.c b/kubernetes/unit-test/test_v1alpha1_resource_claim.c new file mode 100644 index 00000000..892c31c9 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_claim.c @@ -0,0 +1,72 @@ +#ifndef v1alpha1_resource_claim_TEST +#define v1alpha1_resource_claim_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_claim_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_claim.h" +v1alpha1_resource_claim_t* instantiate_v1alpha1_resource_claim(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1alpha1_resource_claim_spec.c" +#include "test_v1alpha1_resource_claim_status.c" + + +v1alpha1_resource_claim_t* instantiate_v1alpha1_resource_claim(int include_optional) { + v1alpha1_resource_claim_t* v1alpha1_resource_claim = NULL; + if (include_optional) { + v1alpha1_resource_claim = v1alpha1_resource_claim_create( + "0", + "0", + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1alpha1_resource_claim_spec(0), + // false, not to have infinite recursion + instantiate_v1alpha1_resource_claim_status(0) + ); + } else { + v1alpha1_resource_claim = v1alpha1_resource_claim_create( + "0", + "0", + NULL, + NULL, + NULL + ); + } + + return v1alpha1_resource_claim; +} + + +#ifdef v1alpha1_resource_claim_MAIN + +void test_v1alpha1_resource_claim(int include_optional) { + v1alpha1_resource_claim_t* v1alpha1_resource_claim_1 = instantiate_v1alpha1_resource_claim(include_optional); + + cJSON* jsonv1alpha1_resource_claim_1 = v1alpha1_resource_claim_convertToJSON(v1alpha1_resource_claim_1); + printf("v1alpha1_resource_claim :\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_1)); + v1alpha1_resource_claim_t* v1alpha1_resource_claim_2 = v1alpha1_resource_claim_parseFromJSON(jsonv1alpha1_resource_claim_1); + cJSON* jsonv1alpha1_resource_claim_2 = v1alpha1_resource_claim_convertToJSON(v1alpha1_resource_claim_2); + printf("repeating v1alpha1_resource_claim:\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_2)); +} + +int main() { + test_v1alpha1_resource_claim(1); + test_v1alpha1_resource_claim(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_claim_MAIN +#endif // v1alpha1_resource_claim_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_claim_consumer_reference.c b/kubernetes/unit-test/test_v1alpha1_resource_claim_consumer_reference.c new file mode 100644 index 00000000..70455615 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_claim_consumer_reference.c @@ -0,0 +1,64 @@ +#ifndef v1alpha1_resource_claim_consumer_reference_TEST +#define v1alpha1_resource_claim_consumer_reference_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_claim_consumer_reference_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_claim_consumer_reference.h" +v1alpha1_resource_claim_consumer_reference_t* instantiate_v1alpha1_resource_claim_consumer_reference(int include_optional); + + + +v1alpha1_resource_claim_consumer_reference_t* instantiate_v1alpha1_resource_claim_consumer_reference(int include_optional) { + v1alpha1_resource_claim_consumer_reference_t* v1alpha1_resource_claim_consumer_reference = NULL; + if (include_optional) { + v1alpha1_resource_claim_consumer_reference = v1alpha1_resource_claim_consumer_reference_create( + "0", + "0", + "0", + "0" + ); + } else { + v1alpha1_resource_claim_consumer_reference = v1alpha1_resource_claim_consumer_reference_create( + "0", + "0", + "0", + "0" + ); + } + + return v1alpha1_resource_claim_consumer_reference; +} + + +#ifdef v1alpha1_resource_claim_consumer_reference_MAIN + +void test_v1alpha1_resource_claim_consumer_reference(int include_optional) { + v1alpha1_resource_claim_consumer_reference_t* v1alpha1_resource_claim_consumer_reference_1 = instantiate_v1alpha1_resource_claim_consumer_reference(include_optional); + + cJSON* jsonv1alpha1_resource_claim_consumer_reference_1 = v1alpha1_resource_claim_consumer_reference_convertToJSON(v1alpha1_resource_claim_consumer_reference_1); + printf("v1alpha1_resource_claim_consumer_reference :\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_consumer_reference_1)); + v1alpha1_resource_claim_consumer_reference_t* v1alpha1_resource_claim_consumer_reference_2 = v1alpha1_resource_claim_consumer_reference_parseFromJSON(jsonv1alpha1_resource_claim_consumer_reference_1); + cJSON* jsonv1alpha1_resource_claim_consumer_reference_2 = v1alpha1_resource_claim_consumer_reference_convertToJSON(v1alpha1_resource_claim_consumer_reference_2); + printf("repeating v1alpha1_resource_claim_consumer_reference:\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_consumer_reference_2)); +} + +int main() { + test_v1alpha1_resource_claim_consumer_reference(1); + test_v1alpha1_resource_claim_consumer_reference(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_claim_consumer_reference_MAIN +#endif // v1alpha1_resource_claim_consumer_reference_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_claim_list.c b/kubernetes/unit-test/test_v1alpha1_resource_claim_list.c new file mode 100644 index 00000000..dad3c275 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_claim_list.c @@ -0,0 +1,66 @@ +#ifndef v1alpha1_resource_claim_list_TEST +#define v1alpha1_resource_claim_list_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_claim_list_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_claim_list.h" +v1alpha1_resource_claim_list_t* instantiate_v1alpha1_resource_claim_list(int include_optional); + +#include "test_v1_list_meta.c" + + +v1alpha1_resource_claim_list_t* instantiate_v1alpha1_resource_claim_list(int include_optional) { + v1alpha1_resource_claim_list_t* v1alpha1_resource_claim_list = NULL; + if (include_optional) { + v1alpha1_resource_claim_list = v1alpha1_resource_claim_list_create( + "0", + list_createList(), + "0", + // false, not to have infinite recursion + instantiate_v1_list_meta(0) + ); + } else { + v1alpha1_resource_claim_list = v1alpha1_resource_claim_list_create( + "0", + list_createList(), + "0", + NULL + ); + } + + return v1alpha1_resource_claim_list; +} + + +#ifdef v1alpha1_resource_claim_list_MAIN + +void test_v1alpha1_resource_claim_list(int include_optional) { + v1alpha1_resource_claim_list_t* v1alpha1_resource_claim_list_1 = instantiate_v1alpha1_resource_claim_list(include_optional); + + cJSON* jsonv1alpha1_resource_claim_list_1 = v1alpha1_resource_claim_list_convertToJSON(v1alpha1_resource_claim_list_1); + printf("v1alpha1_resource_claim_list :\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_list_1)); + v1alpha1_resource_claim_list_t* v1alpha1_resource_claim_list_2 = v1alpha1_resource_claim_list_parseFromJSON(jsonv1alpha1_resource_claim_list_1); + cJSON* jsonv1alpha1_resource_claim_list_2 = v1alpha1_resource_claim_list_convertToJSON(v1alpha1_resource_claim_list_2); + printf("repeating v1alpha1_resource_claim_list:\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_list_2)); +} + +int main() { + test_v1alpha1_resource_claim_list(1); + test_v1alpha1_resource_claim_list(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_claim_list_MAIN +#endif // v1alpha1_resource_claim_list_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_claim_parameters_reference.c b/kubernetes/unit-test/test_v1alpha1_resource_claim_parameters_reference.c new file mode 100644 index 00000000..820ca1f8 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_claim_parameters_reference.c @@ -0,0 +1,62 @@ +#ifndef v1alpha1_resource_claim_parameters_reference_TEST +#define v1alpha1_resource_claim_parameters_reference_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_claim_parameters_reference_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_claim_parameters_reference.h" +v1alpha1_resource_claim_parameters_reference_t* instantiate_v1alpha1_resource_claim_parameters_reference(int include_optional); + + + +v1alpha1_resource_claim_parameters_reference_t* instantiate_v1alpha1_resource_claim_parameters_reference(int include_optional) { + v1alpha1_resource_claim_parameters_reference_t* v1alpha1_resource_claim_parameters_reference = NULL; + if (include_optional) { + v1alpha1_resource_claim_parameters_reference = v1alpha1_resource_claim_parameters_reference_create( + "0", + "0", + "0" + ); + } else { + v1alpha1_resource_claim_parameters_reference = v1alpha1_resource_claim_parameters_reference_create( + "0", + "0", + "0" + ); + } + + return v1alpha1_resource_claim_parameters_reference; +} + + +#ifdef v1alpha1_resource_claim_parameters_reference_MAIN + +void test_v1alpha1_resource_claim_parameters_reference(int include_optional) { + v1alpha1_resource_claim_parameters_reference_t* v1alpha1_resource_claim_parameters_reference_1 = instantiate_v1alpha1_resource_claim_parameters_reference(include_optional); + + cJSON* jsonv1alpha1_resource_claim_parameters_reference_1 = v1alpha1_resource_claim_parameters_reference_convertToJSON(v1alpha1_resource_claim_parameters_reference_1); + printf("v1alpha1_resource_claim_parameters_reference :\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_parameters_reference_1)); + v1alpha1_resource_claim_parameters_reference_t* v1alpha1_resource_claim_parameters_reference_2 = v1alpha1_resource_claim_parameters_reference_parseFromJSON(jsonv1alpha1_resource_claim_parameters_reference_1); + cJSON* jsonv1alpha1_resource_claim_parameters_reference_2 = v1alpha1_resource_claim_parameters_reference_convertToJSON(v1alpha1_resource_claim_parameters_reference_2); + printf("repeating v1alpha1_resource_claim_parameters_reference:\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_parameters_reference_2)); +} + +int main() { + test_v1alpha1_resource_claim_parameters_reference(1); + test_v1alpha1_resource_claim_parameters_reference(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_claim_parameters_reference_MAIN +#endif // v1alpha1_resource_claim_parameters_reference_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_claim_scheduling_status.c b/kubernetes/unit-test/test_v1alpha1_resource_claim_scheduling_status.c new file mode 100644 index 00000000..0369d1be --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_claim_scheduling_status.c @@ -0,0 +1,60 @@ +#ifndef v1alpha1_resource_claim_scheduling_status_TEST +#define v1alpha1_resource_claim_scheduling_status_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_claim_scheduling_status_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_claim_scheduling_status.h" +v1alpha1_resource_claim_scheduling_status_t* instantiate_v1alpha1_resource_claim_scheduling_status(int include_optional); + + + +v1alpha1_resource_claim_scheduling_status_t* instantiate_v1alpha1_resource_claim_scheduling_status(int include_optional) { + v1alpha1_resource_claim_scheduling_status_t* v1alpha1_resource_claim_scheduling_status = NULL; + if (include_optional) { + v1alpha1_resource_claim_scheduling_status = v1alpha1_resource_claim_scheduling_status_create( + "0", + list_createList() + ); + } else { + v1alpha1_resource_claim_scheduling_status = v1alpha1_resource_claim_scheduling_status_create( + "0", + list_createList() + ); + } + + return v1alpha1_resource_claim_scheduling_status; +} + + +#ifdef v1alpha1_resource_claim_scheduling_status_MAIN + +void test_v1alpha1_resource_claim_scheduling_status(int include_optional) { + v1alpha1_resource_claim_scheduling_status_t* v1alpha1_resource_claim_scheduling_status_1 = instantiate_v1alpha1_resource_claim_scheduling_status(include_optional); + + cJSON* jsonv1alpha1_resource_claim_scheduling_status_1 = v1alpha1_resource_claim_scheduling_status_convertToJSON(v1alpha1_resource_claim_scheduling_status_1); + printf("v1alpha1_resource_claim_scheduling_status :\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_scheduling_status_1)); + v1alpha1_resource_claim_scheduling_status_t* v1alpha1_resource_claim_scheduling_status_2 = v1alpha1_resource_claim_scheduling_status_parseFromJSON(jsonv1alpha1_resource_claim_scheduling_status_1); + cJSON* jsonv1alpha1_resource_claim_scheduling_status_2 = v1alpha1_resource_claim_scheduling_status_convertToJSON(v1alpha1_resource_claim_scheduling_status_2); + printf("repeating v1alpha1_resource_claim_scheduling_status:\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_scheduling_status_2)); +} + +int main() { + test_v1alpha1_resource_claim_scheduling_status(1); + test_v1alpha1_resource_claim_scheduling_status(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_claim_scheduling_status_MAIN +#endif // v1alpha1_resource_claim_scheduling_status_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_claim_spec.c b/kubernetes/unit-test/test_v1alpha1_resource_claim_spec.c new file mode 100644 index 00000000..163d1d53 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_claim_spec.c @@ -0,0 +1,64 @@ +#ifndef v1alpha1_resource_claim_spec_TEST +#define v1alpha1_resource_claim_spec_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_claim_spec_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_claim_spec.h" +v1alpha1_resource_claim_spec_t* instantiate_v1alpha1_resource_claim_spec(int include_optional); + +#include "test_v1alpha1_resource_claim_parameters_reference.c" + + +v1alpha1_resource_claim_spec_t* instantiate_v1alpha1_resource_claim_spec(int include_optional) { + v1alpha1_resource_claim_spec_t* v1alpha1_resource_claim_spec = NULL; + if (include_optional) { + v1alpha1_resource_claim_spec = v1alpha1_resource_claim_spec_create( + "0", + // false, not to have infinite recursion + instantiate_v1alpha1_resource_claim_parameters_reference(0), + "0" + ); + } else { + v1alpha1_resource_claim_spec = v1alpha1_resource_claim_spec_create( + "0", + NULL, + "0" + ); + } + + return v1alpha1_resource_claim_spec; +} + + +#ifdef v1alpha1_resource_claim_spec_MAIN + +void test_v1alpha1_resource_claim_spec(int include_optional) { + v1alpha1_resource_claim_spec_t* v1alpha1_resource_claim_spec_1 = instantiate_v1alpha1_resource_claim_spec(include_optional); + + cJSON* jsonv1alpha1_resource_claim_spec_1 = v1alpha1_resource_claim_spec_convertToJSON(v1alpha1_resource_claim_spec_1); + printf("v1alpha1_resource_claim_spec :\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_spec_1)); + v1alpha1_resource_claim_spec_t* v1alpha1_resource_claim_spec_2 = v1alpha1_resource_claim_spec_parseFromJSON(jsonv1alpha1_resource_claim_spec_1); + cJSON* jsonv1alpha1_resource_claim_spec_2 = v1alpha1_resource_claim_spec_convertToJSON(v1alpha1_resource_claim_spec_2); + printf("repeating v1alpha1_resource_claim_spec:\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_spec_2)); +} + +int main() { + test_v1alpha1_resource_claim_spec(1); + test_v1alpha1_resource_claim_spec(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_claim_spec_MAIN +#endif // v1alpha1_resource_claim_spec_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_claim_status.c b/kubernetes/unit-test/test_v1alpha1_resource_claim_status.c new file mode 100644 index 00000000..9bb11bb2 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_claim_status.c @@ -0,0 +1,66 @@ +#ifndef v1alpha1_resource_claim_status_TEST +#define v1alpha1_resource_claim_status_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_claim_status_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_claim_status.h" +v1alpha1_resource_claim_status_t* instantiate_v1alpha1_resource_claim_status(int include_optional); + +#include "test_v1alpha1_allocation_result.c" + + +v1alpha1_resource_claim_status_t* instantiate_v1alpha1_resource_claim_status(int include_optional) { + v1alpha1_resource_claim_status_t* v1alpha1_resource_claim_status = NULL; + if (include_optional) { + v1alpha1_resource_claim_status = v1alpha1_resource_claim_status_create( + // false, not to have infinite recursion + instantiate_v1alpha1_allocation_result(0), + 1, + "0", + list_createList() + ); + } else { + v1alpha1_resource_claim_status = v1alpha1_resource_claim_status_create( + NULL, + 1, + "0", + list_createList() + ); + } + + return v1alpha1_resource_claim_status; +} + + +#ifdef v1alpha1_resource_claim_status_MAIN + +void test_v1alpha1_resource_claim_status(int include_optional) { + v1alpha1_resource_claim_status_t* v1alpha1_resource_claim_status_1 = instantiate_v1alpha1_resource_claim_status(include_optional); + + cJSON* jsonv1alpha1_resource_claim_status_1 = v1alpha1_resource_claim_status_convertToJSON(v1alpha1_resource_claim_status_1); + printf("v1alpha1_resource_claim_status :\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_status_1)); + v1alpha1_resource_claim_status_t* v1alpha1_resource_claim_status_2 = v1alpha1_resource_claim_status_parseFromJSON(jsonv1alpha1_resource_claim_status_1); + cJSON* jsonv1alpha1_resource_claim_status_2 = v1alpha1_resource_claim_status_convertToJSON(v1alpha1_resource_claim_status_2); + printf("repeating v1alpha1_resource_claim_status:\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_status_2)); +} + +int main() { + test_v1alpha1_resource_claim_status(1); + test_v1alpha1_resource_claim_status(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_claim_status_MAIN +#endif // v1alpha1_resource_claim_status_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_claim_template.c b/kubernetes/unit-test/test_v1alpha1_resource_claim_template.c new file mode 100644 index 00000000..fff231ba --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_claim_template.c @@ -0,0 +1,68 @@ +#ifndef v1alpha1_resource_claim_template_TEST +#define v1alpha1_resource_claim_template_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_claim_template_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_claim_template.h" +v1alpha1_resource_claim_template_t* instantiate_v1alpha1_resource_claim_template(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1alpha1_resource_claim_template_spec.c" + + +v1alpha1_resource_claim_template_t* instantiate_v1alpha1_resource_claim_template(int include_optional) { + v1alpha1_resource_claim_template_t* v1alpha1_resource_claim_template = NULL; + if (include_optional) { + v1alpha1_resource_claim_template = v1alpha1_resource_claim_template_create( + "0", + "0", + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1alpha1_resource_claim_template_spec(0) + ); + } else { + v1alpha1_resource_claim_template = v1alpha1_resource_claim_template_create( + "0", + "0", + NULL, + NULL + ); + } + + return v1alpha1_resource_claim_template; +} + + +#ifdef v1alpha1_resource_claim_template_MAIN + +void test_v1alpha1_resource_claim_template(int include_optional) { + v1alpha1_resource_claim_template_t* v1alpha1_resource_claim_template_1 = instantiate_v1alpha1_resource_claim_template(include_optional); + + cJSON* jsonv1alpha1_resource_claim_template_1 = v1alpha1_resource_claim_template_convertToJSON(v1alpha1_resource_claim_template_1); + printf("v1alpha1_resource_claim_template :\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_template_1)); + v1alpha1_resource_claim_template_t* v1alpha1_resource_claim_template_2 = v1alpha1_resource_claim_template_parseFromJSON(jsonv1alpha1_resource_claim_template_1); + cJSON* jsonv1alpha1_resource_claim_template_2 = v1alpha1_resource_claim_template_convertToJSON(v1alpha1_resource_claim_template_2); + printf("repeating v1alpha1_resource_claim_template:\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_template_2)); +} + +int main() { + test_v1alpha1_resource_claim_template(1); + test_v1alpha1_resource_claim_template(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_claim_template_MAIN +#endif // v1alpha1_resource_claim_template_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_claim_template_list.c b/kubernetes/unit-test/test_v1alpha1_resource_claim_template_list.c new file mode 100644 index 00000000..9b561233 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_claim_template_list.c @@ -0,0 +1,66 @@ +#ifndef v1alpha1_resource_claim_template_list_TEST +#define v1alpha1_resource_claim_template_list_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_claim_template_list_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_claim_template_list.h" +v1alpha1_resource_claim_template_list_t* instantiate_v1alpha1_resource_claim_template_list(int include_optional); + +#include "test_v1_list_meta.c" + + +v1alpha1_resource_claim_template_list_t* instantiate_v1alpha1_resource_claim_template_list(int include_optional) { + v1alpha1_resource_claim_template_list_t* v1alpha1_resource_claim_template_list = NULL; + if (include_optional) { + v1alpha1_resource_claim_template_list = v1alpha1_resource_claim_template_list_create( + "0", + list_createList(), + "0", + // false, not to have infinite recursion + instantiate_v1_list_meta(0) + ); + } else { + v1alpha1_resource_claim_template_list = v1alpha1_resource_claim_template_list_create( + "0", + list_createList(), + "0", + NULL + ); + } + + return v1alpha1_resource_claim_template_list; +} + + +#ifdef v1alpha1_resource_claim_template_list_MAIN + +void test_v1alpha1_resource_claim_template_list(int include_optional) { + v1alpha1_resource_claim_template_list_t* v1alpha1_resource_claim_template_list_1 = instantiate_v1alpha1_resource_claim_template_list(include_optional); + + cJSON* jsonv1alpha1_resource_claim_template_list_1 = v1alpha1_resource_claim_template_list_convertToJSON(v1alpha1_resource_claim_template_list_1); + printf("v1alpha1_resource_claim_template_list :\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_template_list_1)); + v1alpha1_resource_claim_template_list_t* v1alpha1_resource_claim_template_list_2 = v1alpha1_resource_claim_template_list_parseFromJSON(jsonv1alpha1_resource_claim_template_list_1); + cJSON* jsonv1alpha1_resource_claim_template_list_2 = v1alpha1_resource_claim_template_list_convertToJSON(v1alpha1_resource_claim_template_list_2); + printf("repeating v1alpha1_resource_claim_template_list:\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_template_list_2)); +} + +int main() { + test_v1alpha1_resource_claim_template_list(1); + test_v1alpha1_resource_claim_template_list(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_claim_template_list_MAIN +#endif // v1alpha1_resource_claim_template_list_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_claim_template_spec.c b/kubernetes/unit-test/test_v1alpha1_resource_claim_template_spec.c new file mode 100644 index 00000000..5702f40e --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_claim_template_spec.c @@ -0,0 +1,64 @@ +#ifndef v1alpha1_resource_claim_template_spec_TEST +#define v1alpha1_resource_claim_template_spec_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_claim_template_spec_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_claim_template_spec.h" +v1alpha1_resource_claim_template_spec_t* instantiate_v1alpha1_resource_claim_template_spec(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1alpha1_resource_claim_spec.c" + + +v1alpha1_resource_claim_template_spec_t* instantiate_v1alpha1_resource_claim_template_spec(int include_optional) { + v1alpha1_resource_claim_template_spec_t* v1alpha1_resource_claim_template_spec = NULL; + if (include_optional) { + v1alpha1_resource_claim_template_spec = v1alpha1_resource_claim_template_spec_create( + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1alpha1_resource_claim_spec(0) + ); + } else { + v1alpha1_resource_claim_template_spec = v1alpha1_resource_claim_template_spec_create( + NULL, + NULL + ); + } + + return v1alpha1_resource_claim_template_spec; +} + + +#ifdef v1alpha1_resource_claim_template_spec_MAIN + +void test_v1alpha1_resource_claim_template_spec(int include_optional) { + v1alpha1_resource_claim_template_spec_t* v1alpha1_resource_claim_template_spec_1 = instantiate_v1alpha1_resource_claim_template_spec(include_optional); + + cJSON* jsonv1alpha1_resource_claim_template_spec_1 = v1alpha1_resource_claim_template_spec_convertToJSON(v1alpha1_resource_claim_template_spec_1); + printf("v1alpha1_resource_claim_template_spec :\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_template_spec_1)); + v1alpha1_resource_claim_template_spec_t* v1alpha1_resource_claim_template_spec_2 = v1alpha1_resource_claim_template_spec_parseFromJSON(jsonv1alpha1_resource_claim_template_spec_1); + cJSON* jsonv1alpha1_resource_claim_template_spec_2 = v1alpha1_resource_claim_template_spec_convertToJSON(v1alpha1_resource_claim_template_spec_2); + printf("repeating v1alpha1_resource_claim_template_spec:\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_template_spec_2)); +} + +int main() { + test_v1alpha1_resource_claim_template_spec(1); + test_v1alpha1_resource_claim_template_spec(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_claim_template_spec_MAIN +#endif // v1alpha1_resource_claim_template_spec_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_class.c b/kubernetes/unit-test/test_v1alpha1_resource_class.c new file mode 100644 index 00000000..f7236820 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_class.c @@ -0,0 +1,74 @@ +#ifndef v1alpha1_resource_class_TEST +#define v1alpha1_resource_class_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_class_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_class.h" +v1alpha1_resource_class_t* instantiate_v1alpha1_resource_class(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1alpha1_resource_class_parameters_reference.c" +#include "test_v1_node_selector.c" + + +v1alpha1_resource_class_t* instantiate_v1alpha1_resource_class(int include_optional) { + v1alpha1_resource_class_t* v1alpha1_resource_class = NULL; + if (include_optional) { + v1alpha1_resource_class = v1alpha1_resource_class_create( + "0", + "0", + "0", + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1alpha1_resource_class_parameters_reference(0), + // false, not to have infinite recursion + instantiate_v1_node_selector(0) + ); + } else { + v1alpha1_resource_class = v1alpha1_resource_class_create( + "0", + "0", + "0", + NULL, + NULL, + NULL + ); + } + + return v1alpha1_resource_class; +} + + +#ifdef v1alpha1_resource_class_MAIN + +void test_v1alpha1_resource_class(int include_optional) { + v1alpha1_resource_class_t* v1alpha1_resource_class_1 = instantiate_v1alpha1_resource_class(include_optional); + + cJSON* jsonv1alpha1_resource_class_1 = v1alpha1_resource_class_convertToJSON(v1alpha1_resource_class_1); + printf("v1alpha1_resource_class :\n%s\n", cJSON_Print(jsonv1alpha1_resource_class_1)); + v1alpha1_resource_class_t* v1alpha1_resource_class_2 = v1alpha1_resource_class_parseFromJSON(jsonv1alpha1_resource_class_1); + cJSON* jsonv1alpha1_resource_class_2 = v1alpha1_resource_class_convertToJSON(v1alpha1_resource_class_2); + printf("repeating v1alpha1_resource_class:\n%s\n", cJSON_Print(jsonv1alpha1_resource_class_2)); +} + +int main() { + test_v1alpha1_resource_class(1); + test_v1alpha1_resource_class(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_class_MAIN +#endif // v1alpha1_resource_class_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_class_list.c b/kubernetes/unit-test/test_v1alpha1_resource_class_list.c new file mode 100644 index 00000000..e8d1d1d2 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_class_list.c @@ -0,0 +1,66 @@ +#ifndef v1alpha1_resource_class_list_TEST +#define v1alpha1_resource_class_list_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_class_list_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_class_list.h" +v1alpha1_resource_class_list_t* instantiate_v1alpha1_resource_class_list(int include_optional); + +#include "test_v1_list_meta.c" + + +v1alpha1_resource_class_list_t* instantiate_v1alpha1_resource_class_list(int include_optional) { + v1alpha1_resource_class_list_t* v1alpha1_resource_class_list = NULL; + if (include_optional) { + v1alpha1_resource_class_list = v1alpha1_resource_class_list_create( + "0", + list_createList(), + "0", + // false, not to have infinite recursion + instantiate_v1_list_meta(0) + ); + } else { + v1alpha1_resource_class_list = v1alpha1_resource_class_list_create( + "0", + list_createList(), + "0", + NULL + ); + } + + return v1alpha1_resource_class_list; +} + + +#ifdef v1alpha1_resource_class_list_MAIN + +void test_v1alpha1_resource_class_list(int include_optional) { + v1alpha1_resource_class_list_t* v1alpha1_resource_class_list_1 = instantiate_v1alpha1_resource_class_list(include_optional); + + cJSON* jsonv1alpha1_resource_class_list_1 = v1alpha1_resource_class_list_convertToJSON(v1alpha1_resource_class_list_1); + printf("v1alpha1_resource_class_list :\n%s\n", cJSON_Print(jsonv1alpha1_resource_class_list_1)); + v1alpha1_resource_class_list_t* v1alpha1_resource_class_list_2 = v1alpha1_resource_class_list_parseFromJSON(jsonv1alpha1_resource_class_list_1); + cJSON* jsonv1alpha1_resource_class_list_2 = v1alpha1_resource_class_list_convertToJSON(v1alpha1_resource_class_list_2); + printf("repeating v1alpha1_resource_class_list:\n%s\n", cJSON_Print(jsonv1alpha1_resource_class_list_2)); +} + +int main() { + test_v1alpha1_resource_class_list(1); + test_v1alpha1_resource_class_list(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_class_list_MAIN +#endif // v1alpha1_resource_class_list_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_class_parameters_reference.c b/kubernetes/unit-test/test_v1alpha1_resource_class_parameters_reference.c new file mode 100644 index 00000000..e2337738 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_class_parameters_reference.c @@ -0,0 +1,64 @@ +#ifndef v1alpha1_resource_class_parameters_reference_TEST +#define v1alpha1_resource_class_parameters_reference_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_class_parameters_reference_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_class_parameters_reference.h" +v1alpha1_resource_class_parameters_reference_t* instantiate_v1alpha1_resource_class_parameters_reference(int include_optional); + + + +v1alpha1_resource_class_parameters_reference_t* instantiate_v1alpha1_resource_class_parameters_reference(int include_optional) { + v1alpha1_resource_class_parameters_reference_t* v1alpha1_resource_class_parameters_reference = NULL; + if (include_optional) { + v1alpha1_resource_class_parameters_reference = v1alpha1_resource_class_parameters_reference_create( + "0", + "0", + "0", + "0" + ); + } else { + v1alpha1_resource_class_parameters_reference = v1alpha1_resource_class_parameters_reference_create( + "0", + "0", + "0", + "0" + ); + } + + return v1alpha1_resource_class_parameters_reference; +} + + +#ifdef v1alpha1_resource_class_parameters_reference_MAIN + +void test_v1alpha1_resource_class_parameters_reference(int include_optional) { + v1alpha1_resource_class_parameters_reference_t* v1alpha1_resource_class_parameters_reference_1 = instantiate_v1alpha1_resource_class_parameters_reference(include_optional); + + cJSON* jsonv1alpha1_resource_class_parameters_reference_1 = v1alpha1_resource_class_parameters_reference_convertToJSON(v1alpha1_resource_class_parameters_reference_1); + printf("v1alpha1_resource_class_parameters_reference :\n%s\n", cJSON_Print(jsonv1alpha1_resource_class_parameters_reference_1)); + v1alpha1_resource_class_parameters_reference_t* v1alpha1_resource_class_parameters_reference_2 = v1alpha1_resource_class_parameters_reference_parseFromJSON(jsonv1alpha1_resource_class_parameters_reference_1); + cJSON* jsonv1alpha1_resource_class_parameters_reference_2 = v1alpha1_resource_class_parameters_reference_convertToJSON(v1alpha1_resource_class_parameters_reference_2); + printf("repeating v1alpha1_resource_class_parameters_reference:\n%s\n", cJSON_Print(jsonv1alpha1_resource_class_parameters_reference_2)); +} + +int main() { + test_v1alpha1_resource_class_parameters_reference(1); + test_v1alpha1_resource_class_parameters_reference(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_class_parameters_reference_MAIN +#endif // v1alpha1_resource_class_parameters_reference_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_self_subject_review.c b/kubernetes/unit-test/test_v1alpha1_self_subject_review.c new file mode 100644 index 00000000..36b7bc81 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_self_subject_review.c @@ -0,0 +1,68 @@ +#ifndef v1alpha1_self_subject_review_TEST +#define v1alpha1_self_subject_review_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_self_subject_review_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_self_subject_review.h" +v1alpha1_self_subject_review_t* instantiate_v1alpha1_self_subject_review(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1alpha1_self_subject_review_status.c" + + +v1alpha1_self_subject_review_t* instantiate_v1alpha1_self_subject_review(int include_optional) { + v1alpha1_self_subject_review_t* v1alpha1_self_subject_review = NULL; + if (include_optional) { + v1alpha1_self_subject_review = v1alpha1_self_subject_review_create( + "0", + "0", + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1alpha1_self_subject_review_status(0) + ); + } else { + v1alpha1_self_subject_review = v1alpha1_self_subject_review_create( + "0", + "0", + NULL, + NULL + ); + } + + return v1alpha1_self_subject_review; +} + + +#ifdef v1alpha1_self_subject_review_MAIN + +void test_v1alpha1_self_subject_review(int include_optional) { + v1alpha1_self_subject_review_t* v1alpha1_self_subject_review_1 = instantiate_v1alpha1_self_subject_review(include_optional); + + cJSON* jsonv1alpha1_self_subject_review_1 = v1alpha1_self_subject_review_convertToJSON(v1alpha1_self_subject_review_1); + printf("v1alpha1_self_subject_review :\n%s\n", cJSON_Print(jsonv1alpha1_self_subject_review_1)); + v1alpha1_self_subject_review_t* v1alpha1_self_subject_review_2 = v1alpha1_self_subject_review_parseFromJSON(jsonv1alpha1_self_subject_review_1); + cJSON* jsonv1alpha1_self_subject_review_2 = v1alpha1_self_subject_review_convertToJSON(v1alpha1_self_subject_review_2); + printf("repeating v1alpha1_self_subject_review:\n%s\n", cJSON_Print(jsonv1alpha1_self_subject_review_2)); +} + +int main() { + test_v1alpha1_self_subject_review(1); + test_v1alpha1_self_subject_review(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_self_subject_review_MAIN +#endif // v1alpha1_self_subject_review_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_self_subject_review_status.c b/kubernetes/unit-test/test_v1alpha1_self_subject_review_status.c new file mode 100644 index 00000000..fef92c48 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_self_subject_review_status.c @@ -0,0 +1,60 @@ +#ifndef v1alpha1_self_subject_review_status_TEST +#define v1alpha1_self_subject_review_status_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_self_subject_review_status_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_self_subject_review_status.h" +v1alpha1_self_subject_review_status_t* instantiate_v1alpha1_self_subject_review_status(int include_optional); + +#include "test_v1_user_info.c" + + +v1alpha1_self_subject_review_status_t* instantiate_v1alpha1_self_subject_review_status(int include_optional) { + v1alpha1_self_subject_review_status_t* v1alpha1_self_subject_review_status = NULL; + if (include_optional) { + v1alpha1_self_subject_review_status = v1alpha1_self_subject_review_status_create( + // false, not to have infinite recursion + instantiate_v1_user_info(0) + ); + } else { + v1alpha1_self_subject_review_status = v1alpha1_self_subject_review_status_create( + NULL + ); + } + + return v1alpha1_self_subject_review_status; +} + + +#ifdef v1alpha1_self_subject_review_status_MAIN + +void test_v1alpha1_self_subject_review_status(int include_optional) { + v1alpha1_self_subject_review_status_t* v1alpha1_self_subject_review_status_1 = instantiate_v1alpha1_self_subject_review_status(include_optional); + + cJSON* jsonv1alpha1_self_subject_review_status_1 = v1alpha1_self_subject_review_status_convertToJSON(v1alpha1_self_subject_review_status_1); + printf("v1alpha1_self_subject_review_status :\n%s\n", cJSON_Print(jsonv1alpha1_self_subject_review_status_1)); + v1alpha1_self_subject_review_status_t* v1alpha1_self_subject_review_status_2 = v1alpha1_self_subject_review_status_parseFromJSON(jsonv1alpha1_self_subject_review_status_1); + cJSON* jsonv1alpha1_self_subject_review_status_2 = v1alpha1_self_subject_review_status_convertToJSON(v1alpha1_self_subject_review_status_2); + printf("repeating v1alpha1_self_subject_review_status:\n%s\n", cJSON_Print(jsonv1alpha1_self_subject_review_status_2)); +} + +int main() { + test_v1alpha1_self_subject_review_status(1); + test_v1alpha1_self_subject_review_status(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_self_subject_review_status_MAIN +#endif // v1alpha1_self_subject_review_status_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_validating_admission_policy.c b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy.c new file mode 100644 index 00000000..a093fc48 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy.c @@ -0,0 +1,68 @@ +#ifndef v1alpha1_validating_admission_policy_TEST +#define v1alpha1_validating_admission_policy_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_validating_admission_policy_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_validating_admission_policy.h" +v1alpha1_validating_admission_policy_t* instantiate_v1alpha1_validating_admission_policy(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1alpha1_validating_admission_policy_spec.c" + + +v1alpha1_validating_admission_policy_t* instantiate_v1alpha1_validating_admission_policy(int include_optional) { + v1alpha1_validating_admission_policy_t* v1alpha1_validating_admission_policy = NULL; + if (include_optional) { + v1alpha1_validating_admission_policy = v1alpha1_validating_admission_policy_create( + "0", + "0", + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1alpha1_validating_admission_policy_spec(0) + ); + } else { + v1alpha1_validating_admission_policy = v1alpha1_validating_admission_policy_create( + "0", + "0", + NULL, + NULL + ); + } + + return v1alpha1_validating_admission_policy; +} + + +#ifdef v1alpha1_validating_admission_policy_MAIN + +void test_v1alpha1_validating_admission_policy(int include_optional) { + v1alpha1_validating_admission_policy_t* v1alpha1_validating_admission_policy_1 = instantiate_v1alpha1_validating_admission_policy(include_optional); + + cJSON* jsonv1alpha1_validating_admission_policy_1 = v1alpha1_validating_admission_policy_convertToJSON(v1alpha1_validating_admission_policy_1); + printf("v1alpha1_validating_admission_policy :\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_1)); + v1alpha1_validating_admission_policy_t* v1alpha1_validating_admission_policy_2 = v1alpha1_validating_admission_policy_parseFromJSON(jsonv1alpha1_validating_admission_policy_1); + cJSON* jsonv1alpha1_validating_admission_policy_2 = v1alpha1_validating_admission_policy_convertToJSON(v1alpha1_validating_admission_policy_2); + printf("repeating v1alpha1_validating_admission_policy:\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_2)); +} + +int main() { + test_v1alpha1_validating_admission_policy(1); + test_v1alpha1_validating_admission_policy(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_validating_admission_policy_MAIN +#endif // v1alpha1_validating_admission_policy_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding.c b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding.c new file mode 100644 index 00000000..a993a34a --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding.c @@ -0,0 +1,68 @@ +#ifndef v1alpha1_validating_admission_policy_binding_TEST +#define v1alpha1_validating_admission_policy_binding_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_validating_admission_policy_binding_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_validating_admission_policy_binding.h" +v1alpha1_validating_admission_policy_binding_t* instantiate_v1alpha1_validating_admission_policy_binding(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1alpha1_validating_admission_policy_binding_spec.c" + + +v1alpha1_validating_admission_policy_binding_t* instantiate_v1alpha1_validating_admission_policy_binding(int include_optional) { + v1alpha1_validating_admission_policy_binding_t* v1alpha1_validating_admission_policy_binding = NULL; + if (include_optional) { + v1alpha1_validating_admission_policy_binding = v1alpha1_validating_admission_policy_binding_create( + "0", + "0", + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1alpha1_validating_admission_policy_binding_spec(0) + ); + } else { + v1alpha1_validating_admission_policy_binding = v1alpha1_validating_admission_policy_binding_create( + "0", + "0", + NULL, + NULL + ); + } + + return v1alpha1_validating_admission_policy_binding; +} + + +#ifdef v1alpha1_validating_admission_policy_binding_MAIN + +void test_v1alpha1_validating_admission_policy_binding(int include_optional) { + v1alpha1_validating_admission_policy_binding_t* v1alpha1_validating_admission_policy_binding_1 = instantiate_v1alpha1_validating_admission_policy_binding(include_optional); + + cJSON* jsonv1alpha1_validating_admission_policy_binding_1 = v1alpha1_validating_admission_policy_binding_convertToJSON(v1alpha1_validating_admission_policy_binding_1); + printf("v1alpha1_validating_admission_policy_binding :\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_binding_1)); + v1alpha1_validating_admission_policy_binding_t* v1alpha1_validating_admission_policy_binding_2 = v1alpha1_validating_admission_policy_binding_parseFromJSON(jsonv1alpha1_validating_admission_policy_binding_1); + cJSON* jsonv1alpha1_validating_admission_policy_binding_2 = v1alpha1_validating_admission_policy_binding_convertToJSON(v1alpha1_validating_admission_policy_binding_2); + printf("repeating v1alpha1_validating_admission_policy_binding:\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_binding_2)); +} + +int main() { + test_v1alpha1_validating_admission_policy_binding(1); + test_v1alpha1_validating_admission_policy_binding(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_validating_admission_policy_binding_MAIN +#endif // v1alpha1_validating_admission_policy_binding_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding_list.c b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding_list.c new file mode 100644 index 00000000..76dc0d7a --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding_list.c @@ -0,0 +1,66 @@ +#ifndef v1alpha1_validating_admission_policy_binding_list_TEST +#define v1alpha1_validating_admission_policy_binding_list_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_validating_admission_policy_binding_list_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_validating_admission_policy_binding_list.h" +v1alpha1_validating_admission_policy_binding_list_t* instantiate_v1alpha1_validating_admission_policy_binding_list(int include_optional); + +#include "test_v1_list_meta.c" + + +v1alpha1_validating_admission_policy_binding_list_t* instantiate_v1alpha1_validating_admission_policy_binding_list(int include_optional) { + v1alpha1_validating_admission_policy_binding_list_t* v1alpha1_validating_admission_policy_binding_list = NULL; + if (include_optional) { + v1alpha1_validating_admission_policy_binding_list = v1alpha1_validating_admission_policy_binding_list_create( + "0", + list_createList(), + "0", + // false, not to have infinite recursion + instantiate_v1_list_meta(0) + ); + } else { + v1alpha1_validating_admission_policy_binding_list = v1alpha1_validating_admission_policy_binding_list_create( + "0", + list_createList(), + "0", + NULL + ); + } + + return v1alpha1_validating_admission_policy_binding_list; +} + + +#ifdef v1alpha1_validating_admission_policy_binding_list_MAIN + +void test_v1alpha1_validating_admission_policy_binding_list(int include_optional) { + v1alpha1_validating_admission_policy_binding_list_t* v1alpha1_validating_admission_policy_binding_list_1 = instantiate_v1alpha1_validating_admission_policy_binding_list(include_optional); + + cJSON* jsonv1alpha1_validating_admission_policy_binding_list_1 = v1alpha1_validating_admission_policy_binding_list_convertToJSON(v1alpha1_validating_admission_policy_binding_list_1); + printf("v1alpha1_validating_admission_policy_binding_list :\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_binding_list_1)); + v1alpha1_validating_admission_policy_binding_list_t* v1alpha1_validating_admission_policy_binding_list_2 = v1alpha1_validating_admission_policy_binding_list_parseFromJSON(jsonv1alpha1_validating_admission_policy_binding_list_1); + cJSON* jsonv1alpha1_validating_admission_policy_binding_list_2 = v1alpha1_validating_admission_policy_binding_list_convertToJSON(v1alpha1_validating_admission_policy_binding_list_2); + printf("repeating v1alpha1_validating_admission_policy_binding_list:\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_binding_list_2)); +} + +int main() { + test_v1alpha1_validating_admission_policy_binding_list(1); + test_v1alpha1_validating_admission_policy_binding_list(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_validating_admission_policy_binding_list_MAIN +#endif // v1alpha1_validating_admission_policy_binding_list_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding_spec.c b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding_spec.c new file mode 100644 index 00000000..b071cdd2 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding_spec.c @@ -0,0 +1,66 @@ +#ifndef v1alpha1_validating_admission_policy_binding_spec_TEST +#define v1alpha1_validating_admission_policy_binding_spec_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_validating_admission_policy_binding_spec_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_validating_admission_policy_binding_spec.h" +v1alpha1_validating_admission_policy_binding_spec_t* instantiate_v1alpha1_validating_admission_policy_binding_spec(int include_optional); + +#include "test_v1alpha1_match_resources.c" +#include "test_v1alpha1_param_ref.c" + + +v1alpha1_validating_admission_policy_binding_spec_t* instantiate_v1alpha1_validating_admission_policy_binding_spec(int include_optional) { + v1alpha1_validating_admission_policy_binding_spec_t* v1alpha1_validating_admission_policy_binding_spec = NULL; + if (include_optional) { + v1alpha1_validating_admission_policy_binding_spec = v1alpha1_validating_admission_policy_binding_spec_create( + // false, not to have infinite recursion + instantiate_v1alpha1_match_resources(0), + // false, not to have infinite recursion + instantiate_v1alpha1_param_ref(0), + "0" + ); + } else { + v1alpha1_validating_admission_policy_binding_spec = v1alpha1_validating_admission_policy_binding_spec_create( + NULL, + NULL, + "0" + ); + } + + return v1alpha1_validating_admission_policy_binding_spec; +} + + +#ifdef v1alpha1_validating_admission_policy_binding_spec_MAIN + +void test_v1alpha1_validating_admission_policy_binding_spec(int include_optional) { + v1alpha1_validating_admission_policy_binding_spec_t* v1alpha1_validating_admission_policy_binding_spec_1 = instantiate_v1alpha1_validating_admission_policy_binding_spec(include_optional); + + cJSON* jsonv1alpha1_validating_admission_policy_binding_spec_1 = v1alpha1_validating_admission_policy_binding_spec_convertToJSON(v1alpha1_validating_admission_policy_binding_spec_1); + printf("v1alpha1_validating_admission_policy_binding_spec :\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_binding_spec_1)); + v1alpha1_validating_admission_policy_binding_spec_t* v1alpha1_validating_admission_policy_binding_spec_2 = v1alpha1_validating_admission_policy_binding_spec_parseFromJSON(jsonv1alpha1_validating_admission_policy_binding_spec_1); + cJSON* jsonv1alpha1_validating_admission_policy_binding_spec_2 = v1alpha1_validating_admission_policy_binding_spec_convertToJSON(v1alpha1_validating_admission_policy_binding_spec_2); + printf("repeating v1alpha1_validating_admission_policy_binding_spec:\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_binding_spec_2)); +} + +int main() { + test_v1alpha1_validating_admission_policy_binding_spec(1); + test_v1alpha1_validating_admission_policy_binding_spec(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_validating_admission_policy_binding_spec_MAIN +#endif // v1alpha1_validating_admission_policy_binding_spec_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_list.c b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_list.c new file mode 100644 index 00000000..88403b2e --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_list.c @@ -0,0 +1,66 @@ +#ifndef v1alpha1_validating_admission_policy_list_TEST +#define v1alpha1_validating_admission_policy_list_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_validating_admission_policy_list_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_validating_admission_policy_list.h" +v1alpha1_validating_admission_policy_list_t* instantiate_v1alpha1_validating_admission_policy_list(int include_optional); + +#include "test_v1_list_meta.c" + + +v1alpha1_validating_admission_policy_list_t* instantiate_v1alpha1_validating_admission_policy_list(int include_optional) { + v1alpha1_validating_admission_policy_list_t* v1alpha1_validating_admission_policy_list = NULL; + if (include_optional) { + v1alpha1_validating_admission_policy_list = v1alpha1_validating_admission_policy_list_create( + "0", + list_createList(), + "0", + // false, not to have infinite recursion + instantiate_v1_list_meta(0) + ); + } else { + v1alpha1_validating_admission_policy_list = v1alpha1_validating_admission_policy_list_create( + "0", + list_createList(), + "0", + NULL + ); + } + + return v1alpha1_validating_admission_policy_list; +} + + +#ifdef v1alpha1_validating_admission_policy_list_MAIN + +void test_v1alpha1_validating_admission_policy_list(int include_optional) { + v1alpha1_validating_admission_policy_list_t* v1alpha1_validating_admission_policy_list_1 = instantiate_v1alpha1_validating_admission_policy_list(include_optional); + + cJSON* jsonv1alpha1_validating_admission_policy_list_1 = v1alpha1_validating_admission_policy_list_convertToJSON(v1alpha1_validating_admission_policy_list_1); + printf("v1alpha1_validating_admission_policy_list :\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_list_1)); + v1alpha1_validating_admission_policy_list_t* v1alpha1_validating_admission_policy_list_2 = v1alpha1_validating_admission_policy_list_parseFromJSON(jsonv1alpha1_validating_admission_policy_list_1); + cJSON* jsonv1alpha1_validating_admission_policy_list_2 = v1alpha1_validating_admission_policy_list_convertToJSON(v1alpha1_validating_admission_policy_list_2); + printf("repeating v1alpha1_validating_admission_policy_list:\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_list_2)); +} + +int main() { + test_v1alpha1_validating_admission_policy_list(1); + test_v1alpha1_validating_admission_policy_list(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_validating_admission_policy_list_MAIN +#endif // v1alpha1_validating_admission_policy_list_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_spec.c b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_spec.c new file mode 100644 index 00000000..b99a4cc6 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_spec.c @@ -0,0 +1,68 @@ +#ifndef v1alpha1_validating_admission_policy_spec_TEST +#define v1alpha1_validating_admission_policy_spec_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_validating_admission_policy_spec_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_validating_admission_policy_spec.h" +v1alpha1_validating_admission_policy_spec_t* instantiate_v1alpha1_validating_admission_policy_spec(int include_optional); + +#include "test_v1alpha1_match_resources.c" +#include "test_v1alpha1_param_kind.c" + + +v1alpha1_validating_admission_policy_spec_t* instantiate_v1alpha1_validating_admission_policy_spec(int include_optional) { + v1alpha1_validating_admission_policy_spec_t* v1alpha1_validating_admission_policy_spec = NULL; + if (include_optional) { + v1alpha1_validating_admission_policy_spec = v1alpha1_validating_admission_policy_spec_create( + "0", + // false, not to have infinite recursion + instantiate_v1alpha1_match_resources(0), + // false, not to have infinite recursion + instantiate_v1alpha1_param_kind(0), + list_createList() + ); + } else { + v1alpha1_validating_admission_policy_spec = v1alpha1_validating_admission_policy_spec_create( + "0", + NULL, + NULL, + list_createList() + ); + } + + return v1alpha1_validating_admission_policy_spec; +} + + +#ifdef v1alpha1_validating_admission_policy_spec_MAIN + +void test_v1alpha1_validating_admission_policy_spec(int include_optional) { + v1alpha1_validating_admission_policy_spec_t* v1alpha1_validating_admission_policy_spec_1 = instantiate_v1alpha1_validating_admission_policy_spec(include_optional); + + cJSON* jsonv1alpha1_validating_admission_policy_spec_1 = v1alpha1_validating_admission_policy_spec_convertToJSON(v1alpha1_validating_admission_policy_spec_1); + printf("v1alpha1_validating_admission_policy_spec :\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_spec_1)); + v1alpha1_validating_admission_policy_spec_t* v1alpha1_validating_admission_policy_spec_2 = v1alpha1_validating_admission_policy_spec_parseFromJSON(jsonv1alpha1_validating_admission_policy_spec_1); + cJSON* jsonv1alpha1_validating_admission_policy_spec_2 = v1alpha1_validating_admission_policy_spec_convertToJSON(v1alpha1_validating_admission_policy_spec_2); + printf("repeating v1alpha1_validating_admission_policy_spec:\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_spec_2)); +} + +int main() { + test_v1alpha1_validating_admission_policy_spec(1); + test_v1alpha1_validating_admission_policy_spec(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_validating_admission_policy_spec_MAIN +#endif // v1alpha1_validating_admission_policy_spec_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_validation.c b/kubernetes/unit-test/test_v1alpha1_validation.c new file mode 100644 index 00000000..f2031c64 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_validation.c @@ -0,0 +1,62 @@ +#ifndef v1alpha1_validation_TEST +#define v1alpha1_validation_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_validation_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_validation.h" +v1alpha1_validation_t* instantiate_v1alpha1_validation(int include_optional); + + + +v1alpha1_validation_t* instantiate_v1alpha1_validation(int include_optional) { + v1alpha1_validation_t* v1alpha1_validation = NULL; + if (include_optional) { + v1alpha1_validation = v1alpha1_validation_create( + "0", + "0", + "0" + ); + } else { + v1alpha1_validation = v1alpha1_validation_create( + "0", + "0", + "0" + ); + } + + return v1alpha1_validation; +} + + +#ifdef v1alpha1_validation_MAIN + +void test_v1alpha1_validation(int include_optional) { + v1alpha1_validation_t* v1alpha1_validation_1 = instantiate_v1alpha1_validation(include_optional); + + cJSON* jsonv1alpha1_validation_1 = v1alpha1_validation_convertToJSON(v1alpha1_validation_1); + printf("v1alpha1_validation :\n%s\n", cJSON_Print(jsonv1alpha1_validation_1)); + v1alpha1_validation_t* v1alpha1_validation_2 = v1alpha1_validation_parseFromJSON(jsonv1alpha1_validation_1); + cJSON* jsonv1alpha1_validation_2 = v1alpha1_validation_convertToJSON(v1alpha1_validation_2); + printf("repeating v1alpha1_validation:\n%s\n", cJSON_Print(jsonv1alpha1_validation_2)); +} + +int main() { + test_v1alpha1_validation(1); + test_v1alpha1_validation(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_validation_MAIN +#endif // v1alpha1_validation_TEST diff --git a/kubernetes/unit-test/test_v1beta1_flow_distinguisher_method.c b/kubernetes/unit-test/test_v1beta1_flow_distinguisher_method.c deleted file mode 100644 index 0ec45896..00000000 --- a/kubernetes/unit-test/test_v1beta1_flow_distinguisher_method.c +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef v1beta1_flow_distinguisher_method_TEST -#define v1beta1_flow_distinguisher_method_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_flow_distinguisher_method_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_flow_distinguisher_method.h" -v1beta1_flow_distinguisher_method_t* instantiate_v1beta1_flow_distinguisher_method(int include_optional); - - - -v1beta1_flow_distinguisher_method_t* instantiate_v1beta1_flow_distinguisher_method(int include_optional) { - v1beta1_flow_distinguisher_method_t* v1beta1_flow_distinguisher_method = NULL; - if (include_optional) { - v1beta1_flow_distinguisher_method = v1beta1_flow_distinguisher_method_create( - "0" - ); - } else { - v1beta1_flow_distinguisher_method = v1beta1_flow_distinguisher_method_create( - "0" - ); - } - - return v1beta1_flow_distinguisher_method; -} - - -#ifdef v1beta1_flow_distinguisher_method_MAIN - -void test_v1beta1_flow_distinguisher_method(int include_optional) { - v1beta1_flow_distinguisher_method_t* v1beta1_flow_distinguisher_method_1 = instantiate_v1beta1_flow_distinguisher_method(include_optional); - - cJSON* jsonv1beta1_flow_distinguisher_method_1 = v1beta1_flow_distinguisher_method_convertToJSON(v1beta1_flow_distinguisher_method_1); - printf("v1beta1_flow_distinguisher_method :\n%s\n", cJSON_Print(jsonv1beta1_flow_distinguisher_method_1)); - v1beta1_flow_distinguisher_method_t* v1beta1_flow_distinguisher_method_2 = v1beta1_flow_distinguisher_method_parseFromJSON(jsonv1beta1_flow_distinguisher_method_1); - cJSON* jsonv1beta1_flow_distinguisher_method_2 = v1beta1_flow_distinguisher_method_convertToJSON(v1beta1_flow_distinguisher_method_2); - printf("repeating v1beta1_flow_distinguisher_method:\n%s\n", cJSON_Print(jsonv1beta1_flow_distinguisher_method_2)); -} - -int main() { - test_v1beta1_flow_distinguisher_method(1); - test_v1beta1_flow_distinguisher_method(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_flow_distinguisher_method_MAIN -#endif // v1beta1_flow_distinguisher_method_TEST diff --git a/kubernetes/unit-test/test_v1beta1_flow_schema.c b/kubernetes/unit-test/test_v1beta1_flow_schema.c deleted file mode 100644 index e58b4ca0..00000000 --- a/kubernetes/unit-test/test_v1beta1_flow_schema.c +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef v1beta1_flow_schema_TEST -#define v1beta1_flow_schema_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_flow_schema_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_flow_schema.h" -v1beta1_flow_schema_t* instantiate_v1beta1_flow_schema(int include_optional); - -#include "test_v1_object_meta.c" -#include "test_v1beta1_flow_schema_spec.c" -#include "test_v1beta1_flow_schema_status.c" - - -v1beta1_flow_schema_t* instantiate_v1beta1_flow_schema(int include_optional) { - v1beta1_flow_schema_t* v1beta1_flow_schema = NULL; - if (include_optional) { - v1beta1_flow_schema = v1beta1_flow_schema_create( - "0", - "0", - // false, not to have infinite recursion - instantiate_v1_object_meta(0), - // false, not to have infinite recursion - instantiate_v1beta1_flow_schema_spec(0), - // false, not to have infinite recursion - instantiate_v1beta1_flow_schema_status(0) - ); - } else { - v1beta1_flow_schema = v1beta1_flow_schema_create( - "0", - "0", - NULL, - NULL, - NULL - ); - } - - return v1beta1_flow_schema; -} - - -#ifdef v1beta1_flow_schema_MAIN - -void test_v1beta1_flow_schema(int include_optional) { - v1beta1_flow_schema_t* v1beta1_flow_schema_1 = instantiate_v1beta1_flow_schema(include_optional); - - cJSON* jsonv1beta1_flow_schema_1 = v1beta1_flow_schema_convertToJSON(v1beta1_flow_schema_1); - printf("v1beta1_flow_schema :\n%s\n", cJSON_Print(jsonv1beta1_flow_schema_1)); - v1beta1_flow_schema_t* v1beta1_flow_schema_2 = v1beta1_flow_schema_parseFromJSON(jsonv1beta1_flow_schema_1); - cJSON* jsonv1beta1_flow_schema_2 = v1beta1_flow_schema_convertToJSON(v1beta1_flow_schema_2); - printf("repeating v1beta1_flow_schema:\n%s\n", cJSON_Print(jsonv1beta1_flow_schema_2)); -} - -int main() { - test_v1beta1_flow_schema(1); - test_v1beta1_flow_schema(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_flow_schema_MAIN -#endif // v1beta1_flow_schema_TEST diff --git a/kubernetes/unit-test/test_v1beta1_flow_schema_condition.c b/kubernetes/unit-test/test_v1beta1_flow_schema_condition.c deleted file mode 100644 index cd862de4..00000000 --- a/kubernetes/unit-test/test_v1beta1_flow_schema_condition.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v1beta1_flow_schema_condition_TEST -#define v1beta1_flow_schema_condition_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_flow_schema_condition_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_flow_schema_condition.h" -v1beta1_flow_schema_condition_t* instantiate_v1beta1_flow_schema_condition(int include_optional); - - - -v1beta1_flow_schema_condition_t* instantiate_v1beta1_flow_schema_condition(int include_optional) { - v1beta1_flow_schema_condition_t* v1beta1_flow_schema_condition = NULL; - if (include_optional) { - v1beta1_flow_schema_condition = v1beta1_flow_schema_condition_create( - "2013-10-20T19:20:30+01:00", - "0", - "0", - "0", - "0" - ); - } else { - v1beta1_flow_schema_condition = v1beta1_flow_schema_condition_create( - "2013-10-20T19:20:30+01:00", - "0", - "0", - "0", - "0" - ); - } - - return v1beta1_flow_schema_condition; -} - - -#ifdef v1beta1_flow_schema_condition_MAIN - -void test_v1beta1_flow_schema_condition(int include_optional) { - v1beta1_flow_schema_condition_t* v1beta1_flow_schema_condition_1 = instantiate_v1beta1_flow_schema_condition(include_optional); - - cJSON* jsonv1beta1_flow_schema_condition_1 = v1beta1_flow_schema_condition_convertToJSON(v1beta1_flow_schema_condition_1); - printf("v1beta1_flow_schema_condition :\n%s\n", cJSON_Print(jsonv1beta1_flow_schema_condition_1)); - v1beta1_flow_schema_condition_t* v1beta1_flow_schema_condition_2 = v1beta1_flow_schema_condition_parseFromJSON(jsonv1beta1_flow_schema_condition_1); - cJSON* jsonv1beta1_flow_schema_condition_2 = v1beta1_flow_schema_condition_convertToJSON(v1beta1_flow_schema_condition_2); - printf("repeating v1beta1_flow_schema_condition:\n%s\n", cJSON_Print(jsonv1beta1_flow_schema_condition_2)); -} - -int main() { - test_v1beta1_flow_schema_condition(1); - test_v1beta1_flow_schema_condition(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_flow_schema_condition_MAIN -#endif // v1beta1_flow_schema_condition_TEST diff --git a/kubernetes/unit-test/test_v1beta1_flow_schema_list.c b/kubernetes/unit-test/test_v1beta1_flow_schema_list.c deleted file mode 100644 index 2d1265d0..00000000 --- a/kubernetes/unit-test/test_v1beta1_flow_schema_list.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v1beta1_flow_schema_list_TEST -#define v1beta1_flow_schema_list_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_flow_schema_list_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_flow_schema_list.h" -v1beta1_flow_schema_list_t* instantiate_v1beta1_flow_schema_list(int include_optional); - -#include "test_v1_list_meta.c" - - -v1beta1_flow_schema_list_t* instantiate_v1beta1_flow_schema_list(int include_optional) { - v1beta1_flow_schema_list_t* v1beta1_flow_schema_list = NULL; - if (include_optional) { - v1beta1_flow_schema_list = v1beta1_flow_schema_list_create( - "0", - list_createList(), - "0", - // false, not to have infinite recursion - instantiate_v1_list_meta(0) - ); - } else { - v1beta1_flow_schema_list = v1beta1_flow_schema_list_create( - "0", - list_createList(), - "0", - NULL - ); - } - - return v1beta1_flow_schema_list; -} - - -#ifdef v1beta1_flow_schema_list_MAIN - -void test_v1beta1_flow_schema_list(int include_optional) { - v1beta1_flow_schema_list_t* v1beta1_flow_schema_list_1 = instantiate_v1beta1_flow_schema_list(include_optional); - - cJSON* jsonv1beta1_flow_schema_list_1 = v1beta1_flow_schema_list_convertToJSON(v1beta1_flow_schema_list_1); - printf("v1beta1_flow_schema_list :\n%s\n", cJSON_Print(jsonv1beta1_flow_schema_list_1)); - v1beta1_flow_schema_list_t* v1beta1_flow_schema_list_2 = v1beta1_flow_schema_list_parseFromJSON(jsonv1beta1_flow_schema_list_1); - cJSON* jsonv1beta1_flow_schema_list_2 = v1beta1_flow_schema_list_convertToJSON(v1beta1_flow_schema_list_2); - printf("repeating v1beta1_flow_schema_list:\n%s\n", cJSON_Print(jsonv1beta1_flow_schema_list_2)); -} - -int main() { - test_v1beta1_flow_schema_list(1); - test_v1beta1_flow_schema_list(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_flow_schema_list_MAIN -#endif // v1beta1_flow_schema_list_TEST diff --git a/kubernetes/unit-test/test_v1beta1_flow_schema_spec.c b/kubernetes/unit-test/test_v1beta1_flow_schema_spec.c deleted file mode 100644 index f61eee2b..00000000 --- a/kubernetes/unit-test/test_v1beta1_flow_schema_spec.c +++ /dev/null @@ -1,68 +0,0 @@ -#ifndef v1beta1_flow_schema_spec_TEST -#define v1beta1_flow_schema_spec_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_flow_schema_spec_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_flow_schema_spec.h" -v1beta1_flow_schema_spec_t* instantiate_v1beta1_flow_schema_spec(int include_optional); - -#include "test_v1beta1_flow_distinguisher_method.c" -#include "test_v1beta1_priority_level_configuration_reference.c" - - -v1beta1_flow_schema_spec_t* instantiate_v1beta1_flow_schema_spec(int include_optional) { - v1beta1_flow_schema_spec_t* v1beta1_flow_schema_spec = NULL; - if (include_optional) { - v1beta1_flow_schema_spec = v1beta1_flow_schema_spec_create( - // false, not to have infinite recursion - instantiate_v1beta1_flow_distinguisher_method(0), - 56, - // false, not to have infinite recursion - instantiate_v1beta1_priority_level_configuration_reference(0), - list_createList() - ); - } else { - v1beta1_flow_schema_spec = v1beta1_flow_schema_spec_create( - NULL, - 56, - NULL, - list_createList() - ); - } - - return v1beta1_flow_schema_spec; -} - - -#ifdef v1beta1_flow_schema_spec_MAIN - -void test_v1beta1_flow_schema_spec(int include_optional) { - v1beta1_flow_schema_spec_t* v1beta1_flow_schema_spec_1 = instantiate_v1beta1_flow_schema_spec(include_optional); - - cJSON* jsonv1beta1_flow_schema_spec_1 = v1beta1_flow_schema_spec_convertToJSON(v1beta1_flow_schema_spec_1); - printf("v1beta1_flow_schema_spec :\n%s\n", cJSON_Print(jsonv1beta1_flow_schema_spec_1)); - v1beta1_flow_schema_spec_t* v1beta1_flow_schema_spec_2 = v1beta1_flow_schema_spec_parseFromJSON(jsonv1beta1_flow_schema_spec_1); - cJSON* jsonv1beta1_flow_schema_spec_2 = v1beta1_flow_schema_spec_convertToJSON(v1beta1_flow_schema_spec_2); - printf("repeating v1beta1_flow_schema_spec:\n%s\n", cJSON_Print(jsonv1beta1_flow_schema_spec_2)); -} - -int main() { - test_v1beta1_flow_schema_spec(1); - test_v1beta1_flow_schema_spec(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_flow_schema_spec_MAIN -#endif // v1beta1_flow_schema_spec_TEST diff --git a/kubernetes/unit-test/test_v1beta1_flow_schema_status.c b/kubernetes/unit-test/test_v1beta1_flow_schema_status.c deleted file mode 100644 index 4d2cd8b0..00000000 --- a/kubernetes/unit-test/test_v1beta1_flow_schema_status.c +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef v1beta1_flow_schema_status_TEST -#define v1beta1_flow_schema_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_flow_schema_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_flow_schema_status.h" -v1beta1_flow_schema_status_t* instantiate_v1beta1_flow_schema_status(int include_optional); - - - -v1beta1_flow_schema_status_t* instantiate_v1beta1_flow_schema_status(int include_optional) { - v1beta1_flow_schema_status_t* v1beta1_flow_schema_status = NULL; - if (include_optional) { - v1beta1_flow_schema_status = v1beta1_flow_schema_status_create( - list_createList() - ); - } else { - v1beta1_flow_schema_status = v1beta1_flow_schema_status_create( - list_createList() - ); - } - - return v1beta1_flow_schema_status; -} - - -#ifdef v1beta1_flow_schema_status_MAIN - -void test_v1beta1_flow_schema_status(int include_optional) { - v1beta1_flow_schema_status_t* v1beta1_flow_schema_status_1 = instantiate_v1beta1_flow_schema_status(include_optional); - - cJSON* jsonv1beta1_flow_schema_status_1 = v1beta1_flow_schema_status_convertToJSON(v1beta1_flow_schema_status_1); - printf("v1beta1_flow_schema_status :\n%s\n", cJSON_Print(jsonv1beta1_flow_schema_status_1)); - v1beta1_flow_schema_status_t* v1beta1_flow_schema_status_2 = v1beta1_flow_schema_status_parseFromJSON(jsonv1beta1_flow_schema_status_1); - cJSON* jsonv1beta1_flow_schema_status_2 = v1beta1_flow_schema_status_convertToJSON(v1beta1_flow_schema_status_2); - printf("repeating v1beta1_flow_schema_status:\n%s\n", cJSON_Print(jsonv1beta1_flow_schema_status_2)); -} - -int main() { - test_v1beta1_flow_schema_status(1); - test_v1beta1_flow_schema_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_flow_schema_status_MAIN -#endif // v1beta1_flow_schema_status_TEST diff --git a/kubernetes/unit-test/test_v1beta1_group_subject.c b/kubernetes/unit-test/test_v1beta1_group_subject.c deleted file mode 100644 index e60d375c..00000000 --- a/kubernetes/unit-test/test_v1beta1_group_subject.c +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef v1beta1_group_subject_TEST -#define v1beta1_group_subject_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_group_subject_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_group_subject.h" -v1beta1_group_subject_t* instantiate_v1beta1_group_subject(int include_optional); - - - -v1beta1_group_subject_t* instantiate_v1beta1_group_subject(int include_optional) { - v1beta1_group_subject_t* v1beta1_group_subject = NULL; - if (include_optional) { - v1beta1_group_subject = v1beta1_group_subject_create( - "0" - ); - } else { - v1beta1_group_subject = v1beta1_group_subject_create( - "0" - ); - } - - return v1beta1_group_subject; -} - - -#ifdef v1beta1_group_subject_MAIN - -void test_v1beta1_group_subject(int include_optional) { - v1beta1_group_subject_t* v1beta1_group_subject_1 = instantiate_v1beta1_group_subject(include_optional); - - cJSON* jsonv1beta1_group_subject_1 = v1beta1_group_subject_convertToJSON(v1beta1_group_subject_1); - printf("v1beta1_group_subject :\n%s\n", cJSON_Print(jsonv1beta1_group_subject_1)); - v1beta1_group_subject_t* v1beta1_group_subject_2 = v1beta1_group_subject_parseFromJSON(jsonv1beta1_group_subject_1); - cJSON* jsonv1beta1_group_subject_2 = v1beta1_group_subject_convertToJSON(v1beta1_group_subject_2); - printf("repeating v1beta1_group_subject:\n%s\n", cJSON_Print(jsonv1beta1_group_subject_2)); -} - -int main() { - test_v1beta1_group_subject(1); - test_v1beta1_group_subject(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_group_subject_MAIN -#endif // v1beta1_group_subject_TEST diff --git a/kubernetes/unit-test/test_v1beta1_limit_response.c b/kubernetes/unit-test/test_v1beta1_limit_response.c deleted file mode 100644 index 2318aa93..00000000 --- a/kubernetes/unit-test/test_v1beta1_limit_response.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v1beta1_limit_response_TEST -#define v1beta1_limit_response_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_limit_response_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_limit_response.h" -v1beta1_limit_response_t* instantiate_v1beta1_limit_response(int include_optional); - -#include "test_v1beta1_queuing_configuration.c" - - -v1beta1_limit_response_t* instantiate_v1beta1_limit_response(int include_optional) { - v1beta1_limit_response_t* v1beta1_limit_response = NULL; - if (include_optional) { - v1beta1_limit_response = v1beta1_limit_response_create( - // false, not to have infinite recursion - instantiate_v1beta1_queuing_configuration(0), - "0" - ); - } else { - v1beta1_limit_response = v1beta1_limit_response_create( - NULL, - "0" - ); - } - - return v1beta1_limit_response; -} - - -#ifdef v1beta1_limit_response_MAIN - -void test_v1beta1_limit_response(int include_optional) { - v1beta1_limit_response_t* v1beta1_limit_response_1 = instantiate_v1beta1_limit_response(include_optional); - - cJSON* jsonv1beta1_limit_response_1 = v1beta1_limit_response_convertToJSON(v1beta1_limit_response_1); - printf("v1beta1_limit_response :\n%s\n", cJSON_Print(jsonv1beta1_limit_response_1)); - v1beta1_limit_response_t* v1beta1_limit_response_2 = v1beta1_limit_response_parseFromJSON(jsonv1beta1_limit_response_1); - cJSON* jsonv1beta1_limit_response_2 = v1beta1_limit_response_convertToJSON(v1beta1_limit_response_2); - printf("repeating v1beta1_limit_response:\n%s\n", cJSON_Print(jsonv1beta1_limit_response_2)); -} - -int main() { - test_v1beta1_limit_response(1); - test_v1beta1_limit_response(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_limit_response_MAIN -#endif // v1beta1_limit_response_TEST diff --git a/kubernetes/unit-test/test_v1beta1_limited_priority_level_configuration.c b/kubernetes/unit-test/test_v1beta1_limited_priority_level_configuration.c deleted file mode 100644 index 496974ef..00000000 --- a/kubernetes/unit-test/test_v1beta1_limited_priority_level_configuration.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v1beta1_limited_priority_level_configuration_TEST -#define v1beta1_limited_priority_level_configuration_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_limited_priority_level_configuration_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_limited_priority_level_configuration.h" -v1beta1_limited_priority_level_configuration_t* instantiate_v1beta1_limited_priority_level_configuration(int include_optional); - -#include "test_v1beta1_limit_response.c" - - -v1beta1_limited_priority_level_configuration_t* instantiate_v1beta1_limited_priority_level_configuration(int include_optional) { - v1beta1_limited_priority_level_configuration_t* v1beta1_limited_priority_level_configuration = NULL; - if (include_optional) { - v1beta1_limited_priority_level_configuration = v1beta1_limited_priority_level_configuration_create( - 56, - // false, not to have infinite recursion - instantiate_v1beta1_limit_response(0) - ); - } else { - v1beta1_limited_priority_level_configuration = v1beta1_limited_priority_level_configuration_create( - 56, - NULL - ); - } - - return v1beta1_limited_priority_level_configuration; -} - - -#ifdef v1beta1_limited_priority_level_configuration_MAIN - -void test_v1beta1_limited_priority_level_configuration(int include_optional) { - v1beta1_limited_priority_level_configuration_t* v1beta1_limited_priority_level_configuration_1 = instantiate_v1beta1_limited_priority_level_configuration(include_optional); - - cJSON* jsonv1beta1_limited_priority_level_configuration_1 = v1beta1_limited_priority_level_configuration_convertToJSON(v1beta1_limited_priority_level_configuration_1); - printf("v1beta1_limited_priority_level_configuration :\n%s\n", cJSON_Print(jsonv1beta1_limited_priority_level_configuration_1)); - v1beta1_limited_priority_level_configuration_t* v1beta1_limited_priority_level_configuration_2 = v1beta1_limited_priority_level_configuration_parseFromJSON(jsonv1beta1_limited_priority_level_configuration_1); - cJSON* jsonv1beta1_limited_priority_level_configuration_2 = v1beta1_limited_priority_level_configuration_convertToJSON(v1beta1_limited_priority_level_configuration_2); - printf("repeating v1beta1_limited_priority_level_configuration:\n%s\n", cJSON_Print(jsonv1beta1_limited_priority_level_configuration_2)); -} - -int main() { - test_v1beta1_limited_priority_level_configuration(1); - test_v1beta1_limited_priority_level_configuration(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_limited_priority_level_configuration_MAIN -#endif // v1beta1_limited_priority_level_configuration_TEST diff --git a/kubernetes/unit-test/test_v1beta1_non_resource_policy_rule.c b/kubernetes/unit-test/test_v1beta1_non_resource_policy_rule.c deleted file mode 100644 index 7313af99..00000000 --- a/kubernetes/unit-test/test_v1beta1_non_resource_policy_rule.c +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef v1beta1_non_resource_policy_rule_TEST -#define v1beta1_non_resource_policy_rule_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_non_resource_policy_rule_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_non_resource_policy_rule.h" -v1beta1_non_resource_policy_rule_t* instantiate_v1beta1_non_resource_policy_rule(int include_optional); - - - -v1beta1_non_resource_policy_rule_t* instantiate_v1beta1_non_resource_policy_rule(int include_optional) { - v1beta1_non_resource_policy_rule_t* v1beta1_non_resource_policy_rule = NULL; - if (include_optional) { - v1beta1_non_resource_policy_rule = v1beta1_non_resource_policy_rule_create( - list_createList(), - list_createList() - ); - } else { - v1beta1_non_resource_policy_rule = v1beta1_non_resource_policy_rule_create( - list_createList(), - list_createList() - ); - } - - return v1beta1_non_resource_policy_rule; -} - - -#ifdef v1beta1_non_resource_policy_rule_MAIN - -void test_v1beta1_non_resource_policy_rule(int include_optional) { - v1beta1_non_resource_policy_rule_t* v1beta1_non_resource_policy_rule_1 = instantiate_v1beta1_non_resource_policy_rule(include_optional); - - cJSON* jsonv1beta1_non_resource_policy_rule_1 = v1beta1_non_resource_policy_rule_convertToJSON(v1beta1_non_resource_policy_rule_1); - printf("v1beta1_non_resource_policy_rule :\n%s\n", cJSON_Print(jsonv1beta1_non_resource_policy_rule_1)); - v1beta1_non_resource_policy_rule_t* v1beta1_non_resource_policy_rule_2 = v1beta1_non_resource_policy_rule_parseFromJSON(jsonv1beta1_non_resource_policy_rule_1); - cJSON* jsonv1beta1_non_resource_policy_rule_2 = v1beta1_non_resource_policy_rule_convertToJSON(v1beta1_non_resource_policy_rule_2); - printf("repeating v1beta1_non_resource_policy_rule:\n%s\n", cJSON_Print(jsonv1beta1_non_resource_policy_rule_2)); -} - -int main() { - test_v1beta1_non_resource_policy_rule(1); - test_v1beta1_non_resource_policy_rule(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_non_resource_policy_rule_MAIN -#endif // v1beta1_non_resource_policy_rule_TEST diff --git a/kubernetes/unit-test/test_v1beta1_policy_rules_with_subjects.c b/kubernetes/unit-test/test_v1beta1_policy_rules_with_subjects.c deleted file mode 100644 index 4d88f687..00000000 --- a/kubernetes/unit-test/test_v1beta1_policy_rules_with_subjects.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v1beta1_policy_rules_with_subjects_TEST -#define v1beta1_policy_rules_with_subjects_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_policy_rules_with_subjects_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_policy_rules_with_subjects.h" -v1beta1_policy_rules_with_subjects_t* instantiate_v1beta1_policy_rules_with_subjects(int include_optional); - - - -v1beta1_policy_rules_with_subjects_t* instantiate_v1beta1_policy_rules_with_subjects(int include_optional) { - v1beta1_policy_rules_with_subjects_t* v1beta1_policy_rules_with_subjects = NULL; - if (include_optional) { - v1beta1_policy_rules_with_subjects = v1beta1_policy_rules_with_subjects_create( - list_createList(), - list_createList(), - list_createList() - ); - } else { - v1beta1_policy_rules_with_subjects = v1beta1_policy_rules_with_subjects_create( - list_createList(), - list_createList(), - list_createList() - ); - } - - return v1beta1_policy_rules_with_subjects; -} - - -#ifdef v1beta1_policy_rules_with_subjects_MAIN - -void test_v1beta1_policy_rules_with_subjects(int include_optional) { - v1beta1_policy_rules_with_subjects_t* v1beta1_policy_rules_with_subjects_1 = instantiate_v1beta1_policy_rules_with_subjects(include_optional); - - cJSON* jsonv1beta1_policy_rules_with_subjects_1 = v1beta1_policy_rules_with_subjects_convertToJSON(v1beta1_policy_rules_with_subjects_1); - printf("v1beta1_policy_rules_with_subjects :\n%s\n", cJSON_Print(jsonv1beta1_policy_rules_with_subjects_1)); - v1beta1_policy_rules_with_subjects_t* v1beta1_policy_rules_with_subjects_2 = v1beta1_policy_rules_with_subjects_parseFromJSON(jsonv1beta1_policy_rules_with_subjects_1); - cJSON* jsonv1beta1_policy_rules_with_subjects_2 = v1beta1_policy_rules_with_subjects_convertToJSON(v1beta1_policy_rules_with_subjects_2); - printf("repeating v1beta1_policy_rules_with_subjects:\n%s\n", cJSON_Print(jsonv1beta1_policy_rules_with_subjects_2)); -} - -int main() { - test_v1beta1_policy_rules_with_subjects(1); - test_v1beta1_policy_rules_with_subjects(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_policy_rules_with_subjects_MAIN -#endif // v1beta1_policy_rules_with_subjects_TEST diff --git a/kubernetes/unit-test/test_v1beta1_priority_level_configuration.c b/kubernetes/unit-test/test_v1beta1_priority_level_configuration.c deleted file mode 100644 index 0f6cfc2a..00000000 --- a/kubernetes/unit-test/test_v1beta1_priority_level_configuration.c +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef v1beta1_priority_level_configuration_TEST -#define v1beta1_priority_level_configuration_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_priority_level_configuration_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_priority_level_configuration.h" -v1beta1_priority_level_configuration_t* instantiate_v1beta1_priority_level_configuration(int include_optional); - -#include "test_v1_object_meta.c" -#include "test_v1beta1_priority_level_configuration_spec.c" -#include "test_v1beta1_priority_level_configuration_status.c" - - -v1beta1_priority_level_configuration_t* instantiate_v1beta1_priority_level_configuration(int include_optional) { - v1beta1_priority_level_configuration_t* v1beta1_priority_level_configuration = NULL; - if (include_optional) { - v1beta1_priority_level_configuration = v1beta1_priority_level_configuration_create( - "0", - "0", - // false, not to have infinite recursion - instantiate_v1_object_meta(0), - // false, not to have infinite recursion - instantiate_v1beta1_priority_level_configuration_spec(0), - // false, not to have infinite recursion - instantiate_v1beta1_priority_level_configuration_status(0) - ); - } else { - v1beta1_priority_level_configuration = v1beta1_priority_level_configuration_create( - "0", - "0", - NULL, - NULL, - NULL - ); - } - - return v1beta1_priority_level_configuration; -} - - -#ifdef v1beta1_priority_level_configuration_MAIN - -void test_v1beta1_priority_level_configuration(int include_optional) { - v1beta1_priority_level_configuration_t* v1beta1_priority_level_configuration_1 = instantiate_v1beta1_priority_level_configuration(include_optional); - - cJSON* jsonv1beta1_priority_level_configuration_1 = v1beta1_priority_level_configuration_convertToJSON(v1beta1_priority_level_configuration_1); - printf("v1beta1_priority_level_configuration :\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_1)); - v1beta1_priority_level_configuration_t* v1beta1_priority_level_configuration_2 = v1beta1_priority_level_configuration_parseFromJSON(jsonv1beta1_priority_level_configuration_1); - cJSON* jsonv1beta1_priority_level_configuration_2 = v1beta1_priority_level_configuration_convertToJSON(v1beta1_priority_level_configuration_2); - printf("repeating v1beta1_priority_level_configuration:\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_2)); -} - -int main() { - test_v1beta1_priority_level_configuration(1); - test_v1beta1_priority_level_configuration(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_priority_level_configuration_MAIN -#endif // v1beta1_priority_level_configuration_TEST diff --git a/kubernetes/unit-test/test_v1beta1_priority_level_configuration_condition.c b/kubernetes/unit-test/test_v1beta1_priority_level_configuration_condition.c deleted file mode 100644 index 8bd8b26c..00000000 --- a/kubernetes/unit-test/test_v1beta1_priority_level_configuration_condition.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v1beta1_priority_level_configuration_condition_TEST -#define v1beta1_priority_level_configuration_condition_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_priority_level_configuration_condition_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_priority_level_configuration_condition.h" -v1beta1_priority_level_configuration_condition_t* instantiate_v1beta1_priority_level_configuration_condition(int include_optional); - - - -v1beta1_priority_level_configuration_condition_t* instantiate_v1beta1_priority_level_configuration_condition(int include_optional) { - v1beta1_priority_level_configuration_condition_t* v1beta1_priority_level_configuration_condition = NULL; - if (include_optional) { - v1beta1_priority_level_configuration_condition = v1beta1_priority_level_configuration_condition_create( - "2013-10-20T19:20:30+01:00", - "0", - "0", - "0", - "0" - ); - } else { - v1beta1_priority_level_configuration_condition = v1beta1_priority_level_configuration_condition_create( - "2013-10-20T19:20:30+01:00", - "0", - "0", - "0", - "0" - ); - } - - return v1beta1_priority_level_configuration_condition; -} - - -#ifdef v1beta1_priority_level_configuration_condition_MAIN - -void test_v1beta1_priority_level_configuration_condition(int include_optional) { - v1beta1_priority_level_configuration_condition_t* v1beta1_priority_level_configuration_condition_1 = instantiate_v1beta1_priority_level_configuration_condition(include_optional); - - cJSON* jsonv1beta1_priority_level_configuration_condition_1 = v1beta1_priority_level_configuration_condition_convertToJSON(v1beta1_priority_level_configuration_condition_1); - printf("v1beta1_priority_level_configuration_condition :\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_condition_1)); - v1beta1_priority_level_configuration_condition_t* v1beta1_priority_level_configuration_condition_2 = v1beta1_priority_level_configuration_condition_parseFromJSON(jsonv1beta1_priority_level_configuration_condition_1); - cJSON* jsonv1beta1_priority_level_configuration_condition_2 = v1beta1_priority_level_configuration_condition_convertToJSON(v1beta1_priority_level_configuration_condition_2); - printf("repeating v1beta1_priority_level_configuration_condition:\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_condition_2)); -} - -int main() { - test_v1beta1_priority_level_configuration_condition(1); - test_v1beta1_priority_level_configuration_condition(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_priority_level_configuration_condition_MAIN -#endif // v1beta1_priority_level_configuration_condition_TEST diff --git a/kubernetes/unit-test/test_v1beta1_priority_level_configuration_list.c b/kubernetes/unit-test/test_v1beta1_priority_level_configuration_list.c deleted file mode 100644 index 0ec3cb52..00000000 --- a/kubernetes/unit-test/test_v1beta1_priority_level_configuration_list.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v1beta1_priority_level_configuration_list_TEST -#define v1beta1_priority_level_configuration_list_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_priority_level_configuration_list_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_priority_level_configuration_list.h" -v1beta1_priority_level_configuration_list_t* instantiate_v1beta1_priority_level_configuration_list(int include_optional); - -#include "test_v1_list_meta.c" - - -v1beta1_priority_level_configuration_list_t* instantiate_v1beta1_priority_level_configuration_list(int include_optional) { - v1beta1_priority_level_configuration_list_t* v1beta1_priority_level_configuration_list = NULL; - if (include_optional) { - v1beta1_priority_level_configuration_list = v1beta1_priority_level_configuration_list_create( - "0", - list_createList(), - "0", - // false, not to have infinite recursion - instantiate_v1_list_meta(0) - ); - } else { - v1beta1_priority_level_configuration_list = v1beta1_priority_level_configuration_list_create( - "0", - list_createList(), - "0", - NULL - ); - } - - return v1beta1_priority_level_configuration_list; -} - - -#ifdef v1beta1_priority_level_configuration_list_MAIN - -void test_v1beta1_priority_level_configuration_list(int include_optional) { - v1beta1_priority_level_configuration_list_t* v1beta1_priority_level_configuration_list_1 = instantiate_v1beta1_priority_level_configuration_list(include_optional); - - cJSON* jsonv1beta1_priority_level_configuration_list_1 = v1beta1_priority_level_configuration_list_convertToJSON(v1beta1_priority_level_configuration_list_1); - printf("v1beta1_priority_level_configuration_list :\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_list_1)); - v1beta1_priority_level_configuration_list_t* v1beta1_priority_level_configuration_list_2 = v1beta1_priority_level_configuration_list_parseFromJSON(jsonv1beta1_priority_level_configuration_list_1); - cJSON* jsonv1beta1_priority_level_configuration_list_2 = v1beta1_priority_level_configuration_list_convertToJSON(v1beta1_priority_level_configuration_list_2); - printf("repeating v1beta1_priority_level_configuration_list:\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_list_2)); -} - -int main() { - test_v1beta1_priority_level_configuration_list(1); - test_v1beta1_priority_level_configuration_list(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_priority_level_configuration_list_MAIN -#endif // v1beta1_priority_level_configuration_list_TEST diff --git a/kubernetes/unit-test/test_v1beta1_priority_level_configuration_reference.c b/kubernetes/unit-test/test_v1beta1_priority_level_configuration_reference.c deleted file mode 100644 index cd6d1d40..00000000 --- a/kubernetes/unit-test/test_v1beta1_priority_level_configuration_reference.c +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef v1beta1_priority_level_configuration_reference_TEST -#define v1beta1_priority_level_configuration_reference_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_priority_level_configuration_reference_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_priority_level_configuration_reference.h" -v1beta1_priority_level_configuration_reference_t* instantiate_v1beta1_priority_level_configuration_reference(int include_optional); - - - -v1beta1_priority_level_configuration_reference_t* instantiate_v1beta1_priority_level_configuration_reference(int include_optional) { - v1beta1_priority_level_configuration_reference_t* v1beta1_priority_level_configuration_reference = NULL; - if (include_optional) { - v1beta1_priority_level_configuration_reference = v1beta1_priority_level_configuration_reference_create( - "0" - ); - } else { - v1beta1_priority_level_configuration_reference = v1beta1_priority_level_configuration_reference_create( - "0" - ); - } - - return v1beta1_priority_level_configuration_reference; -} - - -#ifdef v1beta1_priority_level_configuration_reference_MAIN - -void test_v1beta1_priority_level_configuration_reference(int include_optional) { - v1beta1_priority_level_configuration_reference_t* v1beta1_priority_level_configuration_reference_1 = instantiate_v1beta1_priority_level_configuration_reference(include_optional); - - cJSON* jsonv1beta1_priority_level_configuration_reference_1 = v1beta1_priority_level_configuration_reference_convertToJSON(v1beta1_priority_level_configuration_reference_1); - printf("v1beta1_priority_level_configuration_reference :\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_reference_1)); - v1beta1_priority_level_configuration_reference_t* v1beta1_priority_level_configuration_reference_2 = v1beta1_priority_level_configuration_reference_parseFromJSON(jsonv1beta1_priority_level_configuration_reference_1); - cJSON* jsonv1beta1_priority_level_configuration_reference_2 = v1beta1_priority_level_configuration_reference_convertToJSON(v1beta1_priority_level_configuration_reference_2); - printf("repeating v1beta1_priority_level_configuration_reference:\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_reference_2)); -} - -int main() { - test_v1beta1_priority_level_configuration_reference(1); - test_v1beta1_priority_level_configuration_reference(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_priority_level_configuration_reference_MAIN -#endif // v1beta1_priority_level_configuration_reference_TEST diff --git a/kubernetes/unit-test/test_v1beta1_priority_level_configuration_spec.c b/kubernetes/unit-test/test_v1beta1_priority_level_configuration_spec.c deleted file mode 100644 index 98bbcad3..00000000 --- a/kubernetes/unit-test/test_v1beta1_priority_level_configuration_spec.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v1beta1_priority_level_configuration_spec_TEST -#define v1beta1_priority_level_configuration_spec_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_priority_level_configuration_spec_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_priority_level_configuration_spec.h" -v1beta1_priority_level_configuration_spec_t* instantiate_v1beta1_priority_level_configuration_spec(int include_optional); - -#include "test_v1beta1_limited_priority_level_configuration.c" - - -v1beta1_priority_level_configuration_spec_t* instantiate_v1beta1_priority_level_configuration_spec(int include_optional) { - v1beta1_priority_level_configuration_spec_t* v1beta1_priority_level_configuration_spec = NULL; - if (include_optional) { - v1beta1_priority_level_configuration_spec = v1beta1_priority_level_configuration_spec_create( - // false, not to have infinite recursion - instantiate_v1beta1_limited_priority_level_configuration(0), - "0" - ); - } else { - v1beta1_priority_level_configuration_spec = v1beta1_priority_level_configuration_spec_create( - NULL, - "0" - ); - } - - return v1beta1_priority_level_configuration_spec; -} - - -#ifdef v1beta1_priority_level_configuration_spec_MAIN - -void test_v1beta1_priority_level_configuration_spec(int include_optional) { - v1beta1_priority_level_configuration_spec_t* v1beta1_priority_level_configuration_spec_1 = instantiate_v1beta1_priority_level_configuration_spec(include_optional); - - cJSON* jsonv1beta1_priority_level_configuration_spec_1 = v1beta1_priority_level_configuration_spec_convertToJSON(v1beta1_priority_level_configuration_spec_1); - printf("v1beta1_priority_level_configuration_spec :\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_spec_1)); - v1beta1_priority_level_configuration_spec_t* v1beta1_priority_level_configuration_spec_2 = v1beta1_priority_level_configuration_spec_parseFromJSON(jsonv1beta1_priority_level_configuration_spec_1); - cJSON* jsonv1beta1_priority_level_configuration_spec_2 = v1beta1_priority_level_configuration_spec_convertToJSON(v1beta1_priority_level_configuration_spec_2); - printf("repeating v1beta1_priority_level_configuration_spec:\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_spec_2)); -} - -int main() { - test_v1beta1_priority_level_configuration_spec(1); - test_v1beta1_priority_level_configuration_spec(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_priority_level_configuration_spec_MAIN -#endif // v1beta1_priority_level_configuration_spec_TEST diff --git a/kubernetes/unit-test/test_v1beta1_priority_level_configuration_status.c b/kubernetes/unit-test/test_v1beta1_priority_level_configuration_status.c deleted file mode 100644 index b2de97e5..00000000 --- a/kubernetes/unit-test/test_v1beta1_priority_level_configuration_status.c +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef v1beta1_priority_level_configuration_status_TEST -#define v1beta1_priority_level_configuration_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_priority_level_configuration_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_priority_level_configuration_status.h" -v1beta1_priority_level_configuration_status_t* instantiate_v1beta1_priority_level_configuration_status(int include_optional); - - - -v1beta1_priority_level_configuration_status_t* instantiate_v1beta1_priority_level_configuration_status(int include_optional) { - v1beta1_priority_level_configuration_status_t* v1beta1_priority_level_configuration_status = NULL; - if (include_optional) { - v1beta1_priority_level_configuration_status = v1beta1_priority_level_configuration_status_create( - list_createList() - ); - } else { - v1beta1_priority_level_configuration_status = v1beta1_priority_level_configuration_status_create( - list_createList() - ); - } - - return v1beta1_priority_level_configuration_status; -} - - -#ifdef v1beta1_priority_level_configuration_status_MAIN - -void test_v1beta1_priority_level_configuration_status(int include_optional) { - v1beta1_priority_level_configuration_status_t* v1beta1_priority_level_configuration_status_1 = instantiate_v1beta1_priority_level_configuration_status(include_optional); - - cJSON* jsonv1beta1_priority_level_configuration_status_1 = v1beta1_priority_level_configuration_status_convertToJSON(v1beta1_priority_level_configuration_status_1); - printf("v1beta1_priority_level_configuration_status :\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_status_1)); - v1beta1_priority_level_configuration_status_t* v1beta1_priority_level_configuration_status_2 = v1beta1_priority_level_configuration_status_parseFromJSON(jsonv1beta1_priority_level_configuration_status_1); - cJSON* jsonv1beta1_priority_level_configuration_status_2 = v1beta1_priority_level_configuration_status_convertToJSON(v1beta1_priority_level_configuration_status_2); - printf("repeating v1beta1_priority_level_configuration_status:\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_status_2)); -} - -int main() { - test_v1beta1_priority_level_configuration_status(1); - test_v1beta1_priority_level_configuration_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_priority_level_configuration_status_MAIN -#endif // v1beta1_priority_level_configuration_status_TEST diff --git a/kubernetes/unit-test/test_v1beta1_queuing_configuration.c b/kubernetes/unit-test/test_v1beta1_queuing_configuration.c deleted file mode 100644 index 85401b82..00000000 --- a/kubernetes/unit-test/test_v1beta1_queuing_configuration.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v1beta1_queuing_configuration_TEST -#define v1beta1_queuing_configuration_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_queuing_configuration_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_queuing_configuration.h" -v1beta1_queuing_configuration_t* instantiate_v1beta1_queuing_configuration(int include_optional); - - - -v1beta1_queuing_configuration_t* instantiate_v1beta1_queuing_configuration(int include_optional) { - v1beta1_queuing_configuration_t* v1beta1_queuing_configuration = NULL; - if (include_optional) { - v1beta1_queuing_configuration = v1beta1_queuing_configuration_create( - 56, - 56, - 56 - ); - } else { - v1beta1_queuing_configuration = v1beta1_queuing_configuration_create( - 56, - 56, - 56 - ); - } - - return v1beta1_queuing_configuration; -} - - -#ifdef v1beta1_queuing_configuration_MAIN - -void test_v1beta1_queuing_configuration(int include_optional) { - v1beta1_queuing_configuration_t* v1beta1_queuing_configuration_1 = instantiate_v1beta1_queuing_configuration(include_optional); - - cJSON* jsonv1beta1_queuing_configuration_1 = v1beta1_queuing_configuration_convertToJSON(v1beta1_queuing_configuration_1); - printf("v1beta1_queuing_configuration :\n%s\n", cJSON_Print(jsonv1beta1_queuing_configuration_1)); - v1beta1_queuing_configuration_t* v1beta1_queuing_configuration_2 = v1beta1_queuing_configuration_parseFromJSON(jsonv1beta1_queuing_configuration_1); - cJSON* jsonv1beta1_queuing_configuration_2 = v1beta1_queuing_configuration_convertToJSON(v1beta1_queuing_configuration_2); - printf("repeating v1beta1_queuing_configuration:\n%s\n", cJSON_Print(jsonv1beta1_queuing_configuration_2)); -} - -int main() { - test_v1beta1_queuing_configuration(1); - test_v1beta1_queuing_configuration(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_queuing_configuration_MAIN -#endif // v1beta1_queuing_configuration_TEST diff --git a/kubernetes/unit-test/test_v1beta1_resource_policy_rule.c b/kubernetes/unit-test/test_v1beta1_resource_policy_rule.c deleted file mode 100644 index 454fb36b..00000000 --- a/kubernetes/unit-test/test_v1beta1_resource_policy_rule.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v1beta1_resource_policy_rule_TEST -#define v1beta1_resource_policy_rule_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_resource_policy_rule_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_resource_policy_rule.h" -v1beta1_resource_policy_rule_t* instantiate_v1beta1_resource_policy_rule(int include_optional); - - - -v1beta1_resource_policy_rule_t* instantiate_v1beta1_resource_policy_rule(int include_optional) { - v1beta1_resource_policy_rule_t* v1beta1_resource_policy_rule = NULL; - if (include_optional) { - v1beta1_resource_policy_rule = v1beta1_resource_policy_rule_create( - list_createList(), - 1, - list_createList(), - list_createList(), - list_createList() - ); - } else { - v1beta1_resource_policy_rule = v1beta1_resource_policy_rule_create( - list_createList(), - 1, - list_createList(), - list_createList(), - list_createList() - ); - } - - return v1beta1_resource_policy_rule; -} - - -#ifdef v1beta1_resource_policy_rule_MAIN - -void test_v1beta1_resource_policy_rule(int include_optional) { - v1beta1_resource_policy_rule_t* v1beta1_resource_policy_rule_1 = instantiate_v1beta1_resource_policy_rule(include_optional); - - cJSON* jsonv1beta1_resource_policy_rule_1 = v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_1); - printf("v1beta1_resource_policy_rule :\n%s\n", cJSON_Print(jsonv1beta1_resource_policy_rule_1)); - v1beta1_resource_policy_rule_t* v1beta1_resource_policy_rule_2 = v1beta1_resource_policy_rule_parseFromJSON(jsonv1beta1_resource_policy_rule_1); - cJSON* jsonv1beta1_resource_policy_rule_2 = v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_2); - printf("repeating v1beta1_resource_policy_rule:\n%s\n", cJSON_Print(jsonv1beta1_resource_policy_rule_2)); -} - -int main() { - test_v1beta1_resource_policy_rule(1); - test_v1beta1_resource_policy_rule(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_resource_policy_rule_MAIN -#endif // v1beta1_resource_policy_rule_TEST diff --git a/kubernetes/unit-test/test_v1beta1_service_account_subject.c b/kubernetes/unit-test/test_v1beta1_service_account_subject.c deleted file mode 100644 index 3f5525a6..00000000 --- a/kubernetes/unit-test/test_v1beta1_service_account_subject.c +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef v1beta1_service_account_subject_TEST -#define v1beta1_service_account_subject_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_service_account_subject_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_service_account_subject.h" -v1beta1_service_account_subject_t* instantiate_v1beta1_service_account_subject(int include_optional); - - - -v1beta1_service_account_subject_t* instantiate_v1beta1_service_account_subject(int include_optional) { - v1beta1_service_account_subject_t* v1beta1_service_account_subject = NULL; - if (include_optional) { - v1beta1_service_account_subject = v1beta1_service_account_subject_create( - "0", - "0" - ); - } else { - v1beta1_service_account_subject = v1beta1_service_account_subject_create( - "0", - "0" - ); - } - - return v1beta1_service_account_subject; -} - - -#ifdef v1beta1_service_account_subject_MAIN - -void test_v1beta1_service_account_subject(int include_optional) { - v1beta1_service_account_subject_t* v1beta1_service_account_subject_1 = instantiate_v1beta1_service_account_subject(include_optional); - - cJSON* jsonv1beta1_service_account_subject_1 = v1beta1_service_account_subject_convertToJSON(v1beta1_service_account_subject_1); - printf("v1beta1_service_account_subject :\n%s\n", cJSON_Print(jsonv1beta1_service_account_subject_1)); - v1beta1_service_account_subject_t* v1beta1_service_account_subject_2 = v1beta1_service_account_subject_parseFromJSON(jsonv1beta1_service_account_subject_1); - cJSON* jsonv1beta1_service_account_subject_2 = v1beta1_service_account_subject_convertToJSON(v1beta1_service_account_subject_2); - printf("repeating v1beta1_service_account_subject:\n%s\n", cJSON_Print(jsonv1beta1_service_account_subject_2)); -} - -int main() { - test_v1beta1_service_account_subject(1); - test_v1beta1_service_account_subject(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_service_account_subject_MAIN -#endif // v1beta1_service_account_subject_TEST diff --git a/kubernetes/unit-test/test_v1beta1_subject.c b/kubernetes/unit-test/test_v1beta1_subject.c deleted file mode 100644 index 917e9ed9..00000000 --- a/kubernetes/unit-test/test_v1beta1_subject.c +++ /dev/null @@ -1,70 +0,0 @@ -#ifndef v1beta1_subject_TEST -#define v1beta1_subject_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_subject_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_subject.h" -v1beta1_subject_t* instantiate_v1beta1_subject(int include_optional); - -#include "test_v1beta1_group_subject.c" -#include "test_v1beta1_service_account_subject.c" -#include "test_v1beta1_user_subject.c" - - -v1beta1_subject_t* instantiate_v1beta1_subject(int include_optional) { - v1beta1_subject_t* v1beta1_subject = NULL; - if (include_optional) { - v1beta1_subject = v1beta1_subject_create( - // false, not to have infinite recursion - instantiate_v1beta1_group_subject(0), - "0", - // false, not to have infinite recursion - instantiate_v1beta1_service_account_subject(0), - // false, not to have infinite recursion - instantiate_v1beta1_user_subject(0) - ); - } else { - v1beta1_subject = v1beta1_subject_create( - NULL, - "0", - NULL, - NULL - ); - } - - return v1beta1_subject; -} - - -#ifdef v1beta1_subject_MAIN - -void test_v1beta1_subject(int include_optional) { - v1beta1_subject_t* v1beta1_subject_1 = instantiate_v1beta1_subject(include_optional); - - cJSON* jsonv1beta1_subject_1 = v1beta1_subject_convertToJSON(v1beta1_subject_1); - printf("v1beta1_subject :\n%s\n", cJSON_Print(jsonv1beta1_subject_1)); - v1beta1_subject_t* v1beta1_subject_2 = v1beta1_subject_parseFromJSON(jsonv1beta1_subject_1); - cJSON* jsonv1beta1_subject_2 = v1beta1_subject_convertToJSON(v1beta1_subject_2); - printf("repeating v1beta1_subject:\n%s\n", cJSON_Print(jsonv1beta1_subject_2)); -} - -int main() { - test_v1beta1_subject(1); - test_v1beta1_subject(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_subject_MAIN -#endif // v1beta1_subject_TEST diff --git a/kubernetes/unit-test/test_v1beta1_user_subject.c b/kubernetes/unit-test/test_v1beta1_user_subject.c deleted file mode 100644 index c905b62c..00000000 --- a/kubernetes/unit-test/test_v1beta1_user_subject.c +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef v1beta1_user_subject_TEST -#define v1beta1_user_subject_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_user_subject_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_user_subject.h" -v1beta1_user_subject_t* instantiate_v1beta1_user_subject(int include_optional); - - - -v1beta1_user_subject_t* instantiate_v1beta1_user_subject(int include_optional) { - v1beta1_user_subject_t* v1beta1_user_subject = NULL; - if (include_optional) { - v1beta1_user_subject = v1beta1_user_subject_create( - "0" - ); - } else { - v1beta1_user_subject = v1beta1_user_subject_create( - "0" - ); - } - - return v1beta1_user_subject; -} - - -#ifdef v1beta1_user_subject_MAIN - -void test_v1beta1_user_subject(int include_optional) { - v1beta1_user_subject_t* v1beta1_user_subject_1 = instantiate_v1beta1_user_subject(include_optional); - - cJSON* jsonv1beta1_user_subject_1 = v1beta1_user_subject_convertToJSON(v1beta1_user_subject_1); - printf("v1beta1_user_subject :\n%s\n", cJSON_Print(jsonv1beta1_user_subject_1)); - v1beta1_user_subject_t* v1beta1_user_subject_2 = v1beta1_user_subject_parseFromJSON(jsonv1beta1_user_subject_1); - cJSON* jsonv1beta1_user_subject_2 = v1beta1_user_subject_convertToJSON(v1beta1_user_subject_2); - printf("repeating v1beta1_user_subject:\n%s\n", cJSON_Print(jsonv1beta1_user_subject_2)); -} - -int main() { - test_v1beta1_user_subject(1); - test_v1beta1_user_subject(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_user_subject_MAIN -#endif // v1beta1_user_subject_TEST diff --git a/kubernetes/unit-test/test_v1beta2_limited_priority_level_configuration.c b/kubernetes/unit-test/test_v1beta2_limited_priority_level_configuration.c index 966bbdee..21d877d8 100644 --- a/kubernetes/unit-test/test_v1beta2_limited_priority_level_configuration.c +++ b/kubernetes/unit-test/test_v1beta2_limited_priority_level_configuration.c @@ -23,12 +23,16 @@ v1beta2_limited_priority_level_configuration_t* instantiate_v1beta2_limited_prio v1beta2_limited_priority_level_configuration_t* v1beta2_limited_priority_level_configuration = NULL; if (include_optional) { v1beta2_limited_priority_level_configuration = v1beta2_limited_priority_level_configuration_create( + 56, + 56, 56, // false, not to have infinite recursion instantiate_v1beta2_limit_response(0) ); } else { v1beta2_limited_priority_level_configuration = v1beta2_limited_priority_level_configuration_create( + 56, + 56, 56, NULL ); diff --git a/kubernetes/unit-test/test_v1beta3_flow_distinguisher_method.c b/kubernetes/unit-test/test_v1beta3_flow_distinguisher_method.c new file mode 100644 index 00000000..7725d72b --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_flow_distinguisher_method.c @@ -0,0 +1,58 @@ +#ifndef v1beta3_flow_distinguisher_method_TEST +#define v1beta3_flow_distinguisher_method_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_flow_distinguisher_method_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_flow_distinguisher_method.h" +v1beta3_flow_distinguisher_method_t* instantiate_v1beta3_flow_distinguisher_method(int include_optional); + + + +v1beta3_flow_distinguisher_method_t* instantiate_v1beta3_flow_distinguisher_method(int include_optional) { + v1beta3_flow_distinguisher_method_t* v1beta3_flow_distinguisher_method = NULL; + if (include_optional) { + v1beta3_flow_distinguisher_method = v1beta3_flow_distinguisher_method_create( + "0" + ); + } else { + v1beta3_flow_distinguisher_method = v1beta3_flow_distinguisher_method_create( + "0" + ); + } + + return v1beta3_flow_distinguisher_method; +} + + +#ifdef v1beta3_flow_distinguisher_method_MAIN + +void test_v1beta3_flow_distinguisher_method(int include_optional) { + v1beta3_flow_distinguisher_method_t* v1beta3_flow_distinguisher_method_1 = instantiate_v1beta3_flow_distinguisher_method(include_optional); + + cJSON* jsonv1beta3_flow_distinguisher_method_1 = v1beta3_flow_distinguisher_method_convertToJSON(v1beta3_flow_distinguisher_method_1); + printf("v1beta3_flow_distinguisher_method :\n%s\n", cJSON_Print(jsonv1beta3_flow_distinguisher_method_1)); + v1beta3_flow_distinguisher_method_t* v1beta3_flow_distinguisher_method_2 = v1beta3_flow_distinguisher_method_parseFromJSON(jsonv1beta3_flow_distinguisher_method_1); + cJSON* jsonv1beta3_flow_distinguisher_method_2 = v1beta3_flow_distinguisher_method_convertToJSON(v1beta3_flow_distinguisher_method_2); + printf("repeating v1beta3_flow_distinguisher_method:\n%s\n", cJSON_Print(jsonv1beta3_flow_distinguisher_method_2)); +} + +int main() { + test_v1beta3_flow_distinguisher_method(1); + test_v1beta3_flow_distinguisher_method(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_flow_distinguisher_method_MAIN +#endif // v1beta3_flow_distinguisher_method_TEST diff --git a/kubernetes/unit-test/test_v1beta3_flow_schema.c b/kubernetes/unit-test/test_v1beta3_flow_schema.c new file mode 100644 index 00000000..aa15f488 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_flow_schema.c @@ -0,0 +1,72 @@ +#ifndef v1beta3_flow_schema_TEST +#define v1beta3_flow_schema_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_flow_schema_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_flow_schema.h" +v1beta3_flow_schema_t* instantiate_v1beta3_flow_schema(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1beta3_flow_schema_spec.c" +#include "test_v1beta3_flow_schema_status.c" + + +v1beta3_flow_schema_t* instantiate_v1beta3_flow_schema(int include_optional) { + v1beta3_flow_schema_t* v1beta3_flow_schema = NULL; + if (include_optional) { + v1beta3_flow_schema = v1beta3_flow_schema_create( + "0", + "0", + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1beta3_flow_schema_spec(0), + // false, not to have infinite recursion + instantiate_v1beta3_flow_schema_status(0) + ); + } else { + v1beta3_flow_schema = v1beta3_flow_schema_create( + "0", + "0", + NULL, + NULL, + NULL + ); + } + + return v1beta3_flow_schema; +} + + +#ifdef v1beta3_flow_schema_MAIN + +void test_v1beta3_flow_schema(int include_optional) { + v1beta3_flow_schema_t* v1beta3_flow_schema_1 = instantiate_v1beta3_flow_schema(include_optional); + + cJSON* jsonv1beta3_flow_schema_1 = v1beta3_flow_schema_convertToJSON(v1beta3_flow_schema_1); + printf("v1beta3_flow_schema :\n%s\n", cJSON_Print(jsonv1beta3_flow_schema_1)); + v1beta3_flow_schema_t* v1beta3_flow_schema_2 = v1beta3_flow_schema_parseFromJSON(jsonv1beta3_flow_schema_1); + cJSON* jsonv1beta3_flow_schema_2 = v1beta3_flow_schema_convertToJSON(v1beta3_flow_schema_2); + printf("repeating v1beta3_flow_schema:\n%s\n", cJSON_Print(jsonv1beta3_flow_schema_2)); +} + +int main() { + test_v1beta3_flow_schema(1); + test_v1beta3_flow_schema(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_flow_schema_MAIN +#endif // v1beta3_flow_schema_TEST diff --git a/kubernetes/unit-test/test_v1beta3_flow_schema_condition.c b/kubernetes/unit-test/test_v1beta3_flow_schema_condition.c new file mode 100644 index 00000000..d01970b4 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_flow_schema_condition.c @@ -0,0 +1,66 @@ +#ifndef v1beta3_flow_schema_condition_TEST +#define v1beta3_flow_schema_condition_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_flow_schema_condition_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_flow_schema_condition.h" +v1beta3_flow_schema_condition_t* instantiate_v1beta3_flow_schema_condition(int include_optional); + + + +v1beta3_flow_schema_condition_t* instantiate_v1beta3_flow_schema_condition(int include_optional) { + v1beta3_flow_schema_condition_t* v1beta3_flow_schema_condition = NULL; + if (include_optional) { + v1beta3_flow_schema_condition = v1beta3_flow_schema_condition_create( + "2013-10-20T19:20:30+01:00", + "0", + "0", + "0", + "0" + ); + } else { + v1beta3_flow_schema_condition = v1beta3_flow_schema_condition_create( + "2013-10-20T19:20:30+01:00", + "0", + "0", + "0", + "0" + ); + } + + return v1beta3_flow_schema_condition; +} + + +#ifdef v1beta3_flow_schema_condition_MAIN + +void test_v1beta3_flow_schema_condition(int include_optional) { + v1beta3_flow_schema_condition_t* v1beta3_flow_schema_condition_1 = instantiate_v1beta3_flow_schema_condition(include_optional); + + cJSON* jsonv1beta3_flow_schema_condition_1 = v1beta3_flow_schema_condition_convertToJSON(v1beta3_flow_schema_condition_1); + printf("v1beta3_flow_schema_condition :\n%s\n", cJSON_Print(jsonv1beta3_flow_schema_condition_1)); + v1beta3_flow_schema_condition_t* v1beta3_flow_schema_condition_2 = v1beta3_flow_schema_condition_parseFromJSON(jsonv1beta3_flow_schema_condition_1); + cJSON* jsonv1beta3_flow_schema_condition_2 = v1beta3_flow_schema_condition_convertToJSON(v1beta3_flow_schema_condition_2); + printf("repeating v1beta3_flow_schema_condition:\n%s\n", cJSON_Print(jsonv1beta3_flow_schema_condition_2)); +} + +int main() { + test_v1beta3_flow_schema_condition(1); + test_v1beta3_flow_schema_condition(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_flow_schema_condition_MAIN +#endif // v1beta3_flow_schema_condition_TEST diff --git a/kubernetes/unit-test/test_v1beta3_flow_schema_list.c b/kubernetes/unit-test/test_v1beta3_flow_schema_list.c new file mode 100644 index 00000000..6159b0bf --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_flow_schema_list.c @@ -0,0 +1,66 @@ +#ifndef v1beta3_flow_schema_list_TEST +#define v1beta3_flow_schema_list_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_flow_schema_list_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_flow_schema_list.h" +v1beta3_flow_schema_list_t* instantiate_v1beta3_flow_schema_list(int include_optional); + +#include "test_v1_list_meta.c" + + +v1beta3_flow_schema_list_t* instantiate_v1beta3_flow_schema_list(int include_optional) { + v1beta3_flow_schema_list_t* v1beta3_flow_schema_list = NULL; + if (include_optional) { + v1beta3_flow_schema_list = v1beta3_flow_schema_list_create( + "0", + list_createList(), + "0", + // false, not to have infinite recursion + instantiate_v1_list_meta(0) + ); + } else { + v1beta3_flow_schema_list = v1beta3_flow_schema_list_create( + "0", + list_createList(), + "0", + NULL + ); + } + + return v1beta3_flow_schema_list; +} + + +#ifdef v1beta3_flow_schema_list_MAIN + +void test_v1beta3_flow_schema_list(int include_optional) { + v1beta3_flow_schema_list_t* v1beta3_flow_schema_list_1 = instantiate_v1beta3_flow_schema_list(include_optional); + + cJSON* jsonv1beta3_flow_schema_list_1 = v1beta3_flow_schema_list_convertToJSON(v1beta3_flow_schema_list_1); + printf("v1beta3_flow_schema_list :\n%s\n", cJSON_Print(jsonv1beta3_flow_schema_list_1)); + v1beta3_flow_schema_list_t* v1beta3_flow_schema_list_2 = v1beta3_flow_schema_list_parseFromJSON(jsonv1beta3_flow_schema_list_1); + cJSON* jsonv1beta3_flow_schema_list_2 = v1beta3_flow_schema_list_convertToJSON(v1beta3_flow_schema_list_2); + printf("repeating v1beta3_flow_schema_list:\n%s\n", cJSON_Print(jsonv1beta3_flow_schema_list_2)); +} + +int main() { + test_v1beta3_flow_schema_list(1); + test_v1beta3_flow_schema_list(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_flow_schema_list_MAIN +#endif // v1beta3_flow_schema_list_TEST diff --git a/kubernetes/unit-test/test_v1beta3_flow_schema_spec.c b/kubernetes/unit-test/test_v1beta3_flow_schema_spec.c new file mode 100644 index 00000000..73b6ed9f --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_flow_schema_spec.c @@ -0,0 +1,68 @@ +#ifndef v1beta3_flow_schema_spec_TEST +#define v1beta3_flow_schema_spec_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_flow_schema_spec_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_flow_schema_spec.h" +v1beta3_flow_schema_spec_t* instantiate_v1beta3_flow_schema_spec(int include_optional); + +#include "test_v1beta3_flow_distinguisher_method.c" +#include "test_v1beta3_priority_level_configuration_reference.c" + + +v1beta3_flow_schema_spec_t* instantiate_v1beta3_flow_schema_spec(int include_optional) { + v1beta3_flow_schema_spec_t* v1beta3_flow_schema_spec = NULL; + if (include_optional) { + v1beta3_flow_schema_spec = v1beta3_flow_schema_spec_create( + // false, not to have infinite recursion + instantiate_v1beta3_flow_distinguisher_method(0), + 56, + // false, not to have infinite recursion + instantiate_v1beta3_priority_level_configuration_reference(0), + list_createList() + ); + } else { + v1beta3_flow_schema_spec = v1beta3_flow_schema_spec_create( + NULL, + 56, + NULL, + list_createList() + ); + } + + return v1beta3_flow_schema_spec; +} + + +#ifdef v1beta3_flow_schema_spec_MAIN + +void test_v1beta3_flow_schema_spec(int include_optional) { + v1beta3_flow_schema_spec_t* v1beta3_flow_schema_spec_1 = instantiate_v1beta3_flow_schema_spec(include_optional); + + cJSON* jsonv1beta3_flow_schema_spec_1 = v1beta3_flow_schema_spec_convertToJSON(v1beta3_flow_schema_spec_1); + printf("v1beta3_flow_schema_spec :\n%s\n", cJSON_Print(jsonv1beta3_flow_schema_spec_1)); + v1beta3_flow_schema_spec_t* v1beta3_flow_schema_spec_2 = v1beta3_flow_schema_spec_parseFromJSON(jsonv1beta3_flow_schema_spec_1); + cJSON* jsonv1beta3_flow_schema_spec_2 = v1beta3_flow_schema_spec_convertToJSON(v1beta3_flow_schema_spec_2); + printf("repeating v1beta3_flow_schema_spec:\n%s\n", cJSON_Print(jsonv1beta3_flow_schema_spec_2)); +} + +int main() { + test_v1beta3_flow_schema_spec(1); + test_v1beta3_flow_schema_spec(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_flow_schema_spec_MAIN +#endif // v1beta3_flow_schema_spec_TEST diff --git a/kubernetes/unit-test/test_v1beta3_flow_schema_status.c b/kubernetes/unit-test/test_v1beta3_flow_schema_status.c new file mode 100644 index 00000000..c2c4c97a --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_flow_schema_status.c @@ -0,0 +1,58 @@ +#ifndef v1beta3_flow_schema_status_TEST +#define v1beta3_flow_schema_status_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_flow_schema_status_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_flow_schema_status.h" +v1beta3_flow_schema_status_t* instantiate_v1beta3_flow_schema_status(int include_optional); + + + +v1beta3_flow_schema_status_t* instantiate_v1beta3_flow_schema_status(int include_optional) { + v1beta3_flow_schema_status_t* v1beta3_flow_schema_status = NULL; + if (include_optional) { + v1beta3_flow_schema_status = v1beta3_flow_schema_status_create( + list_createList() + ); + } else { + v1beta3_flow_schema_status = v1beta3_flow_schema_status_create( + list_createList() + ); + } + + return v1beta3_flow_schema_status; +} + + +#ifdef v1beta3_flow_schema_status_MAIN + +void test_v1beta3_flow_schema_status(int include_optional) { + v1beta3_flow_schema_status_t* v1beta3_flow_schema_status_1 = instantiate_v1beta3_flow_schema_status(include_optional); + + cJSON* jsonv1beta3_flow_schema_status_1 = v1beta3_flow_schema_status_convertToJSON(v1beta3_flow_schema_status_1); + printf("v1beta3_flow_schema_status :\n%s\n", cJSON_Print(jsonv1beta3_flow_schema_status_1)); + v1beta3_flow_schema_status_t* v1beta3_flow_schema_status_2 = v1beta3_flow_schema_status_parseFromJSON(jsonv1beta3_flow_schema_status_1); + cJSON* jsonv1beta3_flow_schema_status_2 = v1beta3_flow_schema_status_convertToJSON(v1beta3_flow_schema_status_2); + printf("repeating v1beta3_flow_schema_status:\n%s\n", cJSON_Print(jsonv1beta3_flow_schema_status_2)); +} + +int main() { + test_v1beta3_flow_schema_status(1); + test_v1beta3_flow_schema_status(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_flow_schema_status_MAIN +#endif // v1beta3_flow_schema_status_TEST diff --git a/kubernetes/unit-test/test_v1beta3_group_subject.c b/kubernetes/unit-test/test_v1beta3_group_subject.c new file mode 100644 index 00000000..898cbbbe --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_group_subject.c @@ -0,0 +1,58 @@ +#ifndef v1beta3_group_subject_TEST +#define v1beta3_group_subject_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_group_subject_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_group_subject.h" +v1beta3_group_subject_t* instantiate_v1beta3_group_subject(int include_optional); + + + +v1beta3_group_subject_t* instantiate_v1beta3_group_subject(int include_optional) { + v1beta3_group_subject_t* v1beta3_group_subject = NULL; + if (include_optional) { + v1beta3_group_subject = v1beta3_group_subject_create( + "0" + ); + } else { + v1beta3_group_subject = v1beta3_group_subject_create( + "0" + ); + } + + return v1beta3_group_subject; +} + + +#ifdef v1beta3_group_subject_MAIN + +void test_v1beta3_group_subject(int include_optional) { + v1beta3_group_subject_t* v1beta3_group_subject_1 = instantiate_v1beta3_group_subject(include_optional); + + cJSON* jsonv1beta3_group_subject_1 = v1beta3_group_subject_convertToJSON(v1beta3_group_subject_1); + printf("v1beta3_group_subject :\n%s\n", cJSON_Print(jsonv1beta3_group_subject_1)); + v1beta3_group_subject_t* v1beta3_group_subject_2 = v1beta3_group_subject_parseFromJSON(jsonv1beta3_group_subject_1); + cJSON* jsonv1beta3_group_subject_2 = v1beta3_group_subject_convertToJSON(v1beta3_group_subject_2); + printf("repeating v1beta3_group_subject:\n%s\n", cJSON_Print(jsonv1beta3_group_subject_2)); +} + +int main() { + test_v1beta3_group_subject(1); + test_v1beta3_group_subject(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_group_subject_MAIN +#endif // v1beta3_group_subject_TEST diff --git a/kubernetes/unit-test/test_v1beta3_limit_response.c b/kubernetes/unit-test/test_v1beta3_limit_response.c new file mode 100644 index 00000000..3f17c434 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_limit_response.c @@ -0,0 +1,62 @@ +#ifndef v1beta3_limit_response_TEST +#define v1beta3_limit_response_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_limit_response_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_limit_response.h" +v1beta3_limit_response_t* instantiate_v1beta3_limit_response(int include_optional); + +#include "test_v1beta3_queuing_configuration.c" + + +v1beta3_limit_response_t* instantiate_v1beta3_limit_response(int include_optional) { + v1beta3_limit_response_t* v1beta3_limit_response = NULL; + if (include_optional) { + v1beta3_limit_response = v1beta3_limit_response_create( + // false, not to have infinite recursion + instantiate_v1beta3_queuing_configuration(0), + "0" + ); + } else { + v1beta3_limit_response = v1beta3_limit_response_create( + NULL, + "0" + ); + } + + return v1beta3_limit_response; +} + + +#ifdef v1beta3_limit_response_MAIN + +void test_v1beta3_limit_response(int include_optional) { + v1beta3_limit_response_t* v1beta3_limit_response_1 = instantiate_v1beta3_limit_response(include_optional); + + cJSON* jsonv1beta3_limit_response_1 = v1beta3_limit_response_convertToJSON(v1beta3_limit_response_1); + printf("v1beta3_limit_response :\n%s\n", cJSON_Print(jsonv1beta3_limit_response_1)); + v1beta3_limit_response_t* v1beta3_limit_response_2 = v1beta3_limit_response_parseFromJSON(jsonv1beta3_limit_response_1); + cJSON* jsonv1beta3_limit_response_2 = v1beta3_limit_response_convertToJSON(v1beta3_limit_response_2); + printf("repeating v1beta3_limit_response:\n%s\n", cJSON_Print(jsonv1beta3_limit_response_2)); +} + +int main() { + test_v1beta3_limit_response(1); + test_v1beta3_limit_response(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_limit_response_MAIN +#endif // v1beta3_limit_response_TEST diff --git a/kubernetes/unit-test/test_v1beta3_limited_priority_level_configuration.c b/kubernetes/unit-test/test_v1beta3_limited_priority_level_configuration.c new file mode 100644 index 00000000..4e01c85d --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_limited_priority_level_configuration.c @@ -0,0 +1,66 @@ +#ifndef v1beta3_limited_priority_level_configuration_TEST +#define v1beta3_limited_priority_level_configuration_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_limited_priority_level_configuration_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_limited_priority_level_configuration.h" +v1beta3_limited_priority_level_configuration_t* instantiate_v1beta3_limited_priority_level_configuration(int include_optional); + +#include "test_v1beta3_limit_response.c" + + +v1beta3_limited_priority_level_configuration_t* instantiate_v1beta3_limited_priority_level_configuration(int include_optional) { + v1beta3_limited_priority_level_configuration_t* v1beta3_limited_priority_level_configuration = NULL; + if (include_optional) { + v1beta3_limited_priority_level_configuration = v1beta3_limited_priority_level_configuration_create( + 56, + 56, + // false, not to have infinite recursion + instantiate_v1beta3_limit_response(0), + 56 + ); + } else { + v1beta3_limited_priority_level_configuration = v1beta3_limited_priority_level_configuration_create( + 56, + 56, + NULL, + 56 + ); + } + + return v1beta3_limited_priority_level_configuration; +} + + +#ifdef v1beta3_limited_priority_level_configuration_MAIN + +void test_v1beta3_limited_priority_level_configuration(int include_optional) { + v1beta3_limited_priority_level_configuration_t* v1beta3_limited_priority_level_configuration_1 = instantiate_v1beta3_limited_priority_level_configuration(include_optional); + + cJSON* jsonv1beta3_limited_priority_level_configuration_1 = v1beta3_limited_priority_level_configuration_convertToJSON(v1beta3_limited_priority_level_configuration_1); + printf("v1beta3_limited_priority_level_configuration :\n%s\n", cJSON_Print(jsonv1beta3_limited_priority_level_configuration_1)); + v1beta3_limited_priority_level_configuration_t* v1beta3_limited_priority_level_configuration_2 = v1beta3_limited_priority_level_configuration_parseFromJSON(jsonv1beta3_limited_priority_level_configuration_1); + cJSON* jsonv1beta3_limited_priority_level_configuration_2 = v1beta3_limited_priority_level_configuration_convertToJSON(v1beta3_limited_priority_level_configuration_2); + printf("repeating v1beta3_limited_priority_level_configuration:\n%s\n", cJSON_Print(jsonv1beta3_limited_priority_level_configuration_2)); +} + +int main() { + test_v1beta3_limited_priority_level_configuration(1); + test_v1beta3_limited_priority_level_configuration(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_limited_priority_level_configuration_MAIN +#endif // v1beta3_limited_priority_level_configuration_TEST diff --git a/kubernetes/unit-test/test_v1beta3_non_resource_policy_rule.c b/kubernetes/unit-test/test_v1beta3_non_resource_policy_rule.c new file mode 100644 index 00000000..5436980d --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_non_resource_policy_rule.c @@ -0,0 +1,60 @@ +#ifndef v1beta3_non_resource_policy_rule_TEST +#define v1beta3_non_resource_policy_rule_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_non_resource_policy_rule_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_non_resource_policy_rule.h" +v1beta3_non_resource_policy_rule_t* instantiate_v1beta3_non_resource_policy_rule(int include_optional); + + + +v1beta3_non_resource_policy_rule_t* instantiate_v1beta3_non_resource_policy_rule(int include_optional) { + v1beta3_non_resource_policy_rule_t* v1beta3_non_resource_policy_rule = NULL; + if (include_optional) { + v1beta3_non_resource_policy_rule = v1beta3_non_resource_policy_rule_create( + list_createList(), + list_createList() + ); + } else { + v1beta3_non_resource_policy_rule = v1beta3_non_resource_policy_rule_create( + list_createList(), + list_createList() + ); + } + + return v1beta3_non_resource_policy_rule; +} + + +#ifdef v1beta3_non_resource_policy_rule_MAIN + +void test_v1beta3_non_resource_policy_rule(int include_optional) { + v1beta3_non_resource_policy_rule_t* v1beta3_non_resource_policy_rule_1 = instantiate_v1beta3_non_resource_policy_rule(include_optional); + + cJSON* jsonv1beta3_non_resource_policy_rule_1 = v1beta3_non_resource_policy_rule_convertToJSON(v1beta3_non_resource_policy_rule_1); + printf("v1beta3_non_resource_policy_rule :\n%s\n", cJSON_Print(jsonv1beta3_non_resource_policy_rule_1)); + v1beta3_non_resource_policy_rule_t* v1beta3_non_resource_policy_rule_2 = v1beta3_non_resource_policy_rule_parseFromJSON(jsonv1beta3_non_resource_policy_rule_1); + cJSON* jsonv1beta3_non_resource_policy_rule_2 = v1beta3_non_resource_policy_rule_convertToJSON(v1beta3_non_resource_policy_rule_2); + printf("repeating v1beta3_non_resource_policy_rule:\n%s\n", cJSON_Print(jsonv1beta3_non_resource_policy_rule_2)); +} + +int main() { + test_v1beta3_non_resource_policy_rule(1); + test_v1beta3_non_resource_policy_rule(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_non_resource_policy_rule_MAIN +#endif // v1beta3_non_resource_policy_rule_TEST diff --git a/kubernetes/unit-test/test_v1beta3_policy_rules_with_subjects.c b/kubernetes/unit-test/test_v1beta3_policy_rules_with_subjects.c new file mode 100644 index 00000000..af93f325 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_policy_rules_with_subjects.c @@ -0,0 +1,62 @@ +#ifndef v1beta3_policy_rules_with_subjects_TEST +#define v1beta3_policy_rules_with_subjects_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_policy_rules_with_subjects_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_policy_rules_with_subjects.h" +v1beta3_policy_rules_with_subjects_t* instantiate_v1beta3_policy_rules_with_subjects(int include_optional); + + + +v1beta3_policy_rules_with_subjects_t* instantiate_v1beta3_policy_rules_with_subjects(int include_optional) { + v1beta3_policy_rules_with_subjects_t* v1beta3_policy_rules_with_subjects = NULL; + if (include_optional) { + v1beta3_policy_rules_with_subjects = v1beta3_policy_rules_with_subjects_create( + list_createList(), + list_createList(), + list_createList() + ); + } else { + v1beta3_policy_rules_with_subjects = v1beta3_policy_rules_with_subjects_create( + list_createList(), + list_createList(), + list_createList() + ); + } + + return v1beta3_policy_rules_with_subjects; +} + + +#ifdef v1beta3_policy_rules_with_subjects_MAIN + +void test_v1beta3_policy_rules_with_subjects(int include_optional) { + v1beta3_policy_rules_with_subjects_t* v1beta3_policy_rules_with_subjects_1 = instantiate_v1beta3_policy_rules_with_subjects(include_optional); + + cJSON* jsonv1beta3_policy_rules_with_subjects_1 = v1beta3_policy_rules_with_subjects_convertToJSON(v1beta3_policy_rules_with_subjects_1); + printf("v1beta3_policy_rules_with_subjects :\n%s\n", cJSON_Print(jsonv1beta3_policy_rules_with_subjects_1)); + v1beta3_policy_rules_with_subjects_t* v1beta3_policy_rules_with_subjects_2 = v1beta3_policy_rules_with_subjects_parseFromJSON(jsonv1beta3_policy_rules_with_subjects_1); + cJSON* jsonv1beta3_policy_rules_with_subjects_2 = v1beta3_policy_rules_with_subjects_convertToJSON(v1beta3_policy_rules_with_subjects_2); + printf("repeating v1beta3_policy_rules_with_subjects:\n%s\n", cJSON_Print(jsonv1beta3_policy_rules_with_subjects_2)); +} + +int main() { + test_v1beta3_policy_rules_with_subjects(1); + test_v1beta3_policy_rules_with_subjects(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_policy_rules_with_subjects_MAIN +#endif // v1beta3_policy_rules_with_subjects_TEST diff --git a/kubernetes/unit-test/test_v1beta3_priority_level_configuration.c b/kubernetes/unit-test/test_v1beta3_priority_level_configuration.c new file mode 100644 index 00000000..8a600b1f --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_priority_level_configuration.c @@ -0,0 +1,72 @@ +#ifndef v1beta3_priority_level_configuration_TEST +#define v1beta3_priority_level_configuration_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_priority_level_configuration_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_priority_level_configuration.h" +v1beta3_priority_level_configuration_t* instantiate_v1beta3_priority_level_configuration(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1beta3_priority_level_configuration_spec.c" +#include "test_v1beta3_priority_level_configuration_status.c" + + +v1beta3_priority_level_configuration_t* instantiate_v1beta3_priority_level_configuration(int include_optional) { + v1beta3_priority_level_configuration_t* v1beta3_priority_level_configuration = NULL; + if (include_optional) { + v1beta3_priority_level_configuration = v1beta3_priority_level_configuration_create( + "0", + "0", + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1beta3_priority_level_configuration_spec(0), + // false, not to have infinite recursion + instantiate_v1beta3_priority_level_configuration_status(0) + ); + } else { + v1beta3_priority_level_configuration = v1beta3_priority_level_configuration_create( + "0", + "0", + NULL, + NULL, + NULL + ); + } + + return v1beta3_priority_level_configuration; +} + + +#ifdef v1beta3_priority_level_configuration_MAIN + +void test_v1beta3_priority_level_configuration(int include_optional) { + v1beta3_priority_level_configuration_t* v1beta3_priority_level_configuration_1 = instantiate_v1beta3_priority_level_configuration(include_optional); + + cJSON* jsonv1beta3_priority_level_configuration_1 = v1beta3_priority_level_configuration_convertToJSON(v1beta3_priority_level_configuration_1); + printf("v1beta3_priority_level_configuration :\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_1)); + v1beta3_priority_level_configuration_t* v1beta3_priority_level_configuration_2 = v1beta3_priority_level_configuration_parseFromJSON(jsonv1beta3_priority_level_configuration_1); + cJSON* jsonv1beta3_priority_level_configuration_2 = v1beta3_priority_level_configuration_convertToJSON(v1beta3_priority_level_configuration_2); + printf("repeating v1beta3_priority_level_configuration:\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_2)); +} + +int main() { + test_v1beta3_priority_level_configuration(1); + test_v1beta3_priority_level_configuration(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_priority_level_configuration_MAIN +#endif // v1beta3_priority_level_configuration_TEST diff --git a/kubernetes/unit-test/test_v1beta3_priority_level_configuration_condition.c b/kubernetes/unit-test/test_v1beta3_priority_level_configuration_condition.c new file mode 100644 index 00000000..8b910bc2 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_priority_level_configuration_condition.c @@ -0,0 +1,66 @@ +#ifndef v1beta3_priority_level_configuration_condition_TEST +#define v1beta3_priority_level_configuration_condition_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_priority_level_configuration_condition_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_priority_level_configuration_condition.h" +v1beta3_priority_level_configuration_condition_t* instantiate_v1beta3_priority_level_configuration_condition(int include_optional); + + + +v1beta3_priority_level_configuration_condition_t* instantiate_v1beta3_priority_level_configuration_condition(int include_optional) { + v1beta3_priority_level_configuration_condition_t* v1beta3_priority_level_configuration_condition = NULL; + if (include_optional) { + v1beta3_priority_level_configuration_condition = v1beta3_priority_level_configuration_condition_create( + "2013-10-20T19:20:30+01:00", + "0", + "0", + "0", + "0" + ); + } else { + v1beta3_priority_level_configuration_condition = v1beta3_priority_level_configuration_condition_create( + "2013-10-20T19:20:30+01:00", + "0", + "0", + "0", + "0" + ); + } + + return v1beta3_priority_level_configuration_condition; +} + + +#ifdef v1beta3_priority_level_configuration_condition_MAIN + +void test_v1beta3_priority_level_configuration_condition(int include_optional) { + v1beta3_priority_level_configuration_condition_t* v1beta3_priority_level_configuration_condition_1 = instantiate_v1beta3_priority_level_configuration_condition(include_optional); + + cJSON* jsonv1beta3_priority_level_configuration_condition_1 = v1beta3_priority_level_configuration_condition_convertToJSON(v1beta3_priority_level_configuration_condition_1); + printf("v1beta3_priority_level_configuration_condition :\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_condition_1)); + v1beta3_priority_level_configuration_condition_t* v1beta3_priority_level_configuration_condition_2 = v1beta3_priority_level_configuration_condition_parseFromJSON(jsonv1beta3_priority_level_configuration_condition_1); + cJSON* jsonv1beta3_priority_level_configuration_condition_2 = v1beta3_priority_level_configuration_condition_convertToJSON(v1beta3_priority_level_configuration_condition_2); + printf("repeating v1beta3_priority_level_configuration_condition:\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_condition_2)); +} + +int main() { + test_v1beta3_priority_level_configuration_condition(1); + test_v1beta3_priority_level_configuration_condition(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_priority_level_configuration_condition_MAIN +#endif // v1beta3_priority_level_configuration_condition_TEST diff --git a/kubernetes/unit-test/test_v1beta3_priority_level_configuration_list.c b/kubernetes/unit-test/test_v1beta3_priority_level_configuration_list.c new file mode 100644 index 00000000..a0ccb0de --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_priority_level_configuration_list.c @@ -0,0 +1,66 @@ +#ifndef v1beta3_priority_level_configuration_list_TEST +#define v1beta3_priority_level_configuration_list_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_priority_level_configuration_list_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_priority_level_configuration_list.h" +v1beta3_priority_level_configuration_list_t* instantiate_v1beta3_priority_level_configuration_list(int include_optional); + +#include "test_v1_list_meta.c" + + +v1beta3_priority_level_configuration_list_t* instantiate_v1beta3_priority_level_configuration_list(int include_optional) { + v1beta3_priority_level_configuration_list_t* v1beta3_priority_level_configuration_list = NULL; + if (include_optional) { + v1beta3_priority_level_configuration_list = v1beta3_priority_level_configuration_list_create( + "0", + list_createList(), + "0", + // false, not to have infinite recursion + instantiate_v1_list_meta(0) + ); + } else { + v1beta3_priority_level_configuration_list = v1beta3_priority_level_configuration_list_create( + "0", + list_createList(), + "0", + NULL + ); + } + + return v1beta3_priority_level_configuration_list; +} + + +#ifdef v1beta3_priority_level_configuration_list_MAIN + +void test_v1beta3_priority_level_configuration_list(int include_optional) { + v1beta3_priority_level_configuration_list_t* v1beta3_priority_level_configuration_list_1 = instantiate_v1beta3_priority_level_configuration_list(include_optional); + + cJSON* jsonv1beta3_priority_level_configuration_list_1 = v1beta3_priority_level_configuration_list_convertToJSON(v1beta3_priority_level_configuration_list_1); + printf("v1beta3_priority_level_configuration_list :\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_list_1)); + v1beta3_priority_level_configuration_list_t* v1beta3_priority_level_configuration_list_2 = v1beta3_priority_level_configuration_list_parseFromJSON(jsonv1beta3_priority_level_configuration_list_1); + cJSON* jsonv1beta3_priority_level_configuration_list_2 = v1beta3_priority_level_configuration_list_convertToJSON(v1beta3_priority_level_configuration_list_2); + printf("repeating v1beta3_priority_level_configuration_list:\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_list_2)); +} + +int main() { + test_v1beta3_priority_level_configuration_list(1); + test_v1beta3_priority_level_configuration_list(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_priority_level_configuration_list_MAIN +#endif // v1beta3_priority_level_configuration_list_TEST diff --git a/kubernetes/unit-test/test_v1beta3_priority_level_configuration_reference.c b/kubernetes/unit-test/test_v1beta3_priority_level_configuration_reference.c new file mode 100644 index 00000000..2963c697 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_priority_level_configuration_reference.c @@ -0,0 +1,58 @@ +#ifndef v1beta3_priority_level_configuration_reference_TEST +#define v1beta3_priority_level_configuration_reference_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_priority_level_configuration_reference_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_priority_level_configuration_reference.h" +v1beta3_priority_level_configuration_reference_t* instantiate_v1beta3_priority_level_configuration_reference(int include_optional); + + + +v1beta3_priority_level_configuration_reference_t* instantiate_v1beta3_priority_level_configuration_reference(int include_optional) { + v1beta3_priority_level_configuration_reference_t* v1beta3_priority_level_configuration_reference = NULL; + if (include_optional) { + v1beta3_priority_level_configuration_reference = v1beta3_priority_level_configuration_reference_create( + "0" + ); + } else { + v1beta3_priority_level_configuration_reference = v1beta3_priority_level_configuration_reference_create( + "0" + ); + } + + return v1beta3_priority_level_configuration_reference; +} + + +#ifdef v1beta3_priority_level_configuration_reference_MAIN + +void test_v1beta3_priority_level_configuration_reference(int include_optional) { + v1beta3_priority_level_configuration_reference_t* v1beta3_priority_level_configuration_reference_1 = instantiate_v1beta3_priority_level_configuration_reference(include_optional); + + cJSON* jsonv1beta3_priority_level_configuration_reference_1 = v1beta3_priority_level_configuration_reference_convertToJSON(v1beta3_priority_level_configuration_reference_1); + printf("v1beta3_priority_level_configuration_reference :\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_reference_1)); + v1beta3_priority_level_configuration_reference_t* v1beta3_priority_level_configuration_reference_2 = v1beta3_priority_level_configuration_reference_parseFromJSON(jsonv1beta3_priority_level_configuration_reference_1); + cJSON* jsonv1beta3_priority_level_configuration_reference_2 = v1beta3_priority_level_configuration_reference_convertToJSON(v1beta3_priority_level_configuration_reference_2); + printf("repeating v1beta3_priority_level_configuration_reference:\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_reference_2)); +} + +int main() { + test_v1beta3_priority_level_configuration_reference(1); + test_v1beta3_priority_level_configuration_reference(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_priority_level_configuration_reference_MAIN +#endif // v1beta3_priority_level_configuration_reference_TEST diff --git a/kubernetes/unit-test/test_v1beta3_priority_level_configuration_spec.c b/kubernetes/unit-test/test_v1beta3_priority_level_configuration_spec.c new file mode 100644 index 00000000..9d5d0ded --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_priority_level_configuration_spec.c @@ -0,0 +1,62 @@ +#ifndef v1beta3_priority_level_configuration_spec_TEST +#define v1beta3_priority_level_configuration_spec_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_priority_level_configuration_spec_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_priority_level_configuration_spec.h" +v1beta3_priority_level_configuration_spec_t* instantiate_v1beta3_priority_level_configuration_spec(int include_optional); + +#include "test_v1beta3_limited_priority_level_configuration.c" + + +v1beta3_priority_level_configuration_spec_t* instantiate_v1beta3_priority_level_configuration_spec(int include_optional) { + v1beta3_priority_level_configuration_spec_t* v1beta3_priority_level_configuration_spec = NULL; + if (include_optional) { + v1beta3_priority_level_configuration_spec = v1beta3_priority_level_configuration_spec_create( + // false, not to have infinite recursion + instantiate_v1beta3_limited_priority_level_configuration(0), + "0" + ); + } else { + v1beta3_priority_level_configuration_spec = v1beta3_priority_level_configuration_spec_create( + NULL, + "0" + ); + } + + return v1beta3_priority_level_configuration_spec; +} + + +#ifdef v1beta3_priority_level_configuration_spec_MAIN + +void test_v1beta3_priority_level_configuration_spec(int include_optional) { + v1beta3_priority_level_configuration_spec_t* v1beta3_priority_level_configuration_spec_1 = instantiate_v1beta3_priority_level_configuration_spec(include_optional); + + cJSON* jsonv1beta3_priority_level_configuration_spec_1 = v1beta3_priority_level_configuration_spec_convertToJSON(v1beta3_priority_level_configuration_spec_1); + printf("v1beta3_priority_level_configuration_spec :\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_spec_1)); + v1beta3_priority_level_configuration_spec_t* v1beta3_priority_level_configuration_spec_2 = v1beta3_priority_level_configuration_spec_parseFromJSON(jsonv1beta3_priority_level_configuration_spec_1); + cJSON* jsonv1beta3_priority_level_configuration_spec_2 = v1beta3_priority_level_configuration_spec_convertToJSON(v1beta3_priority_level_configuration_spec_2); + printf("repeating v1beta3_priority_level_configuration_spec:\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_spec_2)); +} + +int main() { + test_v1beta3_priority_level_configuration_spec(1); + test_v1beta3_priority_level_configuration_spec(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_priority_level_configuration_spec_MAIN +#endif // v1beta3_priority_level_configuration_spec_TEST diff --git a/kubernetes/unit-test/test_v1beta3_priority_level_configuration_status.c b/kubernetes/unit-test/test_v1beta3_priority_level_configuration_status.c new file mode 100644 index 00000000..1f79a40a --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_priority_level_configuration_status.c @@ -0,0 +1,58 @@ +#ifndef v1beta3_priority_level_configuration_status_TEST +#define v1beta3_priority_level_configuration_status_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_priority_level_configuration_status_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_priority_level_configuration_status.h" +v1beta3_priority_level_configuration_status_t* instantiate_v1beta3_priority_level_configuration_status(int include_optional); + + + +v1beta3_priority_level_configuration_status_t* instantiate_v1beta3_priority_level_configuration_status(int include_optional) { + v1beta3_priority_level_configuration_status_t* v1beta3_priority_level_configuration_status = NULL; + if (include_optional) { + v1beta3_priority_level_configuration_status = v1beta3_priority_level_configuration_status_create( + list_createList() + ); + } else { + v1beta3_priority_level_configuration_status = v1beta3_priority_level_configuration_status_create( + list_createList() + ); + } + + return v1beta3_priority_level_configuration_status; +} + + +#ifdef v1beta3_priority_level_configuration_status_MAIN + +void test_v1beta3_priority_level_configuration_status(int include_optional) { + v1beta3_priority_level_configuration_status_t* v1beta3_priority_level_configuration_status_1 = instantiate_v1beta3_priority_level_configuration_status(include_optional); + + cJSON* jsonv1beta3_priority_level_configuration_status_1 = v1beta3_priority_level_configuration_status_convertToJSON(v1beta3_priority_level_configuration_status_1); + printf("v1beta3_priority_level_configuration_status :\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_status_1)); + v1beta3_priority_level_configuration_status_t* v1beta3_priority_level_configuration_status_2 = v1beta3_priority_level_configuration_status_parseFromJSON(jsonv1beta3_priority_level_configuration_status_1); + cJSON* jsonv1beta3_priority_level_configuration_status_2 = v1beta3_priority_level_configuration_status_convertToJSON(v1beta3_priority_level_configuration_status_2); + printf("repeating v1beta3_priority_level_configuration_status:\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_status_2)); +} + +int main() { + test_v1beta3_priority_level_configuration_status(1); + test_v1beta3_priority_level_configuration_status(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_priority_level_configuration_status_MAIN +#endif // v1beta3_priority_level_configuration_status_TEST diff --git a/kubernetes/unit-test/test_v1beta3_queuing_configuration.c b/kubernetes/unit-test/test_v1beta3_queuing_configuration.c new file mode 100644 index 00000000..83e1c08f --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_queuing_configuration.c @@ -0,0 +1,62 @@ +#ifndef v1beta3_queuing_configuration_TEST +#define v1beta3_queuing_configuration_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_queuing_configuration_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_queuing_configuration.h" +v1beta3_queuing_configuration_t* instantiate_v1beta3_queuing_configuration(int include_optional); + + + +v1beta3_queuing_configuration_t* instantiate_v1beta3_queuing_configuration(int include_optional) { + v1beta3_queuing_configuration_t* v1beta3_queuing_configuration = NULL; + if (include_optional) { + v1beta3_queuing_configuration = v1beta3_queuing_configuration_create( + 56, + 56, + 56 + ); + } else { + v1beta3_queuing_configuration = v1beta3_queuing_configuration_create( + 56, + 56, + 56 + ); + } + + return v1beta3_queuing_configuration; +} + + +#ifdef v1beta3_queuing_configuration_MAIN + +void test_v1beta3_queuing_configuration(int include_optional) { + v1beta3_queuing_configuration_t* v1beta3_queuing_configuration_1 = instantiate_v1beta3_queuing_configuration(include_optional); + + cJSON* jsonv1beta3_queuing_configuration_1 = v1beta3_queuing_configuration_convertToJSON(v1beta3_queuing_configuration_1); + printf("v1beta3_queuing_configuration :\n%s\n", cJSON_Print(jsonv1beta3_queuing_configuration_1)); + v1beta3_queuing_configuration_t* v1beta3_queuing_configuration_2 = v1beta3_queuing_configuration_parseFromJSON(jsonv1beta3_queuing_configuration_1); + cJSON* jsonv1beta3_queuing_configuration_2 = v1beta3_queuing_configuration_convertToJSON(v1beta3_queuing_configuration_2); + printf("repeating v1beta3_queuing_configuration:\n%s\n", cJSON_Print(jsonv1beta3_queuing_configuration_2)); +} + +int main() { + test_v1beta3_queuing_configuration(1); + test_v1beta3_queuing_configuration(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_queuing_configuration_MAIN +#endif // v1beta3_queuing_configuration_TEST diff --git a/kubernetes/unit-test/test_v1beta3_resource_policy_rule.c b/kubernetes/unit-test/test_v1beta3_resource_policy_rule.c new file mode 100644 index 00000000..092c6d9b --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_resource_policy_rule.c @@ -0,0 +1,66 @@ +#ifndef v1beta3_resource_policy_rule_TEST +#define v1beta3_resource_policy_rule_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_resource_policy_rule_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_resource_policy_rule.h" +v1beta3_resource_policy_rule_t* instantiate_v1beta3_resource_policy_rule(int include_optional); + + + +v1beta3_resource_policy_rule_t* instantiate_v1beta3_resource_policy_rule(int include_optional) { + v1beta3_resource_policy_rule_t* v1beta3_resource_policy_rule = NULL; + if (include_optional) { + v1beta3_resource_policy_rule = v1beta3_resource_policy_rule_create( + list_createList(), + 1, + list_createList(), + list_createList(), + list_createList() + ); + } else { + v1beta3_resource_policy_rule = v1beta3_resource_policy_rule_create( + list_createList(), + 1, + list_createList(), + list_createList(), + list_createList() + ); + } + + return v1beta3_resource_policy_rule; +} + + +#ifdef v1beta3_resource_policy_rule_MAIN + +void test_v1beta3_resource_policy_rule(int include_optional) { + v1beta3_resource_policy_rule_t* v1beta3_resource_policy_rule_1 = instantiate_v1beta3_resource_policy_rule(include_optional); + + cJSON* jsonv1beta3_resource_policy_rule_1 = v1beta3_resource_policy_rule_convertToJSON(v1beta3_resource_policy_rule_1); + printf("v1beta3_resource_policy_rule :\n%s\n", cJSON_Print(jsonv1beta3_resource_policy_rule_1)); + v1beta3_resource_policy_rule_t* v1beta3_resource_policy_rule_2 = v1beta3_resource_policy_rule_parseFromJSON(jsonv1beta3_resource_policy_rule_1); + cJSON* jsonv1beta3_resource_policy_rule_2 = v1beta3_resource_policy_rule_convertToJSON(v1beta3_resource_policy_rule_2); + printf("repeating v1beta3_resource_policy_rule:\n%s\n", cJSON_Print(jsonv1beta3_resource_policy_rule_2)); +} + +int main() { + test_v1beta3_resource_policy_rule(1); + test_v1beta3_resource_policy_rule(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_resource_policy_rule_MAIN +#endif // v1beta3_resource_policy_rule_TEST diff --git a/kubernetes/unit-test/test_v1beta3_service_account_subject.c b/kubernetes/unit-test/test_v1beta3_service_account_subject.c new file mode 100644 index 00000000..b9888f27 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_service_account_subject.c @@ -0,0 +1,60 @@ +#ifndef v1beta3_service_account_subject_TEST +#define v1beta3_service_account_subject_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_service_account_subject_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_service_account_subject.h" +v1beta3_service_account_subject_t* instantiate_v1beta3_service_account_subject(int include_optional); + + + +v1beta3_service_account_subject_t* instantiate_v1beta3_service_account_subject(int include_optional) { + v1beta3_service_account_subject_t* v1beta3_service_account_subject = NULL; + if (include_optional) { + v1beta3_service_account_subject = v1beta3_service_account_subject_create( + "0", + "0" + ); + } else { + v1beta3_service_account_subject = v1beta3_service_account_subject_create( + "0", + "0" + ); + } + + return v1beta3_service_account_subject; +} + + +#ifdef v1beta3_service_account_subject_MAIN + +void test_v1beta3_service_account_subject(int include_optional) { + v1beta3_service_account_subject_t* v1beta3_service_account_subject_1 = instantiate_v1beta3_service_account_subject(include_optional); + + cJSON* jsonv1beta3_service_account_subject_1 = v1beta3_service_account_subject_convertToJSON(v1beta3_service_account_subject_1); + printf("v1beta3_service_account_subject :\n%s\n", cJSON_Print(jsonv1beta3_service_account_subject_1)); + v1beta3_service_account_subject_t* v1beta3_service_account_subject_2 = v1beta3_service_account_subject_parseFromJSON(jsonv1beta3_service_account_subject_1); + cJSON* jsonv1beta3_service_account_subject_2 = v1beta3_service_account_subject_convertToJSON(v1beta3_service_account_subject_2); + printf("repeating v1beta3_service_account_subject:\n%s\n", cJSON_Print(jsonv1beta3_service_account_subject_2)); +} + +int main() { + test_v1beta3_service_account_subject(1); + test_v1beta3_service_account_subject(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_service_account_subject_MAIN +#endif // v1beta3_service_account_subject_TEST diff --git a/kubernetes/unit-test/test_v1beta3_subject.c b/kubernetes/unit-test/test_v1beta3_subject.c new file mode 100644 index 00000000..987cb13e --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_subject.c @@ -0,0 +1,70 @@ +#ifndef v1beta3_subject_TEST +#define v1beta3_subject_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_subject_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_subject.h" +v1beta3_subject_t* instantiate_v1beta3_subject(int include_optional); + +#include "test_v1beta3_group_subject.c" +#include "test_v1beta3_service_account_subject.c" +#include "test_v1beta3_user_subject.c" + + +v1beta3_subject_t* instantiate_v1beta3_subject(int include_optional) { + v1beta3_subject_t* v1beta3_subject = NULL; + if (include_optional) { + v1beta3_subject = v1beta3_subject_create( + // false, not to have infinite recursion + instantiate_v1beta3_group_subject(0), + "0", + // false, not to have infinite recursion + instantiate_v1beta3_service_account_subject(0), + // false, not to have infinite recursion + instantiate_v1beta3_user_subject(0) + ); + } else { + v1beta3_subject = v1beta3_subject_create( + NULL, + "0", + NULL, + NULL + ); + } + + return v1beta3_subject; +} + + +#ifdef v1beta3_subject_MAIN + +void test_v1beta3_subject(int include_optional) { + v1beta3_subject_t* v1beta3_subject_1 = instantiate_v1beta3_subject(include_optional); + + cJSON* jsonv1beta3_subject_1 = v1beta3_subject_convertToJSON(v1beta3_subject_1); + printf("v1beta3_subject :\n%s\n", cJSON_Print(jsonv1beta3_subject_1)); + v1beta3_subject_t* v1beta3_subject_2 = v1beta3_subject_parseFromJSON(jsonv1beta3_subject_1); + cJSON* jsonv1beta3_subject_2 = v1beta3_subject_convertToJSON(v1beta3_subject_2); + printf("repeating v1beta3_subject:\n%s\n", cJSON_Print(jsonv1beta3_subject_2)); +} + +int main() { + test_v1beta3_subject(1); + test_v1beta3_subject(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_subject_MAIN +#endif // v1beta3_subject_TEST diff --git a/kubernetes/unit-test/test_v1beta3_user_subject.c b/kubernetes/unit-test/test_v1beta3_user_subject.c new file mode 100644 index 00000000..67ac62b2 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_user_subject.c @@ -0,0 +1,58 @@ +#ifndef v1beta3_user_subject_TEST +#define v1beta3_user_subject_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_user_subject_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_user_subject.h" +v1beta3_user_subject_t* instantiate_v1beta3_user_subject(int include_optional); + + + +v1beta3_user_subject_t* instantiate_v1beta3_user_subject(int include_optional) { + v1beta3_user_subject_t* v1beta3_user_subject = NULL; + if (include_optional) { + v1beta3_user_subject = v1beta3_user_subject_create( + "0" + ); + } else { + v1beta3_user_subject = v1beta3_user_subject_create( + "0" + ); + } + + return v1beta3_user_subject; +} + + +#ifdef v1beta3_user_subject_MAIN + +void test_v1beta3_user_subject(int include_optional) { + v1beta3_user_subject_t* v1beta3_user_subject_1 = instantiate_v1beta3_user_subject(include_optional); + + cJSON* jsonv1beta3_user_subject_1 = v1beta3_user_subject_convertToJSON(v1beta3_user_subject_1); + printf("v1beta3_user_subject :\n%s\n", cJSON_Print(jsonv1beta3_user_subject_1)); + v1beta3_user_subject_t* v1beta3_user_subject_2 = v1beta3_user_subject_parseFromJSON(jsonv1beta3_user_subject_1); + cJSON* jsonv1beta3_user_subject_2 = v1beta3_user_subject_convertToJSON(v1beta3_user_subject_2); + printf("repeating v1beta3_user_subject:\n%s\n", cJSON_Print(jsonv1beta3_user_subject_2)); +} + +int main() { + test_v1beta3_user_subject(1); + test_v1beta3_user_subject(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_user_subject_MAIN +#endif // v1beta3_user_subject_TEST diff --git a/kubernetes/unit-test/test_v2beta2_container_resource_metric_source.c b/kubernetes/unit-test/test_v2beta2_container_resource_metric_source.c deleted file mode 100644 index 09c65ea7..00000000 --- a/kubernetes/unit-test/test_v2beta2_container_resource_metric_source.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v2beta2_container_resource_metric_source_TEST -#define v2beta2_container_resource_metric_source_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_container_resource_metric_source_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_container_resource_metric_source.h" -v2beta2_container_resource_metric_source_t* instantiate_v2beta2_container_resource_metric_source(int include_optional); - -#include "test_v2beta2_metric_target.c" - - -v2beta2_container_resource_metric_source_t* instantiate_v2beta2_container_resource_metric_source(int include_optional) { - v2beta2_container_resource_metric_source_t* v2beta2_container_resource_metric_source = NULL; - if (include_optional) { - v2beta2_container_resource_metric_source = v2beta2_container_resource_metric_source_create( - "0", - "0", - // false, not to have infinite recursion - instantiate_v2beta2_metric_target(0) - ); - } else { - v2beta2_container_resource_metric_source = v2beta2_container_resource_metric_source_create( - "0", - "0", - NULL - ); - } - - return v2beta2_container_resource_metric_source; -} - - -#ifdef v2beta2_container_resource_metric_source_MAIN - -void test_v2beta2_container_resource_metric_source(int include_optional) { - v2beta2_container_resource_metric_source_t* v2beta2_container_resource_metric_source_1 = instantiate_v2beta2_container_resource_metric_source(include_optional); - - cJSON* jsonv2beta2_container_resource_metric_source_1 = v2beta2_container_resource_metric_source_convertToJSON(v2beta2_container_resource_metric_source_1); - printf("v2beta2_container_resource_metric_source :\n%s\n", cJSON_Print(jsonv2beta2_container_resource_metric_source_1)); - v2beta2_container_resource_metric_source_t* v2beta2_container_resource_metric_source_2 = v2beta2_container_resource_metric_source_parseFromJSON(jsonv2beta2_container_resource_metric_source_1); - cJSON* jsonv2beta2_container_resource_metric_source_2 = v2beta2_container_resource_metric_source_convertToJSON(v2beta2_container_resource_metric_source_2); - printf("repeating v2beta2_container_resource_metric_source:\n%s\n", cJSON_Print(jsonv2beta2_container_resource_metric_source_2)); -} - -int main() { - test_v2beta2_container_resource_metric_source(1); - test_v2beta2_container_resource_metric_source(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_container_resource_metric_source_MAIN -#endif // v2beta2_container_resource_metric_source_TEST diff --git a/kubernetes/unit-test/test_v2beta2_container_resource_metric_status.c b/kubernetes/unit-test/test_v2beta2_container_resource_metric_status.c deleted file mode 100644 index 63b276e8..00000000 --- a/kubernetes/unit-test/test_v2beta2_container_resource_metric_status.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v2beta2_container_resource_metric_status_TEST -#define v2beta2_container_resource_metric_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_container_resource_metric_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_container_resource_metric_status.h" -v2beta2_container_resource_metric_status_t* instantiate_v2beta2_container_resource_metric_status(int include_optional); - -#include "test_v2beta2_metric_value_status.c" - - -v2beta2_container_resource_metric_status_t* instantiate_v2beta2_container_resource_metric_status(int include_optional) { - v2beta2_container_resource_metric_status_t* v2beta2_container_resource_metric_status = NULL; - if (include_optional) { - v2beta2_container_resource_metric_status = v2beta2_container_resource_metric_status_create( - "0", - // false, not to have infinite recursion - instantiate_v2beta2_metric_value_status(0), - "0" - ); - } else { - v2beta2_container_resource_metric_status = v2beta2_container_resource_metric_status_create( - "0", - NULL, - "0" - ); - } - - return v2beta2_container_resource_metric_status; -} - - -#ifdef v2beta2_container_resource_metric_status_MAIN - -void test_v2beta2_container_resource_metric_status(int include_optional) { - v2beta2_container_resource_metric_status_t* v2beta2_container_resource_metric_status_1 = instantiate_v2beta2_container_resource_metric_status(include_optional); - - cJSON* jsonv2beta2_container_resource_metric_status_1 = v2beta2_container_resource_metric_status_convertToJSON(v2beta2_container_resource_metric_status_1); - printf("v2beta2_container_resource_metric_status :\n%s\n", cJSON_Print(jsonv2beta2_container_resource_metric_status_1)); - v2beta2_container_resource_metric_status_t* v2beta2_container_resource_metric_status_2 = v2beta2_container_resource_metric_status_parseFromJSON(jsonv2beta2_container_resource_metric_status_1); - cJSON* jsonv2beta2_container_resource_metric_status_2 = v2beta2_container_resource_metric_status_convertToJSON(v2beta2_container_resource_metric_status_2); - printf("repeating v2beta2_container_resource_metric_status:\n%s\n", cJSON_Print(jsonv2beta2_container_resource_metric_status_2)); -} - -int main() { - test_v2beta2_container_resource_metric_status(1); - test_v2beta2_container_resource_metric_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_container_resource_metric_status_MAIN -#endif // v2beta2_container_resource_metric_status_TEST diff --git a/kubernetes/unit-test/test_v2beta2_cross_version_object_reference.c b/kubernetes/unit-test/test_v2beta2_cross_version_object_reference.c deleted file mode 100644 index 29b9f325..00000000 --- a/kubernetes/unit-test/test_v2beta2_cross_version_object_reference.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v2beta2_cross_version_object_reference_TEST -#define v2beta2_cross_version_object_reference_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_cross_version_object_reference_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_cross_version_object_reference.h" -v2beta2_cross_version_object_reference_t* instantiate_v2beta2_cross_version_object_reference(int include_optional); - - - -v2beta2_cross_version_object_reference_t* instantiate_v2beta2_cross_version_object_reference(int include_optional) { - v2beta2_cross_version_object_reference_t* v2beta2_cross_version_object_reference = NULL; - if (include_optional) { - v2beta2_cross_version_object_reference = v2beta2_cross_version_object_reference_create( - "0", - "0", - "0" - ); - } else { - v2beta2_cross_version_object_reference = v2beta2_cross_version_object_reference_create( - "0", - "0", - "0" - ); - } - - return v2beta2_cross_version_object_reference; -} - - -#ifdef v2beta2_cross_version_object_reference_MAIN - -void test_v2beta2_cross_version_object_reference(int include_optional) { - v2beta2_cross_version_object_reference_t* v2beta2_cross_version_object_reference_1 = instantiate_v2beta2_cross_version_object_reference(include_optional); - - cJSON* jsonv2beta2_cross_version_object_reference_1 = v2beta2_cross_version_object_reference_convertToJSON(v2beta2_cross_version_object_reference_1); - printf("v2beta2_cross_version_object_reference :\n%s\n", cJSON_Print(jsonv2beta2_cross_version_object_reference_1)); - v2beta2_cross_version_object_reference_t* v2beta2_cross_version_object_reference_2 = v2beta2_cross_version_object_reference_parseFromJSON(jsonv2beta2_cross_version_object_reference_1); - cJSON* jsonv2beta2_cross_version_object_reference_2 = v2beta2_cross_version_object_reference_convertToJSON(v2beta2_cross_version_object_reference_2); - printf("repeating v2beta2_cross_version_object_reference:\n%s\n", cJSON_Print(jsonv2beta2_cross_version_object_reference_2)); -} - -int main() { - test_v2beta2_cross_version_object_reference(1); - test_v2beta2_cross_version_object_reference(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_cross_version_object_reference_MAIN -#endif // v2beta2_cross_version_object_reference_TEST diff --git a/kubernetes/unit-test/test_v2beta2_external_metric_source.c b/kubernetes/unit-test/test_v2beta2_external_metric_source.c deleted file mode 100644 index 900abe13..00000000 --- a/kubernetes/unit-test/test_v2beta2_external_metric_source.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v2beta2_external_metric_source_TEST -#define v2beta2_external_metric_source_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_external_metric_source_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_external_metric_source.h" -v2beta2_external_metric_source_t* instantiate_v2beta2_external_metric_source(int include_optional); - -#include "test_v2beta2_metric_identifier.c" -#include "test_v2beta2_metric_target.c" - - -v2beta2_external_metric_source_t* instantiate_v2beta2_external_metric_source(int include_optional) { - v2beta2_external_metric_source_t* v2beta2_external_metric_source = NULL; - if (include_optional) { - v2beta2_external_metric_source = v2beta2_external_metric_source_create( - // false, not to have infinite recursion - instantiate_v2beta2_metric_identifier(0), - // false, not to have infinite recursion - instantiate_v2beta2_metric_target(0) - ); - } else { - v2beta2_external_metric_source = v2beta2_external_metric_source_create( - NULL, - NULL - ); - } - - return v2beta2_external_metric_source; -} - - -#ifdef v2beta2_external_metric_source_MAIN - -void test_v2beta2_external_metric_source(int include_optional) { - v2beta2_external_metric_source_t* v2beta2_external_metric_source_1 = instantiate_v2beta2_external_metric_source(include_optional); - - cJSON* jsonv2beta2_external_metric_source_1 = v2beta2_external_metric_source_convertToJSON(v2beta2_external_metric_source_1); - printf("v2beta2_external_metric_source :\n%s\n", cJSON_Print(jsonv2beta2_external_metric_source_1)); - v2beta2_external_metric_source_t* v2beta2_external_metric_source_2 = v2beta2_external_metric_source_parseFromJSON(jsonv2beta2_external_metric_source_1); - cJSON* jsonv2beta2_external_metric_source_2 = v2beta2_external_metric_source_convertToJSON(v2beta2_external_metric_source_2); - printf("repeating v2beta2_external_metric_source:\n%s\n", cJSON_Print(jsonv2beta2_external_metric_source_2)); -} - -int main() { - test_v2beta2_external_metric_source(1); - test_v2beta2_external_metric_source(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_external_metric_source_MAIN -#endif // v2beta2_external_metric_source_TEST diff --git a/kubernetes/unit-test/test_v2beta2_external_metric_status.c b/kubernetes/unit-test/test_v2beta2_external_metric_status.c deleted file mode 100644 index 368bd032..00000000 --- a/kubernetes/unit-test/test_v2beta2_external_metric_status.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v2beta2_external_metric_status_TEST -#define v2beta2_external_metric_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_external_metric_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_external_metric_status.h" -v2beta2_external_metric_status_t* instantiate_v2beta2_external_metric_status(int include_optional); - -#include "test_v2beta2_metric_value_status.c" -#include "test_v2beta2_metric_identifier.c" - - -v2beta2_external_metric_status_t* instantiate_v2beta2_external_metric_status(int include_optional) { - v2beta2_external_metric_status_t* v2beta2_external_metric_status = NULL; - if (include_optional) { - v2beta2_external_metric_status = v2beta2_external_metric_status_create( - // false, not to have infinite recursion - instantiate_v2beta2_metric_value_status(0), - // false, not to have infinite recursion - instantiate_v2beta2_metric_identifier(0) - ); - } else { - v2beta2_external_metric_status = v2beta2_external_metric_status_create( - NULL, - NULL - ); - } - - return v2beta2_external_metric_status; -} - - -#ifdef v2beta2_external_metric_status_MAIN - -void test_v2beta2_external_metric_status(int include_optional) { - v2beta2_external_metric_status_t* v2beta2_external_metric_status_1 = instantiate_v2beta2_external_metric_status(include_optional); - - cJSON* jsonv2beta2_external_metric_status_1 = v2beta2_external_metric_status_convertToJSON(v2beta2_external_metric_status_1); - printf("v2beta2_external_metric_status :\n%s\n", cJSON_Print(jsonv2beta2_external_metric_status_1)); - v2beta2_external_metric_status_t* v2beta2_external_metric_status_2 = v2beta2_external_metric_status_parseFromJSON(jsonv2beta2_external_metric_status_1); - cJSON* jsonv2beta2_external_metric_status_2 = v2beta2_external_metric_status_convertToJSON(v2beta2_external_metric_status_2); - printf("repeating v2beta2_external_metric_status:\n%s\n", cJSON_Print(jsonv2beta2_external_metric_status_2)); -} - -int main() { - test_v2beta2_external_metric_status(1); - test_v2beta2_external_metric_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_external_metric_status_MAIN -#endif // v2beta2_external_metric_status_TEST diff --git a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler.c b/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler.c deleted file mode 100644 index ecaaed8a..00000000 --- a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler.c +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef v2beta2_horizontal_pod_autoscaler_TEST -#define v2beta2_horizontal_pod_autoscaler_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_horizontal_pod_autoscaler_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_horizontal_pod_autoscaler.h" -v2beta2_horizontal_pod_autoscaler_t* instantiate_v2beta2_horizontal_pod_autoscaler(int include_optional); - -#include "test_v1_object_meta.c" -#include "test_v2beta2_horizontal_pod_autoscaler_spec.c" -#include "test_v2beta2_horizontal_pod_autoscaler_status.c" - - -v2beta2_horizontal_pod_autoscaler_t* instantiate_v2beta2_horizontal_pod_autoscaler(int include_optional) { - v2beta2_horizontal_pod_autoscaler_t* v2beta2_horizontal_pod_autoscaler = NULL; - if (include_optional) { - v2beta2_horizontal_pod_autoscaler = v2beta2_horizontal_pod_autoscaler_create( - "0", - "0", - // false, not to have infinite recursion - instantiate_v1_object_meta(0), - // false, not to have infinite recursion - instantiate_v2beta2_horizontal_pod_autoscaler_spec(0), - // false, not to have infinite recursion - instantiate_v2beta2_horizontal_pod_autoscaler_status(0) - ); - } else { - v2beta2_horizontal_pod_autoscaler = v2beta2_horizontal_pod_autoscaler_create( - "0", - "0", - NULL, - NULL, - NULL - ); - } - - return v2beta2_horizontal_pod_autoscaler; -} - - -#ifdef v2beta2_horizontal_pod_autoscaler_MAIN - -void test_v2beta2_horizontal_pod_autoscaler(int include_optional) { - v2beta2_horizontal_pod_autoscaler_t* v2beta2_horizontal_pod_autoscaler_1 = instantiate_v2beta2_horizontal_pod_autoscaler(include_optional); - - cJSON* jsonv2beta2_horizontal_pod_autoscaler_1 = v2beta2_horizontal_pod_autoscaler_convertToJSON(v2beta2_horizontal_pod_autoscaler_1); - printf("v2beta2_horizontal_pod_autoscaler :\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_1)); - v2beta2_horizontal_pod_autoscaler_t* v2beta2_horizontal_pod_autoscaler_2 = v2beta2_horizontal_pod_autoscaler_parseFromJSON(jsonv2beta2_horizontal_pod_autoscaler_1); - cJSON* jsonv2beta2_horizontal_pod_autoscaler_2 = v2beta2_horizontal_pod_autoscaler_convertToJSON(v2beta2_horizontal_pod_autoscaler_2); - printf("repeating v2beta2_horizontal_pod_autoscaler:\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_2)); -} - -int main() { - test_v2beta2_horizontal_pod_autoscaler(1); - test_v2beta2_horizontal_pod_autoscaler(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_horizontal_pod_autoscaler_MAIN -#endif // v2beta2_horizontal_pod_autoscaler_TEST diff --git a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_behavior.c b/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_behavior.c deleted file mode 100644 index d80a36a2..00000000 --- a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_behavior.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v2beta2_horizontal_pod_autoscaler_behavior_TEST -#define v2beta2_horizontal_pod_autoscaler_behavior_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_horizontal_pod_autoscaler_behavior_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_horizontal_pod_autoscaler_behavior.h" -v2beta2_horizontal_pod_autoscaler_behavior_t* instantiate_v2beta2_horizontal_pod_autoscaler_behavior(int include_optional); - -#include "test_v2beta2_hpa_scaling_rules.c" -#include "test_v2beta2_hpa_scaling_rules.c" - - -v2beta2_horizontal_pod_autoscaler_behavior_t* instantiate_v2beta2_horizontal_pod_autoscaler_behavior(int include_optional) { - v2beta2_horizontal_pod_autoscaler_behavior_t* v2beta2_horizontal_pod_autoscaler_behavior = NULL; - if (include_optional) { - v2beta2_horizontal_pod_autoscaler_behavior = v2beta2_horizontal_pod_autoscaler_behavior_create( - // false, not to have infinite recursion - instantiate_v2beta2_hpa_scaling_rules(0), - // false, not to have infinite recursion - instantiate_v2beta2_hpa_scaling_rules(0) - ); - } else { - v2beta2_horizontal_pod_autoscaler_behavior = v2beta2_horizontal_pod_autoscaler_behavior_create( - NULL, - NULL - ); - } - - return v2beta2_horizontal_pod_autoscaler_behavior; -} - - -#ifdef v2beta2_horizontal_pod_autoscaler_behavior_MAIN - -void test_v2beta2_horizontal_pod_autoscaler_behavior(int include_optional) { - v2beta2_horizontal_pod_autoscaler_behavior_t* v2beta2_horizontal_pod_autoscaler_behavior_1 = instantiate_v2beta2_horizontal_pod_autoscaler_behavior(include_optional); - - cJSON* jsonv2beta2_horizontal_pod_autoscaler_behavior_1 = v2beta2_horizontal_pod_autoscaler_behavior_convertToJSON(v2beta2_horizontal_pod_autoscaler_behavior_1); - printf("v2beta2_horizontal_pod_autoscaler_behavior :\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_behavior_1)); - v2beta2_horizontal_pod_autoscaler_behavior_t* v2beta2_horizontal_pod_autoscaler_behavior_2 = v2beta2_horizontal_pod_autoscaler_behavior_parseFromJSON(jsonv2beta2_horizontal_pod_autoscaler_behavior_1); - cJSON* jsonv2beta2_horizontal_pod_autoscaler_behavior_2 = v2beta2_horizontal_pod_autoscaler_behavior_convertToJSON(v2beta2_horizontal_pod_autoscaler_behavior_2); - printf("repeating v2beta2_horizontal_pod_autoscaler_behavior:\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_behavior_2)); -} - -int main() { - test_v2beta2_horizontal_pod_autoscaler_behavior(1); - test_v2beta2_horizontal_pod_autoscaler_behavior(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_horizontal_pod_autoscaler_behavior_MAIN -#endif // v2beta2_horizontal_pod_autoscaler_behavior_TEST diff --git a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_condition.c b/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_condition.c deleted file mode 100644 index 90d5f6b8..00000000 --- a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_condition.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v2beta2_horizontal_pod_autoscaler_condition_TEST -#define v2beta2_horizontal_pod_autoscaler_condition_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_horizontal_pod_autoscaler_condition_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_horizontal_pod_autoscaler_condition.h" -v2beta2_horizontal_pod_autoscaler_condition_t* instantiate_v2beta2_horizontal_pod_autoscaler_condition(int include_optional); - - - -v2beta2_horizontal_pod_autoscaler_condition_t* instantiate_v2beta2_horizontal_pod_autoscaler_condition(int include_optional) { - v2beta2_horizontal_pod_autoscaler_condition_t* v2beta2_horizontal_pod_autoscaler_condition = NULL; - if (include_optional) { - v2beta2_horizontal_pod_autoscaler_condition = v2beta2_horizontal_pod_autoscaler_condition_create( - "2013-10-20T19:20:30+01:00", - "0", - "0", - "0", - "0" - ); - } else { - v2beta2_horizontal_pod_autoscaler_condition = v2beta2_horizontal_pod_autoscaler_condition_create( - "2013-10-20T19:20:30+01:00", - "0", - "0", - "0", - "0" - ); - } - - return v2beta2_horizontal_pod_autoscaler_condition; -} - - -#ifdef v2beta2_horizontal_pod_autoscaler_condition_MAIN - -void test_v2beta2_horizontal_pod_autoscaler_condition(int include_optional) { - v2beta2_horizontal_pod_autoscaler_condition_t* v2beta2_horizontal_pod_autoscaler_condition_1 = instantiate_v2beta2_horizontal_pod_autoscaler_condition(include_optional); - - cJSON* jsonv2beta2_horizontal_pod_autoscaler_condition_1 = v2beta2_horizontal_pod_autoscaler_condition_convertToJSON(v2beta2_horizontal_pod_autoscaler_condition_1); - printf("v2beta2_horizontal_pod_autoscaler_condition :\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_condition_1)); - v2beta2_horizontal_pod_autoscaler_condition_t* v2beta2_horizontal_pod_autoscaler_condition_2 = v2beta2_horizontal_pod_autoscaler_condition_parseFromJSON(jsonv2beta2_horizontal_pod_autoscaler_condition_1); - cJSON* jsonv2beta2_horizontal_pod_autoscaler_condition_2 = v2beta2_horizontal_pod_autoscaler_condition_convertToJSON(v2beta2_horizontal_pod_autoscaler_condition_2); - printf("repeating v2beta2_horizontal_pod_autoscaler_condition:\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_condition_2)); -} - -int main() { - test_v2beta2_horizontal_pod_autoscaler_condition(1); - test_v2beta2_horizontal_pod_autoscaler_condition(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_horizontal_pod_autoscaler_condition_MAIN -#endif // v2beta2_horizontal_pod_autoscaler_condition_TEST diff --git a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_list.c b/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_list.c deleted file mode 100644 index 341099b2..00000000 --- a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_list.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v2beta2_horizontal_pod_autoscaler_list_TEST -#define v2beta2_horizontal_pod_autoscaler_list_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_horizontal_pod_autoscaler_list_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_horizontal_pod_autoscaler_list.h" -v2beta2_horizontal_pod_autoscaler_list_t* instantiate_v2beta2_horizontal_pod_autoscaler_list(int include_optional); - -#include "test_v1_list_meta.c" - - -v2beta2_horizontal_pod_autoscaler_list_t* instantiate_v2beta2_horizontal_pod_autoscaler_list(int include_optional) { - v2beta2_horizontal_pod_autoscaler_list_t* v2beta2_horizontal_pod_autoscaler_list = NULL; - if (include_optional) { - v2beta2_horizontal_pod_autoscaler_list = v2beta2_horizontal_pod_autoscaler_list_create( - "0", - list_createList(), - "0", - // false, not to have infinite recursion - instantiate_v1_list_meta(0) - ); - } else { - v2beta2_horizontal_pod_autoscaler_list = v2beta2_horizontal_pod_autoscaler_list_create( - "0", - list_createList(), - "0", - NULL - ); - } - - return v2beta2_horizontal_pod_autoscaler_list; -} - - -#ifdef v2beta2_horizontal_pod_autoscaler_list_MAIN - -void test_v2beta2_horizontal_pod_autoscaler_list(int include_optional) { - v2beta2_horizontal_pod_autoscaler_list_t* v2beta2_horizontal_pod_autoscaler_list_1 = instantiate_v2beta2_horizontal_pod_autoscaler_list(include_optional); - - cJSON* jsonv2beta2_horizontal_pod_autoscaler_list_1 = v2beta2_horizontal_pod_autoscaler_list_convertToJSON(v2beta2_horizontal_pod_autoscaler_list_1); - printf("v2beta2_horizontal_pod_autoscaler_list :\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_list_1)); - v2beta2_horizontal_pod_autoscaler_list_t* v2beta2_horizontal_pod_autoscaler_list_2 = v2beta2_horizontal_pod_autoscaler_list_parseFromJSON(jsonv2beta2_horizontal_pod_autoscaler_list_1); - cJSON* jsonv2beta2_horizontal_pod_autoscaler_list_2 = v2beta2_horizontal_pod_autoscaler_list_convertToJSON(v2beta2_horizontal_pod_autoscaler_list_2); - printf("repeating v2beta2_horizontal_pod_autoscaler_list:\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_list_2)); -} - -int main() { - test_v2beta2_horizontal_pod_autoscaler_list(1); - test_v2beta2_horizontal_pod_autoscaler_list(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_horizontal_pod_autoscaler_list_MAIN -#endif // v2beta2_horizontal_pod_autoscaler_list_TEST diff --git a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_spec.c b/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_spec.c deleted file mode 100644 index e3b61184..00000000 --- a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_spec.c +++ /dev/null @@ -1,70 +0,0 @@ -#ifndef v2beta2_horizontal_pod_autoscaler_spec_TEST -#define v2beta2_horizontal_pod_autoscaler_spec_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_horizontal_pod_autoscaler_spec_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_horizontal_pod_autoscaler_spec.h" -v2beta2_horizontal_pod_autoscaler_spec_t* instantiate_v2beta2_horizontal_pod_autoscaler_spec(int include_optional); - -#include "test_v2beta2_horizontal_pod_autoscaler_behavior.c" -#include "test_v2beta2_cross_version_object_reference.c" - - -v2beta2_horizontal_pod_autoscaler_spec_t* instantiate_v2beta2_horizontal_pod_autoscaler_spec(int include_optional) { - v2beta2_horizontal_pod_autoscaler_spec_t* v2beta2_horizontal_pod_autoscaler_spec = NULL; - if (include_optional) { - v2beta2_horizontal_pod_autoscaler_spec = v2beta2_horizontal_pod_autoscaler_spec_create( - // false, not to have infinite recursion - instantiate_v2beta2_horizontal_pod_autoscaler_behavior(0), - 56, - list_createList(), - 56, - // false, not to have infinite recursion - instantiate_v2beta2_cross_version_object_reference(0) - ); - } else { - v2beta2_horizontal_pod_autoscaler_spec = v2beta2_horizontal_pod_autoscaler_spec_create( - NULL, - 56, - list_createList(), - 56, - NULL - ); - } - - return v2beta2_horizontal_pod_autoscaler_spec; -} - - -#ifdef v2beta2_horizontal_pod_autoscaler_spec_MAIN - -void test_v2beta2_horizontal_pod_autoscaler_spec(int include_optional) { - v2beta2_horizontal_pod_autoscaler_spec_t* v2beta2_horizontal_pod_autoscaler_spec_1 = instantiate_v2beta2_horizontal_pod_autoscaler_spec(include_optional); - - cJSON* jsonv2beta2_horizontal_pod_autoscaler_spec_1 = v2beta2_horizontal_pod_autoscaler_spec_convertToJSON(v2beta2_horizontal_pod_autoscaler_spec_1); - printf("v2beta2_horizontal_pod_autoscaler_spec :\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_spec_1)); - v2beta2_horizontal_pod_autoscaler_spec_t* v2beta2_horizontal_pod_autoscaler_spec_2 = v2beta2_horizontal_pod_autoscaler_spec_parseFromJSON(jsonv2beta2_horizontal_pod_autoscaler_spec_1); - cJSON* jsonv2beta2_horizontal_pod_autoscaler_spec_2 = v2beta2_horizontal_pod_autoscaler_spec_convertToJSON(v2beta2_horizontal_pod_autoscaler_spec_2); - printf("repeating v2beta2_horizontal_pod_autoscaler_spec:\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_spec_2)); -} - -int main() { - test_v2beta2_horizontal_pod_autoscaler_spec(1); - test_v2beta2_horizontal_pod_autoscaler_spec(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_horizontal_pod_autoscaler_spec_MAIN -#endif // v2beta2_horizontal_pod_autoscaler_spec_TEST diff --git a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_status.c b/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_status.c deleted file mode 100644 index 84f0302d..00000000 --- a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_status.c +++ /dev/null @@ -1,68 +0,0 @@ -#ifndef v2beta2_horizontal_pod_autoscaler_status_TEST -#define v2beta2_horizontal_pod_autoscaler_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_horizontal_pod_autoscaler_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_horizontal_pod_autoscaler_status.h" -v2beta2_horizontal_pod_autoscaler_status_t* instantiate_v2beta2_horizontal_pod_autoscaler_status(int include_optional); - - - -v2beta2_horizontal_pod_autoscaler_status_t* instantiate_v2beta2_horizontal_pod_autoscaler_status(int include_optional) { - v2beta2_horizontal_pod_autoscaler_status_t* v2beta2_horizontal_pod_autoscaler_status = NULL; - if (include_optional) { - v2beta2_horizontal_pod_autoscaler_status = v2beta2_horizontal_pod_autoscaler_status_create( - list_createList(), - list_createList(), - 56, - 56, - "2013-10-20T19:20:30+01:00", - 56 - ); - } else { - v2beta2_horizontal_pod_autoscaler_status = v2beta2_horizontal_pod_autoscaler_status_create( - list_createList(), - list_createList(), - 56, - 56, - "2013-10-20T19:20:30+01:00", - 56 - ); - } - - return v2beta2_horizontal_pod_autoscaler_status; -} - - -#ifdef v2beta2_horizontal_pod_autoscaler_status_MAIN - -void test_v2beta2_horizontal_pod_autoscaler_status(int include_optional) { - v2beta2_horizontal_pod_autoscaler_status_t* v2beta2_horizontal_pod_autoscaler_status_1 = instantiate_v2beta2_horizontal_pod_autoscaler_status(include_optional); - - cJSON* jsonv2beta2_horizontal_pod_autoscaler_status_1 = v2beta2_horizontal_pod_autoscaler_status_convertToJSON(v2beta2_horizontal_pod_autoscaler_status_1); - printf("v2beta2_horizontal_pod_autoscaler_status :\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_status_1)); - v2beta2_horizontal_pod_autoscaler_status_t* v2beta2_horizontal_pod_autoscaler_status_2 = v2beta2_horizontal_pod_autoscaler_status_parseFromJSON(jsonv2beta2_horizontal_pod_autoscaler_status_1); - cJSON* jsonv2beta2_horizontal_pod_autoscaler_status_2 = v2beta2_horizontal_pod_autoscaler_status_convertToJSON(v2beta2_horizontal_pod_autoscaler_status_2); - printf("repeating v2beta2_horizontal_pod_autoscaler_status:\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_status_2)); -} - -int main() { - test_v2beta2_horizontal_pod_autoscaler_status(1); - test_v2beta2_horizontal_pod_autoscaler_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_horizontal_pod_autoscaler_status_MAIN -#endif // v2beta2_horizontal_pod_autoscaler_status_TEST diff --git a/kubernetes/unit-test/test_v2beta2_hpa_scaling_policy.c b/kubernetes/unit-test/test_v2beta2_hpa_scaling_policy.c deleted file mode 100644 index 299c0dd1..00000000 --- a/kubernetes/unit-test/test_v2beta2_hpa_scaling_policy.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v2beta2_hpa_scaling_policy_TEST -#define v2beta2_hpa_scaling_policy_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_hpa_scaling_policy_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_hpa_scaling_policy.h" -v2beta2_hpa_scaling_policy_t* instantiate_v2beta2_hpa_scaling_policy(int include_optional); - - - -v2beta2_hpa_scaling_policy_t* instantiate_v2beta2_hpa_scaling_policy(int include_optional) { - v2beta2_hpa_scaling_policy_t* v2beta2_hpa_scaling_policy = NULL; - if (include_optional) { - v2beta2_hpa_scaling_policy = v2beta2_hpa_scaling_policy_create( - 56, - "0", - 56 - ); - } else { - v2beta2_hpa_scaling_policy = v2beta2_hpa_scaling_policy_create( - 56, - "0", - 56 - ); - } - - return v2beta2_hpa_scaling_policy; -} - - -#ifdef v2beta2_hpa_scaling_policy_MAIN - -void test_v2beta2_hpa_scaling_policy(int include_optional) { - v2beta2_hpa_scaling_policy_t* v2beta2_hpa_scaling_policy_1 = instantiate_v2beta2_hpa_scaling_policy(include_optional); - - cJSON* jsonv2beta2_hpa_scaling_policy_1 = v2beta2_hpa_scaling_policy_convertToJSON(v2beta2_hpa_scaling_policy_1); - printf("v2beta2_hpa_scaling_policy :\n%s\n", cJSON_Print(jsonv2beta2_hpa_scaling_policy_1)); - v2beta2_hpa_scaling_policy_t* v2beta2_hpa_scaling_policy_2 = v2beta2_hpa_scaling_policy_parseFromJSON(jsonv2beta2_hpa_scaling_policy_1); - cJSON* jsonv2beta2_hpa_scaling_policy_2 = v2beta2_hpa_scaling_policy_convertToJSON(v2beta2_hpa_scaling_policy_2); - printf("repeating v2beta2_hpa_scaling_policy:\n%s\n", cJSON_Print(jsonv2beta2_hpa_scaling_policy_2)); -} - -int main() { - test_v2beta2_hpa_scaling_policy(1); - test_v2beta2_hpa_scaling_policy(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_hpa_scaling_policy_MAIN -#endif // v2beta2_hpa_scaling_policy_TEST diff --git a/kubernetes/unit-test/test_v2beta2_hpa_scaling_rules.c b/kubernetes/unit-test/test_v2beta2_hpa_scaling_rules.c deleted file mode 100644 index 33a49ccc..00000000 --- a/kubernetes/unit-test/test_v2beta2_hpa_scaling_rules.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v2beta2_hpa_scaling_rules_TEST -#define v2beta2_hpa_scaling_rules_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_hpa_scaling_rules_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_hpa_scaling_rules.h" -v2beta2_hpa_scaling_rules_t* instantiate_v2beta2_hpa_scaling_rules(int include_optional); - - - -v2beta2_hpa_scaling_rules_t* instantiate_v2beta2_hpa_scaling_rules(int include_optional) { - v2beta2_hpa_scaling_rules_t* v2beta2_hpa_scaling_rules = NULL; - if (include_optional) { - v2beta2_hpa_scaling_rules = v2beta2_hpa_scaling_rules_create( - list_createList(), - "0", - 56 - ); - } else { - v2beta2_hpa_scaling_rules = v2beta2_hpa_scaling_rules_create( - list_createList(), - "0", - 56 - ); - } - - return v2beta2_hpa_scaling_rules; -} - - -#ifdef v2beta2_hpa_scaling_rules_MAIN - -void test_v2beta2_hpa_scaling_rules(int include_optional) { - v2beta2_hpa_scaling_rules_t* v2beta2_hpa_scaling_rules_1 = instantiate_v2beta2_hpa_scaling_rules(include_optional); - - cJSON* jsonv2beta2_hpa_scaling_rules_1 = v2beta2_hpa_scaling_rules_convertToJSON(v2beta2_hpa_scaling_rules_1); - printf("v2beta2_hpa_scaling_rules :\n%s\n", cJSON_Print(jsonv2beta2_hpa_scaling_rules_1)); - v2beta2_hpa_scaling_rules_t* v2beta2_hpa_scaling_rules_2 = v2beta2_hpa_scaling_rules_parseFromJSON(jsonv2beta2_hpa_scaling_rules_1); - cJSON* jsonv2beta2_hpa_scaling_rules_2 = v2beta2_hpa_scaling_rules_convertToJSON(v2beta2_hpa_scaling_rules_2); - printf("repeating v2beta2_hpa_scaling_rules:\n%s\n", cJSON_Print(jsonv2beta2_hpa_scaling_rules_2)); -} - -int main() { - test_v2beta2_hpa_scaling_rules(1); - test_v2beta2_hpa_scaling_rules(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_hpa_scaling_rules_MAIN -#endif // v2beta2_hpa_scaling_rules_TEST diff --git a/kubernetes/unit-test/test_v2beta2_metric_identifier.c b/kubernetes/unit-test/test_v2beta2_metric_identifier.c deleted file mode 100644 index 61b6c407..00000000 --- a/kubernetes/unit-test/test_v2beta2_metric_identifier.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v2beta2_metric_identifier_TEST -#define v2beta2_metric_identifier_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_metric_identifier_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_metric_identifier.h" -v2beta2_metric_identifier_t* instantiate_v2beta2_metric_identifier(int include_optional); - -#include "test_v1_label_selector.c" - - -v2beta2_metric_identifier_t* instantiate_v2beta2_metric_identifier(int include_optional) { - v2beta2_metric_identifier_t* v2beta2_metric_identifier = NULL; - if (include_optional) { - v2beta2_metric_identifier = v2beta2_metric_identifier_create( - "0", - // false, not to have infinite recursion - instantiate_v1_label_selector(0) - ); - } else { - v2beta2_metric_identifier = v2beta2_metric_identifier_create( - "0", - NULL - ); - } - - return v2beta2_metric_identifier; -} - - -#ifdef v2beta2_metric_identifier_MAIN - -void test_v2beta2_metric_identifier(int include_optional) { - v2beta2_metric_identifier_t* v2beta2_metric_identifier_1 = instantiate_v2beta2_metric_identifier(include_optional); - - cJSON* jsonv2beta2_metric_identifier_1 = v2beta2_metric_identifier_convertToJSON(v2beta2_metric_identifier_1); - printf("v2beta2_metric_identifier :\n%s\n", cJSON_Print(jsonv2beta2_metric_identifier_1)); - v2beta2_metric_identifier_t* v2beta2_metric_identifier_2 = v2beta2_metric_identifier_parseFromJSON(jsonv2beta2_metric_identifier_1); - cJSON* jsonv2beta2_metric_identifier_2 = v2beta2_metric_identifier_convertToJSON(v2beta2_metric_identifier_2); - printf("repeating v2beta2_metric_identifier:\n%s\n", cJSON_Print(jsonv2beta2_metric_identifier_2)); -} - -int main() { - test_v2beta2_metric_identifier(1); - test_v2beta2_metric_identifier(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_metric_identifier_MAIN -#endif // v2beta2_metric_identifier_TEST diff --git a/kubernetes/unit-test/test_v2beta2_metric_spec.c b/kubernetes/unit-test/test_v2beta2_metric_spec.c deleted file mode 100644 index 14f8bbe7..00000000 --- a/kubernetes/unit-test/test_v2beta2_metric_spec.c +++ /dev/null @@ -1,78 +0,0 @@ -#ifndef v2beta2_metric_spec_TEST -#define v2beta2_metric_spec_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_metric_spec_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_metric_spec.h" -v2beta2_metric_spec_t* instantiate_v2beta2_metric_spec(int include_optional); - -#include "test_v2beta2_container_resource_metric_source.c" -#include "test_v2beta2_external_metric_source.c" -#include "test_v2beta2_object_metric_source.c" -#include "test_v2beta2_pods_metric_source.c" -#include "test_v2beta2_resource_metric_source.c" - - -v2beta2_metric_spec_t* instantiate_v2beta2_metric_spec(int include_optional) { - v2beta2_metric_spec_t* v2beta2_metric_spec = NULL; - if (include_optional) { - v2beta2_metric_spec = v2beta2_metric_spec_create( - // false, not to have infinite recursion - instantiate_v2beta2_container_resource_metric_source(0), - // false, not to have infinite recursion - instantiate_v2beta2_external_metric_source(0), - // false, not to have infinite recursion - instantiate_v2beta2_object_metric_source(0), - // false, not to have infinite recursion - instantiate_v2beta2_pods_metric_source(0), - // false, not to have infinite recursion - instantiate_v2beta2_resource_metric_source(0), - "0" - ); - } else { - v2beta2_metric_spec = v2beta2_metric_spec_create( - NULL, - NULL, - NULL, - NULL, - NULL, - "0" - ); - } - - return v2beta2_metric_spec; -} - - -#ifdef v2beta2_metric_spec_MAIN - -void test_v2beta2_metric_spec(int include_optional) { - v2beta2_metric_spec_t* v2beta2_metric_spec_1 = instantiate_v2beta2_metric_spec(include_optional); - - cJSON* jsonv2beta2_metric_spec_1 = v2beta2_metric_spec_convertToJSON(v2beta2_metric_spec_1); - printf("v2beta2_metric_spec :\n%s\n", cJSON_Print(jsonv2beta2_metric_spec_1)); - v2beta2_metric_spec_t* v2beta2_metric_spec_2 = v2beta2_metric_spec_parseFromJSON(jsonv2beta2_metric_spec_1); - cJSON* jsonv2beta2_metric_spec_2 = v2beta2_metric_spec_convertToJSON(v2beta2_metric_spec_2); - printf("repeating v2beta2_metric_spec:\n%s\n", cJSON_Print(jsonv2beta2_metric_spec_2)); -} - -int main() { - test_v2beta2_metric_spec(1); - test_v2beta2_metric_spec(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_metric_spec_MAIN -#endif // v2beta2_metric_spec_TEST diff --git a/kubernetes/unit-test/test_v2beta2_metric_status.c b/kubernetes/unit-test/test_v2beta2_metric_status.c deleted file mode 100644 index ddee8bef..00000000 --- a/kubernetes/unit-test/test_v2beta2_metric_status.c +++ /dev/null @@ -1,78 +0,0 @@ -#ifndef v2beta2_metric_status_TEST -#define v2beta2_metric_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_metric_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_metric_status.h" -v2beta2_metric_status_t* instantiate_v2beta2_metric_status(int include_optional); - -#include "test_v2beta2_container_resource_metric_status.c" -#include "test_v2beta2_external_metric_status.c" -#include "test_v2beta2_object_metric_status.c" -#include "test_v2beta2_pods_metric_status.c" -#include "test_v2beta2_resource_metric_status.c" - - -v2beta2_metric_status_t* instantiate_v2beta2_metric_status(int include_optional) { - v2beta2_metric_status_t* v2beta2_metric_status = NULL; - if (include_optional) { - v2beta2_metric_status = v2beta2_metric_status_create( - // false, not to have infinite recursion - instantiate_v2beta2_container_resource_metric_status(0), - // false, not to have infinite recursion - instantiate_v2beta2_external_metric_status(0), - // false, not to have infinite recursion - instantiate_v2beta2_object_metric_status(0), - // false, not to have infinite recursion - instantiate_v2beta2_pods_metric_status(0), - // false, not to have infinite recursion - instantiate_v2beta2_resource_metric_status(0), - "0" - ); - } else { - v2beta2_metric_status = v2beta2_metric_status_create( - NULL, - NULL, - NULL, - NULL, - NULL, - "0" - ); - } - - return v2beta2_metric_status; -} - - -#ifdef v2beta2_metric_status_MAIN - -void test_v2beta2_metric_status(int include_optional) { - v2beta2_metric_status_t* v2beta2_metric_status_1 = instantiate_v2beta2_metric_status(include_optional); - - cJSON* jsonv2beta2_metric_status_1 = v2beta2_metric_status_convertToJSON(v2beta2_metric_status_1); - printf("v2beta2_metric_status :\n%s\n", cJSON_Print(jsonv2beta2_metric_status_1)); - v2beta2_metric_status_t* v2beta2_metric_status_2 = v2beta2_metric_status_parseFromJSON(jsonv2beta2_metric_status_1); - cJSON* jsonv2beta2_metric_status_2 = v2beta2_metric_status_convertToJSON(v2beta2_metric_status_2); - printf("repeating v2beta2_metric_status:\n%s\n", cJSON_Print(jsonv2beta2_metric_status_2)); -} - -int main() { - test_v2beta2_metric_status(1); - test_v2beta2_metric_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_metric_status_MAIN -#endif // v2beta2_metric_status_TEST diff --git a/kubernetes/unit-test/test_v2beta2_metric_target.c b/kubernetes/unit-test/test_v2beta2_metric_target.c deleted file mode 100644 index 28160c6f..00000000 --- a/kubernetes/unit-test/test_v2beta2_metric_target.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v2beta2_metric_target_TEST -#define v2beta2_metric_target_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_metric_target_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_metric_target.h" -v2beta2_metric_target_t* instantiate_v2beta2_metric_target(int include_optional); - - - -v2beta2_metric_target_t* instantiate_v2beta2_metric_target(int include_optional) { - v2beta2_metric_target_t* v2beta2_metric_target = NULL; - if (include_optional) { - v2beta2_metric_target = v2beta2_metric_target_create( - 56, - "0", - "0", - "0" - ); - } else { - v2beta2_metric_target = v2beta2_metric_target_create( - 56, - "0", - "0", - "0" - ); - } - - return v2beta2_metric_target; -} - - -#ifdef v2beta2_metric_target_MAIN - -void test_v2beta2_metric_target(int include_optional) { - v2beta2_metric_target_t* v2beta2_metric_target_1 = instantiate_v2beta2_metric_target(include_optional); - - cJSON* jsonv2beta2_metric_target_1 = v2beta2_metric_target_convertToJSON(v2beta2_metric_target_1); - printf("v2beta2_metric_target :\n%s\n", cJSON_Print(jsonv2beta2_metric_target_1)); - v2beta2_metric_target_t* v2beta2_metric_target_2 = v2beta2_metric_target_parseFromJSON(jsonv2beta2_metric_target_1); - cJSON* jsonv2beta2_metric_target_2 = v2beta2_metric_target_convertToJSON(v2beta2_metric_target_2); - printf("repeating v2beta2_metric_target:\n%s\n", cJSON_Print(jsonv2beta2_metric_target_2)); -} - -int main() { - test_v2beta2_metric_target(1); - test_v2beta2_metric_target(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_metric_target_MAIN -#endif // v2beta2_metric_target_TEST diff --git a/kubernetes/unit-test/test_v2beta2_metric_value_status.c b/kubernetes/unit-test/test_v2beta2_metric_value_status.c deleted file mode 100644 index 07a59079..00000000 --- a/kubernetes/unit-test/test_v2beta2_metric_value_status.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v2beta2_metric_value_status_TEST -#define v2beta2_metric_value_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_metric_value_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_metric_value_status.h" -v2beta2_metric_value_status_t* instantiate_v2beta2_metric_value_status(int include_optional); - - - -v2beta2_metric_value_status_t* instantiate_v2beta2_metric_value_status(int include_optional) { - v2beta2_metric_value_status_t* v2beta2_metric_value_status = NULL; - if (include_optional) { - v2beta2_metric_value_status = v2beta2_metric_value_status_create( - 56, - "0", - "0" - ); - } else { - v2beta2_metric_value_status = v2beta2_metric_value_status_create( - 56, - "0", - "0" - ); - } - - return v2beta2_metric_value_status; -} - - -#ifdef v2beta2_metric_value_status_MAIN - -void test_v2beta2_metric_value_status(int include_optional) { - v2beta2_metric_value_status_t* v2beta2_metric_value_status_1 = instantiate_v2beta2_metric_value_status(include_optional); - - cJSON* jsonv2beta2_metric_value_status_1 = v2beta2_metric_value_status_convertToJSON(v2beta2_metric_value_status_1); - printf("v2beta2_metric_value_status :\n%s\n", cJSON_Print(jsonv2beta2_metric_value_status_1)); - v2beta2_metric_value_status_t* v2beta2_metric_value_status_2 = v2beta2_metric_value_status_parseFromJSON(jsonv2beta2_metric_value_status_1); - cJSON* jsonv2beta2_metric_value_status_2 = v2beta2_metric_value_status_convertToJSON(v2beta2_metric_value_status_2); - printf("repeating v2beta2_metric_value_status:\n%s\n", cJSON_Print(jsonv2beta2_metric_value_status_2)); -} - -int main() { - test_v2beta2_metric_value_status(1); - test_v2beta2_metric_value_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_metric_value_status_MAIN -#endif // v2beta2_metric_value_status_TEST diff --git a/kubernetes/unit-test/test_v2beta2_object_metric_source.c b/kubernetes/unit-test/test_v2beta2_object_metric_source.c deleted file mode 100644 index fdc00340..00000000 --- a/kubernetes/unit-test/test_v2beta2_object_metric_source.c +++ /dev/null @@ -1,68 +0,0 @@ -#ifndef v2beta2_object_metric_source_TEST -#define v2beta2_object_metric_source_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_object_metric_source_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_object_metric_source.h" -v2beta2_object_metric_source_t* instantiate_v2beta2_object_metric_source(int include_optional); - -#include "test_v2beta2_cross_version_object_reference.c" -#include "test_v2beta2_metric_identifier.c" -#include "test_v2beta2_metric_target.c" - - -v2beta2_object_metric_source_t* instantiate_v2beta2_object_metric_source(int include_optional) { - v2beta2_object_metric_source_t* v2beta2_object_metric_source = NULL; - if (include_optional) { - v2beta2_object_metric_source = v2beta2_object_metric_source_create( - // false, not to have infinite recursion - instantiate_v2beta2_cross_version_object_reference(0), - // false, not to have infinite recursion - instantiate_v2beta2_metric_identifier(0), - // false, not to have infinite recursion - instantiate_v2beta2_metric_target(0) - ); - } else { - v2beta2_object_metric_source = v2beta2_object_metric_source_create( - NULL, - NULL, - NULL - ); - } - - return v2beta2_object_metric_source; -} - - -#ifdef v2beta2_object_metric_source_MAIN - -void test_v2beta2_object_metric_source(int include_optional) { - v2beta2_object_metric_source_t* v2beta2_object_metric_source_1 = instantiate_v2beta2_object_metric_source(include_optional); - - cJSON* jsonv2beta2_object_metric_source_1 = v2beta2_object_metric_source_convertToJSON(v2beta2_object_metric_source_1); - printf("v2beta2_object_metric_source :\n%s\n", cJSON_Print(jsonv2beta2_object_metric_source_1)); - v2beta2_object_metric_source_t* v2beta2_object_metric_source_2 = v2beta2_object_metric_source_parseFromJSON(jsonv2beta2_object_metric_source_1); - cJSON* jsonv2beta2_object_metric_source_2 = v2beta2_object_metric_source_convertToJSON(v2beta2_object_metric_source_2); - printf("repeating v2beta2_object_metric_source:\n%s\n", cJSON_Print(jsonv2beta2_object_metric_source_2)); -} - -int main() { - test_v2beta2_object_metric_source(1); - test_v2beta2_object_metric_source(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_object_metric_source_MAIN -#endif // v2beta2_object_metric_source_TEST diff --git a/kubernetes/unit-test/test_v2beta2_object_metric_status.c b/kubernetes/unit-test/test_v2beta2_object_metric_status.c deleted file mode 100644 index 1bd791cf..00000000 --- a/kubernetes/unit-test/test_v2beta2_object_metric_status.c +++ /dev/null @@ -1,68 +0,0 @@ -#ifndef v2beta2_object_metric_status_TEST -#define v2beta2_object_metric_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_object_metric_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_object_metric_status.h" -v2beta2_object_metric_status_t* instantiate_v2beta2_object_metric_status(int include_optional); - -#include "test_v2beta2_metric_value_status.c" -#include "test_v2beta2_cross_version_object_reference.c" -#include "test_v2beta2_metric_identifier.c" - - -v2beta2_object_metric_status_t* instantiate_v2beta2_object_metric_status(int include_optional) { - v2beta2_object_metric_status_t* v2beta2_object_metric_status = NULL; - if (include_optional) { - v2beta2_object_metric_status = v2beta2_object_metric_status_create( - // false, not to have infinite recursion - instantiate_v2beta2_metric_value_status(0), - // false, not to have infinite recursion - instantiate_v2beta2_cross_version_object_reference(0), - // false, not to have infinite recursion - instantiate_v2beta2_metric_identifier(0) - ); - } else { - v2beta2_object_metric_status = v2beta2_object_metric_status_create( - NULL, - NULL, - NULL - ); - } - - return v2beta2_object_metric_status; -} - - -#ifdef v2beta2_object_metric_status_MAIN - -void test_v2beta2_object_metric_status(int include_optional) { - v2beta2_object_metric_status_t* v2beta2_object_metric_status_1 = instantiate_v2beta2_object_metric_status(include_optional); - - cJSON* jsonv2beta2_object_metric_status_1 = v2beta2_object_metric_status_convertToJSON(v2beta2_object_metric_status_1); - printf("v2beta2_object_metric_status :\n%s\n", cJSON_Print(jsonv2beta2_object_metric_status_1)); - v2beta2_object_metric_status_t* v2beta2_object_metric_status_2 = v2beta2_object_metric_status_parseFromJSON(jsonv2beta2_object_metric_status_1); - cJSON* jsonv2beta2_object_metric_status_2 = v2beta2_object_metric_status_convertToJSON(v2beta2_object_metric_status_2); - printf("repeating v2beta2_object_metric_status:\n%s\n", cJSON_Print(jsonv2beta2_object_metric_status_2)); -} - -int main() { - test_v2beta2_object_metric_status(1); - test_v2beta2_object_metric_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_object_metric_status_MAIN -#endif // v2beta2_object_metric_status_TEST diff --git a/kubernetes/unit-test/test_v2beta2_pods_metric_source.c b/kubernetes/unit-test/test_v2beta2_pods_metric_source.c deleted file mode 100644 index 049ca670..00000000 --- a/kubernetes/unit-test/test_v2beta2_pods_metric_source.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v2beta2_pods_metric_source_TEST -#define v2beta2_pods_metric_source_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_pods_metric_source_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_pods_metric_source.h" -v2beta2_pods_metric_source_t* instantiate_v2beta2_pods_metric_source(int include_optional); - -#include "test_v2beta2_metric_identifier.c" -#include "test_v2beta2_metric_target.c" - - -v2beta2_pods_metric_source_t* instantiate_v2beta2_pods_metric_source(int include_optional) { - v2beta2_pods_metric_source_t* v2beta2_pods_metric_source = NULL; - if (include_optional) { - v2beta2_pods_metric_source = v2beta2_pods_metric_source_create( - // false, not to have infinite recursion - instantiate_v2beta2_metric_identifier(0), - // false, not to have infinite recursion - instantiate_v2beta2_metric_target(0) - ); - } else { - v2beta2_pods_metric_source = v2beta2_pods_metric_source_create( - NULL, - NULL - ); - } - - return v2beta2_pods_metric_source; -} - - -#ifdef v2beta2_pods_metric_source_MAIN - -void test_v2beta2_pods_metric_source(int include_optional) { - v2beta2_pods_metric_source_t* v2beta2_pods_metric_source_1 = instantiate_v2beta2_pods_metric_source(include_optional); - - cJSON* jsonv2beta2_pods_metric_source_1 = v2beta2_pods_metric_source_convertToJSON(v2beta2_pods_metric_source_1); - printf("v2beta2_pods_metric_source :\n%s\n", cJSON_Print(jsonv2beta2_pods_metric_source_1)); - v2beta2_pods_metric_source_t* v2beta2_pods_metric_source_2 = v2beta2_pods_metric_source_parseFromJSON(jsonv2beta2_pods_metric_source_1); - cJSON* jsonv2beta2_pods_metric_source_2 = v2beta2_pods_metric_source_convertToJSON(v2beta2_pods_metric_source_2); - printf("repeating v2beta2_pods_metric_source:\n%s\n", cJSON_Print(jsonv2beta2_pods_metric_source_2)); -} - -int main() { - test_v2beta2_pods_metric_source(1); - test_v2beta2_pods_metric_source(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_pods_metric_source_MAIN -#endif // v2beta2_pods_metric_source_TEST diff --git a/kubernetes/unit-test/test_v2beta2_pods_metric_status.c b/kubernetes/unit-test/test_v2beta2_pods_metric_status.c deleted file mode 100644 index e401734b..00000000 --- a/kubernetes/unit-test/test_v2beta2_pods_metric_status.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v2beta2_pods_metric_status_TEST -#define v2beta2_pods_metric_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_pods_metric_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_pods_metric_status.h" -v2beta2_pods_metric_status_t* instantiate_v2beta2_pods_metric_status(int include_optional); - -#include "test_v2beta2_metric_value_status.c" -#include "test_v2beta2_metric_identifier.c" - - -v2beta2_pods_metric_status_t* instantiate_v2beta2_pods_metric_status(int include_optional) { - v2beta2_pods_metric_status_t* v2beta2_pods_metric_status = NULL; - if (include_optional) { - v2beta2_pods_metric_status = v2beta2_pods_metric_status_create( - // false, not to have infinite recursion - instantiate_v2beta2_metric_value_status(0), - // false, not to have infinite recursion - instantiate_v2beta2_metric_identifier(0) - ); - } else { - v2beta2_pods_metric_status = v2beta2_pods_metric_status_create( - NULL, - NULL - ); - } - - return v2beta2_pods_metric_status; -} - - -#ifdef v2beta2_pods_metric_status_MAIN - -void test_v2beta2_pods_metric_status(int include_optional) { - v2beta2_pods_metric_status_t* v2beta2_pods_metric_status_1 = instantiate_v2beta2_pods_metric_status(include_optional); - - cJSON* jsonv2beta2_pods_metric_status_1 = v2beta2_pods_metric_status_convertToJSON(v2beta2_pods_metric_status_1); - printf("v2beta2_pods_metric_status :\n%s\n", cJSON_Print(jsonv2beta2_pods_metric_status_1)); - v2beta2_pods_metric_status_t* v2beta2_pods_metric_status_2 = v2beta2_pods_metric_status_parseFromJSON(jsonv2beta2_pods_metric_status_1); - cJSON* jsonv2beta2_pods_metric_status_2 = v2beta2_pods_metric_status_convertToJSON(v2beta2_pods_metric_status_2); - printf("repeating v2beta2_pods_metric_status:\n%s\n", cJSON_Print(jsonv2beta2_pods_metric_status_2)); -} - -int main() { - test_v2beta2_pods_metric_status(1); - test_v2beta2_pods_metric_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_pods_metric_status_MAIN -#endif // v2beta2_pods_metric_status_TEST diff --git a/kubernetes/unit-test/test_v2beta2_resource_metric_source.c b/kubernetes/unit-test/test_v2beta2_resource_metric_source.c deleted file mode 100644 index f5d1325b..00000000 --- a/kubernetes/unit-test/test_v2beta2_resource_metric_source.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v2beta2_resource_metric_source_TEST -#define v2beta2_resource_metric_source_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_resource_metric_source_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_resource_metric_source.h" -v2beta2_resource_metric_source_t* instantiate_v2beta2_resource_metric_source(int include_optional); - -#include "test_v2beta2_metric_target.c" - - -v2beta2_resource_metric_source_t* instantiate_v2beta2_resource_metric_source(int include_optional) { - v2beta2_resource_metric_source_t* v2beta2_resource_metric_source = NULL; - if (include_optional) { - v2beta2_resource_metric_source = v2beta2_resource_metric_source_create( - "0", - // false, not to have infinite recursion - instantiate_v2beta2_metric_target(0) - ); - } else { - v2beta2_resource_metric_source = v2beta2_resource_metric_source_create( - "0", - NULL - ); - } - - return v2beta2_resource_metric_source; -} - - -#ifdef v2beta2_resource_metric_source_MAIN - -void test_v2beta2_resource_metric_source(int include_optional) { - v2beta2_resource_metric_source_t* v2beta2_resource_metric_source_1 = instantiate_v2beta2_resource_metric_source(include_optional); - - cJSON* jsonv2beta2_resource_metric_source_1 = v2beta2_resource_metric_source_convertToJSON(v2beta2_resource_metric_source_1); - printf("v2beta2_resource_metric_source :\n%s\n", cJSON_Print(jsonv2beta2_resource_metric_source_1)); - v2beta2_resource_metric_source_t* v2beta2_resource_metric_source_2 = v2beta2_resource_metric_source_parseFromJSON(jsonv2beta2_resource_metric_source_1); - cJSON* jsonv2beta2_resource_metric_source_2 = v2beta2_resource_metric_source_convertToJSON(v2beta2_resource_metric_source_2); - printf("repeating v2beta2_resource_metric_source:\n%s\n", cJSON_Print(jsonv2beta2_resource_metric_source_2)); -} - -int main() { - test_v2beta2_resource_metric_source(1); - test_v2beta2_resource_metric_source(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_resource_metric_source_MAIN -#endif // v2beta2_resource_metric_source_TEST diff --git a/kubernetes/unit-test/test_v2beta2_resource_metric_status.c b/kubernetes/unit-test/test_v2beta2_resource_metric_status.c deleted file mode 100644 index c6b3ebe7..00000000 --- a/kubernetes/unit-test/test_v2beta2_resource_metric_status.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v2beta2_resource_metric_status_TEST -#define v2beta2_resource_metric_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_resource_metric_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_resource_metric_status.h" -v2beta2_resource_metric_status_t* instantiate_v2beta2_resource_metric_status(int include_optional); - -#include "test_v2beta2_metric_value_status.c" - - -v2beta2_resource_metric_status_t* instantiate_v2beta2_resource_metric_status(int include_optional) { - v2beta2_resource_metric_status_t* v2beta2_resource_metric_status = NULL; - if (include_optional) { - v2beta2_resource_metric_status = v2beta2_resource_metric_status_create( - // false, not to have infinite recursion - instantiate_v2beta2_metric_value_status(0), - "0" - ); - } else { - v2beta2_resource_metric_status = v2beta2_resource_metric_status_create( - NULL, - "0" - ); - } - - return v2beta2_resource_metric_status; -} - - -#ifdef v2beta2_resource_metric_status_MAIN - -void test_v2beta2_resource_metric_status(int include_optional) { - v2beta2_resource_metric_status_t* v2beta2_resource_metric_status_1 = instantiate_v2beta2_resource_metric_status(include_optional); - - cJSON* jsonv2beta2_resource_metric_status_1 = v2beta2_resource_metric_status_convertToJSON(v2beta2_resource_metric_status_1); - printf("v2beta2_resource_metric_status :\n%s\n", cJSON_Print(jsonv2beta2_resource_metric_status_1)); - v2beta2_resource_metric_status_t* v2beta2_resource_metric_status_2 = v2beta2_resource_metric_status_parseFromJSON(jsonv2beta2_resource_metric_status_1); - cJSON* jsonv2beta2_resource_metric_status_2 = v2beta2_resource_metric_status_convertToJSON(v2beta2_resource_metric_status_2); - printf("repeating v2beta2_resource_metric_status:\n%s\n", cJSON_Print(jsonv2beta2_resource_metric_status_2)); -} - -int main() { - test_v2beta2_resource_metric_status(1); - test_v2beta2_resource_metric_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_resource_metric_status_MAIN -#endif // v2beta2_resource_metric_status_TEST diff --git a/settings b/settings index ee1e01a4..419c8b10 100644 --- a/settings +++ b/settings @@ -1,8 +1,8 @@ # Kubernetes branch/tag to get the OpenAPI spec from. -export KUBERNETES_BRANCH="release-1.25" +export KUBERNETES_BRANCH="release-1.26" # client version is not currently used by the code generator. -export CLIENT_VERSION="0.5.0" +export CLIENT_VERSION="0.6.0" # Name of the release package export PACKAGE_NAME="client" From 8249d47ad0814e66e3b5dbb407171f744dc78a4c Mon Sep 17 00:00:00 2001 From: Hui Yu Date: Thu, 23 Feb 2023 17:29:27 +0800 Subject: [PATCH 19/19] Update version and compatibility for the release 0.6.0 --- docs/versioning-and-compatibility.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/versioning-and-compatibility.md b/docs/versioning-and-compatibility.md index 95a80a9d..e83d8fc3 100644 --- a/docs/versioning-and-compatibility.md +++ b/docs/versioning-and-compatibility.md @@ -6,14 +6,15 @@ The C client uses Semantic Versioning. We increment the major version number whe ## Compatibility -| client version | 1.17 | 1.18 | 1.19 | 1.20 | 1.21 | 1.22 | 1.23 | 1.24 | 1.25 | -|------------------|-----------|----------|----------|----------|----------|----------|----------|----------|----------| -| 0.1.0 | ✓ | - | - | x | x | x | x | x | x | -| 0.2.0 | + | + | + | + | + | ✓ | - | - | x | -| 0.3.0 | + | + | + | + | + | + | ✓ | - | - | -| 0.4.0 | + | + | + | + | + | + | + | ✓ | - | -| 0.5.0 | + | + | + | + | + | + | + | + | ✓ | -| HEAD | + | + | + | + | + | + | + | + | ✓ | +| client version | 1.17 | 1.18 | 1.19 | 1.20 | 1.21 | 1.22 | 1.23 | 1.24 | 1.25 | 1.26 | +|------------------|-----------|----------|----------|----------|----------|----------|----------|----------|----------|----------| +| 0.1.0 | ✓ | - | - | x | x | x | x | x | x | x | +| 0.2.0 | + | + | + | + | + | ✓ | - | - | x | x | +| 0.3.0 | + | + | + | + | + | + | ✓ | - | - | x | +| 0.4.0 | + | + | + | + | + | + | + | ✓ | - | - | +| 0.5.0 | + | + | + | + | + | + | + | + | ✓ | - | +| 0.6.0 | + | + | + | + | + | + | + | + | + | ✓ | +| HEAD | + | + | + | + | + | + | + | + | + | ✓ | Key: