diff --git a/kubernetes/.openapi-generator/COMMIT b/kubernetes/.openapi-generator/COMMIT index 4ff2293..28af9c8 100644 --- a/kubernetes/.openapi-generator/COMMIT +++ b/kubernetes/.openapi-generator/COMMIT @@ -1,2 +1,2 @@ Requested Commit: master -Actual Commit: 6cd246931e5e48469c793b31162640eadd1c5e7f +Actual Commit: ac7ebf67dd67e4a347fa142aa6a95ab12f0198de diff --git a/kubernetes/.openapi-generator/FILES b/kubernetes/.openapi-generator/FILES index 4f7624a..6735e1d 100644 --- a/kubernetes/.openapi-generator/FILES +++ b/kubernetes/.openapi-generator/FILES @@ -33,16 +33,12 @@ api/AutoscalingV1API.c api/AutoscalingV1API.h api/AutoscalingV2API.c api/AutoscalingV2API.h -api/AutoscalingV2beta1API.c -api/AutoscalingV2beta1API.h api/AutoscalingV2beta2API.c api/AutoscalingV2beta2API.h api/BatchAPI.c api/BatchAPI.h api/BatchV1API.c api/BatchV1API.h -api/BatchV1beta1API.c -api/BatchV1beta1API.h api/CertificatesAPI.c api/CertificatesAPI.h api/CertificatesV1API.c @@ -61,14 +57,10 @@ api/DiscoveryAPI.c api/DiscoveryAPI.h api/DiscoveryV1API.c api/DiscoveryV1API.h -api/DiscoveryV1beta1API.c -api/DiscoveryV1beta1API.h api/EventsAPI.c api/EventsAPI.h api/EventsV1API.c api/EventsV1API.h -api/EventsV1beta1API.c -api/EventsV1beta1API.h api/FlowcontrolApiserverAPI.c api/FlowcontrolApiserverAPI.h api/FlowcontrolApiserverV1beta1API.c @@ -85,20 +77,18 @@ api/NetworkingAPI.c api/NetworkingAPI.h api/NetworkingV1API.c api/NetworkingV1API.h +api/NetworkingV1alpha1API.c +api/NetworkingV1alpha1API.h api/NodeAPI.c api/NodeAPI.h api/NodeV1API.c api/NodeV1API.h -api/NodeV1beta1API.c -api/NodeV1beta1API.h api/OpenidAPI.c api/OpenidAPI.h api/PolicyAPI.c api/PolicyAPI.h api/PolicyV1API.c api/PolicyV1API.h -api/PolicyV1beta1API.c -api/PolicyV1beta1API.h api/RbacAuthorizationAPI.c api/RbacAuthorizationAPI.h api/RbacAuthorizationV1API.c @@ -133,11 +123,9 @@ docs/AuthorizationV1API.md docs/AutoscalingAPI.md docs/AutoscalingV1API.md docs/AutoscalingV2API.md -docs/AutoscalingV2beta1API.md docs/AutoscalingV2beta2API.md docs/BatchAPI.md docs/BatchV1API.md -docs/BatchV1beta1API.md docs/CertificatesAPI.md docs/CertificatesV1API.md docs/CoordinationAPI.md @@ -147,10 +135,8 @@ docs/CoreV1API.md docs/CustomObjectsAPI.md docs/DiscoveryAPI.md docs/DiscoveryV1API.md -docs/DiscoveryV1beta1API.md docs/EventsAPI.md docs/EventsV1API.md -docs/EventsV1beta1API.md docs/FlowcontrolApiserverAPI.md docs/FlowcontrolApiserverV1beta1API.md docs/FlowcontrolApiserverV1beta2API.md @@ -159,13 +145,12 @@ docs/InternalApiserverV1alpha1API.md docs/LogsAPI.md docs/NetworkingAPI.md docs/NetworkingV1API.md +docs/NetworkingV1alpha1API.md docs/NodeAPI.md docs/NodeV1API.md -docs/NodeV1beta1API.md docs/OpenidAPI.md docs/PolicyAPI.md docs/PolicyV1API.md -docs/PolicyV1beta1API.md docs/RbacAuthorizationAPI.md docs/RbacAuthorizationV1API.md docs/SchedulingAPI.md @@ -432,6 +417,10 @@ docs/v1_pod_disruption_budget_spec.md docs/v1_pod_disruption_budget_status.md docs/v1_pod_dns_config.md docs/v1_pod_dns_config_option.md +docs/v1_pod_failure_policy.md +docs/v1_pod_failure_policy_on_exit_codes_requirement.md +docs/v1_pod_failure_policy_on_pod_conditions_pattern.md +docs/v1_pod_failure_policy_rule.md docs/v1_pod_ip.md docs/v1_pod_list.md docs/v1_pod_os.md @@ -571,52 +560,26 @@ 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_cluster_cidr.md +docs/v1alpha1_cluster_cidr_list.md +docs/v1alpha1_cluster_cidr_spec.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/v1beta1_allowed_csi_driver.md -docs/v1beta1_allowed_flex_volume.md -docs/v1beta1_allowed_host_path.md -docs/v1beta1_cron_job.md -docs/v1beta1_cron_job_list.md -docs/v1beta1_cron_job_spec.md -docs/v1beta1_cron_job_status.md docs/v1beta1_csi_storage_capacity.md docs/v1beta1_csi_storage_capacity_list.md -docs/v1beta1_endpoint.md -docs/v1beta1_endpoint_conditions.md -docs/v1beta1_endpoint_hints.md -docs/v1beta1_endpoint_port.md -docs/v1beta1_endpoint_slice.md -docs/v1beta1_endpoint_slice_list.md -docs/v1beta1_event.md -docs/v1beta1_event_list.md -docs/v1beta1_event_series.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_for_zone.md -docs/v1beta1_fs_group_strategy_options.md docs/v1beta1_group_subject.md -docs/v1beta1_host_port_range.md -docs/v1beta1_id_range.md -docs/v1beta1_job_template_spec.md docs/v1beta1_limit_response.md docs/v1beta1_limited_priority_level_configuration.md docs/v1beta1_non_resource_policy_rule.md -docs/v1beta1_overhead.md -docs/v1beta1_pod_disruption_budget.md -docs/v1beta1_pod_disruption_budget_list.md -docs/v1beta1_pod_disruption_budget_spec.md -docs/v1beta1_pod_disruption_budget_status.md -docs/v1beta1_pod_security_policy.md -docs/v1beta1_pod_security_policy_list.md -docs/v1beta1_pod_security_policy_spec.md docs/v1beta1_policy_rules_with_subjects.md docs/v1beta1_priority_level_configuration.md docs/v1beta1_priority_level_configuration_condition.md @@ -626,16 +589,8 @@ 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_run_as_group_strategy_options.md -docs/v1beta1_run_as_user_strategy_options.md -docs/v1beta1_runtime_class.md -docs/v1beta1_runtime_class_list.md -docs/v1beta1_runtime_class_strategy_options.md -docs/v1beta1_scheduling.md -docs/v1beta1_se_linux_strategy_options.md docs/v1beta1_service_account_subject.md docs/v1beta1_subject.md -docs/v1beta1_supplemental_groups_strategy_options.md docs/v1beta1_user_subject.md docs/v1beta2_flow_distinguisher_method.md docs/v1beta2_flow_schema.md @@ -683,24 +638,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/v2beta1_container_resource_metric_source.md -docs/v2beta1_container_resource_metric_status.md -docs/v2beta1_cross_version_object_reference.md -docs/v2beta1_external_metric_source.md -docs/v2beta1_external_metric_status.md -docs/v2beta1_horizontal_pod_autoscaler.md -docs/v2beta1_horizontal_pod_autoscaler_condition.md -docs/v2beta1_horizontal_pod_autoscaler_list.md -docs/v2beta1_horizontal_pod_autoscaler_spec.md -docs/v2beta1_horizontal_pod_autoscaler_status.md -docs/v2beta1_metric_spec.md -docs/v2beta1_metric_status.md -docs/v2beta1_object_metric_source.md -docs/v2beta1_object_metric_status.md -docs/v2beta1_pods_metric_source.md -docs/v2beta1_pods_metric_status.md -docs/v2beta1_resource_metric_source.md -docs/v2beta1_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 @@ -1250,6 +1187,14 @@ model/v1_pod_dns_config.c model/v1_pod_dns_config.h model/v1_pod_dns_config_option.c model/v1_pod_dns_config_option.h +model/v1_pod_failure_policy.c +model/v1_pod_failure_policy.h +model/v1_pod_failure_policy_on_exit_codes_requirement.c +model/v1_pod_failure_policy_on_exit_codes_requirement.h +model/v1_pod_failure_policy_on_pod_conditions_pattern.c +model/v1_pod_failure_policy_on_pod_conditions_pattern.h +model/v1_pod_failure_policy_rule.c +model/v1_pod_failure_policy_rule.h model/v1_pod_ip.c model/v1_pod_ip.h model/v1_pod_list.c @@ -1528,6 +1473,12 @@ 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_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_server_storage_version.c model/v1alpha1_server_storage_version.h model/v1alpha1_storage_version.c @@ -1538,42 +1489,10 @@ 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/v1beta1_allowed_csi_driver.c -model/v1beta1_allowed_csi_driver.h -model/v1beta1_allowed_flex_volume.c -model/v1beta1_allowed_flex_volume.h -model/v1beta1_allowed_host_path.c -model/v1beta1_allowed_host_path.h -model/v1beta1_cron_job.c -model/v1beta1_cron_job.h -model/v1beta1_cron_job_list.c -model/v1beta1_cron_job_list.h -model/v1beta1_cron_job_spec.c -model/v1beta1_cron_job_spec.h -model/v1beta1_cron_job_status.c -model/v1beta1_cron_job_status.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_endpoint.c -model/v1beta1_endpoint.h -model/v1beta1_endpoint_conditions.c -model/v1beta1_endpoint_conditions.h -model/v1beta1_endpoint_hints.c -model/v1beta1_endpoint_hints.h -model/v1beta1_endpoint_port.c -model/v1beta1_endpoint_port.h -model/v1beta1_endpoint_slice.c -model/v1beta1_endpoint_slice.h -model/v1beta1_endpoint_slice_list.c -model/v1beta1_endpoint_slice_list.h -model/v1beta1_event.c -model/v1beta1_event.h -model/v1beta1_event_list.c -model/v1beta1_event_list.h -model/v1beta1_event_series.c -model/v1beta1_event_series.h model/v1beta1_flow_distinguisher_method.c model/v1beta1_flow_distinguisher_method.h model/v1beta1_flow_schema.c @@ -1586,40 +1505,14 @@ 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_for_zone.c -model/v1beta1_for_zone.h -model/v1beta1_fs_group_strategy_options.c -model/v1beta1_fs_group_strategy_options.h model/v1beta1_group_subject.c model/v1beta1_group_subject.h -model/v1beta1_host_port_range.c -model/v1beta1_host_port_range.h -model/v1beta1_id_range.c -model/v1beta1_id_range.h -model/v1beta1_job_template_spec.c -model/v1beta1_job_template_spec.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_overhead.c -model/v1beta1_overhead.h -model/v1beta1_pod_disruption_budget.c -model/v1beta1_pod_disruption_budget.h -model/v1beta1_pod_disruption_budget_list.c -model/v1beta1_pod_disruption_budget_list.h -model/v1beta1_pod_disruption_budget_spec.c -model/v1beta1_pod_disruption_budget_spec.h -model/v1beta1_pod_disruption_budget_status.c -model/v1beta1_pod_disruption_budget_status.h -model/v1beta1_pod_security_policy.c -model/v1beta1_pod_security_policy.h -model/v1beta1_pod_security_policy_list.c -model/v1beta1_pod_security_policy_list.h -model/v1beta1_pod_security_policy_spec.c -model/v1beta1_pod_security_policy_spec.h model/v1beta1_policy_rules_with_subjects.c model/v1beta1_policy_rules_with_subjects.h model/v1beta1_priority_level_configuration.c @@ -1638,26 +1531,10 @@ model/v1beta1_queuing_configuration.c model/v1beta1_queuing_configuration.h model/v1beta1_resource_policy_rule.c model/v1beta1_resource_policy_rule.h -model/v1beta1_run_as_group_strategy_options.c -model/v1beta1_run_as_group_strategy_options.h -model/v1beta1_run_as_user_strategy_options.c -model/v1beta1_run_as_user_strategy_options.h -model/v1beta1_runtime_class.c -model/v1beta1_runtime_class.h -model/v1beta1_runtime_class_list.c -model/v1beta1_runtime_class_list.h -model/v1beta1_runtime_class_strategy_options.c -model/v1beta1_runtime_class_strategy_options.h -model/v1beta1_scheduling.c -model/v1beta1_scheduling.h -model/v1beta1_se_linux_strategy_options.c -model/v1beta1_se_linux_strategy_options.h model/v1beta1_service_account_subject.c model/v1beta1_service_account_subject.h model/v1beta1_subject.c model/v1beta1_subject.h -model/v1beta1_supplemental_groups_strategy_options.c -model/v1beta1_supplemental_groups_strategy_options.h model/v1beta1_user_subject.c model/v1beta1_user_subject.h model/v1beta2_flow_distinguisher_method.c @@ -1752,42 +1629,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/v2beta1_container_resource_metric_source.c -model/v2beta1_container_resource_metric_source.h -model/v2beta1_container_resource_metric_status.c -model/v2beta1_container_resource_metric_status.h -model/v2beta1_cross_version_object_reference.c -model/v2beta1_cross_version_object_reference.h -model/v2beta1_external_metric_source.c -model/v2beta1_external_metric_source.h -model/v2beta1_external_metric_status.c -model/v2beta1_external_metric_status.h -model/v2beta1_horizontal_pod_autoscaler.c -model/v2beta1_horizontal_pod_autoscaler.h -model/v2beta1_horizontal_pod_autoscaler_condition.c -model/v2beta1_horizontal_pod_autoscaler_condition.h -model/v2beta1_horizontal_pod_autoscaler_list.c -model/v2beta1_horizontal_pod_autoscaler_list.h -model/v2beta1_horizontal_pod_autoscaler_spec.c -model/v2beta1_horizontal_pod_autoscaler_spec.h -model/v2beta1_horizontal_pod_autoscaler_status.c -model/v2beta1_horizontal_pod_autoscaler_status.h -model/v2beta1_metric_spec.c -model/v2beta1_metric_spec.h -model/v2beta1_metric_status.c -model/v2beta1_metric_status.h -model/v2beta1_object_metric_source.c -model/v2beta1_object_metric_source.h -model/v2beta1_object_metric_status.c -model/v2beta1_object_metric_status.h -model/v2beta1_pods_metric_source.c -model/v2beta1_pods_metric_source.h -model/v2beta1_pods_metric_status.c -model/v2beta1_pods_metric_status.h -model/v2beta1_resource_metric_source.c -model/v2beta1_resource_metric_source.h -model/v2beta1_resource_metric_status.c -model/v2beta1_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 @@ -2100,6 +1941,10 @@ unit-test/test_v1_pod_disruption_budget_spec.c unit-test/test_v1_pod_disruption_budget_status.c unit-test/test_v1_pod_dns_config.c unit-test/test_v1_pod_dns_config_option.c +unit-test/test_v1_pod_failure_policy.c +unit-test/test_v1_pod_failure_policy_on_exit_codes_requirement.c +unit-test/test_v1_pod_failure_policy_on_pod_conditions_pattern.c +unit-test/test_v1_pod_failure_policy_rule.c unit-test/test_v1_pod_ip.c unit-test/test_v1_pod_list.c unit-test/test_v1_pod_os.c @@ -2239,52 +2084,26 @@ 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_cluster_cidr.c +unit-test/test_v1alpha1_cluster_cidr_list.c +unit-test/test_v1alpha1_cluster_cidr_spec.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_v1beta1_allowed_csi_driver.c -unit-test/test_v1beta1_allowed_flex_volume.c -unit-test/test_v1beta1_allowed_host_path.c -unit-test/test_v1beta1_cron_job.c -unit-test/test_v1beta1_cron_job_list.c -unit-test/test_v1beta1_cron_job_spec.c -unit-test/test_v1beta1_cron_job_status.c unit-test/test_v1beta1_csi_storage_capacity.c unit-test/test_v1beta1_csi_storage_capacity_list.c -unit-test/test_v1beta1_endpoint.c -unit-test/test_v1beta1_endpoint_conditions.c -unit-test/test_v1beta1_endpoint_hints.c -unit-test/test_v1beta1_endpoint_port.c -unit-test/test_v1beta1_endpoint_slice.c -unit-test/test_v1beta1_endpoint_slice_list.c -unit-test/test_v1beta1_event.c -unit-test/test_v1beta1_event_list.c -unit-test/test_v1beta1_event_series.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_for_zone.c -unit-test/test_v1beta1_fs_group_strategy_options.c unit-test/test_v1beta1_group_subject.c -unit-test/test_v1beta1_host_port_range.c -unit-test/test_v1beta1_id_range.c -unit-test/test_v1beta1_job_template_spec.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_overhead.c -unit-test/test_v1beta1_pod_disruption_budget.c -unit-test/test_v1beta1_pod_disruption_budget_list.c -unit-test/test_v1beta1_pod_disruption_budget_spec.c -unit-test/test_v1beta1_pod_disruption_budget_status.c -unit-test/test_v1beta1_pod_security_policy.c -unit-test/test_v1beta1_pod_security_policy_list.c -unit-test/test_v1beta1_pod_security_policy_spec.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 @@ -2294,16 +2113,8 @@ 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_run_as_group_strategy_options.c -unit-test/test_v1beta1_run_as_user_strategy_options.c -unit-test/test_v1beta1_runtime_class.c -unit-test/test_v1beta1_runtime_class_list.c -unit-test/test_v1beta1_runtime_class_strategy_options.c -unit-test/test_v1beta1_scheduling.c -unit-test/test_v1beta1_se_linux_strategy_options.c unit-test/test_v1beta1_service_account_subject.c unit-test/test_v1beta1_subject.c -unit-test/test_v1beta1_supplemental_groups_strategy_options.c unit-test/test_v1beta1_user_subject.c unit-test/test_v1beta2_flow_distinguisher_method.c unit-test/test_v1beta2_flow_schema.c @@ -2351,24 +2162,6 @@ 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_v2beta1_container_resource_metric_source.c -unit-test/test_v2beta1_container_resource_metric_status.c -unit-test/test_v2beta1_cross_version_object_reference.c -unit-test/test_v2beta1_external_metric_source.c -unit-test/test_v2beta1_external_metric_status.c -unit-test/test_v2beta1_horizontal_pod_autoscaler.c -unit-test/test_v2beta1_horizontal_pod_autoscaler_condition.c -unit-test/test_v2beta1_horizontal_pod_autoscaler_list.c -unit-test/test_v2beta1_horizontal_pod_autoscaler_spec.c -unit-test/test_v2beta1_horizontal_pod_autoscaler_status.c -unit-test/test_v2beta1_metric_spec.c -unit-test/test_v2beta1_metric_status.c -unit-test/test_v2beta1_object_metric_source.c -unit-test/test_v2beta1_object_metric_status.c -unit-test/test_v2beta1_pods_metric_source.c -unit-test/test_v2beta1_pods_metric_status.c -unit-test/test_v2beta1_resource_metric_source.c -unit-test/test_v2beta1_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 diff --git a/kubernetes/.openapi-generator/VERSION b/kubernetes/.openapi-generator/VERSION index 89648de..ed829db 100644 --- a/kubernetes/.openapi-generator/VERSION +++ b/kubernetes/.openapi-generator/VERSION @@ -1 +1 @@ -6.0.1-SNAPSHOT \ No newline at end of file +6.2.1-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 744cfd6..f09b14a 100644 --- a/kubernetes/.openapi-generator/swagger.json-default.sha256 +++ b/kubernetes/.openapi-generator/swagger.json-default.sha256 @@ -1 +1 @@ -2f1c88a05f74b314b5acf7df6711ddd86f9df0431d5ba7cba844ec9121985f04 \ No newline at end of file +0404d4c8137d5e4978c0fa45c88b0433e62ce7a449af4c76f2fcbc8b64aabd3f \ No newline at end of file diff --git a/kubernetes/CMakeLists.txt b/kubernetes/CMakeLists.txt index a7acabe..12ff572 100644 --- a/kubernetes/CMakeLists.txt +++ b/kubernetes/CMakeLists.txt @@ -311,6 +311,10 @@ set(SRCS model/v1_pod_disruption_budget_status.c model/v1_pod_dns_config.c model/v1_pod_dns_config_option.c + model/v1_pod_failure_policy.c + model/v1_pod_failure_policy_on_exit_codes_requirement.c + model/v1_pod_failure_policy_on_pod_conditions_pattern.c + model/v1_pod_failure_policy_rule.c model/v1_pod_ip.c model/v1_pod_list.c model/v1_pod_os.c @@ -450,52 +454,26 @@ set(SRCS model/v1_webhook_conversion.c model/v1_weighted_pod_affinity_term.c model/v1_windows_security_context_options.c + model/v1alpha1_cluster_cidr.c + model/v1alpha1_cluster_cidr_list.c + model/v1alpha1_cluster_cidr_spec.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/v1beta1_allowed_csi_driver.c - model/v1beta1_allowed_flex_volume.c - model/v1beta1_allowed_host_path.c - model/v1beta1_cron_job.c - model/v1beta1_cron_job_list.c - model/v1beta1_cron_job_spec.c - model/v1beta1_cron_job_status.c model/v1beta1_csi_storage_capacity.c model/v1beta1_csi_storage_capacity_list.c - model/v1beta1_endpoint.c - model/v1beta1_endpoint_conditions.c - model/v1beta1_endpoint_hints.c - model/v1beta1_endpoint_port.c - model/v1beta1_endpoint_slice.c - model/v1beta1_endpoint_slice_list.c - model/v1beta1_event.c - model/v1beta1_event_list.c - model/v1beta1_event_series.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_for_zone.c - model/v1beta1_fs_group_strategy_options.c model/v1beta1_group_subject.c - model/v1beta1_host_port_range.c - model/v1beta1_id_range.c - model/v1beta1_job_template_spec.c model/v1beta1_limit_response.c model/v1beta1_limited_priority_level_configuration.c model/v1beta1_non_resource_policy_rule.c - model/v1beta1_overhead.c - model/v1beta1_pod_disruption_budget.c - model/v1beta1_pod_disruption_budget_list.c - model/v1beta1_pod_disruption_budget_spec.c - model/v1beta1_pod_disruption_budget_status.c - model/v1beta1_pod_security_policy.c - model/v1beta1_pod_security_policy_list.c - model/v1beta1_pod_security_policy_spec.c model/v1beta1_policy_rules_with_subjects.c model/v1beta1_priority_level_configuration.c model/v1beta1_priority_level_configuration_condition.c @@ -505,16 +483,8 @@ set(SRCS model/v1beta1_priority_level_configuration_status.c model/v1beta1_queuing_configuration.c model/v1beta1_resource_policy_rule.c - model/v1beta1_run_as_group_strategy_options.c - model/v1beta1_run_as_user_strategy_options.c - model/v1beta1_runtime_class.c - model/v1beta1_runtime_class_list.c - model/v1beta1_runtime_class_strategy_options.c - model/v1beta1_scheduling.c - model/v1beta1_se_linux_strategy_options.c model/v1beta1_service_account_subject.c model/v1beta1_subject.c - model/v1beta1_supplemental_groups_strategy_options.c model/v1beta1_user_subject.c model/v1beta2_flow_distinguisher_method.c model/v1beta2_flow_schema.c @@ -562,24 +532,6 @@ set(SRCS model/v2_pods_metric_status.c model/v2_resource_metric_source.c model/v2_resource_metric_status.c - model/v2beta1_container_resource_metric_source.c - model/v2beta1_container_resource_metric_status.c - model/v2beta1_cross_version_object_reference.c - model/v2beta1_external_metric_source.c - model/v2beta1_external_metric_status.c - model/v2beta1_horizontal_pod_autoscaler.c - model/v2beta1_horizontal_pod_autoscaler_condition.c - model/v2beta1_horizontal_pod_autoscaler_list.c - model/v2beta1_horizontal_pod_autoscaler_spec.c - model/v2beta1_horizontal_pod_autoscaler_status.c - model/v2beta1_metric_spec.c - model/v2beta1_metric_status.c - model/v2beta1_object_metric_source.c - model/v2beta1_object_metric_status.c - model/v2beta1_pods_metric_source.c - model/v2beta1_pods_metric_status.c - model/v2beta1_resource_metric_source.c - model/v2beta1_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 @@ -621,11 +573,9 @@ set(SRCS api/AutoscalingAPI.c api/AutoscalingV1API.c api/AutoscalingV2API.c - api/AutoscalingV2beta1API.c api/AutoscalingV2beta2API.c api/BatchAPI.c api/BatchV1API.c - api/BatchV1beta1API.c api/CertificatesAPI.c api/CertificatesV1API.c api/CoordinationAPI.c @@ -635,10 +585,8 @@ set(SRCS api/CustomObjectsAPI.c api/DiscoveryAPI.c api/DiscoveryV1API.c - api/DiscoveryV1beta1API.c api/EventsAPI.c api/EventsV1API.c - api/EventsV1beta1API.c api/FlowcontrolApiserverAPI.c api/FlowcontrolApiserverV1beta1API.c api/FlowcontrolApiserverV1beta2API.c @@ -647,13 +595,12 @@ set(SRCS api/LogsAPI.c api/NetworkingAPI.c api/NetworkingV1API.c + api/NetworkingV1alpha1API.c api/NodeAPI.c api/NodeV1API.c - api/NodeV1beta1API.c api/OpenidAPI.c api/PolicyAPI.c api/PolicyV1API.c - api/PolicyV1beta1API.c api/RbacAuthorizationAPI.c api/RbacAuthorizationV1API.c api/SchedulingAPI.c @@ -930,6 +877,10 @@ set(HDRS model/v1_pod_disruption_budget_status.h model/v1_pod_dns_config.h model/v1_pod_dns_config_option.h + model/v1_pod_failure_policy.h + model/v1_pod_failure_policy_on_exit_codes_requirement.h + model/v1_pod_failure_policy_on_pod_conditions_pattern.h + model/v1_pod_failure_policy_rule.h model/v1_pod_ip.h model/v1_pod_list.h model/v1_pod_os.h @@ -1069,52 +1020,26 @@ set(HDRS model/v1_webhook_conversion.h model/v1_weighted_pod_affinity_term.h model/v1_windows_security_context_options.h + model/v1alpha1_cluster_cidr.h + model/v1alpha1_cluster_cidr_list.h + model/v1alpha1_cluster_cidr_spec.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/v1beta1_allowed_csi_driver.h - model/v1beta1_allowed_flex_volume.h - model/v1beta1_allowed_host_path.h - model/v1beta1_cron_job.h - model/v1beta1_cron_job_list.h - model/v1beta1_cron_job_spec.h - model/v1beta1_cron_job_status.h model/v1beta1_csi_storage_capacity.h model/v1beta1_csi_storage_capacity_list.h - model/v1beta1_endpoint.h - model/v1beta1_endpoint_conditions.h - model/v1beta1_endpoint_hints.h - model/v1beta1_endpoint_port.h - model/v1beta1_endpoint_slice.h - model/v1beta1_endpoint_slice_list.h - model/v1beta1_event.h - model/v1beta1_event_list.h - model/v1beta1_event_series.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_for_zone.h - model/v1beta1_fs_group_strategy_options.h model/v1beta1_group_subject.h - model/v1beta1_host_port_range.h - model/v1beta1_id_range.h - model/v1beta1_job_template_spec.h model/v1beta1_limit_response.h model/v1beta1_limited_priority_level_configuration.h model/v1beta1_non_resource_policy_rule.h - model/v1beta1_overhead.h - model/v1beta1_pod_disruption_budget.h - model/v1beta1_pod_disruption_budget_list.h - model/v1beta1_pod_disruption_budget_spec.h - model/v1beta1_pod_disruption_budget_status.h - model/v1beta1_pod_security_policy.h - model/v1beta1_pod_security_policy_list.h - model/v1beta1_pod_security_policy_spec.h model/v1beta1_policy_rules_with_subjects.h model/v1beta1_priority_level_configuration.h model/v1beta1_priority_level_configuration_condition.h @@ -1124,16 +1049,8 @@ set(HDRS model/v1beta1_priority_level_configuration_status.h model/v1beta1_queuing_configuration.h model/v1beta1_resource_policy_rule.h - model/v1beta1_run_as_group_strategy_options.h - model/v1beta1_run_as_user_strategy_options.h - model/v1beta1_runtime_class.h - model/v1beta1_runtime_class_list.h - model/v1beta1_runtime_class_strategy_options.h - model/v1beta1_scheduling.h - model/v1beta1_se_linux_strategy_options.h model/v1beta1_service_account_subject.h model/v1beta1_subject.h - model/v1beta1_supplemental_groups_strategy_options.h model/v1beta1_user_subject.h model/v1beta2_flow_distinguisher_method.h model/v1beta2_flow_schema.h @@ -1181,24 +1098,6 @@ set(HDRS model/v2_pods_metric_status.h model/v2_resource_metric_source.h model/v2_resource_metric_status.h - model/v2beta1_container_resource_metric_source.h - model/v2beta1_container_resource_metric_status.h - model/v2beta1_cross_version_object_reference.h - model/v2beta1_external_metric_source.h - model/v2beta1_external_metric_status.h - model/v2beta1_horizontal_pod_autoscaler.h - model/v2beta1_horizontal_pod_autoscaler_condition.h - model/v2beta1_horizontal_pod_autoscaler_list.h - model/v2beta1_horizontal_pod_autoscaler_spec.h - model/v2beta1_horizontal_pod_autoscaler_status.h - model/v2beta1_metric_spec.h - model/v2beta1_metric_status.h - model/v2beta1_object_metric_source.h - model/v2beta1_object_metric_status.h - model/v2beta1_pods_metric_source.h - model/v2beta1_pods_metric_status.h - model/v2beta1_resource_metric_source.h - model/v2beta1_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 @@ -1240,11 +1139,9 @@ set(HDRS api/AutoscalingAPI.h api/AutoscalingV1API.h api/AutoscalingV2API.h - api/AutoscalingV2beta1API.h api/AutoscalingV2beta2API.h api/BatchAPI.h api/BatchV1API.h - api/BatchV1beta1API.h api/CertificatesAPI.h api/CertificatesV1API.h api/CoordinationAPI.h @@ -1254,10 +1151,8 @@ set(HDRS api/CustomObjectsAPI.h api/DiscoveryAPI.h api/DiscoveryV1API.h - api/DiscoveryV1beta1API.h api/EventsAPI.h api/EventsV1API.h - api/EventsV1beta1API.h api/FlowcontrolApiserverAPI.h api/FlowcontrolApiserverV1beta1API.h api/FlowcontrolApiserverV1beta2API.h @@ -1266,13 +1161,12 @@ set(HDRS api/LogsAPI.h api/NetworkingAPI.h api/NetworkingV1API.h + api/NetworkingV1alpha1API.h api/NodeAPI.h api/NodeV1API.h - api/NodeV1beta1API.h api/OpenidAPI.h api/PolicyAPI.h api/PolicyV1API.h - api/PolicyV1beta1API.h api/RbacAuthorizationAPI.h api/RbacAuthorizationV1API.h api/SchedulingAPI.h @@ -1379,11 +1273,9 @@ set(HDRS "") # unit-tests/manual-AutoscalingAPI.c # unit-tests/manual-AutoscalingV1API.c # unit-tests/manual-AutoscalingV2API.c -# unit-tests/manual-AutoscalingV2beta1API.c # unit-tests/manual-AutoscalingV2beta2API.c # unit-tests/manual-BatchAPI.c # unit-tests/manual-BatchV1API.c -# unit-tests/manual-BatchV1beta1API.c # unit-tests/manual-CertificatesAPI.c # unit-tests/manual-CertificatesV1API.c # unit-tests/manual-CoordinationAPI.c @@ -1393,10 +1285,8 @@ set(HDRS "") # unit-tests/manual-CustomObjectsAPI.c # unit-tests/manual-DiscoveryAPI.c # unit-tests/manual-DiscoveryV1API.c -# unit-tests/manual-DiscoveryV1beta1API.c # unit-tests/manual-EventsAPI.c # unit-tests/manual-EventsV1API.c -# unit-tests/manual-EventsV1beta1API.c # unit-tests/manual-FlowcontrolApiserverAPI.c # unit-tests/manual-FlowcontrolApiserverV1beta1API.c # unit-tests/manual-FlowcontrolApiserverV1beta2API.c @@ -1405,13 +1295,12 @@ set(HDRS "") # unit-tests/manual-LogsAPI.c # unit-tests/manual-NetworkingAPI.c # unit-tests/manual-NetworkingV1API.c +# unit-tests/manual-NetworkingV1alpha1API.c # unit-tests/manual-NodeAPI.c # unit-tests/manual-NodeV1API.c -# unit-tests/manual-NodeV1beta1API.c # unit-tests/manual-OpenidAPI.c # unit-tests/manual-PolicyAPI.c # unit-tests/manual-PolicyV1API.c -# unit-tests/manual-PolicyV1beta1API.c # unit-tests/manual-RbacAuthorizationAPI.c # unit-tests/manual-RbacAuthorizationV1API.c # unit-tests/manual-SchedulingAPI.c diff --git a/kubernetes/PreTarget.cmake b/kubernetes/PreTarget.cmake index 95b3af5..4bd4d6c 100644 --- a/kubernetes/PreTarget.cmake +++ b/kubernetes/PreTarget.cmake @@ -1,5 +1,5 @@ set(PROJECT_VERSION_MAJOR 0) -set(PROJECT_VERSION_MINOR 4) +set(PROJECT_VERSION_MINOR 5) 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 91d3a6e..631493c 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.24 +- API version: release-1.25 - Package version: - Build package: org.openapitools.codegen.languages.CLibcurlClientCodegen @@ -202,18 +202,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 | -*AutoscalingV2beta1API* | [**AutoscalingV2beta1API_createNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta1API.md#AutoscalingV2beta1API_createNamespacedHorizontalPodAutoscaler) | **POST** /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers | -*AutoscalingV2beta1API* | [**AutoscalingV2beta1API_deleteCollectionNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta1API.md#AutoscalingV2beta1API_deleteCollectionNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers | -*AutoscalingV2beta1API* | [**AutoscalingV2beta1API_deleteNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta1API.md#AutoscalingV2beta1API_deleteNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*AutoscalingV2beta1API* | [**AutoscalingV2beta1API_getAPIResources**](docs/AutoscalingV2beta1API.md#AutoscalingV2beta1API_getAPIResources) | **GET** /apis/autoscaling/v2beta1/ | -*AutoscalingV2beta1API* | [**AutoscalingV2beta1API_listHorizontalPodAutoscalerForAllNamespaces**](docs/AutoscalingV2beta1API.md#AutoscalingV2beta1API_listHorizontalPodAutoscalerForAllNamespaces) | **GET** /apis/autoscaling/v2beta1/horizontalpodautoscalers | -*AutoscalingV2beta1API* | [**AutoscalingV2beta1API_listNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta1API.md#AutoscalingV2beta1API_listNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers | -*AutoscalingV2beta1API* | [**AutoscalingV2beta1API_patchNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta1API.md#AutoscalingV2beta1API_patchNamespacedHorizontalPodAutoscaler) | **PATCH** /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*AutoscalingV2beta1API* | [**AutoscalingV2beta1API_patchNamespacedHorizontalPodAutoscalerStatus**](docs/AutoscalingV2beta1API.md#AutoscalingV2beta1API_patchNamespacedHorizontalPodAutoscalerStatus) | **PATCH** /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -*AutoscalingV2beta1API* | [**AutoscalingV2beta1API_readNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta1API.md#AutoscalingV2beta1API_readNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*AutoscalingV2beta1API* | [**AutoscalingV2beta1API_readNamespacedHorizontalPodAutoscalerStatus**](docs/AutoscalingV2beta1API.md#AutoscalingV2beta1API_readNamespacedHorizontalPodAutoscalerStatus) | **GET** /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -*AutoscalingV2beta1API* | [**AutoscalingV2beta1API_replaceNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta1API.md#AutoscalingV2beta1API_replaceNamespacedHorizontalPodAutoscaler) | **PUT** /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*AutoscalingV2beta1API* | [**AutoscalingV2beta1API_replaceNamespacedHorizontalPodAutoscalerStatus**](docs/AutoscalingV2beta1API.md#AutoscalingV2beta1API_replaceNamespacedHorizontalPodAutoscalerStatus) | **PUT** /apis/autoscaling/v2beta1/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} | @@ -250,18 +238,6 @@ Category | Method | HTTP request | Description *BatchV1API* | [**BatchV1API_replaceNamespacedCronJobStatus**](docs/BatchV1API.md#BatchV1API_replaceNamespacedCronJobStatus) | **PUT** /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status | *BatchV1API* | [**BatchV1API_replaceNamespacedJob**](docs/BatchV1API.md#BatchV1API_replaceNamespacedJob) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | *BatchV1API* | [**BatchV1API_replaceNamespacedJobStatus**](docs/BatchV1API.md#BatchV1API_replaceNamespacedJobStatus) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | -*BatchV1beta1API* | [**BatchV1beta1API_createNamespacedCronJob**](docs/BatchV1beta1API.md#BatchV1beta1API_createNamespacedCronJob) | **POST** /apis/batch/v1beta1/namespaces/{namespace}/cronjobs | -*BatchV1beta1API* | [**BatchV1beta1API_deleteCollectionNamespacedCronJob**](docs/BatchV1beta1API.md#BatchV1beta1API_deleteCollectionNamespacedCronJob) | **DELETE** /apis/batch/v1beta1/namespaces/{namespace}/cronjobs | -*BatchV1beta1API* | [**BatchV1beta1API_deleteNamespacedCronJob**](docs/BatchV1beta1API.md#BatchV1beta1API_deleteNamespacedCronJob) | **DELETE** /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name} | -*BatchV1beta1API* | [**BatchV1beta1API_getAPIResources**](docs/BatchV1beta1API.md#BatchV1beta1API_getAPIResources) | **GET** /apis/batch/v1beta1/ | -*BatchV1beta1API* | [**BatchV1beta1API_listCronJobForAllNamespaces**](docs/BatchV1beta1API.md#BatchV1beta1API_listCronJobForAllNamespaces) | **GET** /apis/batch/v1beta1/cronjobs | -*BatchV1beta1API* | [**BatchV1beta1API_listNamespacedCronJob**](docs/BatchV1beta1API.md#BatchV1beta1API_listNamespacedCronJob) | **GET** /apis/batch/v1beta1/namespaces/{namespace}/cronjobs | -*BatchV1beta1API* | [**BatchV1beta1API_patchNamespacedCronJob**](docs/BatchV1beta1API.md#BatchV1beta1API_patchNamespacedCronJob) | **PATCH** /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name} | -*BatchV1beta1API* | [**BatchV1beta1API_patchNamespacedCronJobStatus**](docs/BatchV1beta1API.md#BatchV1beta1API_patchNamespacedCronJobStatus) | **PATCH** /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status | -*BatchV1beta1API* | [**BatchV1beta1API_readNamespacedCronJob**](docs/BatchV1beta1API.md#BatchV1beta1API_readNamespacedCronJob) | **GET** /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name} | -*BatchV1beta1API* | [**BatchV1beta1API_readNamespacedCronJobStatus**](docs/BatchV1beta1API.md#BatchV1beta1API_readNamespacedCronJobStatus) | **GET** /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status | -*BatchV1beta1API* | [**BatchV1beta1API_replaceNamespacedCronJob**](docs/BatchV1beta1API.md#BatchV1beta1API_replaceNamespacedCronJob) | **PUT** /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name} | -*BatchV1beta1API* | [**BatchV1beta1API_replaceNamespacedCronJobStatus**](docs/BatchV1beta1API.md#BatchV1beta1API_replaceNamespacedCronJobStatus) | **PUT** /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status | *CertificatesAPI* | [**CertificatesAPI_getAPIGroup**](docs/CertificatesAPI.md#CertificatesAPI_getAPIGroup) | **GET** /apis/certificates.k8s.io/ | *CertificatesV1API* | [**CertificatesV1API_createCertificateSigningRequest**](docs/CertificatesV1API.md#CertificatesV1API_createCertificateSigningRequest) | **POST** /apis/certificates.k8s.io/v1/certificatesigningrequests | *CertificatesV1API* | [**CertificatesV1API_deleteCertificateSigningRequest**](docs/CertificatesV1API.md#CertificatesV1API_deleteCertificateSigningRequest) | **DELETE** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | @@ -527,15 +503,6 @@ Category | Method | HTTP request | Description *DiscoveryV1API* | [**DiscoveryV1API_patchNamespacedEndpointSlice**](docs/DiscoveryV1API.md#DiscoveryV1API_patchNamespacedEndpointSlice) | **PATCH** /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name} | *DiscoveryV1API* | [**DiscoveryV1API_readNamespacedEndpointSlice**](docs/DiscoveryV1API.md#DiscoveryV1API_readNamespacedEndpointSlice) | **GET** /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name} | *DiscoveryV1API* | [**DiscoveryV1API_replaceNamespacedEndpointSlice**](docs/DiscoveryV1API.md#DiscoveryV1API_replaceNamespacedEndpointSlice) | **PUT** /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name} | -*DiscoveryV1beta1API* | [**DiscoveryV1beta1API_createNamespacedEndpointSlice**](docs/DiscoveryV1beta1API.md#DiscoveryV1beta1API_createNamespacedEndpointSlice) | **POST** /apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices | -*DiscoveryV1beta1API* | [**DiscoveryV1beta1API_deleteCollectionNamespacedEndpointSlice**](docs/DiscoveryV1beta1API.md#DiscoveryV1beta1API_deleteCollectionNamespacedEndpointSlice) | **DELETE** /apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices | -*DiscoveryV1beta1API* | [**DiscoveryV1beta1API_deleteNamespacedEndpointSlice**](docs/DiscoveryV1beta1API.md#DiscoveryV1beta1API_deleteNamespacedEndpointSlice) | **DELETE** /apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name} | -*DiscoveryV1beta1API* | [**DiscoveryV1beta1API_getAPIResources**](docs/DiscoveryV1beta1API.md#DiscoveryV1beta1API_getAPIResources) | **GET** /apis/discovery.k8s.io/v1beta1/ | -*DiscoveryV1beta1API* | [**DiscoveryV1beta1API_listEndpointSliceForAllNamespaces**](docs/DiscoveryV1beta1API.md#DiscoveryV1beta1API_listEndpointSliceForAllNamespaces) | **GET** /apis/discovery.k8s.io/v1beta1/endpointslices | -*DiscoveryV1beta1API* | [**DiscoveryV1beta1API_listNamespacedEndpointSlice**](docs/DiscoveryV1beta1API.md#DiscoveryV1beta1API_listNamespacedEndpointSlice) | **GET** /apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices | -*DiscoveryV1beta1API* | [**DiscoveryV1beta1API_patchNamespacedEndpointSlice**](docs/DiscoveryV1beta1API.md#DiscoveryV1beta1API_patchNamespacedEndpointSlice) | **PATCH** /apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name} | -*DiscoveryV1beta1API* | [**DiscoveryV1beta1API_readNamespacedEndpointSlice**](docs/DiscoveryV1beta1API.md#DiscoveryV1beta1API_readNamespacedEndpointSlice) | **GET** /apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name} | -*DiscoveryV1beta1API* | [**DiscoveryV1beta1API_replaceNamespacedEndpointSlice**](docs/DiscoveryV1beta1API.md#DiscoveryV1beta1API_replaceNamespacedEndpointSlice) | **PUT** /apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name} | *EventsAPI* | [**EventsAPI_getAPIGroup**](docs/EventsAPI.md#EventsAPI_getAPIGroup) | **GET** /apis/events.k8s.io/ | *EventsV1API* | [**EventsV1API_createNamespacedEvent**](docs/EventsV1API.md#EventsV1API_createNamespacedEvent) | **POST** /apis/events.k8s.io/v1/namespaces/{namespace}/events | *EventsV1API* | [**EventsV1API_deleteCollectionNamespacedEvent**](docs/EventsV1API.md#EventsV1API_deleteCollectionNamespacedEvent) | **DELETE** /apis/events.k8s.io/v1/namespaces/{namespace}/events | @@ -546,15 +513,6 @@ Category | Method | HTTP request | Description *EventsV1API* | [**EventsV1API_patchNamespacedEvent**](docs/EventsV1API.md#EventsV1API_patchNamespacedEvent) | **PATCH** /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name} | *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} | -*EventsV1beta1API* | [**EventsV1beta1API_createNamespacedEvent**](docs/EventsV1beta1API.md#EventsV1beta1API_createNamespacedEvent) | **POST** /apis/events.k8s.io/v1beta1/namespaces/{namespace}/events | -*EventsV1beta1API* | [**EventsV1beta1API_deleteCollectionNamespacedEvent**](docs/EventsV1beta1API.md#EventsV1beta1API_deleteCollectionNamespacedEvent) | **DELETE** /apis/events.k8s.io/v1beta1/namespaces/{namespace}/events | -*EventsV1beta1API* | [**EventsV1beta1API_deleteNamespacedEvent**](docs/EventsV1beta1API.md#EventsV1beta1API_deleteNamespacedEvent) | **DELETE** /apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name} | -*EventsV1beta1API* | [**EventsV1beta1API_getAPIResources**](docs/EventsV1beta1API.md#EventsV1beta1API_getAPIResources) | **GET** /apis/events.k8s.io/v1beta1/ | -*EventsV1beta1API* | [**EventsV1beta1API_listEventForAllNamespaces**](docs/EventsV1beta1API.md#EventsV1beta1API_listEventForAllNamespaces) | **GET** /apis/events.k8s.io/v1beta1/events | -*EventsV1beta1API* | [**EventsV1beta1API_listNamespacedEvent**](docs/EventsV1beta1API.md#EventsV1beta1API_listNamespacedEvent) | **GET** /apis/events.k8s.io/v1beta1/namespaces/{namespace}/events | -*EventsV1beta1API* | [**EventsV1beta1API_patchNamespacedEvent**](docs/EventsV1beta1API.md#EventsV1beta1API_patchNamespacedEvent) | **PATCH** /apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name} | -*EventsV1beta1API* | [**EventsV1beta1API_readNamespacedEvent**](docs/EventsV1beta1API.md#EventsV1beta1API_readNamespacedEvent) | **GET** /apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name} | -*EventsV1beta1API* | [**EventsV1beta1API_replaceNamespacedEvent**](docs/EventsV1beta1API.md#EventsV1beta1API_replaceNamespacedEvent) | **PUT** /apis/events.k8s.io/v1beta1/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 | @@ -643,6 +601,14 @@ Category | Method | HTTP request | Description *NetworkingV1API* | [**NetworkingV1API_replaceNamespacedIngressStatus**](docs/NetworkingV1API.md#NetworkingV1API_replaceNamespacedIngressStatus) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status | *NetworkingV1API* | [**NetworkingV1API_replaceNamespacedNetworkPolicy**](docs/NetworkingV1API.md#NetworkingV1API_replaceNamespacedNetworkPolicy) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} | *NetworkingV1API* | [**NetworkingV1API_replaceNamespacedNetworkPolicyStatus**](docs/NetworkingV1API.md#NetworkingV1API_replaceNamespacedNetworkPolicyStatus) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status | +*NetworkingV1alpha1API* | [**NetworkingV1alpha1API_createClusterCIDR**](docs/NetworkingV1alpha1API.md#NetworkingV1alpha1API_createClusterCIDR) | **POST** /apis/networking.k8s.io/v1alpha1/clustercidrs | +*NetworkingV1alpha1API* | [**NetworkingV1alpha1API_deleteClusterCIDR**](docs/NetworkingV1alpha1API.md#NetworkingV1alpha1API_deleteClusterCIDR) | **DELETE** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | +*NetworkingV1alpha1API* | [**NetworkingV1alpha1API_deleteCollectionClusterCIDR**](docs/NetworkingV1alpha1API.md#NetworkingV1alpha1API_deleteCollectionClusterCIDR) | **DELETE** /apis/networking.k8s.io/v1alpha1/clustercidrs | +*NetworkingV1alpha1API* | [**NetworkingV1alpha1API_getAPIResources**](docs/NetworkingV1alpha1API.md#NetworkingV1alpha1API_getAPIResources) | **GET** /apis/networking.k8s.io/v1alpha1/ | +*NetworkingV1alpha1API* | [**NetworkingV1alpha1API_listClusterCIDR**](docs/NetworkingV1alpha1API.md#NetworkingV1alpha1API_listClusterCIDR) | **GET** /apis/networking.k8s.io/v1alpha1/clustercidrs | +*NetworkingV1alpha1API* | [**NetworkingV1alpha1API_patchClusterCIDR**](docs/NetworkingV1alpha1API.md#NetworkingV1alpha1API_patchClusterCIDR) | **PATCH** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | +*NetworkingV1alpha1API* | [**NetworkingV1alpha1API_readClusterCIDR**](docs/NetworkingV1alpha1API.md#NetworkingV1alpha1API_readClusterCIDR) | **GET** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | +*NetworkingV1alpha1API* | [**NetworkingV1alpha1API_replaceClusterCIDR**](docs/NetworkingV1alpha1API.md#NetworkingV1alpha1API_replaceClusterCIDR) | **PUT** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | *NodeAPI* | [**NodeAPI_getAPIGroup**](docs/NodeAPI.md#NodeAPI_getAPIGroup) | **GET** /apis/node.k8s.io/ | *NodeV1API* | [**NodeV1API_createRuntimeClass**](docs/NodeV1API.md#NodeV1API_createRuntimeClass) | **POST** /apis/node.k8s.io/v1/runtimeclasses | *NodeV1API* | [**NodeV1API_deleteCollectionRuntimeClass**](docs/NodeV1API.md#NodeV1API_deleteCollectionRuntimeClass) | **DELETE** /apis/node.k8s.io/v1/runtimeclasses | @@ -652,14 +618,6 @@ Category | Method | HTTP request | Description *NodeV1API* | [**NodeV1API_patchRuntimeClass**](docs/NodeV1API.md#NodeV1API_patchRuntimeClass) | **PATCH** /apis/node.k8s.io/v1/runtimeclasses/{name} | *NodeV1API* | [**NodeV1API_readRuntimeClass**](docs/NodeV1API.md#NodeV1API_readRuntimeClass) | **GET** /apis/node.k8s.io/v1/runtimeclasses/{name} | *NodeV1API* | [**NodeV1API_replaceRuntimeClass**](docs/NodeV1API.md#NodeV1API_replaceRuntimeClass) | **PUT** /apis/node.k8s.io/v1/runtimeclasses/{name} | -*NodeV1beta1API* | [**NodeV1beta1API_createRuntimeClass**](docs/NodeV1beta1API.md#NodeV1beta1API_createRuntimeClass) | **POST** /apis/node.k8s.io/v1beta1/runtimeclasses | -*NodeV1beta1API* | [**NodeV1beta1API_deleteCollectionRuntimeClass**](docs/NodeV1beta1API.md#NodeV1beta1API_deleteCollectionRuntimeClass) | **DELETE** /apis/node.k8s.io/v1beta1/runtimeclasses | -*NodeV1beta1API* | [**NodeV1beta1API_deleteRuntimeClass**](docs/NodeV1beta1API.md#NodeV1beta1API_deleteRuntimeClass) | **DELETE** /apis/node.k8s.io/v1beta1/runtimeclasses/{name} | -*NodeV1beta1API* | [**NodeV1beta1API_getAPIResources**](docs/NodeV1beta1API.md#NodeV1beta1API_getAPIResources) | **GET** /apis/node.k8s.io/v1beta1/ | -*NodeV1beta1API* | [**NodeV1beta1API_listRuntimeClass**](docs/NodeV1beta1API.md#NodeV1beta1API_listRuntimeClass) | **GET** /apis/node.k8s.io/v1beta1/runtimeclasses | -*NodeV1beta1API* | [**NodeV1beta1API_patchRuntimeClass**](docs/NodeV1beta1API.md#NodeV1beta1API_patchRuntimeClass) | **PATCH** /apis/node.k8s.io/v1beta1/runtimeclasses/{name} | -*NodeV1beta1API* | [**NodeV1beta1API_readRuntimeClass**](docs/NodeV1beta1API.md#NodeV1beta1API_readRuntimeClass) | **GET** /apis/node.k8s.io/v1beta1/runtimeclasses/{name} | -*NodeV1beta1API* | [**NodeV1beta1API_replaceRuntimeClass**](docs/NodeV1beta1API.md#NodeV1beta1API_replaceRuntimeClass) | **PUT** /apis/node.k8s.io/v1beta1/runtimeclasses/{name} | *OpenidAPI* | [**OpenidAPI_getServiceAccountIssuerOpenIDKeyset**](docs/OpenidAPI.md#OpenidAPI_getServiceAccountIssuerOpenIDKeyset) | **GET** /openid/v1/jwks/ | *PolicyAPI* | [**PolicyAPI_getAPIGroup**](docs/PolicyAPI.md#PolicyAPI_getAPIGroup) | **GET** /apis/policy/ | *PolicyV1API* | [**PolicyV1API_createNamespacedPodDisruptionBudget**](docs/PolicyV1API.md#PolicyV1API_createNamespacedPodDisruptionBudget) | **POST** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets | @@ -674,25 +632,6 @@ Category | Method | HTTP request | Description *PolicyV1API* | [**PolicyV1API_readNamespacedPodDisruptionBudgetStatus**](docs/PolicyV1API.md#PolicyV1API_readNamespacedPodDisruptionBudgetStatus) | **GET** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | *PolicyV1API* | [**PolicyV1API_replaceNamespacedPodDisruptionBudget**](docs/PolicyV1API.md#PolicyV1API_replaceNamespacedPodDisruptionBudget) | **PUT** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name} | *PolicyV1API* | [**PolicyV1API_replaceNamespacedPodDisruptionBudgetStatus**](docs/PolicyV1API.md#PolicyV1API_replaceNamespacedPodDisruptionBudgetStatus) | **PUT** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | -*PolicyV1beta1API* | [**PolicyV1beta1API_createNamespacedPodDisruptionBudget**](docs/PolicyV1beta1API.md#PolicyV1beta1API_createNamespacedPodDisruptionBudget) | **POST** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets | -*PolicyV1beta1API* | [**PolicyV1beta1API_createPodSecurityPolicy**](docs/PolicyV1beta1API.md#PolicyV1beta1API_createPodSecurityPolicy) | **POST** /apis/policy/v1beta1/podsecuritypolicies | -*PolicyV1beta1API* | [**PolicyV1beta1API_deleteCollectionNamespacedPodDisruptionBudget**](docs/PolicyV1beta1API.md#PolicyV1beta1API_deleteCollectionNamespacedPodDisruptionBudget) | **DELETE** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets | -*PolicyV1beta1API* | [**PolicyV1beta1API_deleteCollectionPodSecurityPolicy**](docs/PolicyV1beta1API.md#PolicyV1beta1API_deleteCollectionPodSecurityPolicy) | **DELETE** /apis/policy/v1beta1/podsecuritypolicies | -*PolicyV1beta1API* | [**PolicyV1beta1API_deleteNamespacedPodDisruptionBudget**](docs/PolicyV1beta1API.md#PolicyV1beta1API_deleteNamespacedPodDisruptionBudget) | **DELETE** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | -*PolicyV1beta1API* | [**PolicyV1beta1API_deletePodSecurityPolicy**](docs/PolicyV1beta1API.md#PolicyV1beta1API_deletePodSecurityPolicy) | **DELETE** /apis/policy/v1beta1/podsecuritypolicies/{name} | -*PolicyV1beta1API* | [**PolicyV1beta1API_getAPIResources**](docs/PolicyV1beta1API.md#PolicyV1beta1API_getAPIResources) | **GET** /apis/policy/v1beta1/ | -*PolicyV1beta1API* | [**PolicyV1beta1API_listNamespacedPodDisruptionBudget**](docs/PolicyV1beta1API.md#PolicyV1beta1API_listNamespacedPodDisruptionBudget) | **GET** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets | -*PolicyV1beta1API* | [**PolicyV1beta1API_listPodDisruptionBudgetForAllNamespaces**](docs/PolicyV1beta1API.md#PolicyV1beta1API_listPodDisruptionBudgetForAllNamespaces) | **GET** /apis/policy/v1beta1/poddisruptionbudgets | -*PolicyV1beta1API* | [**PolicyV1beta1API_listPodSecurityPolicy**](docs/PolicyV1beta1API.md#PolicyV1beta1API_listPodSecurityPolicy) | **GET** /apis/policy/v1beta1/podsecuritypolicies | -*PolicyV1beta1API* | [**PolicyV1beta1API_patchNamespacedPodDisruptionBudget**](docs/PolicyV1beta1API.md#PolicyV1beta1API_patchNamespacedPodDisruptionBudget) | **PATCH** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | -*PolicyV1beta1API* | [**PolicyV1beta1API_patchNamespacedPodDisruptionBudgetStatus**](docs/PolicyV1beta1API.md#PolicyV1beta1API_patchNamespacedPodDisruptionBudgetStatus) | **PATCH** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | -*PolicyV1beta1API* | [**PolicyV1beta1API_patchPodSecurityPolicy**](docs/PolicyV1beta1API.md#PolicyV1beta1API_patchPodSecurityPolicy) | **PATCH** /apis/policy/v1beta1/podsecuritypolicies/{name} | -*PolicyV1beta1API* | [**PolicyV1beta1API_readNamespacedPodDisruptionBudget**](docs/PolicyV1beta1API.md#PolicyV1beta1API_readNamespacedPodDisruptionBudget) | **GET** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | -*PolicyV1beta1API* | [**PolicyV1beta1API_readNamespacedPodDisruptionBudgetStatus**](docs/PolicyV1beta1API.md#PolicyV1beta1API_readNamespacedPodDisruptionBudgetStatus) | **GET** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | -*PolicyV1beta1API* | [**PolicyV1beta1API_readPodSecurityPolicy**](docs/PolicyV1beta1API.md#PolicyV1beta1API_readPodSecurityPolicy) | **GET** /apis/policy/v1beta1/podsecuritypolicies/{name} | -*PolicyV1beta1API* | [**PolicyV1beta1API_replaceNamespacedPodDisruptionBudget**](docs/PolicyV1beta1API.md#PolicyV1beta1API_replaceNamespacedPodDisruptionBudget) | **PUT** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | -*PolicyV1beta1API* | [**PolicyV1beta1API_replaceNamespacedPodDisruptionBudgetStatus**](docs/PolicyV1beta1API.md#PolicyV1beta1API_replaceNamespacedPodDisruptionBudgetStatus) | **PUT** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | -*PolicyV1beta1API* | [**PolicyV1beta1API_replacePodSecurityPolicy**](docs/PolicyV1beta1API.md#PolicyV1beta1API_replacePodSecurityPolicy) | **PUT** /apis/policy/v1beta1/podsecuritypolicies/{name} | *RbacAuthorizationAPI* | [**RbacAuthorizationAPI_getAPIGroup**](docs/RbacAuthorizationAPI.md#RbacAuthorizationAPI_getAPIGroup) | **GET** /apis/rbac.authorization.k8s.io/ | *RbacAuthorizationV1API* | [**RbacAuthorizationV1API_createClusterRole**](docs/RbacAuthorizationV1API.md#RbacAuthorizationV1API_createClusterRole) | **POST** /apis/rbac.authorization.k8s.io/v1/clusterroles | *RbacAuthorizationV1API* | [**RbacAuthorizationV1API_createClusterRoleBinding**](docs/RbacAuthorizationV1API.md#RbacAuthorizationV1API_createClusterRoleBinding) | **POST** /apis/rbac.authorization.k8s.io/v1/clusterrolebindings | @@ -1047,6 +986,10 @@ Category | Method | HTTP request | Description - [v1_pod_disruption_budget_status_t](docs/v1_pod_disruption_budget_status.md) - [v1_pod_dns_config_t](docs/v1_pod_dns_config.md) - [v1_pod_dns_config_option_t](docs/v1_pod_dns_config_option.md) + - [v1_pod_failure_policy_t](docs/v1_pod_failure_policy.md) + - [v1_pod_failure_policy_on_exit_codes_requirement_t](docs/v1_pod_failure_policy_on_exit_codes_requirement.md) + - [v1_pod_failure_policy_on_pod_conditions_pattern_t](docs/v1_pod_failure_policy_on_pod_conditions_pattern.md) + - [v1_pod_failure_policy_rule_t](docs/v1_pod_failure_policy_rule.md) - [v1_pod_ip_t](docs/v1_pod_ip.md) - [v1_pod_list_t](docs/v1_pod_list.md) - [v1_pod_os_t](docs/v1_pod_os.md) @@ -1186,52 +1129,26 @@ 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_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_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) - - [v1beta1_allowed_csi_driver_t](docs/v1beta1_allowed_csi_driver.md) - - [v1beta1_allowed_flex_volume_t](docs/v1beta1_allowed_flex_volume.md) - - [v1beta1_allowed_host_path_t](docs/v1beta1_allowed_host_path.md) - - [v1beta1_cron_job_t](docs/v1beta1_cron_job.md) - - [v1beta1_cron_job_list_t](docs/v1beta1_cron_job_list.md) - - [v1beta1_cron_job_spec_t](docs/v1beta1_cron_job_spec.md) - - [v1beta1_cron_job_status_t](docs/v1beta1_cron_job_status.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_endpoint_t](docs/v1beta1_endpoint.md) - - [v1beta1_endpoint_conditions_t](docs/v1beta1_endpoint_conditions.md) - - [v1beta1_endpoint_hints_t](docs/v1beta1_endpoint_hints.md) - - [v1beta1_endpoint_port_t](docs/v1beta1_endpoint_port.md) - - [v1beta1_endpoint_slice_t](docs/v1beta1_endpoint_slice.md) - - [v1beta1_endpoint_slice_list_t](docs/v1beta1_endpoint_slice_list.md) - - [v1beta1_event_t](docs/v1beta1_event.md) - - [v1beta1_event_list_t](docs/v1beta1_event_list.md) - - [v1beta1_event_series_t](docs/v1beta1_event_series.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_for_zone_t](docs/v1beta1_for_zone.md) - - [v1beta1_fs_group_strategy_options_t](docs/v1beta1_fs_group_strategy_options.md) - [v1beta1_group_subject_t](docs/v1beta1_group_subject.md) - - [v1beta1_host_port_range_t](docs/v1beta1_host_port_range.md) - - [v1beta1_id_range_t](docs/v1beta1_id_range.md) - - [v1beta1_job_template_spec_t](docs/v1beta1_job_template_spec.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_overhead_t](docs/v1beta1_overhead.md) - - [v1beta1_pod_disruption_budget_t](docs/v1beta1_pod_disruption_budget.md) - - [v1beta1_pod_disruption_budget_list_t](docs/v1beta1_pod_disruption_budget_list.md) - - [v1beta1_pod_disruption_budget_spec_t](docs/v1beta1_pod_disruption_budget_spec.md) - - [v1beta1_pod_disruption_budget_status_t](docs/v1beta1_pod_disruption_budget_status.md) - - [v1beta1_pod_security_policy_t](docs/v1beta1_pod_security_policy.md) - - [v1beta1_pod_security_policy_list_t](docs/v1beta1_pod_security_policy_list.md) - - [v1beta1_pod_security_policy_spec_t](docs/v1beta1_pod_security_policy_spec.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) @@ -1241,16 +1158,8 @@ Category | Method | HTTP request | Description - [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_run_as_group_strategy_options_t](docs/v1beta1_run_as_group_strategy_options.md) - - [v1beta1_run_as_user_strategy_options_t](docs/v1beta1_run_as_user_strategy_options.md) - - [v1beta1_runtime_class_t](docs/v1beta1_runtime_class.md) - - [v1beta1_runtime_class_list_t](docs/v1beta1_runtime_class_list.md) - - [v1beta1_runtime_class_strategy_options_t](docs/v1beta1_runtime_class_strategy_options.md) - - [v1beta1_scheduling_t](docs/v1beta1_scheduling.md) - - [v1beta1_se_linux_strategy_options_t](docs/v1beta1_se_linux_strategy_options.md) - [v1beta1_service_account_subject_t](docs/v1beta1_service_account_subject.md) - [v1beta1_subject_t](docs/v1beta1_subject.md) - - [v1beta1_supplemental_groups_strategy_options_t](docs/v1beta1_supplemental_groups_strategy_options.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) @@ -1298,24 +1207,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) - - [v2beta1_container_resource_metric_source_t](docs/v2beta1_container_resource_metric_source.md) - - [v2beta1_container_resource_metric_status_t](docs/v2beta1_container_resource_metric_status.md) - - [v2beta1_cross_version_object_reference_t](docs/v2beta1_cross_version_object_reference.md) - - [v2beta1_external_metric_source_t](docs/v2beta1_external_metric_source.md) - - [v2beta1_external_metric_status_t](docs/v2beta1_external_metric_status.md) - - [v2beta1_horizontal_pod_autoscaler_t](docs/v2beta1_horizontal_pod_autoscaler.md) - - [v2beta1_horizontal_pod_autoscaler_condition_t](docs/v2beta1_horizontal_pod_autoscaler_condition.md) - - [v2beta1_horizontal_pod_autoscaler_list_t](docs/v2beta1_horizontal_pod_autoscaler_list.md) - - [v2beta1_horizontal_pod_autoscaler_spec_t](docs/v2beta1_horizontal_pod_autoscaler_spec.md) - - [v2beta1_horizontal_pod_autoscaler_status_t](docs/v2beta1_horizontal_pod_autoscaler_status.md) - - [v2beta1_metric_spec_t](docs/v2beta1_metric_spec.md) - - [v2beta1_metric_status_t](docs/v2beta1_metric_status.md) - - [v2beta1_object_metric_source_t](docs/v2beta1_object_metric_source.md) - - [v2beta1_object_metric_status_t](docs/v2beta1_object_metric_status.md) - - [v2beta1_pods_metric_source_t](docs/v2beta1_pods_metric_source.md) - - [v2beta1_pods_metric_status_t](docs/v2beta1_pods_metric_status.md) - - [v2beta1_resource_metric_source_t](docs/v2beta1_resource_metric_source.md) - - [v2beta1_resource_metric_status_t](docs/v2beta1_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) diff --git a/kubernetes/api/AutoscalingV2beta1API.c b/kubernetes/api/AutoscalingV2beta1API.c deleted file mode 100644 index 7bcc0c0..0000000 --- a/kubernetes/api/AutoscalingV2beta1API.c +++ /dev/null @@ -1,2623 +0,0 @@ -#include -#include -#include -#include "AutoscalingV2beta1API.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 HorizontalPodAutoscaler -// -v2beta1_horizontal_pod_autoscaler_t* -AutoscalingV2beta1API_createNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * _namespace , v2beta1_horizontal_pod_autoscaler_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/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta1/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"); - - 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 = v2beta1_horizontal_pod_autoscaler_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 *AutoscalingV2beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta1_horizontal_pod_autoscaler_t *elementToReturn = v2beta1_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta1APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta1APIlocalVarJSON); - 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; - -} - -// delete collection of HorizontalPodAutoscaler -// -v1_status_t* -AutoscalingV2beta1API_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 ) -{ - 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/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta1/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"); - - 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 (gracePeriodSeconds) - { - 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 (limit) - { - 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 (orphanDependents) - { - 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 (timeoutSeconds) - { - 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 *AutoscalingV2beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(AutoscalingV2beta1APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta1APIlocalVarJSON); - 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 a HorizontalPodAutoscaler -// -v1_status_t* -AutoscalingV2beta1API_deleteNamespacedHorizontalPodAutoscaler(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/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{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 (gracePeriodSeconds) - { - 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 (orphanDependents) - { - 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 *AutoscalingV2beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(AutoscalingV2beta1APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta1APIlocalVarJSON); - 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; - -} - -// get available resources -// -v1_api_resource_list_t* -AutoscalingV2beta1API_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/autoscaling/v2beta1/")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta1/"); - - - - 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 *AutoscalingV2beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(AutoscalingV2beta1APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta1APIlocalVarJSON); - 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 HorizontalPodAutoscaler -// -v2beta1_horizontal_pod_autoscaler_list_t* -AutoscalingV2beta1API_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_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/autoscaling/v2beta1/horizontalpodautoscalers")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta1/horizontalpodautoscalers"); - - - - - // query parameters - char *keyQuery_allowWatchBookmarks = NULL; - char * valueQuery_allowWatchBookmarks = NULL; - keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) - { - 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 (limit) - { - 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 (timeoutSeconds) - { - 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 (watch) - { - 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 *AutoscalingV2beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta1_horizontal_pod_autoscaler_list_t *elementToReturn = v2beta1_horizontal_pod_autoscaler_list_parseFromJSON(AutoscalingV2beta1APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta1APIlocalVarJSON); - 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 HorizontalPodAutoscaler -// -v2beta1_horizontal_pod_autoscaler_list_t* -AutoscalingV2beta1API_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 ) -{ - 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/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta1/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"); - - 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 (allowWatchBookmarks) - { - 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 (limit) - { - 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 (timeoutSeconds) - { - 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 (watch) - { - 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 *AutoscalingV2beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta1_horizontal_pod_autoscaler_list_t *elementToReturn = v2beta1_horizontal_pod_autoscaler_list_parseFromJSON(AutoscalingV2beta1APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta1APIlocalVarJSON); - 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; - -} - -// partially update the specified HorizontalPodAutoscaler -// -v2beta1_horizontal_pod_autoscaler_t* -AutoscalingV2beta1API_patchNamespacedHorizontalPodAutoscaler(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/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{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 (force) - { - 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 *AutoscalingV2beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta1_horizontal_pod_autoscaler_t *elementToReturn = v2beta1_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta1APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta1APIlocalVarJSON); - 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 HorizontalPodAutoscaler -// -v2beta1_horizontal_pod_autoscaler_t* -AutoscalingV2beta1API_patchNamespacedHorizontalPodAutoscalerStatus(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/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{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 (force) - { - 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 *AutoscalingV2beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta1_horizontal_pod_autoscaler_t *elementToReturn = v2beta1_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta1APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta1APIlocalVarJSON); - 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; - -} - -// read the specified HorizontalPodAutoscaler -// -v2beta1_horizontal_pod_autoscaler_t* -AutoscalingV2beta1API_readNamespacedHorizontalPodAutoscaler(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/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{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 *AutoscalingV2beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta1_horizontal_pod_autoscaler_t *elementToReturn = v2beta1_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta1APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta1APIlocalVarJSON); - 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 HorizontalPodAutoscaler -// -v2beta1_horizontal_pod_autoscaler_t* -AutoscalingV2beta1API_readNamespacedHorizontalPodAutoscalerStatus(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/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{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 *AutoscalingV2beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta1_horizontal_pod_autoscaler_t *elementToReturn = v2beta1_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta1APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta1APIlocalVarJSON); - 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; - -} - -// replace the specified HorizontalPodAutoscaler -// -v2beta1_horizontal_pod_autoscaler_t* -AutoscalingV2beta1API_replaceNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * name , char * _namespace , v2beta1_horizontal_pod_autoscaler_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/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{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 = v2beta1_horizontal_pod_autoscaler_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 *AutoscalingV2beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta1_horizontal_pod_autoscaler_t *elementToReturn = v2beta1_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta1APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta1APIlocalVarJSON); - 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 HorizontalPodAutoscaler -// -v2beta1_horizontal_pod_autoscaler_t* -AutoscalingV2beta1API_replaceNamespacedHorizontalPodAutoscalerStatus(apiClient_t *apiClient, char * name , char * _namespace , v2beta1_horizontal_pod_autoscaler_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/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{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 = v2beta1_horizontal_pod_autoscaler_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 *AutoscalingV2beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta1_horizontal_pod_autoscaler_t *elementToReturn = v2beta1_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta1APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta1APIlocalVarJSON); - 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; - -} - diff --git a/kubernetes/api/AutoscalingV2beta1API.h b/kubernetes/api/AutoscalingV2beta1API.h deleted file mode 100644 index 7159e4d..0000000 --- a/kubernetes/api/AutoscalingV2beta1API.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/v2beta1_horizontal_pod_autoscaler.h" -#include "../model/v2beta1_horizontal_pod_autoscaler_list.h" - - -// create a HorizontalPodAutoscaler -// -v2beta1_horizontal_pod_autoscaler_t* -AutoscalingV2beta1API_createNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * _namespace , v2beta1_horizontal_pod_autoscaler_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - -// delete collection of HorizontalPodAutoscaler -// -v1_status_t* -AutoscalingV2beta1API_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* -AutoscalingV2beta1API_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* -AutoscalingV2beta1API_getAPIResources(apiClient_t *apiClient); - - -// list or watch objects of kind HorizontalPodAutoscaler -// -v2beta1_horizontal_pod_autoscaler_list_t* -AutoscalingV2beta1API_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 -// -v2beta1_horizontal_pod_autoscaler_list_t* -AutoscalingV2beta1API_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 -// -v2beta1_horizontal_pod_autoscaler_t* -AutoscalingV2beta1API_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 -// -v2beta1_horizontal_pod_autoscaler_t* -AutoscalingV2beta1API_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 -// -v2beta1_horizontal_pod_autoscaler_t* -AutoscalingV2beta1API_readNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); - - -// read status of the specified HorizontalPodAutoscaler -// -v2beta1_horizontal_pod_autoscaler_t* -AutoscalingV2beta1API_readNamespacedHorizontalPodAutoscalerStatus(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); - - -// replace the specified HorizontalPodAutoscaler -// -v2beta1_horizontal_pod_autoscaler_t* -AutoscalingV2beta1API_replaceNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * name , char * _namespace , v2beta1_horizontal_pod_autoscaler_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - -// replace status of the specified HorizontalPodAutoscaler -// -v2beta1_horizontal_pod_autoscaler_t* -AutoscalingV2beta1API_replaceNamespacedHorizontalPodAutoscalerStatus(apiClient_t *apiClient, char * name , char * _namespace , v2beta1_horizontal_pod_autoscaler_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - diff --git a/kubernetes/api/BatchV1beta1API.c b/kubernetes/api/BatchV1beta1API.c deleted file mode 100644 index 1340177..0000000 --- a/kubernetes/api/BatchV1beta1API.c +++ /dev/null @@ -1,2623 +0,0 @@ -#include -#include -#include -#include "BatchV1beta1API.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 CronJob -// -v1beta1_cron_job_t* -BatchV1beta1API_createNamespacedCronJob(apiClient_t *apiClient, char * _namespace , v1beta1_cron_job_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/batch/v1beta1/namespaces/{namespace}/cronjobs")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs"); - - - // 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 = v1beta1_cron_job_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 *BatchV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_cron_job_t *elementToReturn = v1beta1_cron_job_parseFromJSON(BatchV1beta1APIlocalVarJSON); - cJSON_Delete(BatchV1beta1APIlocalVarJSON); - 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; - -} - -// delete collection of CronJob -// -v1_status_t* -BatchV1beta1API_deleteCollectionNamespacedCronJob(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/batch/v1beta1/namespaces/{namespace}/cronjobs")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs"); - - - // 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 (gracePeriodSeconds) - { - 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 (limit) - { - 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 (orphanDependents) - { - 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 (timeoutSeconds) - { - 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 *BatchV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(BatchV1beta1APIlocalVarJSON); - cJSON_Delete(BatchV1beta1APIlocalVarJSON); - 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 a CronJob -// -v1_status_t* -BatchV1beta1API_deleteNamespacedCronJob(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/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{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 (gracePeriodSeconds) - { - 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 (orphanDependents) - { - 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 *BatchV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(BatchV1beta1APIlocalVarJSON); - cJSON_Delete(BatchV1beta1APIlocalVarJSON); - 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; - -} - -// get available resources -// -v1_api_resource_list_t* -BatchV1beta1API_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/batch/v1beta1/")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/batch/v1beta1/"); - - - - 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 *BatchV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(BatchV1beta1APIlocalVarJSON); - cJSON_Delete(BatchV1beta1APIlocalVarJSON); - 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 CronJob -// -v1beta1_cron_job_list_t* -BatchV1beta1API_listCronJobForAllNamespaces(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/batch/v1beta1/cronjobs")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/batch/v1beta1/cronjobs"); - - - - - // query parameters - char *keyQuery_allowWatchBookmarks = NULL; - char * valueQuery_allowWatchBookmarks = NULL; - keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) - { - 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 (limit) - { - 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 (timeoutSeconds) - { - 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 (watch) - { - 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 *BatchV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_cron_job_list_t *elementToReturn = v1beta1_cron_job_list_parseFromJSON(BatchV1beta1APIlocalVarJSON); - cJSON_Delete(BatchV1beta1APIlocalVarJSON); - 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 CronJob -// -v1beta1_cron_job_list_t* -BatchV1beta1API_listNamespacedCronJob(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/batch/v1beta1/namespaces/{namespace}/cronjobs")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs"); - - - // 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 (allowWatchBookmarks) - { - 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 (limit) - { - 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 (timeoutSeconds) - { - 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 (watch) - { - 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 *BatchV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_cron_job_list_t *elementToReturn = v1beta1_cron_job_list_parseFromJSON(BatchV1beta1APIlocalVarJSON); - cJSON_Delete(BatchV1beta1APIlocalVarJSON); - 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; - -} - -// partially update the specified CronJob -// -v1beta1_cron_job_t* -BatchV1beta1API_patchNamespacedCronJob(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/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{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 (force) - { - 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 *BatchV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_cron_job_t *elementToReturn = v1beta1_cron_job_parseFromJSON(BatchV1beta1APIlocalVarJSON); - cJSON_Delete(BatchV1beta1APIlocalVarJSON); - 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 CronJob -// -v1beta1_cron_job_t* -BatchV1beta1API_patchNamespacedCronJobStatus(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/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{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 (force) - { - 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 *BatchV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_cron_job_t *elementToReturn = v1beta1_cron_job_parseFromJSON(BatchV1beta1APIlocalVarJSON); - cJSON_Delete(BatchV1beta1APIlocalVarJSON); - 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; - -} - -// read the specified CronJob -// -v1beta1_cron_job_t* -BatchV1beta1API_readNamespacedCronJob(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/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{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 *BatchV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_cron_job_t *elementToReturn = v1beta1_cron_job_parseFromJSON(BatchV1beta1APIlocalVarJSON); - cJSON_Delete(BatchV1beta1APIlocalVarJSON); - 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 CronJob -// -v1beta1_cron_job_t* -BatchV1beta1API_readNamespacedCronJobStatus(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/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{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 *BatchV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_cron_job_t *elementToReturn = v1beta1_cron_job_parseFromJSON(BatchV1beta1APIlocalVarJSON); - cJSON_Delete(BatchV1beta1APIlocalVarJSON); - 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; - -} - -// replace the specified CronJob -// -v1beta1_cron_job_t* -BatchV1beta1API_replaceNamespacedCronJob(apiClient_t *apiClient, char * name , char * _namespace , v1beta1_cron_job_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/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{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 = v1beta1_cron_job_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 *BatchV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_cron_job_t *elementToReturn = v1beta1_cron_job_parseFromJSON(BatchV1beta1APIlocalVarJSON); - cJSON_Delete(BatchV1beta1APIlocalVarJSON); - 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 CronJob -// -v1beta1_cron_job_t* -BatchV1beta1API_replaceNamespacedCronJobStatus(apiClient_t *apiClient, char * name , char * _namespace , v1beta1_cron_job_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/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{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 = v1beta1_cron_job_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 *BatchV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_cron_job_t *elementToReturn = v1beta1_cron_job_parseFromJSON(BatchV1beta1APIlocalVarJSON); - cJSON_Delete(BatchV1beta1APIlocalVarJSON); - 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; - -} - diff --git a/kubernetes/api/BatchV1beta1API.h b/kubernetes/api/BatchV1beta1API.h deleted file mode 100644 index 3fa28e1..0000000 --- a/kubernetes/api/BatchV1beta1API.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/v1beta1_cron_job.h" -#include "../model/v1beta1_cron_job_list.h" - - -// create a CronJob -// -v1beta1_cron_job_t* -BatchV1beta1API_createNamespacedCronJob(apiClient_t *apiClient, char * _namespace , v1beta1_cron_job_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - -// delete collection of CronJob -// -v1_status_t* -BatchV1beta1API_deleteCollectionNamespacedCronJob(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 CronJob -// -v1_status_t* -BatchV1beta1API_deleteNamespacedCronJob(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* -BatchV1beta1API_getAPIResources(apiClient_t *apiClient); - - -// list or watch objects of kind CronJob -// -v1beta1_cron_job_list_t* -BatchV1beta1API_listCronJobForAllNamespaces(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 CronJob -// -v1beta1_cron_job_list_t* -BatchV1beta1API_listNamespacedCronJob(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 CronJob -// -v1beta1_cron_job_t* -BatchV1beta1API_patchNamespacedCronJob(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 CronJob -// -v1beta1_cron_job_t* -BatchV1beta1API_patchNamespacedCronJobStatus(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); - - -// read the specified CronJob -// -v1beta1_cron_job_t* -BatchV1beta1API_readNamespacedCronJob(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); - - -// read status of the specified CronJob -// -v1beta1_cron_job_t* -BatchV1beta1API_readNamespacedCronJobStatus(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); - - -// replace the specified CronJob -// -v1beta1_cron_job_t* -BatchV1beta1API_replaceNamespacedCronJob(apiClient_t *apiClient, char * name , char * _namespace , v1beta1_cron_job_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - -// replace status of the specified CronJob -// -v1beta1_cron_job_t* -BatchV1beta1API_replaceNamespacedCronJobStatus(apiClient_t *apiClient, char * name , char * _namespace , v1beta1_cron_job_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - diff --git a/kubernetes/api/DiscoveryV1beta1API.c b/kubernetes/api/DiscoveryV1beta1API.c deleted file mode 100644 index cd976ec..0000000 --- a/kubernetes/api/DiscoveryV1beta1API.c +++ /dev/null @@ -1,2075 +0,0 @@ -#include -#include -#include -#include "DiscoveryV1beta1API.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 an EndpointSlice -// -v1beta1_endpoint_slice_t* -DiscoveryV1beta1API_createNamespacedEndpointSlice(apiClient_t *apiClient, char * _namespace , v1beta1_endpoint_slice_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/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices"); - - - // 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 = v1beta1_endpoint_slice_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 *DiscoveryV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_endpoint_slice_t *elementToReturn = v1beta1_endpoint_slice_parseFromJSON(DiscoveryV1beta1APIlocalVarJSON); - cJSON_Delete(DiscoveryV1beta1APIlocalVarJSON); - 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; - -} - -// delete collection of EndpointSlice -// -v1_status_t* -DiscoveryV1beta1API_deleteCollectionNamespacedEndpointSlice(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/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices"); - - - // 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 (gracePeriodSeconds) - { - 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 (limit) - { - 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 (orphanDependents) - { - 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 (timeoutSeconds) - { - 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 *DiscoveryV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(DiscoveryV1beta1APIlocalVarJSON); - cJSON_Delete(DiscoveryV1beta1APIlocalVarJSON); - 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 an EndpointSlice -// -v1_status_t* -DiscoveryV1beta1API_deleteNamespacedEndpointSlice(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/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{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 (gracePeriodSeconds) - { - 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 (orphanDependents) - { - 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 *DiscoveryV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(DiscoveryV1beta1APIlocalVarJSON); - cJSON_Delete(DiscoveryV1beta1APIlocalVarJSON); - 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; - -} - -// get available resources -// -v1_api_resource_list_t* -DiscoveryV1beta1API_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/discovery.k8s.io/v1beta1/")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/discovery.k8s.io/v1beta1/"); - - - - 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 *DiscoveryV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(DiscoveryV1beta1APIlocalVarJSON); - cJSON_Delete(DiscoveryV1beta1APIlocalVarJSON); - 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 EndpointSlice -// -v1beta1_endpoint_slice_list_t* -DiscoveryV1beta1API_listEndpointSliceForAllNamespaces(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/discovery.k8s.io/v1beta1/endpointslices")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/discovery.k8s.io/v1beta1/endpointslices"); - - - - - // query parameters - char *keyQuery_allowWatchBookmarks = NULL; - char * valueQuery_allowWatchBookmarks = NULL; - keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) - { - 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 (limit) - { - 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 (timeoutSeconds) - { - 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 (watch) - { - 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 *DiscoveryV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_endpoint_slice_list_t *elementToReturn = v1beta1_endpoint_slice_list_parseFromJSON(DiscoveryV1beta1APIlocalVarJSON); - cJSON_Delete(DiscoveryV1beta1APIlocalVarJSON); - 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 EndpointSlice -// -v1beta1_endpoint_slice_list_t* -DiscoveryV1beta1API_listNamespacedEndpointSlice(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/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices"); - - - // 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 (allowWatchBookmarks) - { - 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 (limit) - { - 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 (timeoutSeconds) - { - 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 (watch) - { - 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 *DiscoveryV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_endpoint_slice_list_t *elementToReturn = v1beta1_endpoint_slice_list_parseFromJSON(DiscoveryV1beta1APIlocalVarJSON); - cJSON_Delete(DiscoveryV1beta1APIlocalVarJSON); - 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; - -} - -// partially update the specified EndpointSlice -// -v1beta1_endpoint_slice_t* -DiscoveryV1beta1API_patchNamespacedEndpointSlice(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/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{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 (force) - { - 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 *DiscoveryV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_endpoint_slice_t *elementToReturn = v1beta1_endpoint_slice_parseFromJSON(DiscoveryV1beta1APIlocalVarJSON); - cJSON_Delete(DiscoveryV1beta1APIlocalVarJSON); - 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; - -} - -// read the specified EndpointSlice -// -v1beta1_endpoint_slice_t* -DiscoveryV1beta1API_readNamespacedEndpointSlice(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/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{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 *DiscoveryV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_endpoint_slice_t *elementToReturn = v1beta1_endpoint_slice_parseFromJSON(DiscoveryV1beta1APIlocalVarJSON); - cJSON_Delete(DiscoveryV1beta1APIlocalVarJSON); - 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; - -} - -// replace the specified EndpointSlice -// -v1beta1_endpoint_slice_t* -DiscoveryV1beta1API_replaceNamespacedEndpointSlice(apiClient_t *apiClient, char * name , char * _namespace , v1beta1_endpoint_slice_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/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{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 = v1beta1_endpoint_slice_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 *DiscoveryV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_endpoint_slice_t *elementToReturn = v1beta1_endpoint_slice_parseFromJSON(DiscoveryV1beta1APIlocalVarJSON); - cJSON_Delete(DiscoveryV1beta1APIlocalVarJSON); - 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; - -} - diff --git a/kubernetes/api/DiscoveryV1beta1API.h b/kubernetes/api/DiscoveryV1beta1API.h deleted file mode 100644 index c6596f2..0000000 --- a/kubernetes/api/DiscoveryV1beta1API.h +++ /dev/null @@ -1,69 +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/v1beta1_endpoint_slice.h" -#include "../model/v1beta1_endpoint_slice_list.h" - - -// create an EndpointSlice -// -v1beta1_endpoint_slice_t* -DiscoveryV1beta1API_createNamespacedEndpointSlice(apiClient_t *apiClient, char * _namespace , v1beta1_endpoint_slice_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - -// delete collection of EndpointSlice -// -v1_status_t* -DiscoveryV1beta1API_deleteCollectionNamespacedEndpointSlice(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 an EndpointSlice -// -v1_status_t* -DiscoveryV1beta1API_deleteNamespacedEndpointSlice(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* -DiscoveryV1beta1API_getAPIResources(apiClient_t *apiClient); - - -// list or watch objects of kind EndpointSlice -// -v1beta1_endpoint_slice_list_t* -DiscoveryV1beta1API_listEndpointSliceForAllNamespaces(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 EndpointSlice -// -v1beta1_endpoint_slice_list_t* -DiscoveryV1beta1API_listNamespacedEndpointSlice(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 EndpointSlice -// -v1beta1_endpoint_slice_t* -DiscoveryV1beta1API_patchNamespacedEndpointSlice(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); - - -// read the specified EndpointSlice -// -v1beta1_endpoint_slice_t* -DiscoveryV1beta1API_readNamespacedEndpointSlice(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); - - -// replace the specified EndpointSlice -// -v1beta1_endpoint_slice_t* -DiscoveryV1beta1API_replaceNamespacedEndpointSlice(apiClient_t *apiClient, char * name , char * _namespace , v1beta1_endpoint_slice_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - diff --git a/kubernetes/api/EventsV1beta1API.c b/kubernetes/api/EventsV1beta1API.c deleted file mode 100644 index e0e705b..0000000 --- a/kubernetes/api/EventsV1beta1API.c +++ /dev/null @@ -1,2075 +0,0 @@ -#include -#include -#include -#include "EventsV1beta1API.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 an Event -// -v1beta1_event_t* -EventsV1beta1API_createNamespacedEvent(apiClient_t *apiClient, char * _namespace , v1beta1_event_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/events.k8s.io/v1beta1/namespaces/{namespace}/events")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events"); - - - // 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 = v1beta1_event_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 *EventsV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_event_t *elementToReturn = v1beta1_event_parseFromJSON(EventsV1beta1APIlocalVarJSON); - cJSON_Delete(EventsV1beta1APIlocalVarJSON); - 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; - -} - -// delete collection of Event -// -v1_status_t* -EventsV1beta1API_deleteCollectionNamespacedEvent(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/events.k8s.io/v1beta1/namespaces/{namespace}/events")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events"); - - - // 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 (gracePeriodSeconds) - { - 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 (limit) - { - 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 (orphanDependents) - { - 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 (timeoutSeconds) - { - 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 *EventsV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(EventsV1beta1APIlocalVarJSON); - cJSON_Delete(EventsV1beta1APIlocalVarJSON); - 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 an Event -// -v1_status_t* -EventsV1beta1API_deleteNamespacedEvent(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/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{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 (gracePeriodSeconds) - { - 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 (orphanDependents) - { - 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 *EventsV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(EventsV1beta1APIlocalVarJSON); - cJSON_Delete(EventsV1beta1APIlocalVarJSON); - 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; - -} - -// get available resources -// -v1_api_resource_list_t* -EventsV1beta1API_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/events.k8s.io/v1beta1/")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/events.k8s.io/v1beta1/"); - - - - 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 *EventsV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(EventsV1beta1APIlocalVarJSON); - cJSON_Delete(EventsV1beta1APIlocalVarJSON); - 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 Event -// -v1beta1_event_list_t* -EventsV1beta1API_listEventForAllNamespaces(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/events.k8s.io/v1beta1/events")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/events.k8s.io/v1beta1/events"); - - - - - // query parameters - char *keyQuery_allowWatchBookmarks = NULL; - char * valueQuery_allowWatchBookmarks = NULL; - keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) - { - 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 (limit) - { - 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 (timeoutSeconds) - { - 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 (watch) - { - 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 *EventsV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_event_list_t *elementToReturn = v1beta1_event_list_parseFromJSON(EventsV1beta1APIlocalVarJSON); - cJSON_Delete(EventsV1beta1APIlocalVarJSON); - 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 Event -// -v1beta1_event_list_t* -EventsV1beta1API_listNamespacedEvent(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/events.k8s.io/v1beta1/namespaces/{namespace}/events")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events"); - - - // 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 (allowWatchBookmarks) - { - 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 (limit) - { - 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 (timeoutSeconds) - { - 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 (watch) - { - 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 *EventsV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_event_list_t *elementToReturn = v1beta1_event_list_parseFromJSON(EventsV1beta1APIlocalVarJSON); - cJSON_Delete(EventsV1beta1APIlocalVarJSON); - 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; - -} - -// partially update the specified Event -// -v1beta1_event_t* -EventsV1beta1API_patchNamespacedEvent(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/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{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 (force) - { - 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 *EventsV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_event_t *elementToReturn = v1beta1_event_parseFromJSON(EventsV1beta1APIlocalVarJSON); - cJSON_Delete(EventsV1beta1APIlocalVarJSON); - 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; - -} - -// read the specified Event -// -v1beta1_event_t* -EventsV1beta1API_readNamespacedEvent(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/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{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 *EventsV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_event_t *elementToReturn = v1beta1_event_parseFromJSON(EventsV1beta1APIlocalVarJSON); - cJSON_Delete(EventsV1beta1APIlocalVarJSON); - 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; - -} - -// replace the specified Event -// -v1beta1_event_t* -EventsV1beta1API_replaceNamespacedEvent(apiClient_t *apiClient, char * name , char * _namespace , v1beta1_event_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/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{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 = v1beta1_event_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 *EventsV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_event_t *elementToReturn = v1beta1_event_parseFromJSON(EventsV1beta1APIlocalVarJSON); - cJSON_Delete(EventsV1beta1APIlocalVarJSON); - 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; - -} - diff --git a/kubernetes/api/EventsV1beta1API.h b/kubernetes/api/EventsV1beta1API.h deleted file mode 100644 index 43d2888..0000000 --- a/kubernetes/api/EventsV1beta1API.h +++ /dev/null @@ -1,69 +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/v1beta1_event.h" -#include "../model/v1beta1_event_list.h" - - -// create an Event -// -v1beta1_event_t* -EventsV1beta1API_createNamespacedEvent(apiClient_t *apiClient, char * _namespace , v1beta1_event_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - -// delete collection of Event -// -v1_status_t* -EventsV1beta1API_deleteCollectionNamespacedEvent(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 an Event -// -v1_status_t* -EventsV1beta1API_deleteNamespacedEvent(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* -EventsV1beta1API_getAPIResources(apiClient_t *apiClient); - - -// list or watch objects of kind Event -// -v1beta1_event_list_t* -EventsV1beta1API_listEventForAllNamespaces(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 Event -// -v1beta1_event_list_t* -EventsV1beta1API_listNamespacedEvent(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 Event -// -v1beta1_event_t* -EventsV1beta1API_patchNamespacedEvent(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); - - -// read the specified Event -// -v1beta1_event_t* -EventsV1beta1API_readNamespacedEvent(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); - - -// replace the specified Event -// -v1beta1_event_t* -EventsV1beta1API_replaceNamespacedEvent(apiClient_t *apiClient, char * name , char * _namespace , v1beta1_event_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - diff --git a/kubernetes/api/NodeV1beta1API.c b/kubernetes/api/NetworkingV1alpha1API.c similarity index 90% rename from kubernetes/api/NodeV1beta1API.c rename to kubernetes/api/NetworkingV1alpha1API.c index 524a424..28287a6 100644 --- a/kubernetes/api/NodeV1beta1API.c +++ b/kubernetes/api/NetworkingV1alpha1API.c @@ -1,7 +1,7 @@ #include #include #include -#include "NodeV1beta1API.h" +#include "NetworkingV1alpha1API.h" #define MAX_NUMBER_LENGTH 16 #define MAX_BUFFER_LENGTH 4096 @@ -12,10 +12,10 @@ }while(0) -// create a RuntimeClass +// create a ClusterCIDR // -v1beta1_runtime_class_t* -NodeV1beta1API_createRuntimeClass(apiClient_t *apiClient, v1beta1_runtime_class_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +v1alpha1_cluster_cidr_t* +NetworkingV1alpha1API_createClusterCIDR(apiClient_t *apiClient, v1alpha1_cluster_cidr_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -25,9 +25,9 @@ NodeV1beta1API_createRuntimeClass(apiClient_t *apiClient, v1beta1_runtime_class_ char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/node.k8s.io/v1beta1/runtimeclasses")+1; + long sizeOfPath = strlen("/apis/networking.k8s.io/v1alpha1/clustercidrs")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/node.k8s.io/v1beta1/runtimeclasses"); + snprintf(localVarPath, sizeOfPath, "/apis/networking.k8s.io/v1alpha1/clustercidrs"); @@ -85,7 +85,7 @@ NodeV1beta1API_createRuntimeClass(apiClient_t *apiClient, v1beta1_runtime_class_ if (body != NULL) { //string - localVarSingleItemJSON_body = v1beta1_runtime_class_convertToJSON(body); + localVarSingleItemJSON_body = v1alpha1_cluster_cidr_convertToJSON(body); localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); } list_addElement(localVarHeaderType,"application/json"); //produces @@ -118,9 +118,9 @@ NodeV1beta1API_createRuntimeClass(apiClient_t *apiClient, v1beta1_runtime_class_ // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *NodeV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_runtime_class_t *elementToReturn = v1beta1_runtime_class_parseFromJSON(NodeV1beta1APIlocalVarJSON); - cJSON_Delete(NodeV1beta1APIlocalVarJSON); + cJSON *NetworkingV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_cluster_cidr_t *elementToReturn = v1alpha1_cluster_cidr_parseFromJSON(NetworkingV1alpha1APIlocalVarJSON); + cJSON_Delete(NetworkingV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -197,10 +197,10 @@ end: } -// delete collection of RuntimeClass +// delete a ClusterCIDR // v1_status_t* -NodeV1beta1API_deleteCollectionRuntimeClass(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 ) +NetworkingV1alpha1API_deleteClusterCIDR(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; @@ -210,9 +210,227 @@ NodeV1beta1API_deleteCollectionRuntimeClass(apiClient_t *apiClient, char * prett char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/node.k8s.io/v1beta1/runtimeclasses")+1; + long sizeOfPath = strlen("/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/node.k8s.io/v1beta1/runtimeclasses"); + snprintf(localVarPath, sizeOfPath, "/apis/networking.k8s.io/v1alpha1/clustercidrs/{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 (gracePeriodSeconds) + { + 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 (orphanDependents) + { + 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 *NetworkingV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(NetworkingV1alpha1APIlocalVarJSON); + cJSON_Delete(NetworkingV1alpha1APIlocalVarJSON); + 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; + +} + +// delete collection of ClusterCIDR +// +v1_status_t* +NetworkingV1alpha1API_deleteCollectionClusterCIDR(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/networking.k8s.io/v1alpha1/clustercidrs")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/networking.k8s.io/v1alpha1/clustercidrs"); @@ -395,9 +613,9 @@ NodeV1beta1API_deleteCollectionRuntimeClass(apiClient_t *apiClient, char * prett // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *NodeV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(NodeV1beta1APIlocalVarJSON); - cJSON_Delete(NodeV1beta1APIlocalVarJSON); + cJSON *NetworkingV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(NetworkingV1alpha1APIlocalVarJSON); + cJSON_Delete(NetworkingV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -570,228 +788,10 @@ end: } -// delete a RuntimeClass -// -v1_status_t* -NodeV1beta1API_deleteRuntimeClass(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/node.k8s.io/v1beta1/runtimeclasses/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/node.k8s.io/v1beta1/runtimeclasses/{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 (gracePeriodSeconds) - { - 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 (orphanDependents) - { - 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 *NodeV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(NodeV1beta1APIlocalVarJSON); - cJSON_Delete(NodeV1beta1APIlocalVarJSON); - 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* -NodeV1beta1API_getAPIResources(apiClient_t *apiClient) +NetworkingV1alpha1API_getAPIResources(apiClient_t *apiClient) { list_t *localVarQueryParameters = NULL; list_t *localVarHeaderParameters = NULL; @@ -801,9 +801,9 @@ NodeV1beta1API_getAPIResources(apiClient_t *apiClient) char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/node.k8s.io/v1beta1/")+1; + long sizeOfPath = strlen("/apis/networking.k8s.io/v1alpha1/")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/node.k8s.io/v1beta1/"); + snprintf(localVarPath, sizeOfPath, "/apis/networking.k8s.io/v1alpha1/"); @@ -829,9 +829,9 @@ NodeV1beta1API_getAPIResources(apiClient_t *apiClient) // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *NodeV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(NodeV1beta1APIlocalVarJSON); - cJSON_Delete(NodeV1beta1APIlocalVarJSON); + cJSON *NetworkingV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(NetworkingV1alpha1APIlocalVarJSON); + cJSON_Delete(NetworkingV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -855,10 +855,10 @@ end: } -// list or watch objects of kind RuntimeClass +// list or watch objects of kind ClusterCIDR // -v1beta1_runtime_class_list_t* -NodeV1beta1API_listRuntimeClass(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +v1alpha1_cluster_cidr_list_t* +NetworkingV1alpha1API_listClusterCIDR(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; @@ -868,9 +868,9 @@ NodeV1beta1API_listRuntimeClass(apiClient_t *apiClient, char * pretty , int allo char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/node.k8s.io/v1beta1/runtimeclasses")+1; + long sizeOfPath = strlen("/apis/networking.k8s.io/v1alpha1/clustercidrs")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/node.k8s.io/v1beta1/runtimeclasses"); + snprintf(localVarPath, sizeOfPath, "/apis/networking.k8s.io/v1alpha1/clustercidrs"); @@ -1022,9 +1022,9 @@ NodeV1beta1API_listRuntimeClass(apiClient_t *apiClient, char * pretty , int allo // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *NodeV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_runtime_class_list_t *elementToReturn = v1beta1_runtime_class_list_parseFromJSON(NodeV1beta1APIlocalVarJSON); - cJSON_Delete(NodeV1beta1APIlocalVarJSON); + cJSON *NetworkingV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_cluster_cidr_list_t *elementToReturn = v1alpha1_cluster_cidr_list_parseFromJSON(NetworkingV1alpha1APIlocalVarJSON); + cJSON_Delete(NetworkingV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -1168,10 +1168,10 @@ end: } -// partially update the specified RuntimeClass +// partially update the specified ClusterCIDR // -v1beta1_runtime_class_t* -NodeV1beta1API_patchRuntimeClass(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +v1alpha1_cluster_cidr_t* +NetworkingV1alpha1API_patchClusterCIDR(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; @@ -1181,9 +1181,9 @@ NodeV1beta1API_patchRuntimeClass(apiClient_t *apiClient, char * name , object_t char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/node.k8s.io/v1beta1/runtimeclasses/{name}")+1; + long sizeOfPath = strlen("/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/node.k8s.io/v1beta1/runtimeclasses/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}"); // Path Params @@ -1297,9 +1297,9 @@ NodeV1beta1API_patchRuntimeClass(apiClient_t *apiClient, char * name , object_t // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *NodeV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_runtime_class_t *elementToReturn = v1beta1_runtime_class_parseFromJSON(NodeV1beta1APIlocalVarJSON); - cJSON_Delete(NodeV1beta1APIlocalVarJSON); + cJSON *NetworkingV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_cluster_cidr_t *elementToReturn = v1alpha1_cluster_cidr_parseFromJSON(NetworkingV1alpha1APIlocalVarJSON); + cJSON_Delete(NetworkingV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -1389,10 +1389,10 @@ end: } -// read the specified RuntimeClass +// read the specified ClusterCIDR // -v1beta1_runtime_class_t* -NodeV1beta1API_readRuntimeClass(apiClient_t *apiClient, char * name , char * pretty ) +v1alpha1_cluster_cidr_t* +NetworkingV1alpha1API_readClusterCIDR(apiClient_t *apiClient, char * name , char * pretty ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -1402,9 +1402,9 @@ NodeV1beta1API_readRuntimeClass(apiClient_t *apiClient, char * name , char * pre char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/node.k8s.io/v1beta1/runtimeclasses/{name}")+1; + long sizeOfPath = strlen("/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/node.k8s.io/v1beta1/runtimeclasses/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}"); // Path Params @@ -1452,9 +1452,9 @@ NodeV1beta1API_readRuntimeClass(apiClient_t *apiClient, char * name , char * pre // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *NodeV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_runtime_class_t *elementToReturn = v1beta1_runtime_class_parseFromJSON(NodeV1beta1APIlocalVarJSON); - cJSON_Delete(NodeV1beta1APIlocalVarJSON); + cJSON *NetworkingV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_cluster_cidr_t *elementToReturn = v1alpha1_cluster_cidr_parseFromJSON(NetworkingV1alpha1APIlocalVarJSON); + cJSON_Delete(NetworkingV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -1491,10 +1491,10 @@ end: } -// replace the specified RuntimeClass +// replace the specified ClusterCIDR // -v1beta1_runtime_class_t* -NodeV1beta1API_replaceRuntimeClass(apiClient_t *apiClient, char * name , v1beta1_runtime_class_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +v1alpha1_cluster_cidr_t* +NetworkingV1alpha1API_replaceClusterCIDR(apiClient_t *apiClient, char * name , v1alpha1_cluster_cidr_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -1504,9 +1504,9 @@ NodeV1beta1API_replaceRuntimeClass(apiClient_t *apiClient, char * name , v1beta1 char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/node.k8s.io/v1beta1/runtimeclasses/{name}")+1; + long sizeOfPath = strlen("/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/node.k8s.io/v1beta1/runtimeclasses/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}"); // Path Params @@ -1574,7 +1574,7 @@ NodeV1beta1API_replaceRuntimeClass(apiClient_t *apiClient, char * name , v1beta1 if (body != NULL) { //string - localVarSingleItemJSON_body = v1beta1_runtime_class_convertToJSON(body); + localVarSingleItemJSON_body = v1alpha1_cluster_cidr_convertToJSON(body); localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); } list_addElement(localVarHeaderType,"application/json"); //produces @@ -1603,9 +1603,9 @@ NodeV1beta1API_replaceRuntimeClass(apiClient_t *apiClient, char * name , v1beta1 // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *NodeV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_runtime_class_t *elementToReturn = v1beta1_runtime_class_parseFromJSON(NodeV1beta1APIlocalVarJSON); - cJSON_Delete(NodeV1beta1APIlocalVarJSON); + cJSON *NetworkingV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_cluster_cidr_t *elementToReturn = v1alpha1_cluster_cidr_parseFromJSON(NetworkingV1alpha1APIlocalVarJSON); + cJSON_Delete(NetworkingV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } diff --git a/kubernetes/api/NetworkingV1alpha1API.h b/kubernetes/api/NetworkingV1alpha1API.h new file mode 100644 index 0000000..985e441 --- /dev/null +++ b/kubernetes/api/NetworkingV1alpha1API.h @@ -0,0 +1,63 @@ +#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_cluster_cidr.h" +#include "../model/v1alpha1_cluster_cidr_list.h" + + +// create a ClusterCIDR +// +v1alpha1_cluster_cidr_t* +NetworkingV1alpha1API_createClusterCIDR(apiClient_t *apiClient, v1alpha1_cluster_cidr_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// delete a ClusterCIDR +// +v1_status_t* +NetworkingV1alpha1API_deleteClusterCIDR(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); + + +// delete collection of ClusterCIDR +// +v1_status_t* +NetworkingV1alpha1API_deleteCollectionClusterCIDR(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 ); + + +// get available resources +// +v1_api_resource_list_t* +NetworkingV1alpha1API_getAPIResources(apiClient_t *apiClient); + + +// list or watch objects of kind ClusterCIDR +// +v1alpha1_cluster_cidr_list_t* +NetworkingV1alpha1API_listClusterCIDR(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 ClusterCIDR +// +v1alpha1_cluster_cidr_t* +NetworkingV1alpha1API_patchClusterCIDR(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); + + +// read the specified ClusterCIDR +// +v1alpha1_cluster_cidr_t* +NetworkingV1alpha1API_readClusterCIDR(apiClient_t *apiClient, char * name , char * pretty ); + + +// replace the specified ClusterCIDR +// +v1alpha1_cluster_cidr_t* +NetworkingV1alpha1API_replaceClusterCIDR(apiClient_t *apiClient, char * name , v1alpha1_cluster_cidr_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + diff --git a/kubernetes/api/NodeV1beta1API.h b/kubernetes/api/NodeV1beta1API.h deleted file mode 100644 index cbba94a..0000000 --- a/kubernetes/api/NodeV1beta1API.h +++ /dev/null @@ -1,63 +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/v1beta1_runtime_class.h" -#include "../model/v1beta1_runtime_class_list.h" - - -// create a RuntimeClass -// -v1beta1_runtime_class_t* -NodeV1beta1API_createRuntimeClass(apiClient_t *apiClient, v1beta1_runtime_class_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - -// delete collection of RuntimeClass -// -v1_status_t* -NodeV1beta1API_deleteCollectionRuntimeClass(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 RuntimeClass -// -v1_status_t* -NodeV1beta1API_deleteRuntimeClass(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* -NodeV1beta1API_getAPIResources(apiClient_t *apiClient); - - -// list or watch objects of kind RuntimeClass -// -v1beta1_runtime_class_list_t* -NodeV1beta1API_listRuntimeClass(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 RuntimeClass -// -v1beta1_runtime_class_t* -NodeV1beta1API_patchRuntimeClass(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); - - -// read the specified RuntimeClass -// -v1beta1_runtime_class_t* -NodeV1beta1API_readRuntimeClass(apiClient_t *apiClient, char * name , char * pretty ); - - -// replace the specified RuntimeClass -// -v1beta1_runtime_class_t* -NodeV1beta1API_replaceRuntimeClass(apiClient_t *apiClient, char * name , v1beta1_runtime_class_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - diff --git a/kubernetes/api/PolicyV1beta1API.c b/kubernetes/api/PolicyV1beta1API.c deleted file mode 100644 index a5b1bfe..0000000 --- a/kubernetes/api/PolicyV1beta1API.c +++ /dev/null @@ -1,4227 +0,0 @@ -#include -#include -#include -#include "PolicyV1beta1API.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 PodDisruptionBudget -// -v1beta1_pod_disruption_budget_t* -PolicyV1beta1API_createNamespacedPodDisruptionBudget(apiClient_t *apiClient, char * _namespace , v1beta1_pod_disruption_budget_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/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets"); - - - // 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 = v1beta1_pod_disruption_budget_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 *PolicyV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_pod_disruption_budget_t *elementToReturn = v1beta1_pod_disruption_budget_parseFromJSON(PolicyV1beta1APIlocalVarJSON); - cJSON_Delete(PolicyV1beta1APIlocalVarJSON); - 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 PodSecurityPolicy -// -v1beta1_pod_security_policy_t* -PolicyV1beta1API_createPodSecurityPolicy(apiClient_t *apiClient, v1beta1_pod_security_policy_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/policy/v1beta1/podsecuritypolicies")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/policy/v1beta1/podsecuritypolicies"); - - - - - // 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 = v1beta1_pod_security_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 *PolicyV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_pod_security_policy_t *elementToReturn = v1beta1_pod_security_policy_parseFromJSON(PolicyV1beta1APIlocalVarJSON); - cJSON_Delete(PolicyV1beta1APIlocalVarJSON); - 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 PodDisruptionBudget -// -v1_status_t* -PolicyV1beta1API_deleteCollectionNamespacedPodDisruptionBudget(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/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets"); - - - // 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 (gracePeriodSeconds) - { - 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 (limit) - { - 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 (orphanDependents) - { - 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 (timeoutSeconds) - { - 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 *PolicyV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(PolicyV1beta1APIlocalVarJSON); - cJSON_Delete(PolicyV1beta1APIlocalVarJSON); - 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 PodSecurityPolicy -// -v1_status_t* -PolicyV1beta1API_deleteCollectionPodSecurityPolicy(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/policy/v1beta1/podsecuritypolicies")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/policy/v1beta1/podsecuritypolicies"); - - - - - // 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 (gracePeriodSeconds) - { - 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 (limit) - { - 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 (orphanDependents) - { - 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 (timeoutSeconds) - { - 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 *PolicyV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(PolicyV1beta1APIlocalVarJSON); - cJSON_Delete(PolicyV1beta1APIlocalVarJSON); - 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 PodDisruptionBudget -// -v1_status_t* -PolicyV1beta1API_deleteNamespacedPodDisruptionBudget(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/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{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 (gracePeriodSeconds) - { - 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 (orphanDependents) - { - 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 *PolicyV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(PolicyV1beta1APIlocalVarJSON); - cJSON_Delete(PolicyV1beta1APIlocalVarJSON); - 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 PodSecurityPolicy -// -v1beta1_pod_security_policy_t* -PolicyV1beta1API_deletePodSecurityPolicy(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/policy/v1beta1/podsecuritypolicies/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/policy/v1beta1/podsecuritypolicies/{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 (gracePeriodSeconds) - { - 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 (orphanDependents) - { - 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 *PolicyV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_pod_security_policy_t *elementToReturn = v1beta1_pod_security_policy_parseFromJSON(PolicyV1beta1APIlocalVarJSON); - cJSON_Delete(PolicyV1beta1APIlocalVarJSON); - 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* -PolicyV1beta1API_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/policy/v1beta1/")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/policy/v1beta1/"); - - - - 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 *PolicyV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(PolicyV1beta1APIlocalVarJSON); - cJSON_Delete(PolicyV1beta1APIlocalVarJSON); - 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 PodDisruptionBudget -// -v1beta1_pod_disruption_budget_list_t* -PolicyV1beta1API_listNamespacedPodDisruptionBudget(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/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets"); - - - // 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 (allowWatchBookmarks) - { - 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 (limit) - { - 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 (timeoutSeconds) - { - 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 (watch) - { - 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 *PolicyV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_pod_disruption_budget_list_t *elementToReturn = v1beta1_pod_disruption_budget_list_parseFromJSON(PolicyV1beta1APIlocalVarJSON); - cJSON_Delete(PolicyV1beta1APIlocalVarJSON); - 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 PodDisruptionBudget -// -v1beta1_pod_disruption_budget_list_t* -PolicyV1beta1API_listPodDisruptionBudgetForAllNamespaces(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/policy/v1beta1/poddisruptionbudgets")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/policy/v1beta1/poddisruptionbudgets"); - - - - - // query parameters - char *keyQuery_allowWatchBookmarks = NULL; - char * valueQuery_allowWatchBookmarks = NULL; - keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (allowWatchBookmarks) - { - 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 (limit) - { - 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 (timeoutSeconds) - { - 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 (watch) - { - 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 *PolicyV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_pod_disruption_budget_list_t *elementToReturn = v1beta1_pod_disruption_budget_list_parseFromJSON(PolicyV1beta1APIlocalVarJSON); - cJSON_Delete(PolicyV1beta1APIlocalVarJSON); - 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 PodSecurityPolicy -// -v1beta1_pod_security_policy_list_t* -PolicyV1beta1API_listPodSecurityPolicy(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/policy/v1beta1/podsecuritypolicies")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/policy/v1beta1/podsecuritypolicies"); - - - - - // 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 (allowWatchBookmarks) - { - 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 (limit) - { - 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 (timeoutSeconds) - { - 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 (watch) - { - 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 *PolicyV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_pod_security_policy_list_t *elementToReturn = v1beta1_pod_security_policy_list_parseFromJSON(PolicyV1beta1APIlocalVarJSON); - cJSON_Delete(PolicyV1beta1APIlocalVarJSON); - 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 PodDisruptionBudget -// -v1beta1_pod_disruption_budget_t* -PolicyV1beta1API_patchNamespacedPodDisruptionBudget(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/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{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 (force) - { - 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 *PolicyV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_pod_disruption_budget_t *elementToReturn = v1beta1_pod_disruption_budget_parseFromJSON(PolicyV1beta1APIlocalVarJSON); - cJSON_Delete(PolicyV1beta1APIlocalVarJSON); - 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 PodDisruptionBudget -// -v1beta1_pod_disruption_budget_t* -PolicyV1beta1API_patchNamespacedPodDisruptionBudgetStatus(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/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{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 (force) - { - 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 *PolicyV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_pod_disruption_budget_t *elementToReturn = v1beta1_pod_disruption_budget_parseFromJSON(PolicyV1beta1APIlocalVarJSON); - cJSON_Delete(PolicyV1beta1APIlocalVarJSON); - 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 PodSecurityPolicy -// -v1beta1_pod_security_policy_t* -PolicyV1beta1API_patchPodSecurityPolicy(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/policy/v1beta1/podsecuritypolicies/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/policy/v1beta1/podsecuritypolicies/{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 (force) - { - 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 *PolicyV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_pod_security_policy_t *elementToReturn = v1beta1_pod_security_policy_parseFromJSON(PolicyV1beta1APIlocalVarJSON); - cJSON_Delete(PolicyV1beta1APIlocalVarJSON); - 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 PodDisruptionBudget -// -v1beta1_pod_disruption_budget_t* -PolicyV1beta1API_readNamespacedPodDisruptionBudget(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/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{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 *PolicyV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_pod_disruption_budget_t *elementToReturn = v1beta1_pod_disruption_budget_parseFromJSON(PolicyV1beta1APIlocalVarJSON); - cJSON_Delete(PolicyV1beta1APIlocalVarJSON); - 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 PodDisruptionBudget -// -v1beta1_pod_disruption_budget_t* -PolicyV1beta1API_readNamespacedPodDisruptionBudgetStatus(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/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{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 *PolicyV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_pod_disruption_budget_t *elementToReturn = v1beta1_pod_disruption_budget_parseFromJSON(PolicyV1beta1APIlocalVarJSON); - cJSON_Delete(PolicyV1beta1APIlocalVarJSON); - 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 PodSecurityPolicy -// -v1beta1_pod_security_policy_t* -PolicyV1beta1API_readPodSecurityPolicy(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/policy/v1beta1/podsecuritypolicies/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/policy/v1beta1/podsecuritypolicies/{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 *PolicyV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_pod_security_policy_t *elementToReturn = v1beta1_pod_security_policy_parseFromJSON(PolicyV1beta1APIlocalVarJSON); - cJSON_Delete(PolicyV1beta1APIlocalVarJSON); - 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 PodDisruptionBudget -// -v1beta1_pod_disruption_budget_t* -PolicyV1beta1API_replaceNamespacedPodDisruptionBudget(apiClient_t *apiClient, char * name , char * _namespace , v1beta1_pod_disruption_budget_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/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{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 = v1beta1_pod_disruption_budget_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 *PolicyV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_pod_disruption_budget_t *elementToReturn = v1beta1_pod_disruption_budget_parseFromJSON(PolicyV1beta1APIlocalVarJSON); - cJSON_Delete(PolicyV1beta1APIlocalVarJSON); - 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 PodDisruptionBudget -// -v1beta1_pod_disruption_budget_t* -PolicyV1beta1API_replaceNamespacedPodDisruptionBudgetStatus(apiClient_t *apiClient, char * name , char * _namespace , v1beta1_pod_disruption_budget_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/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{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 = v1beta1_pod_disruption_budget_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 *PolicyV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_pod_disruption_budget_t *elementToReturn = v1beta1_pod_disruption_budget_parseFromJSON(PolicyV1beta1APIlocalVarJSON); - cJSON_Delete(PolicyV1beta1APIlocalVarJSON); - 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 PodSecurityPolicy -// -v1beta1_pod_security_policy_t* -PolicyV1beta1API_replacePodSecurityPolicy(apiClient_t *apiClient, char * name , v1beta1_pod_security_policy_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/policy/v1beta1/podsecuritypolicies/{name}")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/policy/v1beta1/podsecuritypolicies/{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 = v1beta1_pod_security_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, - "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 *PolicyV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_pod_security_policy_t *elementToReturn = v1beta1_pod_security_policy_parseFromJSON(PolicyV1beta1APIlocalVarJSON); - cJSON_Delete(PolicyV1beta1APIlocalVarJSON); - 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/PolicyV1beta1API.h b/kubernetes/api/PolicyV1beta1API.h deleted file mode 100644 index 12a88d4..0000000 --- a/kubernetes/api/PolicyV1beta1API.h +++ /dev/null @@ -1,131 +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/v1beta1_pod_disruption_budget.h" -#include "../model/v1beta1_pod_disruption_budget_list.h" -#include "../model/v1beta1_pod_security_policy.h" -#include "../model/v1beta1_pod_security_policy_list.h" - - -// create a PodDisruptionBudget -// -v1beta1_pod_disruption_budget_t* -PolicyV1beta1API_createNamespacedPodDisruptionBudget(apiClient_t *apiClient, char * _namespace , v1beta1_pod_disruption_budget_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - -// create a PodSecurityPolicy -// -v1beta1_pod_security_policy_t* -PolicyV1beta1API_createPodSecurityPolicy(apiClient_t *apiClient, v1beta1_pod_security_policy_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - -// delete collection of PodDisruptionBudget -// -v1_status_t* -PolicyV1beta1API_deleteCollectionNamespacedPodDisruptionBudget(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 PodSecurityPolicy -// -v1_status_t* -PolicyV1beta1API_deleteCollectionPodSecurityPolicy(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 PodDisruptionBudget -// -v1_status_t* -PolicyV1beta1API_deleteNamespacedPodDisruptionBudget(apiClient_t *apiClient, char * name , char * _namespace , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); - - -// delete a PodSecurityPolicy -// -v1beta1_pod_security_policy_t* -PolicyV1beta1API_deletePodSecurityPolicy(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* -PolicyV1beta1API_getAPIResources(apiClient_t *apiClient); - - -// list or watch objects of kind PodDisruptionBudget -// -v1beta1_pod_disruption_budget_list_t* -PolicyV1beta1API_listNamespacedPodDisruptionBudget(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 PodDisruptionBudget -// -v1beta1_pod_disruption_budget_list_t* -PolicyV1beta1API_listPodDisruptionBudgetForAllNamespaces(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 PodSecurityPolicy -// -v1beta1_pod_security_policy_list_t* -PolicyV1beta1API_listPodSecurityPolicy(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 PodDisruptionBudget -// -v1beta1_pod_disruption_budget_t* -PolicyV1beta1API_patchNamespacedPodDisruptionBudget(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 PodDisruptionBudget -// -v1beta1_pod_disruption_budget_t* -PolicyV1beta1API_patchNamespacedPodDisruptionBudgetStatus(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); - - -// partially update the specified PodSecurityPolicy -// -v1beta1_pod_security_policy_t* -PolicyV1beta1API_patchPodSecurityPolicy(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); - - -// read the specified PodDisruptionBudget -// -v1beta1_pod_disruption_budget_t* -PolicyV1beta1API_readNamespacedPodDisruptionBudget(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); - - -// read status of the specified PodDisruptionBudget -// -v1beta1_pod_disruption_budget_t* -PolicyV1beta1API_readNamespacedPodDisruptionBudgetStatus(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); - - -// read the specified PodSecurityPolicy -// -v1beta1_pod_security_policy_t* -PolicyV1beta1API_readPodSecurityPolicy(apiClient_t *apiClient, char * name , char * pretty ); - - -// replace the specified PodDisruptionBudget -// -v1beta1_pod_disruption_budget_t* -PolicyV1beta1API_replaceNamespacedPodDisruptionBudget(apiClient_t *apiClient, char * name , char * _namespace , v1beta1_pod_disruption_budget_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - -// replace status of the specified PodDisruptionBudget -// -v1beta1_pod_disruption_budget_t* -PolicyV1beta1API_replaceNamespacedPodDisruptionBudgetStatus(apiClient_t *apiClient, char * name , char * _namespace , v1beta1_pod_disruption_budget_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - -// replace the specified PodSecurityPolicy -// -v1beta1_pod_security_policy_t* -PolicyV1beta1API_replacePodSecurityPolicy(apiClient_t *apiClient, char * name , v1beta1_pod_security_policy_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - diff --git a/kubernetes/docs/NetworkingV1alpha1API.md b/kubernetes/docs/NetworkingV1alpha1API.md new file mode 100644 index 0000000..12db952 --- /dev/null +++ b/kubernetes/docs/NetworkingV1alpha1API.md @@ -0,0 +1,290 @@ +# NetworkingV1alpha1API + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**NetworkingV1alpha1API_createClusterCIDR**](NetworkingV1alpha1API.md#NetworkingV1alpha1API_createClusterCIDR) | **POST** /apis/networking.k8s.io/v1alpha1/clustercidrs | +[**NetworkingV1alpha1API_deleteClusterCIDR**](NetworkingV1alpha1API.md#NetworkingV1alpha1API_deleteClusterCIDR) | **DELETE** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | +[**NetworkingV1alpha1API_deleteCollectionClusterCIDR**](NetworkingV1alpha1API.md#NetworkingV1alpha1API_deleteCollectionClusterCIDR) | **DELETE** /apis/networking.k8s.io/v1alpha1/clustercidrs | +[**NetworkingV1alpha1API_getAPIResources**](NetworkingV1alpha1API.md#NetworkingV1alpha1API_getAPIResources) | **GET** /apis/networking.k8s.io/v1alpha1/ | +[**NetworkingV1alpha1API_listClusterCIDR**](NetworkingV1alpha1API.md#NetworkingV1alpha1API_listClusterCIDR) | **GET** /apis/networking.k8s.io/v1alpha1/clustercidrs | +[**NetworkingV1alpha1API_patchClusterCIDR**](NetworkingV1alpha1API.md#NetworkingV1alpha1API_patchClusterCIDR) | **PATCH** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | +[**NetworkingV1alpha1API_readClusterCIDR**](NetworkingV1alpha1API.md#NetworkingV1alpha1API_readClusterCIDR) | **GET** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | +[**NetworkingV1alpha1API_replaceClusterCIDR**](NetworkingV1alpha1API.md#NetworkingV1alpha1API_replaceClusterCIDR) | **PUT** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | + + +# **NetworkingV1alpha1API_createClusterCIDR** +```c +// create a ClusterCIDR +// +v1alpha1_cluster_cidr_t* NetworkingV1alpha1API_createClusterCIDR(apiClient_t *apiClient, v1alpha1_cluster_cidr_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_cluster_cidr_t](v1alpha1_cluster_cidr.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_cluster_cidr_t](v1alpha1_cluster_cidr.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) + +# **NetworkingV1alpha1API_deleteClusterCIDR** +```c +// delete a ClusterCIDR +// +v1_status_t* NetworkingV1alpha1API_deleteClusterCIDR(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 ClusterCIDR | +**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) + +# **NetworkingV1alpha1API_deleteCollectionClusterCIDR** +```c +// delete collection of ClusterCIDR +// +v1_status_t* NetworkingV1alpha1API_deleteCollectionClusterCIDR(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) + +# **NetworkingV1alpha1API_getAPIResources** +```c +// get available resources +// +v1_api_resource_list_t* NetworkingV1alpha1API_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) + +# **NetworkingV1alpha1API_listClusterCIDR** +```c +// list or watch objects of kind ClusterCIDR +// +v1alpha1_cluster_cidr_list_t* NetworkingV1alpha1API_listClusterCIDR(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_cluster_cidr_list_t](v1alpha1_cluster_cidr_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) + +# **NetworkingV1alpha1API_patchClusterCIDR** +```c +// partially update the specified ClusterCIDR +// +v1alpha1_cluster_cidr_t* NetworkingV1alpha1API_patchClusterCIDR(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 ClusterCIDR | +**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_cluster_cidr_t](v1alpha1_cluster_cidr.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) + +# **NetworkingV1alpha1API_readClusterCIDR** +```c +// read the specified ClusterCIDR +// +v1alpha1_cluster_cidr_t* NetworkingV1alpha1API_readClusterCIDR(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 ClusterCIDR | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1alpha1_cluster_cidr_t](v1alpha1_cluster_cidr.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) + +# **NetworkingV1alpha1API_replaceClusterCIDR** +```c +// replace the specified ClusterCIDR +// +v1alpha1_cluster_cidr_t* NetworkingV1alpha1API_replaceClusterCIDR(apiClient_t *apiClient, char * name, v1alpha1_cluster_cidr_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 ClusterCIDR | +**body** | **[v1alpha1_cluster_cidr_t](v1alpha1_cluster_cidr.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_cluster_cidr_t](v1alpha1_cluster_cidr.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_container.md b/kubernetes/docs/v1_container.md index 68b0de8..ce0cb57 100644 --- a/kubernetes/docs/v1_container.md +++ b/kubernetes/docs/v1_container.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **lifecycle** | [**v1_lifecycle_t**](v1_lifecycle.md) \* | | [optional] **liveness_probe** | [**v1_probe_t**](v1_probe.md) \* | | [optional] **name** | **char \*** | Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. | -**ports** | [**list_t**](v1_container_port.md) \* | List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. 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. Cannot be updated. | [optional] +**ports** | [**list_t**](v1_container_port.md) \* | 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. | [optional] **readiness_probe** | [**v1_probe_t**](v1_probe.md) \* | | [optional] **resources** | [**v1_resource_requirements_t**](v1_resource_requirements.md) \* | | [optional] **security_context** | [**v1_security_context_t**](v1_security_context.md) \* | | [optional] diff --git a/kubernetes/docs/v1_container_image.md b/kubernetes/docs/v1_container_image.md index a46a8b2..9e0267f 100644 --- a/kubernetes/docs/v1_container_image.md +++ b/kubernetes/docs/v1_container_image.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**names** | **list_t \*** | Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"] | [optional] +**names** | **list_t \*** | 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\"] | [optional] **size_bytes** | **long** | The size of the image in bytes. | [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_cron_job_spec.md b/kubernetes/docs/v1_cron_job_spec.md index 6ec94f9..023ff0c 100644 --- a/kubernetes/docs/v1_cron_job_spec.md +++ b/kubernetes/docs/v1_cron_job_spec.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **starting_deadline_seconds** | **long** | 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. | [optional] **successful_jobs_history_limit** | **int** | The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3. | [optional] **suspend** | **int** | This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. | [optional] -**time_zone** | **char \*** | The time zone for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will rely on the time zone of the kube-controller-manager process. ALPHA: This field is in alpha and must be enabled via the `CronJobTimeZone` feature gate. | [optional] +**time_zone** | **char \*** | 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. | [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_csi_driver_spec.md b/kubernetes/docs/v1_csi_driver_spec.md index 19ee10c..c3c7b2c 100644 --- a/kubernetes/docs/v1_csi_driver_spec.md +++ b/kubernetes/docs/v1_csi_driver_spec.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **fs_group_policy** | **char \*** | 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. This field is immutable. Defaults 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. | [optional] **pod_info_on_mount** | **int** | 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 defined by a CSIVolumeSource, otherwise \"false\" \"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. This field is immutable. | [optional] **requires_republish** | **int** | RequiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false. Note: 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. | [optional] +**se_linux_mount** | **int** | SELinuxMount specifies if the CSI driver supports \"-o context\" mount option. When \"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. When \"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. Default is \"false\". | [optional] **storage_capacity** | **int** | 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. The 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. Alternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published. This field was immutable in Kubernetes <= 1.22 and now is mutable. | [optional] **token_requests** | [**list_t**](storage_v1_token_request.md) \* | 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\": { \"<audience>\": { \"token\": <token>, \"expirationTimestamp\": <expiration timestamp in RFC3339>, }, ... } Note: 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. | [optional] **volume_lifecycle_modes** | **list_t \*** | 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. This field is immutable. | [optional] diff --git a/kubernetes/docs/v1_csi_persistent_volume_source.md b/kubernetes/docs/v1_csi_persistent_volume_source.md index 05c487f..b50ef40 100644 --- a/kubernetes/docs/v1_csi_persistent_volume_source.md +++ b/kubernetes/docs/v1_csi_persistent_volume_source.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **controller_publish_secret_ref** | [**v1_secret_reference_t**](v1_secret_reference.md) \* | | [optional] **driver** | **char \*** | driver is the name of the driver to use for this volume. Required. | **fs_type** | **char \*** | fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". | [optional] +**node_expand_secret_ref** | [**v1_secret_reference_t**](v1_secret_reference.md) \* | | [optional] **node_publish_secret_ref** | [**v1_secret_reference_t**](v1_secret_reference.md) \* | | [optional] **node_stage_secret_ref** | [**v1_secret_reference_t**](v1_secret_reference.md) \* | | [optional] **read_only** | **int** | readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). | [optional] diff --git a/kubernetes/docs/v1_endpoint.md b/kubernetes/docs/v1_endpoint.md index 45850a4..33aea3d 100644 --- a/kubernetes/docs/v1_endpoint.md +++ b/kubernetes/docs/v1_endpoint.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **deprecated_topology** | **list_t*** | deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead. | [optional] **hints** | [**v1_endpoint_hints_t**](v1_endpoint_hints.md) \* | | [optional] **hostname** | **char \*** | hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. | [optional] -**node_name** | **char \*** | nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate. | [optional] +**node_name** | **char \*** | nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. | [optional] **target_ref** | [**v1_object_reference_t**](v1_object_reference.md) \* | | [optional] **zone** | **char \*** | zone is the name of the Zone this endpoint exists in. | [optional] diff --git a/kubernetes/docs/v1_ingress_spec.md b/kubernetes/docs/v1_ingress_spec.md index 0f2bfc0..51ec997 100644 --- a/kubernetes/docs/v1_ingress_spec.md +++ b/kubernetes/docs/v1_ingress_spec.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **default_backend** | [**v1_ingress_backend_t**](v1_ingress_backend.md) \* | | [optional] -**ingress_class_name** | **char \*** | IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation. | [optional] +**ingress_class_name** | **char \*** | IngressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present. | [optional] **rules** | [**list_t**](v1_ingress_rule.md) \* | A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. | [optional] **tls** | [**list_t**](v1_ingress_tls.md) \* | TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. | [optional] diff --git a/kubernetes/docs/v1_job_spec.md b/kubernetes/docs/v1_job_spec.md index e438d3f..565353b 100644 --- a/kubernetes/docs/v1_job_spec.md +++ b/kubernetes/docs/v1_job_spec.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **completions** | **int** | 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/ | [optional] **manual_selector** | **int** | 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 | [optional] **parallelism** | **int** | 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/ | [optional] +**pod_failure_policy** | [**v1_pod_failure_policy_t**](v1_pod_failure_policy.md) \* | | [optional] **selector** | [**v1_label_selector_t**](v1_label_selector.md) \* | | [optional] **suspend** | **int** | 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. | [optional] **_template** | [**v1_pod_template_spec_t**](v1_pod_template_spec.md) \* | | diff --git a/kubernetes/docs/v1_network_policy_port.md b/kubernetes/docs/v1_network_policy_port.md index f7940f5..cf3aae4 100644 --- a/kubernetes/docs/v1_network_policy_port.md +++ b/kubernetes/docs/v1_network_policy_port.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**end_port** | **int** | If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. This feature is in Beta state and is enabled by default. It can be disabled using the Feature Gate \"NetworkPolicyEndPort\". | [optional] +**end_port** | **int** | If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. | [optional] **port** | **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] **protocol** | **char \*** | The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. | [optional] diff --git a/kubernetes/docs/v1_object_meta.md b/kubernetes/docs/v1_object_meta.md index 7c41872..74ab7f3 100644 --- a/kubernetes/docs/v1_object_meta.md +++ b/kubernetes/docs/v1_object_meta.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **annotations** | **list_t*** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | [optional] -**cluster_name** | **char \*** | Deprecated: ClusterName is a legacy field that was always cleared by the system and never used; it will be removed completely in 1.25. The name in the go struct is changed to help clients detect accidental use. | [optional] **creation_timestamp** | **char \*** | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] **deletion_grace_period_seconds** | **long** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. | [optional] **deletion_timestamp** | **char \*** | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] diff --git a/kubernetes/docs/v1_pod_failure_policy.md b/kubernetes/docs/v1_pod_failure_policy.md new file mode 100644 index 0000000..841a46f --- /dev/null +++ b/kubernetes/docs/v1_pod_failure_policy.md @@ -0,0 +1,10 @@ +# v1_pod_failure_policy_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rules** | [**list_t**](v1_pod_failure_policy_rule.md) \* | 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. | + +[[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_failure_policy_on_exit_codes_requirement.md b/kubernetes/docs/v1_pod_failure_policy_on_exit_codes_requirement.md new file mode 100644 index 0000000..60c2989 --- /dev/null +++ b/kubernetes/docs/v1_pod_failure_policy_on_exit_codes_requirement.md @@ -0,0 +1,12 @@ +# v1_pod_failure_policy_on_exit_codes_requirement_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**container_name** | **char \*** | 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. | [optional] +**_operator** | **char \*** | 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 (might be multiple if there are multiple containers not restricted by the 'containerName' field) is in the set of specified values. - NotIn: the requirement is satisfied if at least one container exit code (might be multiple if there are multiple containers not restricted by the 'containerName' field) is not in the set of specified values. Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied. | +**values** | **list_t \*** | 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. | + +[[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_failure_policy_on_pod_conditions_pattern.md b/kubernetes/docs/v1_pod_failure_policy_on_pod_conditions_pattern.md new file mode 100644 index 0000000..56af79f --- /dev/null +++ b/kubernetes/docs/v1_pod_failure_policy_on_pod_conditions_pattern.md @@ -0,0 +1,11 @@ +# v1_pod_failure_policy_on_pod_conditions_pattern_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **char \*** | 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** | **char \*** | Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type. | + +[[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_failure_policy_rule.md b/kubernetes/docs/v1_pod_failure_policy_rule.md new file mode 100644 index 0000000..8127b0a --- /dev/null +++ b/kubernetes/docs/v1_pod_failure_policy_rule.md @@ -0,0 +1,12 @@ +# v1_pod_failure_policy_rule_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **char \*** | 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 running pods are terminated. - Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created. - Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. | +**on_exit_codes** | [**v1_pod_failure_policy_on_exit_codes_requirement_t**](v1_pod_failure_policy_on_exit_codes_requirement.md) \* | | [optional] +**on_pod_conditions** | [**list_t**](v1_pod_failure_policy_on_pod_conditions_pattern.md) \* | 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. | + +[[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_spec.md b/kubernetes/docs/v1_pod_spec.md index f605e75..a154a0f 100644 --- a/kubernetes/docs/v1_pod_spec.md +++ b/kubernetes/docs/v1_pod_spec.md @@ -10,11 +10,12 @@ Name | Type | Description | Notes **dns_config** | [**v1_pod_dns_config_t**](v1_pod_dns_config.md) \* | | [optional] **dns_policy** | **char \*** | Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. | [optional] **enable_service_links** | **int** | EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. | [optional] -**ephemeral_containers** | [**list_t**](v1_ephemeral_container.md) \* | List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate. | [optional] +**ephemeral_containers** | [**list_t**](v1_ephemeral_container.md) \* | List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. | [optional] **host_aliases** | [**list_t**](v1_host_alias.md) \* | HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. | [optional] **host_ipc** | **int** | Use the host's ipc namespace. Optional: Default to false. | [optional] **host_network** | **int** | Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. | [optional] **host_pid** | **int** | Use the host's pid namespace. Optional: Default to false. | [optional] +**host_users** | **int** | Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. | [optional] **hostname** | **char \*** | Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. | [optional] **image_pull_secrets** | [**list_t**](v1_local_object_reference.md) \* | ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod | [optional] **init_containers** | [**list_t**](v1_container.md) \* | List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ | [optional] diff --git a/kubernetes/docs/v1_pod_status.md b/kubernetes/docs/v1_pod_status.md index 00ae524..3ec8f9a 100644 --- a/kubernetes/docs/v1_pod_status.md +++ b/kubernetes/docs/v1_pod_status.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**list_t**](v1_pod_condition.md) \* | Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions | [optional] **container_statuses** | [**list_t**](v1_container_status.md) \* | The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status | [optional] -**ephemeral_container_statuses** | [**list_t**](v1_container_status.md) \* | Status for any ephemeral containers that have run in this pod. This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate. | [optional] +**ephemeral_container_statuses** | [**list_t**](v1_container_status.md) \* | Status for any ephemeral containers that have run in this pod. | [optional] **host_ip** | **char \*** | IP address of the host to which the pod is assigned. Empty if not yet scheduled. | [optional] **init_container_statuses** | [**list_t**](v1_container_status.md) \* | The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status | [optional] **message** | **char \*** | A human readable message indicating details about why the pod is in this condition. | [optional] diff --git a/kubernetes/docs/v1_policy_rule.md b/kubernetes/docs/v1_policy_rule.md index 1a92abf..536f958 100644 --- a/kubernetes/docs/v1_policy_rule.md +++ b/kubernetes/docs/v1_policy_rule.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_groups** | **list_t \*** | APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. | [optional] +**api_groups** | **list_t \*** | APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups. | [optional] **non_resource_urls** | **list_t \*** | NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. | [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. '*' represents all resources. | [optional] diff --git a/kubernetes/docs/v1_service_spec.md b/kubernetes/docs/v1_service_spec.md index 0b8602f..df9dd3c 100644 --- a/kubernetes/docs/v1_service_spec.md +++ b/kubernetes/docs/v1_service_spec.md @@ -8,9 +8,9 @@ Name | Type | Description | Notes **cluster_ips** | **list_t \*** | ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value. This field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies | [optional] **external_ips** | **list_t \*** | externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. | [optional] **external_name** | **char \*** | externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\". | [optional] -**external_traffic_policy** | **char \*** | externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. \"Local\" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. \"Cluster\" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. | [optional] -**health_check_node_port** | **int** | healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). | [optional] -**internal_traffic_policy** | **char \*** | InternalTrafficPolicy specifies if the cluster internal traffic should be routed to all endpoints or node-local endpoints only. \"Cluster\" routes internal traffic to a Service to all endpoints. \"Local\" routes traffic to node-local endpoints only, traffic is dropped if no node-local endpoints are ready. The default value is \"Cluster\". | [optional] +**external_traffic_policy** | **char \*** | externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node. | [optional] +**health_check_node_port** | **int** | healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set. | [optional] +**internal_traffic_policy** | **char \*** | InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). | [optional] **ip_families** | **list_t \*** | IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName. This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. | [optional] **ip_family_policy** | **char \*** | IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be \"SingleStack\" (a single IP family), \"PreferDualStack\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \"RequireDualStack\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName. | [optional] **load_balancer_class** | **char \*** | loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. | [optional] diff --git a/kubernetes/docs/v1_stateful_set_spec.md b/kubernetes/docs/v1_stateful_set_spec.md index 240fa02..bad7a1f 100644 --- a/kubernetes/docs/v1_stateful_set_spec.md +++ b/kubernetes/docs/v1_stateful_set_spec.md @@ -3,7 +3,7 @@ ## Properties 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) This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate. | [optional] +**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] **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_stateful_set_status.md b/kubernetes/docs/v1_stateful_set_status.md index 100ac82..7288464 100644 --- a/kubernetes/docs/v1_stateful_set_status.md +++ b/kubernetes/docs/v1_stateful_set_status.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**available_replicas** | **int** | Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate. | [optional] +**available_replicas** | **int** | Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. | [optional] **collision_count** | **int** | collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. | [optional] **conditions** | [**list_t**](v1_stateful_set_condition.md) \* | Represents the latest available observations of a statefulset's current state. | [optional] **current_replicas** | **int** | currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. | [optional] diff --git a/kubernetes/docs/v1_token_request_spec.md b/kubernetes/docs/v1_token_request_spec.md index a68069f..a6ebf46 100644 --- a/kubernetes/docs/v1_token_request_spec.md +++ b/kubernetes/docs/v1_token_request_spec.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**audiences** | **list_t \*** | Audiences are the intendend audiences of the token. A recipient of a token must identitfy themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. | +**audiences** | **list_t \*** | Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. | **bound_object_ref** | [**v1_bound_object_reference_t**](v1_bound_object_reference.md) \* | | [optional] **expiration_seconds** | **long** | ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response. | [optional] diff --git a/kubernetes/docs/v1_topology_spread_constraint.md b/kubernetes/docs/v1_topology_spread_constraint.md index e58b1e0..e4f2283 100644 --- a/kubernetes/docs/v1_topology_spread_constraint.md +++ b/kubernetes/docs/v1_topology_spread_constraint.md @@ -4,9 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **label_selector** | [**v1_label_selector_t**](v1_label_selector.md) \* | | [optional] +**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 an alpha field and requires enabling MinDomainsInPodTopologySpread feature gate. | [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 match the node selector. 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. | +**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] +**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. | [[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.md b/kubernetes/docs/v1alpha1_cluster_cidr.md new file mode 100644 index 0000000..877d423 --- /dev/null +++ b/kubernetes/docs/v1alpha1_cluster_cidr.md @@ -0,0 +1,13 @@ +# v1alpha1_cluster_cidr_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_cluster_cidr_spec_t**](v1alpha1_cluster_cidr_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_cluster_cidr_list.md b/kubernetes/docs/v1alpha1_cluster_cidr_list.md new file mode 100644 index 0000000..da781a5 --- /dev/null +++ b/kubernetes/docs/v1alpha1_cluster_cidr_list.md @@ -0,0 +1,13 @@ +# v1alpha1_cluster_cidr_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_cluster_cidr.md) \* | Items is the list of ClusterCIDRs. | +**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_cluster_cidr_spec.md b/kubernetes/docs/v1alpha1_cluster_cidr_spec.md new file mode 100644 index 0000000..45ac003 --- /dev/null +++ b/kubernetes/docs/v1alpha1_cluster_cidr_spec.md @@ -0,0 +1,13 @@ +# v1alpha1_cluster_cidr_spec_t + +## Properties +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] +**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. | + +[[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_csi_driver_spec.c b/kubernetes/model/v1_csi_driver_spec.c index 00d220f..1b5f8e6 100644 --- a/kubernetes/model/v1_csi_driver_spec.c +++ b/kubernetes/model/v1_csi_driver_spec.c @@ -10,6 +10,7 @@ v1_csi_driver_spec_t *v1_csi_driver_spec_create( char *fs_group_policy, int pod_info_on_mount, int requires_republish, + int se_linux_mount, int storage_capacity, list_t *token_requests, list_t *volume_lifecycle_modes @@ -22,6 +23,7 @@ v1_csi_driver_spec_t *v1_csi_driver_spec_create( v1_csi_driver_spec_local_var->fs_group_policy = fs_group_policy; v1_csi_driver_spec_local_var->pod_info_on_mount = pod_info_on_mount; v1_csi_driver_spec_local_var->requires_republish = requires_republish; + v1_csi_driver_spec_local_var->se_linux_mount = se_linux_mount; v1_csi_driver_spec_local_var->storage_capacity = storage_capacity; v1_csi_driver_spec_local_var->token_requests = token_requests; v1_csi_driver_spec_local_var->volume_lifecycle_modes = volume_lifecycle_modes; @@ -91,6 +93,14 @@ cJSON *v1_csi_driver_spec_convertToJSON(v1_csi_driver_spec_t *v1_csi_driver_spec } + // v1_csi_driver_spec->se_linux_mount + if(v1_csi_driver_spec->se_linux_mount) { + if(cJSON_AddBoolToObject(item, "seLinuxMount", v1_csi_driver_spec->se_linux_mount) == NULL) { + goto fail; //Bool + } + } + + // v1_csi_driver_spec->storage_capacity if(v1_csi_driver_spec->storage_capacity) { if(cJSON_AddBoolToObject(item, "storageCapacity", v1_csi_driver_spec->storage_capacity) == NULL) { @@ -189,6 +199,15 @@ v1_csi_driver_spec_t *v1_csi_driver_spec_parseFromJSON(cJSON *v1_csi_driver_spec } } + // v1_csi_driver_spec->se_linux_mount + cJSON *se_linux_mount = cJSON_GetObjectItemCaseSensitive(v1_csi_driver_specJSON, "seLinuxMount"); + if (se_linux_mount) { + if(!cJSON_IsBool(se_linux_mount)) + { + goto end; //Bool + } + } + // v1_csi_driver_spec->storage_capacity cJSON *storage_capacity = cJSON_GetObjectItemCaseSensitive(v1_csi_driver_specJSON, "storageCapacity"); if (storage_capacity) { @@ -244,6 +263,7 @@ v1_csi_driver_spec_t *v1_csi_driver_spec_parseFromJSON(cJSON *v1_csi_driver_spec 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, storage_capacity ? storage_capacity->valueint : 0, token_requests ? token_requestsList : NULL, volume_lifecycle_modes ? volume_lifecycle_modesList : NULL diff --git a/kubernetes/model/v1_csi_driver_spec.h b/kubernetes/model/v1_csi_driver_spec.h index ff6cded..a8d53bb 100644 --- a/kubernetes/model/v1_csi_driver_spec.h +++ b/kubernetes/model/v1_csi_driver_spec.h @@ -24,6 +24,7 @@ typedef struct v1_csi_driver_spec_t { char *fs_group_policy; // string int pod_info_on_mount; //boolean int requires_republish; //boolean + int se_linux_mount; //boolean int storage_capacity; //boolean list_t *token_requests; //nonprimitive container list_t *volume_lifecycle_modes; //primitive container @@ -35,6 +36,7 @@ v1_csi_driver_spec_t *v1_csi_driver_spec_create( char *fs_group_policy, int pod_info_on_mount, int requires_republish, + int se_linux_mount, int storage_capacity, list_t *token_requests, list_t *volume_lifecycle_modes diff --git a/kubernetes/model/v1_csi_persistent_volume_source.c b/kubernetes/model/v1_csi_persistent_volume_source.c index 638133a..20d1d05 100644 --- a/kubernetes/model/v1_csi_persistent_volume_source.c +++ b/kubernetes/model/v1_csi_persistent_volume_source.c @@ -10,6 +10,7 @@ v1_csi_persistent_volume_source_t *v1_csi_persistent_volume_source_create( v1_secret_reference_t *controller_publish_secret_ref, char *driver, char *fs_type, + v1_secret_reference_t *node_expand_secret_ref, v1_secret_reference_t *node_publish_secret_ref, v1_secret_reference_t *node_stage_secret_ref, int read_only, @@ -24,6 +25,7 @@ v1_csi_persistent_volume_source_t *v1_csi_persistent_volume_source_create( v1_csi_persistent_volume_source_local_var->controller_publish_secret_ref = controller_publish_secret_ref; v1_csi_persistent_volume_source_local_var->driver = driver; v1_csi_persistent_volume_source_local_var->fs_type = fs_type; + v1_csi_persistent_volume_source_local_var->node_expand_secret_ref = node_expand_secret_ref; v1_csi_persistent_volume_source_local_var->node_publish_secret_ref = node_publish_secret_ref; v1_csi_persistent_volume_source_local_var->node_stage_secret_ref = node_stage_secret_ref; v1_csi_persistent_volume_source_local_var->read_only = read_only; @@ -55,6 +57,10 @@ void v1_csi_persistent_volume_source_free(v1_csi_persistent_volume_source_t *v1_ free(v1_csi_persistent_volume_source->fs_type); v1_csi_persistent_volume_source->fs_type = NULL; } + if (v1_csi_persistent_volume_source->node_expand_secret_ref) { + v1_secret_reference_free(v1_csi_persistent_volume_source->node_expand_secret_ref); + v1_csi_persistent_volume_source->node_expand_secret_ref = NULL; + } if (v1_csi_persistent_volume_source->node_publish_secret_ref) { v1_secret_reference_free(v1_csi_persistent_volume_source->node_publish_secret_ref); v1_csi_persistent_volume_source->node_publish_secret_ref = NULL; @@ -126,6 +132,19 @@ cJSON *v1_csi_persistent_volume_source_convertToJSON(v1_csi_persistent_volume_so } + // v1_csi_persistent_volume_source->node_expand_secret_ref + if(v1_csi_persistent_volume_source->node_expand_secret_ref) { + cJSON *node_expand_secret_ref_local_JSON = v1_secret_reference_convertToJSON(v1_csi_persistent_volume_source->node_expand_secret_ref); + if(node_expand_secret_ref_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "nodeExpandSecretRef", node_expand_secret_ref_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + // v1_csi_persistent_volume_source->node_publish_secret_ref if(v1_csi_persistent_volume_source->node_publish_secret_ref) { cJSON *node_publish_secret_ref_local_JSON = v1_secret_reference_convertToJSON(v1_csi_persistent_volume_source->node_publish_secret_ref); @@ -206,6 +225,9 @@ v1_csi_persistent_volume_source_t *v1_csi_persistent_volume_source_parseFromJSON // define the local variable for v1_csi_persistent_volume_source->controller_publish_secret_ref v1_secret_reference_t *controller_publish_secret_ref_local_nonprim = NULL; + // define the local variable for v1_csi_persistent_volume_source->node_expand_secret_ref + v1_secret_reference_t *node_expand_secret_ref_local_nonprim = NULL; + // define the local variable for v1_csi_persistent_volume_source->node_publish_secret_ref v1_secret_reference_t *node_publish_secret_ref_local_nonprim = NULL; @@ -248,6 +270,12 @@ v1_csi_persistent_volume_source_t *v1_csi_persistent_volume_source_parseFromJSON } } + // v1_csi_persistent_volume_source->node_expand_secret_ref + cJSON *node_expand_secret_ref = cJSON_GetObjectItemCaseSensitive(v1_csi_persistent_volume_sourceJSON, "nodeExpandSecretRef"); + if (node_expand_secret_ref) { + node_expand_secret_ref_local_nonprim = v1_secret_reference_parseFromJSON(node_expand_secret_ref); //nonprimitive + } + // v1_csi_persistent_volume_source->node_publish_secret_ref cJSON *node_publish_secret_ref = cJSON_GetObjectItemCaseSensitive(v1_csi_persistent_volume_sourceJSON, "nodePublishSecretRef"); if (node_publish_secret_ref) { @@ -312,6 +340,7 @@ v1_csi_persistent_volume_source_t *v1_csi_persistent_volume_source_parseFromJSON controller_publish_secret_ref ? controller_publish_secret_ref_local_nonprim : NULL, strdup(driver->valuestring), 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, read_only ? read_only->valueint : 0, @@ -329,6 +358,10 @@ end: v1_secret_reference_free(controller_publish_secret_ref_local_nonprim); controller_publish_secret_ref_local_nonprim = NULL; } + if (node_expand_secret_ref_local_nonprim) { + v1_secret_reference_free(node_expand_secret_ref_local_nonprim); + node_expand_secret_ref_local_nonprim = NULL; + } if (node_publish_secret_ref_local_nonprim) { v1_secret_reference_free(node_publish_secret_ref_local_nonprim); node_publish_secret_ref_local_nonprim = NULL; diff --git a/kubernetes/model/v1_csi_persistent_volume_source.h b/kubernetes/model/v1_csi_persistent_volume_source.h index 4788f38..32a67aa 100644 --- a/kubernetes/model/v1_csi_persistent_volume_source.h +++ b/kubernetes/model/v1_csi_persistent_volume_source.h @@ -24,6 +24,7 @@ typedef struct v1_csi_persistent_volume_source_t { struct v1_secret_reference_t *controller_publish_secret_ref; //model char *driver; // string char *fs_type; // string + struct v1_secret_reference_t *node_expand_secret_ref; //model struct v1_secret_reference_t *node_publish_secret_ref; //model struct v1_secret_reference_t *node_stage_secret_ref; //model int read_only; //boolean @@ -37,6 +38,7 @@ v1_csi_persistent_volume_source_t *v1_csi_persistent_volume_source_create( v1_secret_reference_t *controller_publish_secret_ref, char *driver, char *fs_type, + v1_secret_reference_t *node_expand_secret_ref, v1_secret_reference_t *node_publish_secret_ref, v1_secret_reference_t *node_stage_secret_ref, int read_only, diff --git a/kubernetes/model/v1_endpoint_subset.h b/kubernetes/model/v1_endpoint_subset.h index 7319ebb..8ff76a2 100644 --- a/kubernetes/model/v1_endpoint_subset.h +++ b/kubernetes/model/v1_endpoint_subset.h @@ -1,7 +1,7 @@ /* * v1_endpoint_subset.h * - * 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: { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ] + * 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: { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ] */ #ifndef _v1_endpoint_subset_H_ diff --git a/kubernetes/model/v1_endpoints.h b/kubernetes/model/v1_endpoints.h index aa3fbde..1c19b15 100644 --- a/kubernetes/model/v1_endpoints.h +++ b/kubernetes/model/v1_endpoints.h @@ -1,7 +1,7 @@ /* * v1_endpoints.h * - * Endpoints is a collection of endpoints that implement the actual service. Example: Name: \"mysvc\", Subsets: [ { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] }, { Addresses: [{\"ip\": \"10.10.3.3\"}], Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}] }, ] + * Endpoints is a collection of endpoints that implement the actual service. Example: Name: \"mysvc\", Subsets: [ { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] }, { Addresses: [{\"ip\": \"10.10.3.3\"}], Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}] }, ] */ #ifndef _v1_endpoints_H_ diff --git a/kubernetes/model/v1_ephemeral_container.h b/kubernetes/model/v1_ephemeral_container.h index a559928..6c2e431 100644 --- a/kubernetes/model/v1_ephemeral_container.h +++ b/kubernetes/model/v1_ephemeral_container.h @@ -1,7 +1,7 @@ /* * v1_ephemeral_container.h * - * 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. To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted. This is a beta feature available on clusters that haven't disabled the EphemeralContainers feature gate. + * 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. To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted. */ #ifndef _v1_ephemeral_container_H_ diff --git a/kubernetes/model/v1_job_spec.c b/kubernetes/model/v1_job_spec.c index 8daa7df..9bb438e 100644 --- a/kubernetes/model/v1_job_spec.c +++ b/kubernetes/model/v1_job_spec.c @@ -12,6 +12,7 @@ v1_job_spec_t *v1_job_spec_create( int completions, int manual_selector, int parallelism, + v1_pod_failure_policy_t *pod_failure_policy, v1_label_selector_t *selector, int suspend, v1_pod_template_spec_t *_template, @@ -27,6 +28,7 @@ v1_job_spec_t *v1_job_spec_create( v1_job_spec_local_var->completions = completions; v1_job_spec_local_var->manual_selector = manual_selector; v1_job_spec_local_var->parallelism = parallelism; + v1_job_spec_local_var->pod_failure_policy = pod_failure_policy; v1_job_spec_local_var->selector = selector; v1_job_spec_local_var->suspend = suspend; v1_job_spec_local_var->_template = _template; @@ -45,6 +47,10 @@ void v1_job_spec_free(v1_job_spec_t *v1_job_spec) { free(v1_job_spec->completion_mode); v1_job_spec->completion_mode = NULL; } + if (v1_job_spec->pod_failure_policy) { + v1_pod_failure_policy_free(v1_job_spec->pod_failure_policy); + v1_job_spec->pod_failure_policy = NULL; + } if (v1_job_spec->selector) { v1_label_selector_free(v1_job_spec->selector); v1_job_spec->selector = NULL; @@ -107,6 +113,19 @@ cJSON *v1_job_spec_convertToJSON(v1_job_spec_t *v1_job_spec) { } + // v1_job_spec->pod_failure_policy + if(v1_job_spec->pod_failure_policy) { + cJSON *pod_failure_policy_local_JSON = v1_pod_failure_policy_convertToJSON(v1_job_spec->pod_failure_policy); + if(pod_failure_policy_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "podFailurePolicy", pod_failure_policy_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + // v1_job_spec->selector if(v1_job_spec->selector) { cJSON *selector_local_JSON = v1_label_selector_convertToJSON(v1_job_spec->selector); @@ -161,6 +180,9 @@ v1_job_spec_t *v1_job_spec_parseFromJSON(cJSON *v1_job_specJSON){ v1_job_spec_t *v1_job_spec_local_var = NULL; + // define the local variable for v1_job_spec->pod_failure_policy + v1_pod_failure_policy_t *pod_failure_policy_local_nonprim = NULL; + // define the local variable for v1_job_spec->selector v1_label_selector_t *selector_local_nonprim = NULL; @@ -221,6 +243,12 @@ v1_job_spec_t *v1_job_spec_parseFromJSON(cJSON *v1_job_specJSON){ } } + // v1_job_spec->pod_failure_policy + cJSON *pod_failure_policy = cJSON_GetObjectItemCaseSensitive(v1_job_specJSON, "podFailurePolicy"); + if (pod_failure_policy) { + pod_failure_policy_local_nonprim = v1_pod_failure_policy_parseFromJSON(pod_failure_policy); //nonprimitive + } + // v1_job_spec->selector cJSON *selector = cJSON_GetObjectItemCaseSensitive(v1_job_specJSON, "selector"); if (selector) { @@ -262,6 +290,7 @@ v1_job_spec_t *v1_job_spec_parseFromJSON(cJSON *v1_job_specJSON){ completions ? completions->valuedouble : 0, manual_selector ? manual_selector->valueint : 0, parallelism ? parallelism->valuedouble : 0, + pod_failure_policy ? pod_failure_policy_local_nonprim : NULL, selector ? selector_local_nonprim : NULL, suspend ? suspend->valueint : 0, _template_local_nonprim, @@ -270,6 +299,10 @@ v1_job_spec_t *v1_job_spec_parseFromJSON(cJSON *v1_job_specJSON){ return v1_job_spec_local_var; end: + if (pod_failure_policy_local_nonprim) { + v1_pod_failure_policy_free(pod_failure_policy_local_nonprim); + pod_failure_policy_local_nonprim = NULL; + } if (selector_local_nonprim) { v1_label_selector_free(selector_local_nonprim); selector_local_nonprim = NULL; diff --git a/kubernetes/model/v1_job_spec.h b/kubernetes/model/v1_job_spec.h index 6548fdb..f64d3d3 100644 --- a/kubernetes/model/v1_job_spec.h +++ b/kubernetes/model/v1_job_spec.h @@ -16,6 +16,7 @@ typedef struct v1_job_spec_t v1_job_spec_t; #include "v1_label_selector.h" +#include "v1_pod_failure_policy.h" #include "v1_pod_template_spec.h" @@ -27,6 +28,7 @@ typedef struct v1_job_spec_t { int completions; //numeric int manual_selector; //boolean int parallelism; //numeric + struct v1_pod_failure_policy_t *pod_failure_policy; //model struct v1_label_selector_t *selector; //model int suspend; //boolean struct v1_pod_template_spec_t *_template; //model @@ -41,6 +43,7 @@ v1_job_spec_t *v1_job_spec_create( int completions, int manual_selector, int parallelism, + v1_pod_failure_policy_t *pod_failure_policy, v1_label_selector_t *selector, int suspend, v1_pod_template_spec_t *_template, diff --git a/kubernetes/model/v1_object_meta.c b/kubernetes/model/v1_object_meta.c index 411c45f..99a8394 100644 --- a/kubernetes/model/v1_object_meta.c +++ b/kubernetes/model/v1_object_meta.c @@ -7,7 +7,6 @@ v1_object_meta_t *v1_object_meta_create( list_t* annotations, - char *cluster_name, char *creation_timestamp, long deletion_grace_period_seconds, char *deletion_timestamp, @@ -28,7 +27,6 @@ v1_object_meta_t *v1_object_meta_create( return NULL; } v1_object_meta_local_var->annotations = annotations; - v1_object_meta_local_var->cluster_name = cluster_name; v1_object_meta_local_var->creation_timestamp = creation_timestamp; v1_object_meta_local_var->deletion_grace_period_seconds = deletion_grace_period_seconds; v1_object_meta_local_var->deletion_timestamp = deletion_timestamp; @@ -63,10 +61,6 @@ void v1_object_meta_free(v1_object_meta_t *v1_object_meta) { list_freeList(v1_object_meta->annotations); v1_object_meta->annotations = NULL; } - if (v1_object_meta->cluster_name) { - free(v1_object_meta->cluster_name); - v1_object_meta->cluster_name = NULL; - } if (v1_object_meta->creation_timestamp) { free(v1_object_meta->creation_timestamp); v1_object_meta->creation_timestamp = NULL; @@ -156,14 +150,6 @@ cJSON *v1_object_meta_convertToJSON(v1_object_meta_t *v1_object_meta) { } - // v1_object_meta->cluster_name - if(v1_object_meta->cluster_name) { - if(cJSON_AddStringToObject(item, "clusterName", v1_object_meta->cluster_name) == NULL) { - goto fail; //String - } - } - - // v1_object_meta->creation_timestamp if(v1_object_meta->creation_timestamp) { if(cJSON_AddStringToObject(item, "creationTimestamp", v1_object_meta->creation_timestamp) == NULL) { @@ -372,15 +358,6 @@ v1_object_meta_t *v1_object_meta_parseFromJSON(cJSON *v1_object_metaJSON){ } } - // v1_object_meta->cluster_name - cJSON *cluster_name = cJSON_GetObjectItemCaseSensitive(v1_object_metaJSON, "clusterName"); - if (cluster_name) { - if(!cJSON_IsString(cluster_name)) - { - goto end; //String - } - } - // v1_object_meta->creation_timestamp cJSON *creation_timestamp = cJSON_GetObjectItemCaseSensitive(v1_object_metaJSON, "creationTimestamp"); if (creation_timestamp) { @@ -560,7 +537,6 @@ v1_object_meta_t *v1_object_meta_parseFromJSON(cJSON *v1_object_metaJSON){ v1_object_meta_local_var = v1_object_meta_create ( annotations ? annotationsList : NULL, - cluster_name ? strdup(cluster_name->valuestring) : NULL, creation_timestamp ? strdup(creation_timestamp->valuestring) : NULL, deletion_grace_period_seconds ? deletion_grace_period_seconds->valuedouble : 0, deletion_timestamp ? strdup(deletion_timestamp->valuestring) : NULL, diff --git a/kubernetes/model/v1_object_meta.h b/kubernetes/model/v1_object_meta.h index 6ddb3be..b085f66 100644 --- a/kubernetes/model/v1_object_meta.h +++ b/kubernetes/model/v1_object_meta.h @@ -22,7 +22,6 @@ typedef struct v1_object_meta_t v1_object_meta_t; typedef struct v1_object_meta_t { list_t* annotations; //map - char *cluster_name; // string char *creation_timestamp; //date time long deletion_grace_period_seconds; //numeric char *deletion_timestamp; //date time @@ -42,7 +41,6 @@ typedef struct v1_object_meta_t { v1_object_meta_t *v1_object_meta_create( list_t* annotations, - char *cluster_name, char *creation_timestamp, long deletion_grace_period_seconds, char *deletion_timestamp, diff --git a/kubernetes/model/v1_pod_failure_policy.c b/kubernetes/model/v1_pod_failure_policy.c new file mode 100644 index 0000000..ca9272f --- /dev/null +++ b/kubernetes/model/v1_pod_failure_policy.c @@ -0,0 +1,116 @@ +#include +#include +#include +#include "v1_pod_failure_policy.h" + + + +v1_pod_failure_policy_t *v1_pod_failure_policy_create( + list_t *rules + ) { + v1_pod_failure_policy_t *v1_pod_failure_policy_local_var = malloc(sizeof(v1_pod_failure_policy_t)); + if (!v1_pod_failure_policy_local_var) { + return NULL; + } + v1_pod_failure_policy_local_var->rules = rules; + + return v1_pod_failure_policy_local_var; +} + + +void v1_pod_failure_policy_free(v1_pod_failure_policy_t *v1_pod_failure_policy) { + if(NULL == v1_pod_failure_policy){ + return ; + } + listEntry_t *listEntry; + if (v1_pod_failure_policy->rules) { + list_ForEach(listEntry, v1_pod_failure_policy->rules) { + v1_pod_failure_policy_rule_free(listEntry->data); + } + list_freeList(v1_pod_failure_policy->rules); + v1_pod_failure_policy->rules = NULL; + } + free(v1_pod_failure_policy); +} + +cJSON *v1_pod_failure_policy_convertToJSON(v1_pod_failure_policy_t *v1_pod_failure_policy) { + cJSON *item = cJSON_CreateObject(); + + // v1_pod_failure_policy->rules + if (!v1_pod_failure_policy->rules) { + goto fail; + } + cJSON *rules = cJSON_AddArrayToObject(item, "rules"); + if(rules == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *rulesListEntry; + if (v1_pod_failure_policy->rules) { + list_ForEach(rulesListEntry, v1_pod_failure_policy->rules) { + cJSON *itemLocal = v1_pod_failure_policy_rule_convertToJSON(rulesListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(rules, itemLocal); + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_pod_failure_policy_t *v1_pod_failure_policy_parseFromJSON(cJSON *v1_pod_failure_policyJSON){ + + v1_pod_failure_policy_t *v1_pod_failure_policy_local_var = NULL; + + // define the local list for v1_pod_failure_policy->rules + list_t *rulesList = NULL; + + // v1_pod_failure_policy->rules + cJSON *rules = cJSON_GetObjectItemCaseSensitive(v1_pod_failure_policyJSON, "rules"); + if (!rules) { + goto end; + } + + + 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; + } + v1_pod_failure_policy_rule_t *rulesItem = v1_pod_failure_policy_rule_parseFromJSON(rules_local_nonprimitive); + + list_addElement(rulesList, rulesItem); + } + + + v1_pod_failure_policy_local_var = v1_pod_failure_policy_create ( + rulesList + ); + + return v1_pod_failure_policy_local_var; +end: + if (rulesList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, rulesList) { + v1_pod_failure_policy_rule_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(rulesList); + rulesList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1_pod_failure_policy.h b/kubernetes/model/v1_pod_failure_policy.h new file mode 100644 index 0000000..c01f487 --- /dev/null +++ b/kubernetes/model/v1_pod_failure_policy.h @@ -0,0 +1,38 @@ +/* + * v1_pod_failure_policy.h + * + * PodFailurePolicy describes how failed pods influence the backoffLimit. + */ + +#ifndef _v1_pod_failure_policy_H_ +#define _v1_pod_failure_policy_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_pod_failure_policy_t v1_pod_failure_policy_t; + +#include "v1_pod_failure_policy_rule.h" + + + +typedef struct v1_pod_failure_policy_t { + list_t *rules; //nonprimitive container + +} v1_pod_failure_policy_t; + +v1_pod_failure_policy_t *v1_pod_failure_policy_create( + list_t *rules +); + +void v1_pod_failure_policy_free(v1_pod_failure_policy_t *v1_pod_failure_policy); + +v1_pod_failure_policy_t *v1_pod_failure_policy_parseFromJSON(cJSON *v1_pod_failure_policyJSON); + +cJSON *v1_pod_failure_policy_convertToJSON(v1_pod_failure_policy_t *v1_pod_failure_policy); + +#endif /* _v1_pod_failure_policy_H_ */ + 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 new file mode 100644 index 0000000..7fbf091 --- /dev/null +++ b/kubernetes/model/v1_pod_failure_policy_on_exit_codes_requirement.c @@ -0,0 +1,169 @@ +#include +#include +#include +#include "v1_pod_failure_policy_on_exit_codes_requirement.h" + + + +v1_pod_failure_policy_on_exit_codes_requirement_t *v1_pod_failure_policy_on_exit_codes_requirement_create( + char *container_name, + char *_operator, + list_t *values + ) { + v1_pod_failure_policy_on_exit_codes_requirement_t *v1_pod_failure_policy_on_exit_codes_requirement_local_var = malloc(sizeof(v1_pod_failure_policy_on_exit_codes_requirement_t)); + if (!v1_pod_failure_policy_on_exit_codes_requirement_local_var) { + return NULL; + } + v1_pod_failure_policy_on_exit_codes_requirement_local_var->container_name = container_name; + v1_pod_failure_policy_on_exit_codes_requirement_local_var->_operator = _operator; + v1_pod_failure_policy_on_exit_codes_requirement_local_var->values = values; + + return v1_pod_failure_policy_on_exit_codes_requirement_local_var; +} + + +void v1_pod_failure_policy_on_exit_codes_requirement_free(v1_pod_failure_policy_on_exit_codes_requirement_t *v1_pod_failure_policy_on_exit_codes_requirement) { + if(NULL == v1_pod_failure_policy_on_exit_codes_requirement){ + return ; + } + listEntry_t *listEntry; + if (v1_pod_failure_policy_on_exit_codes_requirement->container_name) { + free(v1_pod_failure_policy_on_exit_codes_requirement->container_name); + v1_pod_failure_policy_on_exit_codes_requirement->container_name = NULL; + } + if (v1_pod_failure_policy_on_exit_codes_requirement->_operator) { + free(v1_pod_failure_policy_on_exit_codes_requirement->_operator); + v1_pod_failure_policy_on_exit_codes_requirement->_operator = NULL; + } + if (v1_pod_failure_policy_on_exit_codes_requirement->values) { + list_ForEach(listEntry, v1_pod_failure_policy_on_exit_codes_requirement->values) { + free(listEntry->data); + } + list_freeList(v1_pod_failure_policy_on_exit_codes_requirement->values); + v1_pod_failure_policy_on_exit_codes_requirement->values = NULL; + } + free(v1_pod_failure_policy_on_exit_codes_requirement); +} + +cJSON *v1_pod_failure_policy_on_exit_codes_requirement_convertToJSON(v1_pod_failure_policy_on_exit_codes_requirement_t *v1_pod_failure_policy_on_exit_codes_requirement) { + cJSON *item = cJSON_CreateObject(); + + // v1_pod_failure_policy_on_exit_codes_requirement->container_name + if(v1_pod_failure_policy_on_exit_codes_requirement->container_name) { + if(cJSON_AddStringToObject(item, "containerName", v1_pod_failure_policy_on_exit_codes_requirement->container_name) == NULL) { + goto fail; //String + } + } + + + // v1_pod_failure_policy_on_exit_codes_requirement->_operator + if (!v1_pod_failure_policy_on_exit_codes_requirement->_operator) { + goto fail; + } + if(cJSON_AddStringToObject(item, "operator", v1_pod_failure_policy_on_exit_codes_requirement->_operator) == NULL) { + goto fail; //String + } + + + // v1_pod_failure_policy_on_exit_codes_requirement->values + if (!v1_pod_failure_policy_on_exit_codes_requirement->values) { + goto fail; + } + cJSON *values = cJSON_AddArrayToObject(item, "values"); + if(values == NULL) { + goto fail; //primitive container + } + + listEntry_t *valuesListEntry; + list_ForEach(valuesListEntry, v1_pod_failure_policy_on_exit_codes_requirement->values) { + if(cJSON_AddNumberToObject(values, "", *(double *)valuesListEntry->data) == NULL) + { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_pod_failure_policy_on_exit_codes_requirement_t *v1_pod_failure_policy_on_exit_codes_requirement_parseFromJSON(cJSON *v1_pod_failure_policy_on_exit_codes_requirementJSON){ + + v1_pod_failure_policy_on_exit_codes_requirement_t *v1_pod_failure_policy_on_exit_codes_requirement_local_var = NULL; + + // define the local list for v1_pod_failure_policy_on_exit_codes_requirement->values + list_t *valuesList = NULL; + + // 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)) + { + goto end; //String + } + } + + // v1_pod_failure_policy_on_exit_codes_requirement->_operator + cJSON *_operator = cJSON_GetObjectItemCaseSensitive(v1_pod_failure_policy_on_exit_codes_requirementJSON, "operator"); + if (!_operator) { + goto end; + } + + + if(!cJSON_IsString(_operator)) + { + goto end; //String + } + + // v1_pod_failure_policy_on_exit_codes_requirement->values + cJSON *values = cJSON_GetObjectItemCaseSensitive(v1_pod_failure_policy_on_exit_codes_requirementJSON, "values"); + if (!values) { + goto end; + } + + + cJSON *values_local = NULL; + if(!cJSON_IsArray(values)) { + goto end;//primitive container + } + valuesList = list_createList(); + + cJSON_ArrayForEach(values_local, values) + { + if(!cJSON_IsNumber(values_local)) + { + goto end; + } + double *values_local_value = (double *)calloc(1, sizeof(double)); + if(!values_local_value) + { + goto end; + } + *values_local_value = values_local->valuedouble; + list_addElement(valuesList , values_local_value); + } + + + 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, + strdup(_operator->valuestring), + valuesList + ); + + return v1_pod_failure_policy_on_exit_codes_requirement_local_var; +end: + if (valuesList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, valuesList) { + free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(valuesList); + valuesList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1_pod_failure_policy_on_exit_codes_requirement.h b/kubernetes/model/v1_pod_failure_policy_on_exit_codes_requirement.h new file mode 100644 index 0000000..6de6070 --- /dev/null +++ b/kubernetes/model/v1_pod_failure_policy_on_exit_codes_requirement.h @@ -0,0 +1,41 @@ +/* + * v1_pod_failure_policy_on_exit_codes_requirement.h + * + * 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. + */ + +#ifndef _v1_pod_failure_policy_on_exit_codes_requirement_H_ +#define _v1_pod_failure_policy_on_exit_codes_requirement_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_pod_failure_policy_on_exit_codes_requirement_t v1_pod_failure_policy_on_exit_codes_requirement_t; + + + + +typedef struct v1_pod_failure_policy_on_exit_codes_requirement_t { + char *container_name; // string + char *_operator; // string + list_t *values; //primitive container + +} v1_pod_failure_policy_on_exit_codes_requirement_t; + +v1_pod_failure_policy_on_exit_codes_requirement_t *v1_pod_failure_policy_on_exit_codes_requirement_create( + char *container_name, + char *_operator, + list_t *values +); + +void v1_pod_failure_policy_on_exit_codes_requirement_free(v1_pod_failure_policy_on_exit_codes_requirement_t *v1_pod_failure_policy_on_exit_codes_requirement); + +v1_pod_failure_policy_on_exit_codes_requirement_t *v1_pod_failure_policy_on_exit_codes_requirement_parseFromJSON(cJSON *v1_pod_failure_policy_on_exit_codes_requirementJSON); + +cJSON *v1_pod_failure_policy_on_exit_codes_requirement_convertToJSON(v1_pod_failure_policy_on_exit_codes_requirement_t *v1_pod_failure_policy_on_exit_codes_requirement); + +#endif /* _v1_pod_failure_policy_on_exit_codes_requirement_H_ */ + diff --git a/kubernetes/model/v1_pod_failure_policy_on_pod_conditions_pattern.c b/kubernetes/model/v1_pod_failure_policy_on_pod_conditions_pattern.c new file mode 100644 index 0000000..25f00a2 --- /dev/null +++ b/kubernetes/model/v1_pod_failure_policy_on_pod_conditions_pattern.c @@ -0,0 +1,105 @@ +#include +#include +#include +#include "v1_pod_failure_policy_on_pod_conditions_pattern.h" + + + +v1_pod_failure_policy_on_pod_conditions_pattern_t *v1_pod_failure_policy_on_pod_conditions_pattern_create( + char *status, + char *type + ) { + v1_pod_failure_policy_on_pod_conditions_pattern_t *v1_pod_failure_policy_on_pod_conditions_pattern_local_var = malloc(sizeof(v1_pod_failure_policy_on_pod_conditions_pattern_t)); + if (!v1_pod_failure_policy_on_pod_conditions_pattern_local_var) { + return NULL; + } + v1_pod_failure_policy_on_pod_conditions_pattern_local_var->status = status; + v1_pod_failure_policy_on_pod_conditions_pattern_local_var->type = type; + + return v1_pod_failure_policy_on_pod_conditions_pattern_local_var; +} + + +void v1_pod_failure_policy_on_pod_conditions_pattern_free(v1_pod_failure_policy_on_pod_conditions_pattern_t *v1_pod_failure_policy_on_pod_conditions_pattern) { + if(NULL == v1_pod_failure_policy_on_pod_conditions_pattern){ + return ; + } + listEntry_t *listEntry; + if (v1_pod_failure_policy_on_pod_conditions_pattern->status) { + free(v1_pod_failure_policy_on_pod_conditions_pattern->status); + v1_pod_failure_policy_on_pod_conditions_pattern->status = NULL; + } + if (v1_pod_failure_policy_on_pod_conditions_pattern->type) { + free(v1_pod_failure_policy_on_pod_conditions_pattern->type); + v1_pod_failure_policy_on_pod_conditions_pattern->type = NULL; + } + free(v1_pod_failure_policy_on_pod_conditions_pattern); +} + +cJSON *v1_pod_failure_policy_on_pod_conditions_pattern_convertToJSON(v1_pod_failure_policy_on_pod_conditions_pattern_t *v1_pod_failure_policy_on_pod_conditions_pattern) { + cJSON *item = cJSON_CreateObject(); + + // v1_pod_failure_policy_on_pod_conditions_pattern->status + if (!v1_pod_failure_policy_on_pod_conditions_pattern->status) { + goto fail; + } + if(cJSON_AddStringToObject(item, "status", v1_pod_failure_policy_on_pod_conditions_pattern->status) == NULL) { + goto fail; //String + } + + + // v1_pod_failure_policy_on_pod_conditions_pattern->type + if (!v1_pod_failure_policy_on_pod_conditions_pattern->type) { + goto fail; + } + if(cJSON_AddStringToObject(item, "type", v1_pod_failure_policy_on_pod_conditions_pattern->type) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_pod_failure_policy_on_pod_conditions_pattern_t *v1_pod_failure_policy_on_pod_conditions_pattern_parseFromJSON(cJSON *v1_pod_failure_policy_on_pod_conditions_patternJSON){ + + v1_pod_failure_policy_on_pod_conditions_pattern_t *v1_pod_failure_policy_on_pod_conditions_pattern_local_var = NULL; + + // v1_pod_failure_policy_on_pod_conditions_pattern->status + cJSON *status = cJSON_GetObjectItemCaseSensitive(v1_pod_failure_policy_on_pod_conditions_patternJSON, "status"); + if (!status) { + goto end; + } + + + if(!cJSON_IsString(status)) + { + goto end; //String + } + + // v1_pod_failure_policy_on_pod_conditions_pattern->type + cJSON *type = cJSON_GetObjectItemCaseSensitive(v1_pod_failure_policy_on_pod_conditions_patternJSON, "type"); + if (!type) { + goto end; + } + + + if(!cJSON_IsString(type)) + { + goto end; //String + } + + + v1_pod_failure_policy_on_pod_conditions_pattern_local_var = v1_pod_failure_policy_on_pod_conditions_pattern_create ( + strdup(status->valuestring), + strdup(type->valuestring) + ); + + return v1_pod_failure_policy_on_pod_conditions_pattern_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1_pod_failure_policy_on_pod_conditions_pattern.h b/kubernetes/model/v1_pod_failure_policy_on_pod_conditions_pattern.h new file mode 100644 index 0000000..ff04440 --- /dev/null +++ b/kubernetes/model/v1_pod_failure_policy_on_pod_conditions_pattern.h @@ -0,0 +1,39 @@ +/* + * v1_pod_failure_policy_on_pod_conditions_pattern.h + * + * PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type. + */ + +#ifndef _v1_pod_failure_policy_on_pod_conditions_pattern_H_ +#define _v1_pod_failure_policy_on_pod_conditions_pattern_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_pod_failure_policy_on_pod_conditions_pattern_t v1_pod_failure_policy_on_pod_conditions_pattern_t; + + + + +typedef struct v1_pod_failure_policy_on_pod_conditions_pattern_t { + char *status; // string + char *type; // string + +} v1_pod_failure_policy_on_pod_conditions_pattern_t; + +v1_pod_failure_policy_on_pod_conditions_pattern_t *v1_pod_failure_policy_on_pod_conditions_pattern_create( + char *status, + char *type +); + +void v1_pod_failure_policy_on_pod_conditions_pattern_free(v1_pod_failure_policy_on_pod_conditions_pattern_t *v1_pod_failure_policy_on_pod_conditions_pattern); + +v1_pod_failure_policy_on_pod_conditions_pattern_t *v1_pod_failure_policy_on_pod_conditions_pattern_parseFromJSON(cJSON *v1_pod_failure_policy_on_pod_conditions_patternJSON); + +cJSON *v1_pod_failure_policy_on_pod_conditions_pattern_convertToJSON(v1_pod_failure_policy_on_pod_conditions_pattern_t *v1_pod_failure_policy_on_pod_conditions_pattern); + +#endif /* _v1_pod_failure_policy_on_pod_conditions_pattern_H_ */ + diff --git a/kubernetes/model/v1_pod_failure_policy_rule.c b/kubernetes/model/v1_pod_failure_policy_rule.c new file mode 100644 index 0000000..a879a1d --- /dev/null +++ b/kubernetes/model/v1_pod_failure_policy_rule.c @@ -0,0 +1,177 @@ +#include +#include +#include +#include "v1_pod_failure_policy_rule.h" + + + +v1_pod_failure_policy_rule_t *v1_pod_failure_policy_rule_create( + char *action, + v1_pod_failure_policy_on_exit_codes_requirement_t *on_exit_codes, + list_t *on_pod_conditions + ) { + v1_pod_failure_policy_rule_t *v1_pod_failure_policy_rule_local_var = malloc(sizeof(v1_pod_failure_policy_rule_t)); + if (!v1_pod_failure_policy_rule_local_var) { + return NULL; + } + v1_pod_failure_policy_rule_local_var->action = action; + v1_pod_failure_policy_rule_local_var->on_exit_codes = on_exit_codes; + v1_pod_failure_policy_rule_local_var->on_pod_conditions = on_pod_conditions; + + return v1_pod_failure_policy_rule_local_var; +} + + +void v1_pod_failure_policy_rule_free(v1_pod_failure_policy_rule_t *v1_pod_failure_policy_rule) { + if(NULL == v1_pod_failure_policy_rule){ + return ; + } + listEntry_t *listEntry; + if (v1_pod_failure_policy_rule->action) { + free(v1_pod_failure_policy_rule->action); + v1_pod_failure_policy_rule->action = NULL; + } + if (v1_pod_failure_policy_rule->on_exit_codes) { + v1_pod_failure_policy_on_exit_codes_requirement_free(v1_pod_failure_policy_rule->on_exit_codes); + v1_pod_failure_policy_rule->on_exit_codes = NULL; + } + if (v1_pod_failure_policy_rule->on_pod_conditions) { + list_ForEach(listEntry, v1_pod_failure_policy_rule->on_pod_conditions) { + v1_pod_failure_policy_on_pod_conditions_pattern_free(listEntry->data); + } + list_freeList(v1_pod_failure_policy_rule->on_pod_conditions); + v1_pod_failure_policy_rule->on_pod_conditions = NULL; + } + free(v1_pod_failure_policy_rule); +} + +cJSON *v1_pod_failure_policy_rule_convertToJSON(v1_pod_failure_policy_rule_t *v1_pod_failure_policy_rule) { + cJSON *item = cJSON_CreateObject(); + + // v1_pod_failure_policy_rule->action + if (!v1_pod_failure_policy_rule->action) { + goto fail; + } + if(cJSON_AddStringToObject(item, "action", v1_pod_failure_policy_rule->action) == NULL) { + goto fail; //String + } + + + // v1_pod_failure_policy_rule->on_exit_codes + if(v1_pod_failure_policy_rule->on_exit_codes) { + cJSON *on_exit_codes_local_JSON = v1_pod_failure_policy_on_exit_codes_requirement_convertToJSON(v1_pod_failure_policy_rule->on_exit_codes); + if(on_exit_codes_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "onExitCodes", on_exit_codes_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1_pod_failure_policy_rule->on_pod_conditions + if (!v1_pod_failure_policy_rule->on_pod_conditions) { + goto fail; + } + cJSON *on_pod_conditions = cJSON_AddArrayToObject(item, "onPodConditions"); + if(on_pod_conditions == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *on_pod_conditionsListEntry; + if (v1_pod_failure_policy_rule->on_pod_conditions) { + list_ForEach(on_pod_conditionsListEntry, v1_pod_failure_policy_rule->on_pod_conditions) { + cJSON *itemLocal = v1_pod_failure_policy_on_pod_conditions_pattern_convertToJSON(on_pod_conditionsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(on_pod_conditions, itemLocal); + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_pod_failure_policy_rule_t *v1_pod_failure_policy_rule_parseFromJSON(cJSON *v1_pod_failure_policy_ruleJSON){ + + v1_pod_failure_policy_rule_t *v1_pod_failure_policy_rule_local_var = NULL; + + // define the local variable for v1_pod_failure_policy_rule->on_exit_codes + v1_pod_failure_policy_on_exit_codes_requirement_t *on_exit_codes_local_nonprim = NULL; + + // define the local list for v1_pod_failure_policy_rule->on_pod_conditions + list_t *on_pod_conditionsList = NULL; + + // v1_pod_failure_policy_rule->action + cJSON *action = cJSON_GetObjectItemCaseSensitive(v1_pod_failure_policy_ruleJSON, "action"); + if (!action) { + goto end; + } + + + if(!cJSON_IsString(action)) + { + goto end; //String + } + + // v1_pod_failure_policy_rule->on_exit_codes + cJSON *on_exit_codes = cJSON_GetObjectItemCaseSensitive(v1_pod_failure_policy_ruleJSON, "onExitCodes"); + if (on_exit_codes) { + on_exit_codes_local_nonprim = v1_pod_failure_policy_on_exit_codes_requirement_parseFromJSON(on_exit_codes); //nonprimitive + } + + // v1_pod_failure_policy_rule->on_pod_conditions + cJSON *on_pod_conditions = cJSON_GetObjectItemCaseSensitive(v1_pod_failure_policy_ruleJSON, "onPodConditions"); + if (!on_pod_conditions) { + goto end; + } + + + cJSON *on_pod_conditions_local_nonprimitive = NULL; + if(!cJSON_IsArray(on_pod_conditions)){ + goto end; //nonprimitive container + } + + on_pod_conditionsList = list_createList(); + + cJSON_ArrayForEach(on_pod_conditions_local_nonprimitive,on_pod_conditions ) + { + if(!cJSON_IsObject(on_pod_conditions_local_nonprimitive)){ + goto end; + } + v1_pod_failure_policy_on_pod_conditions_pattern_t *on_pod_conditionsItem = v1_pod_failure_policy_on_pod_conditions_pattern_parseFromJSON(on_pod_conditions_local_nonprimitive); + + list_addElement(on_pod_conditionsList, on_pod_conditionsItem); + } + + + v1_pod_failure_policy_rule_local_var = v1_pod_failure_policy_rule_create ( + strdup(action->valuestring), + on_exit_codes ? on_exit_codes_local_nonprim : NULL, + on_pod_conditionsList + ); + + return v1_pod_failure_policy_rule_local_var; +end: + if (on_exit_codes_local_nonprim) { + v1_pod_failure_policy_on_exit_codes_requirement_free(on_exit_codes_local_nonprim); + on_exit_codes_local_nonprim = NULL; + } + if (on_pod_conditionsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, on_pod_conditionsList) { + v1_pod_failure_policy_on_pod_conditions_pattern_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(on_pod_conditionsList); + on_pod_conditionsList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1_pod_failure_policy_rule.h b/kubernetes/model/v1_pod_failure_policy_rule.h new file mode 100644 index 0000000..96c41da --- /dev/null +++ b/kubernetes/model/v1_pod_failure_policy_rule.h @@ -0,0 +1,43 @@ +/* + * v1_pod_failure_policy_rule.h + * + * 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. + */ + +#ifndef _v1_pod_failure_policy_rule_H_ +#define _v1_pod_failure_policy_rule_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_pod_failure_policy_rule_t v1_pod_failure_policy_rule_t; + +#include "v1_pod_failure_policy_on_exit_codes_requirement.h" +#include "v1_pod_failure_policy_on_pod_conditions_pattern.h" + + + +typedef struct v1_pod_failure_policy_rule_t { + char *action; // string + struct v1_pod_failure_policy_on_exit_codes_requirement_t *on_exit_codes; //model + list_t *on_pod_conditions; //nonprimitive container + +} v1_pod_failure_policy_rule_t; + +v1_pod_failure_policy_rule_t *v1_pod_failure_policy_rule_create( + char *action, + v1_pod_failure_policy_on_exit_codes_requirement_t *on_exit_codes, + list_t *on_pod_conditions +); + +void v1_pod_failure_policy_rule_free(v1_pod_failure_policy_rule_t *v1_pod_failure_policy_rule); + +v1_pod_failure_policy_rule_t *v1_pod_failure_policy_rule_parseFromJSON(cJSON *v1_pod_failure_policy_ruleJSON); + +cJSON *v1_pod_failure_policy_rule_convertToJSON(v1_pod_failure_policy_rule_t *v1_pod_failure_policy_rule); + +#endif /* _v1_pod_failure_policy_rule_H_ */ + diff --git a/kubernetes/model/v1_pod_ip.h b/kubernetes/model/v1_pod_ip.h index 1542f56..7ccd22a 100644 --- a/kubernetes/model/v1_pod_ip.h +++ b/kubernetes/model/v1_pod_ip.h @@ -1,7 +1,7 @@ /* * v1_pod_ip.h * - * IP address information for entries in the (plural) PodIPs field. Each entry includes: IP: An IP address allocated to the pod. Routable at least within the cluster. + * IP address information for entries in the (plural) PodIPs field. Each entry includes: IP: An IP address allocated to the pod. Routable at least within the cluster. */ #ifndef _v1_pod_ip_H_ diff --git a/kubernetes/model/v1_pod_spec.c b/kubernetes/model/v1_pod_spec.c index e32586d..562f508 100644 --- a/kubernetes/model/v1_pod_spec.c +++ b/kubernetes/model/v1_pod_spec.c @@ -18,6 +18,7 @@ v1_pod_spec_t *v1_pod_spec_create( int host_ipc, int host_network, int host_pid, + int host_users, char *hostname, list_t *image_pull_secrets, list_t *init_containers, @@ -59,6 +60,7 @@ v1_pod_spec_t *v1_pod_spec_create( v1_pod_spec_local_var->host_ipc = host_ipc; v1_pod_spec_local_var->host_network = host_network; v1_pod_spec_local_var->host_pid = host_pid; + v1_pod_spec_local_var->host_users = host_users; v1_pod_spec_local_var->hostname = hostname; v1_pod_spec_local_var->image_pull_secrets = image_pull_secrets; v1_pod_spec_local_var->init_containers = init_containers; @@ -385,6 +387,14 @@ cJSON *v1_pod_spec_convertToJSON(v1_pod_spec_t *v1_pod_spec) { } + // v1_pod_spec->host_users + if(v1_pod_spec->host_users) { + if(cJSON_AddBoolToObject(item, "hostUsers", v1_pod_spec->host_users) == NULL) { + goto fail; //Bool + } + } + + // v1_pod_spec->hostname if(v1_pod_spec->hostname) { if(cJSON_AddStringToObject(item, "hostname", v1_pod_spec->hostname) == NULL) { @@ -880,6 +890,15 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ } } + // v1_pod_spec->host_users + cJSON *host_users = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "hostUsers"); + if (host_users) { + if(!cJSON_IsBool(host_users)) + { + goto end; //Bool + } + } + // v1_pod_spec->hostname cJSON *hostname = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "hostname"); if (hostname) { @@ -1208,6 +1227,7 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ host_ipc ? host_ipc->valueint : 0, host_network ? host_network->valueint : 0, host_pid ? host_pid->valueint : 0, + host_users ? host_users->valueint : 0, hostname ? strdup(hostname->valuestring) : NULL, image_pull_secrets ? image_pull_secretsList : NULL, init_containers ? init_containersList : NULL, diff --git a/kubernetes/model/v1_pod_spec.h b/kubernetes/model/v1_pod_spec.h index e2dc6b9..a101993 100644 --- a/kubernetes/model/v1_pod_spec.h +++ b/kubernetes/model/v1_pod_spec.h @@ -43,6 +43,7 @@ typedef struct v1_pod_spec_t { int host_ipc; //boolean int host_network; //boolean int host_pid; //boolean + int host_users; //boolean char *hostname; // string list_t *image_pull_secrets; //nonprimitive container list_t *init_containers; //nonprimitive container @@ -83,6 +84,7 @@ v1_pod_spec_t *v1_pod_spec_create( int host_ipc, int host_network, int host_pid, + int host_users, char *hostname, list_t *image_pull_secrets, list_t *init_containers, diff --git a/kubernetes/model/v1_stateful_set.h b/kubernetes/model/v1_stateful_set.h index 3e88c6c..0d6dd44 100644 --- a/kubernetes/model/v1_stateful_set.h +++ b/kubernetes/model/v1_stateful_set.h @@ -1,7 +1,7 @@ /* * v1_stateful_set.h * - * StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity. + * StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity. */ #ifndef _v1_stateful_set_H_ diff --git a/kubernetes/model/v1_topology_spread_constraint.c b/kubernetes/model/v1_topology_spread_constraint.c index 3a4cf18..d2cbef5 100644 --- a/kubernetes/model/v1_topology_spread_constraint.c +++ b/kubernetes/model/v1_topology_spread_constraint.c @@ -7,8 +7,11 @@ v1_topology_spread_constraint_t *v1_topology_spread_constraint_create( v1_label_selector_t *label_selector, + list_t *match_label_keys, int max_skew, int min_domains, + char *node_affinity_policy, + char *node_taints_policy, char *topology_key, char *when_unsatisfiable ) { @@ -17,8 +20,11 @@ v1_topology_spread_constraint_t *v1_topology_spread_constraint_create( return NULL; } v1_topology_spread_constraint_local_var->label_selector = label_selector; + v1_topology_spread_constraint_local_var->match_label_keys = match_label_keys; v1_topology_spread_constraint_local_var->max_skew = max_skew; v1_topology_spread_constraint_local_var->min_domains = min_domains; + v1_topology_spread_constraint_local_var->node_affinity_policy = node_affinity_policy; + v1_topology_spread_constraint_local_var->node_taints_policy = node_taints_policy; v1_topology_spread_constraint_local_var->topology_key = topology_key; v1_topology_spread_constraint_local_var->when_unsatisfiable = when_unsatisfiable; @@ -35,6 +41,21 @@ void v1_topology_spread_constraint_free(v1_topology_spread_constraint_t *v1_topo v1_label_selector_free(v1_topology_spread_constraint->label_selector); v1_topology_spread_constraint->label_selector = NULL; } + if (v1_topology_spread_constraint->match_label_keys) { + list_ForEach(listEntry, v1_topology_spread_constraint->match_label_keys) { + free(listEntry->data); + } + list_freeList(v1_topology_spread_constraint->match_label_keys); + v1_topology_spread_constraint->match_label_keys = NULL; + } + if (v1_topology_spread_constraint->node_affinity_policy) { + free(v1_topology_spread_constraint->node_affinity_policy); + v1_topology_spread_constraint->node_affinity_policy = NULL; + } + if (v1_topology_spread_constraint->node_taints_policy) { + free(v1_topology_spread_constraint->node_taints_policy); + v1_topology_spread_constraint->node_taints_policy = NULL; + } if (v1_topology_spread_constraint->topology_key) { free(v1_topology_spread_constraint->topology_key); v1_topology_spread_constraint->topology_key = NULL; @@ -62,6 +83,23 @@ cJSON *v1_topology_spread_constraint_convertToJSON(v1_topology_spread_constraint } + // v1_topology_spread_constraint->match_label_keys + if(v1_topology_spread_constraint->match_label_keys) { + cJSON *match_label_keys = cJSON_AddArrayToObject(item, "matchLabelKeys"); + if(match_label_keys == NULL) { + goto fail; //primitive container + } + + listEntry_t *match_label_keysListEntry; + list_ForEach(match_label_keysListEntry, v1_topology_spread_constraint->match_label_keys) { + if(cJSON_AddStringToObject(match_label_keys, "", (char*)match_label_keysListEntry->data) == NULL) + { + goto fail; + } + } + } + + // v1_topology_spread_constraint->max_skew if (!v1_topology_spread_constraint->max_skew) { goto fail; @@ -79,6 +117,22 @@ cJSON *v1_topology_spread_constraint_convertToJSON(v1_topology_spread_constraint } + // v1_topology_spread_constraint->node_affinity_policy + if(v1_topology_spread_constraint->node_affinity_policy) { + if(cJSON_AddStringToObject(item, "nodeAffinityPolicy", v1_topology_spread_constraint->node_affinity_policy) == NULL) { + goto fail; //String + } + } + + + // v1_topology_spread_constraint->node_taints_policy + if(v1_topology_spread_constraint->node_taints_policy) { + if(cJSON_AddStringToObject(item, "nodeTaintsPolicy", v1_topology_spread_constraint->node_taints_policy) == NULL) { + goto fail; //String + } + } + + // v1_topology_spread_constraint->topology_key if (!v1_topology_spread_constraint->topology_key) { goto fail; @@ -111,12 +165,34 @@ v1_topology_spread_constraint_t *v1_topology_spread_constraint_parseFromJSON(cJS // define the local variable for v1_topology_spread_constraint->label_selector v1_label_selector_t *label_selector_local_nonprim = NULL; + // define the local list for v1_topology_spread_constraint->match_label_keys + list_t *match_label_keysList = NULL; + // v1_topology_spread_constraint->label_selector cJSON *label_selector = cJSON_GetObjectItemCaseSensitive(v1_topology_spread_constraintJSON, "labelSelector"); if (label_selector) { label_selector_local_nonprim = v1_label_selector_parseFromJSON(label_selector); //nonprimitive } + // v1_topology_spread_constraint->match_label_keys + cJSON *match_label_keys = cJSON_GetObjectItemCaseSensitive(v1_topology_spread_constraintJSON, "matchLabelKeys"); + if (match_label_keys) { + cJSON *match_label_keys_local = NULL; + if(!cJSON_IsArray(match_label_keys)) { + goto end;//primitive container + } + match_label_keysList = list_createList(); + + cJSON_ArrayForEach(match_label_keys_local, match_label_keys) + { + if(!cJSON_IsString(match_label_keys_local)) + { + goto end; + } + list_addElement(match_label_keysList , strdup(match_label_keys_local->valuestring)); + } + } + // v1_topology_spread_constraint->max_skew cJSON *max_skew = cJSON_GetObjectItemCaseSensitive(v1_topology_spread_constraintJSON, "maxSkew"); if (!max_skew) { @@ -138,6 +214,24 @@ 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)) + { + goto end; //String + } + } + + // 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)) + { + goto end; //String + } + } + // v1_topology_spread_constraint->topology_key cJSON *topology_key = cJSON_GetObjectItemCaseSensitive(v1_topology_spread_constraintJSON, "topologyKey"); if (!topology_key) { @@ -165,8 +259,11 @@ v1_topology_spread_constraint_t *v1_topology_spread_constraint_parseFromJSON(cJS v1_topology_spread_constraint_local_var = v1_topology_spread_constraint_create ( label_selector ? label_selector_local_nonprim : NULL, + 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, strdup(topology_key->valuestring), strdup(when_unsatisfiable->valuestring) ); @@ -177,6 +274,15 @@ end: v1_label_selector_free(label_selector_local_nonprim); label_selector_local_nonprim = NULL; } + if (match_label_keysList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, match_label_keysList) { + free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(match_label_keysList); + match_label_keysList = NULL; + } return NULL; } diff --git a/kubernetes/model/v1_topology_spread_constraint.h b/kubernetes/model/v1_topology_spread_constraint.h index 6a583b8..14c5188 100644 --- a/kubernetes/model/v1_topology_spread_constraint.h +++ b/kubernetes/model/v1_topology_spread_constraint.h @@ -21,8 +21,11 @@ typedef struct v1_topology_spread_constraint_t v1_topology_spread_constraint_t; typedef struct v1_topology_spread_constraint_t { struct v1_label_selector_t *label_selector; //model + list_t *match_label_keys; //primitive container int max_skew; //numeric int min_domains; //numeric + char *node_affinity_policy; // string + char *node_taints_policy; // string char *topology_key; // string char *when_unsatisfiable; // string @@ -30,8 +33,11 @@ typedef struct v1_topology_spread_constraint_t { v1_topology_spread_constraint_t *v1_topology_spread_constraint_create( v1_label_selector_t *label_selector, + list_t *match_label_keys, int max_skew, int min_domains, + char *node_affinity_policy, + char *node_taints_policy, char *topology_key, char *when_unsatisfiable ); diff --git a/kubernetes/model/v1alpha1_cluster_cidr.c b/kubernetes/model/v1alpha1_cluster_cidr.c new file mode 100644 index 0000000..cff3a02 --- /dev/null +++ b/kubernetes/model/v1alpha1_cluster_cidr.c @@ -0,0 +1,163 @@ +#include +#include +#include +#include "v1alpha1_cluster_cidr.h" + + + +v1alpha1_cluster_cidr_t *v1alpha1_cluster_cidr_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_cluster_cidr_spec_t *spec + ) { + v1alpha1_cluster_cidr_t *v1alpha1_cluster_cidr_local_var = malloc(sizeof(v1alpha1_cluster_cidr_t)); + if (!v1alpha1_cluster_cidr_local_var) { + return NULL; + } + v1alpha1_cluster_cidr_local_var->api_version = api_version; + v1alpha1_cluster_cidr_local_var->kind = kind; + v1alpha1_cluster_cidr_local_var->metadata = metadata; + v1alpha1_cluster_cidr_local_var->spec = spec; + + return v1alpha1_cluster_cidr_local_var; +} + + +void v1alpha1_cluster_cidr_free(v1alpha1_cluster_cidr_t *v1alpha1_cluster_cidr) { + if(NULL == v1alpha1_cluster_cidr){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_cluster_cidr->api_version) { + free(v1alpha1_cluster_cidr->api_version); + v1alpha1_cluster_cidr->api_version = NULL; + } + if (v1alpha1_cluster_cidr->kind) { + free(v1alpha1_cluster_cidr->kind); + v1alpha1_cluster_cidr->kind = NULL; + } + if (v1alpha1_cluster_cidr->metadata) { + v1_object_meta_free(v1alpha1_cluster_cidr->metadata); + v1alpha1_cluster_cidr->metadata = NULL; + } + if (v1alpha1_cluster_cidr->spec) { + v1alpha1_cluster_cidr_spec_free(v1alpha1_cluster_cidr->spec); + v1alpha1_cluster_cidr->spec = NULL; + } + free(v1alpha1_cluster_cidr); +} + +cJSON *v1alpha1_cluster_cidr_convertToJSON(v1alpha1_cluster_cidr_t *v1alpha1_cluster_cidr) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_cluster_cidr->api_version + if(v1alpha1_cluster_cidr->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_cluster_cidr->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_cluster_cidr->kind + if(v1alpha1_cluster_cidr->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_cluster_cidr->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_cluster_cidr->metadata + if(v1alpha1_cluster_cidr->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1alpha1_cluster_cidr->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_cluster_cidr->spec + if(v1alpha1_cluster_cidr->spec) { + cJSON *spec_local_JSON = v1alpha1_cluster_cidr_spec_convertToJSON(v1alpha1_cluster_cidr->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_cluster_cidr_t *v1alpha1_cluster_cidr_parseFromJSON(cJSON *v1alpha1_cluster_cidrJSON){ + + v1alpha1_cluster_cidr_t *v1alpha1_cluster_cidr_local_var = NULL; + + // define the local variable for v1alpha1_cluster_cidr->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1alpha1_cluster_cidr->spec + v1alpha1_cluster_cidr_spec_t *spec_local_nonprim = NULL; + + // v1alpha1_cluster_cidr->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_cluster_cidrJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version)) + { + goto end; //String + } + } + + // v1alpha1_cluster_cidr->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_cluster_cidrJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind)) + { + goto end; //String + } + } + + // v1alpha1_cluster_cidr->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_cluster_cidrJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1alpha1_cluster_cidr->spec + cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1alpha1_cluster_cidrJSON, "spec"); + if (spec) { + spec_local_nonprim = v1alpha1_cluster_cidr_spec_parseFromJSON(spec); //nonprimitive + } + + + v1alpha1_cluster_cidr_local_var = v1alpha1_cluster_cidr_create ( + api_version ? strdup(api_version->valuestring) : NULL, + kind ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL, + spec ? spec_local_nonprim : NULL + ); + + return v1alpha1_cluster_cidr_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (spec_local_nonprim) { + v1alpha1_cluster_cidr_spec_free(spec_local_nonprim); + spec_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_cluster_cidr.h b/kubernetes/model/v1alpha1_cluster_cidr.h new file mode 100644 index 0000000..88ad58c --- /dev/null +++ b/kubernetes/model/v1alpha1_cluster_cidr.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_cluster_cidr.h + * + * ClusterCIDR represents a single configuration for per-Node Pod CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config for kube-controller-manager). A cluster may have any number of ClusterCIDR resources, all of which will be considered when allocating a CIDR for a Node. A ClusterCIDR is eligible to be used for a given Node when the node selector matches the node in question and has free CIDRs to allocate. In case of multiple matching ClusterCIDR resources, the allocator will attempt to break ties using internal heuristics, but any ClusterCIDR whose node selector matches the Node may be used. + */ + +#ifndef _v1alpha1_cluster_cidr_H_ +#define _v1alpha1_cluster_cidr_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_cluster_cidr_t v1alpha1_cluster_cidr_t; + +#include "v1_object_meta.h" +#include "v1alpha1_cluster_cidr_spec.h" + + + +typedef struct v1alpha1_cluster_cidr_t { + char *api_version; // string + char *kind; // string + struct v1_object_meta_t *metadata; //model + struct v1alpha1_cluster_cidr_spec_t *spec; //model + +} v1alpha1_cluster_cidr_t; + +v1alpha1_cluster_cidr_t *v1alpha1_cluster_cidr_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_cluster_cidr_spec_t *spec +); + +void v1alpha1_cluster_cidr_free(v1alpha1_cluster_cidr_t *v1alpha1_cluster_cidr); + +v1alpha1_cluster_cidr_t *v1alpha1_cluster_cidr_parseFromJSON(cJSON *v1alpha1_cluster_cidrJSON); + +cJSON *v1alpha1_cluster_cidr_convertToJSON(v1alpha1_cluster_cidr_t *v1alpha1_cluster_cidr); + +#endif /* _v1alpha1_cluster_cidr_H_ */ + diff --git a/kubernetes/model/v1alpha1_cluster_cidr_list.c b/kubernetes/model/v1alpha1_cluster_cidr_list.c new file mode 100644 index 0000000..69ed721 --- /dev/null +++ b/kubernetes/model/v1alpha1_cluster_cidr_list.c @@ -0,0 +1,197 @@ +#include +#include +#include +#include "v1alpha1_cluster_cidr_list.h" + + + +v1alpha1_cluster_cidr_list_t *v1alpha1_cluster_cidr_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata + ) { + v1alpha1_cluster_cidr_list_t *v1alpha1_cluster_cidr_list_local_var = malloc(sizeof(v1alpha1_cluster_cidr_list_t)); + if (!v1alpha1_cluster_cidr_list_local_var) { + return NULL; + } + v1alpha1_cluster_cidr_list_local_var->api_version = api_version; + v1alpha1_cluster_cidr_list_local_var->items = items; + v1alpha1_cluster_cidr_list_local_var->kind = kind; + v1alpha1_cluster_cidr_list_local_var->metadata = metadata; + + return v1alpha1_cluster_cidr_list_local_var; +} + + +void v1alpha1_cluster_cidr_list_free(v1alpha1_cluster_cidr_list_t *v1alpha1_cluster_cidr_list) { + if(NULL == v1alpha1_cluster_cidr_list){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_cluster_cidr_list->api_version) { + free(v1alpha1_cluster_cidr_list->api_version); + v1alpha1_cluster_cidr_list->api_version = NULL; + } + if (v1alpha1_cluster_cidr_list->items) { + list_ForEach(listEntry, v1alpha1_cluster_cidr_list->items) { + v1alpha1_cluster_cidr_free(listEntry->data); + } + list_freeList(v1alpha1_cluster_cidr_list->items); + v1alpha1_cluster_cidr_list->items = NULL; + } + if (v1alpha1_cluster_cidr_list->kind) { + free(v1alpha1_cluster_cidr_list->kind); + v1alpha1_cluster_cidr_list->kind = NULL; + } + if (v1alpha1_cluster_cidr_list->metadata) { + v1_list_meta_free(v1alpha1_cluster_cidr_list->metadata); + v1alpha1_cluster_cidr_list->metadata = NULL; + } + free(v1alpha1_cluster_cidr_list); +} + +cJSON *v1alpha1_cluster_cidr_list_convertToJSON(v1alpha1_cluster_cidr_list_t *v1alpha1_cluster_cidr_list) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_cluster_cidr_list->api_version + if(v1alpha1_cluster_cidr_list->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_cluster_cidr_list->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_cluster_cidr_list->items + if (!v1alpha1_cluster_cidr_list->items) { + goto fail; + } + cJSON *items = cJSON_AddArrayToObject(item, "items"); + if(items == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *itemsListEntry; + if (v1alpha1_cluster_cidr_list->items) { + list_ForEach(itemsListEntry, v1alpha1_cluster_cidr_list->items) { + cJSON *itemLocal = v1alpha1_cluster_cidr_convertToJSON(itemsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(items, itemLocal); + } + } + + + // v1alpha1_cluster_cidr_list->kind + if(v1alpha1_cluster_cidr_list->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_cluster_cidr_list->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_cluster_cidr_list->metadata + if(v1alpha1_cluster_cidr_list->metadata) { + cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1alpha1_cluster_cidr_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_cluster_cidr_list_t *v1alpha1_cluster_cidr_list_parseFromJSON(cJSON *v1alpha1_cluster_cidr_listJSON){ + + v1alpha1_cluster_cidr_list_t *v1alpha1_cluster_cidr_list_local_var = NULL; + + // define the local list for v1alpha1_cluster_cidr_list->items + list_t *itemsList = NULL; + + // define the local variable for v1alpha1_cluster_cidr_list->metadata + v1_list_meta_t *metadata_local_nonprim = NULL; + + // v1alpha1_cluster_cidr_list->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_cluster_cidr_listJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version)) + { + goto end; //String + } + } + + // v1alpha1_cluster_cidr_list->items + cJSON *items = cJSON_GetObjectItemCaseSensitive(v1alpha1_cluster_cidr_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_cluster_cidr_t *itemsItem = v1alpha1_cluster_cidr_parseFromJSON(items_local_nonprimitive); + + list_addElement(itemsList, itemsItem); + } + + // v1alpha1_cluster_cidr_list->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_cluster_cidr_listJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind)) + { + goto end; //String + } + } + + // v1alpha1_cluster_cidr_list->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_cluster_cidr_listJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive + } + + + v1alpha1_cluster_cidr_list_local_var = v1alpha1_cluster_cidr_list_create ( + api_version ? strdup(api_version->valuestring) : NULL, + itemsList, + kind ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL + ); + + return v1alpha1_cluster_cidr_list_local_var; +end: + if (itemsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, itemsList) { + v1alpha1_cluster_cidr_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_cluster_cidr_list.h b/kubernetes/model/v1alpha1_cluster_cidr_list.h new file mode 100644 index 0000000..6a62c3f --- /dev/null +++ b/kubernetes/model/v1alpha1_cluster_cidr_list.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_cluster_cidr_list.h + * + * ClusterCIDRList contains a list of ClusterCIDR. + */ + +#ifndef _v1alpha1_cluster_cidr_list_H_ +#define _v1alpha1_cluster_cidr_list_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_cluster_cidr_list_t v1alpha1_cluster_cidr_list_t; + +#include "v1_list_meta.h" +#include "v1alpha1_cluster_cidr.h" + + + +typedef struct v1alpha1_cluster_cidr_list_t { + char *api_version; // string + list_t *items; //nonprimitive container + char *kind; // string + struct v1_list_meta_t *metadata; //model + +} v1alpha1_cluster_cidr_list_t; + +v1alpha1_cluster_cidr_list_t *v1alpha1_cluster_cidr_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata +); + +void v1alpha1_cluster_cidr_list_free(v1alpha1_cluster_cidr_list_t *v1alpha1_cluster_cidr_list); + +v1alpha1_cluster_cidr_list_t *v1alpha1_cluster_cidr_list_parseFromJSON(cJSON *v1alpha1_cluster_cidr_listJSON); + +cJSON *v1alpha1_cluster_cidr_list_convertToJSON(v1alpha1_cluster_cidr_list_t *v1alpha1_cluster_cidr_list); + +#endif /* _v1alpha1_cluster_cidr_list_H_ */ + diff --git a/kubernetes/model/v1alpha1_cluster_cidr_spec.c b/kubernetes/model/v1alpha1_cluster_cidr_spec.c new file mode 100644 index 0000000..56c1e78 --- /dev/null +++ b/kubernetes/model/v1alpha1_cluster_cidr_spec.c @@ -0,0 +1,154 @@ +#include +#include +#include +#include "v1alpha1_cluster_cidr_spec.h" + + + +v1alpha1_cluster_cidr_spec_t *v1alpha1_cluster_cidr_spec_create( + char *ipv4, + char *ipv6, + v1_node_selector_t *node_selector, + int per_node_host_bits + ) { + v1alpha1_cluster_cidr_spec_t *v1alpha1_cluster_cidr_spec_local_var = malloc(sizeof(v1alpha1_cluster_cidr_spec_t)); + if (!v1alpha1_cluster_cidr_spec_local_var) { + return NULL; + } + v1alpha1_cluster_cidr_spec_local_var->ipv4 = ipv4; + v1alpha1_cluster_cidr_spec_local_var->ipv6 = ipv6; + v1alpha1_cluster_cidr_spec_local_var->node_selector = node_selector; + v1alpha1_cluster_cidr_spec_local_var->per_node_host_bits = per_node_host_bits; + + return v1alpha1_cluster_cidr_spec_local_var; +} + + +void v1alpha1_cluster_cidr_spec_free(v1alpha1_cluster_cidr_spec_t *v1alpha1_cluster_cidr_spec) { + if(NULL == v1alpha1_cluster_cidr_spec){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_cluster_cidr_spec->ipv4) { + free(v1alpha1_cluster_cidr_spec->ipv4); + v1alpha1_cluster_cidr_spec->ipv4 = NULL; + } + if (v1alpha1_cluster_cidr_spec->ipv6) { + free(v1alpha1_cluster_cidr_spec->ipv6); + v1alpha1_cluster_cidr_spec->ipv6 = NULL; + } + if (v1alpha1_cluster_cidr_spec->node_selector) { + v1_node_selector_free(v1alpha1_cluster_cidr_spec->node_selector); + v1alpha1_cluster_cidr_spec->node_selector = NULL; + } + free(v1alpha1_cluster_cidr_spec); +} + +cJSON *v1alpha1_cluster_cidr_spec_convertToJSON(v1alpha1_cluster_cidr_spec_t *v1alpha1_cluster_cidr_spec) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_cluster_cidr_spec->ipv4 + if(v1alpha1_cluster_cidr_spec->ipv4) { + if(cJSON_AddStringToObject(item, "ipv4", v1alpha1_cluster_cidr_spec->ipv4) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_cluster_cidr_spec->ipv6 + if(v1alpha1_cluster_cidr_spec->ipv6) { + if(cJSON_AddStringToObject(item, "ipv6", v1alpha1_cluster_cidr_spec->ipv6) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_cluster_cidr_spec->node_selector + if(v1alpha1_cluster_cidr_spec->node_selector) { + cJSON *node_selector_local_JSON = v1_node_selector_convertToJSON(v1alpha1_cluster_cidr_spec->node_selector); + if(node_selector_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "nodeSelector", node_selector_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_cluster_cidr_spec->per_node_host_bits + if (!v1alpha1_cluster_cidr_spec->per_node_host_bits) { + goto fail; + } + if(cJSON_AddNumberToObject(item, "perNodeHostBits", v1alpha1_cluster_cidr_spec->per_node_host_bits) == NULL) { + goto fail; //Numeric + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_cluster_cidr_spec_t *v1alpha1_cluster_cidr_spec_parseFromJSON(cJSON *v1alpha1_cluster_cidr_specJSON){ + + v1alpha1_cluster_cidr_spec_t *v1alpha1_cluster_cidr_spec_local_var = NULL; + + // define the local variable for v1alpha1_cluster_cidr_spec->node_selector + v1_node_selector_t *node_selector_local_nonprim = NULL; + + // v1alpha1_cluster_cidr_spec->ipv4 + cJSON *ipv4 = cJSON_GetObjectItemCaseSensitive(v1alpha1_cluster_cidr_specJSON, "ipv4"); + if (ipv4) { + if(!cJSON_IsString(ipv4)) + { + goto end; //String + } + } + + // v1alpha1_cluster_cidr_spec->ipv6 + cJSON *ipv6 = cJSON_GetObjectItemCaseSensitive(v1alpha1_cluster_cidr_specJSON, "ipv6"); + if (ipv6) { + if(!cJSON_IsString(ipv6)) + { + goto end; //String + } + } + + // v1alpha1_cluster_cidr_spec->node_selector + cJSON *node_selector = cJSON_GetObjectItemCaseSensitive(v1alpha1_cluster_cidr_specJSON, "nodeSelector"); + if (node_selector) { + node_selector_local_nonprim = v1_node_selector_parseFromJSON(node_selector); //nonprimitive + } + + // v1alpha1_cluster_cidr_spec->per_node_host_bits + cJSON *per_node_host_bits = cJSON_GetObjectItemCaseSensitive(v1alpha1_cluster_cidr_specJSON, "perNodeHostBits"); + if (!per_node_host_bits) { + goto end; + } + + + if(!cJSON_IsNumber(per_node_host_bits)) + { + goto end; //Numeric + } + + + v1alpha1_cluster_cidr_spec_local_var = v1alpha1_cluster_cidr_spec_create ( + ipv4 ? strdup(ipv4->valuestring) : NULL, + ipv6 ? strdup(ipv6->valuestring) : NULL, + node_selector ? node_selector_local_nonprim : NULL, + per_node_host_bits->valuedouble + ); + + return v1alpha1_cluster_cidr_spec_local_var; +end: + if (node_selector_local_nonprim) { + v1_node_selector_free(node_selector_local_nonprim); + node_selector_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_cluster_cidr_spec.h b/kubernetes/model/v1alpha1_cluster_cidr_spec.h new file mode 100644 index 0000000..74cf31c --- /dev/null +++ b/kubernetes/model/v1alpha1_cluster_cidr_spec.h @@ -0,0 +1,44 @@ +/* + * v1alpha1_cluster_cidr_spec.h + * + * ClusterCIDRSpec defines the desired state of ClusterCIDR. + */ + +#ifndef _v1alpha1_cluster_cidr_spec_H_ +#define _v1alpha1_cluster_cidr_spec_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_cluster_cidr_spec_t v1alpha1_cluster_cidr_spec_t; + +#include "v1_node_selector.h" + + + +typedef struct v1alpha1_cluster_cidr_spec_t { + char *ipv4; // string + char *ipv6; // string + struct v1_node_selector_t *node_selector; //model + int per_node_host_bits; //numeric + +} v1alpha1_cluster_cidr_spec_t; + +v1alpha1_cluster_cidr_spec_t *v1alpha1_cluster_cidr_spec_create( + char *ipv4, + char *ipv6, + v1_node_selector_t *node_selector, + int per_node_host_bits +); + +void v1alpha1_cluster_cidr_spec_free(v1alpha1_cluster_cidr_spec_t *v1alpha1_cluster_cidr_spec); + +v1alpha1_cluster_cidr_spec_t *v1alpha1_cluster_cidr_spec_parseFromJSON(cJSON *v1alpha1_cluster_cidr_specJSON); + +cJSON *v1alpha1_cluster_cidr_spec_convertToJSON(v1alpha1_cluster_cidr_spec_t *v1alpha1_cluster_cidr_spec); + +#endif /* _v1alpha1_cluster_cidr_spec_H_ */ + diff --git a/kubernetes/model/v1beta1_allowed_csi_driver.c b/kubernetes/model/v1beta1_allowed_csi_driver.c deleted file mode 100644 index 1632556..0000000 --- a/kubernetes/model/v1beta1_allowed_csi_driver.c +++ /dev/null @@ -1,77 +0,0 @@ -#include -#include -#include -#include "v1beta1_allowed_csi_driver.h" - - - -v1beta1_allowed_csi_driver_t *v1beta1_allowed_csi_driver_create( - char *name - ) { - v1beta1_allowed_csi_driver_t *v1beta1_allowed_csi_driver_local_var = malloc(sizeof(v1beta1_allowed_csi_driver_t)); - if (!v1beta1_allowed_csi_driver_local_var) { - return NULL; - } - v1beta1_allowed_csi_driver_local_var->name = name; - - return v1beta1_allowed_csi_driver_local_var; -} - - -void v1beta1_allowed_csi_driver_free(v1beta1_allowed_csi_driver_t *v1beta1_allowed_csi_driver) { - if(NULL == v1beta1_allowed_csi_driver){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_allowed_csi_driver->name) { - free(v1beta1_allowed_csi_driver->name); - v1beta1_allowed_csi_driver->name = NULL; - } - free(v1beta1_allowed_csi_driver); -} - -cJSON *v1beta1_allowed_csi_driver_convertToJSON(v1beta1_allowed_csi_driver_t *v1beta1_allowed_csi_driver) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_allowed_csi_driver->name - if (!v1beta1_allowed_csi_driver->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v1beta1_allowed_csi_driver->name) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_allowed_csi_driver_t *v1beta1_allowed_csi_driver_parseFromJSON(cJSON *v1beta1_allowed_csi_driverJSON){ - - v1beta1_allowed_csi_driver_t *v1beta1_allowed_csi_driver_local_var = NULL; - - // v1beta1_allowed_csi_driver->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v1beta1_allowed_csi_driverJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - - v1beta1_allowed_csi_driver_local_var = v1beta1_allowed_csi_driver_create ( - strdup(name->valuestring) - ); - - return v1beta1_allowed_csi_driver_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_allowed_csi_driver.h b/kubernetes/model/v1beta1_allowed_csi_driver.h deleted file mode 100644 index ec47613..0000000 --- a/kubernetes/model/v1beta1_allowed_csi_driver.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * v1beta1_allowed_csi_driver.h - * - * AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used. - */ - -#ifndef _v1beta1_allowed_csi_driver_H_ -#define _v1beta1_allowed_csi_driver_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_allowed_csi_driver_t v1beta1_allowed_csi_driver_t; - - - - -typedef struct v1beta1_allowed_csi_driver_t { - char *name; // string - -} v1beta1_allowed_csi_driver_t; - -v1beta1_allowed_csi_driver_t *v1beta1_allowed_csi_driver_create( - char *name -); - -void v1beta1_allowed_csi_driver_free(v1beta1_allowed_csi_driver_t *v1beta1_allowed_csi_driver); - -v1beta1_allowed_csi_driver_t *v1beta1_allowed_csi_driver_parseFromJSON(cJSON *v1beta1_allowed_csi_driverJSON); - -cJSON *v1beta1_allowed_csi_driver_convertToJSON(v1beta1_allowed_csi_driver_t *v1beta1_allowed_csi_driver); - -#endif /* _v1beta1_allowed_csi_driver_H_ */ - diff --git a/kubernetes/model/v1beta1_allowed_flex_volume.c b/kubernetes/model/v1beta1_allowed_flex_volume.c deleted file mode 100644 index e711821..0000000 --- a/kubernetes/model/v1beta1_allowed_flex_volume.c +++ /dev/null @@ -1,77 +0,0 @@ -#include -#include -#include -#include "v1beta1_allowed_flex_volume.h" - - - -v1beta1_allowed_flex_volume_t *v1beta1_allowed_flex_volume_create( - char *driver - ) { - v1beta1_allowed_flex_volume_t *v1beta1_allowed_flex_volume_local_var = malloc(sizeof(v1beta1_allowed_flex_volume_t)); - if (!v1beta1_allowed_flex_volume_local_var) { - return NULL; - } - v1beta1_allowed_flex_volume_local_var->driver = driver; - - return v1beta1_allowed_flex_volume_local_var; -} - - -void v1beta1_allowed_flex_volume_free(v1beta1_allowed_flex_volume_t *v1beta1_allowed_flex_volume) { - if(NULL == v1beta1_allowed_flex_volume){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_allowed_flex_volume->driver) { - free(v1beta1_allowed_flex_volume->driver); - v1beta1_allowed_flex_volume->driver = NULL; - } - free(v1beta1_allowed_flex_volume); -} - -cJSON *v1beta1_allowed_flex_volume_convertToJSON(v1beta1_allowed_flex_volume_t *v1beta1_allowed_flex_volume) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_allowed_flex_volume->driver - if (!v1beta1_allowed_flex_volume->driver) { - goto fail; - } - if(cJSON_AddStringToObject(item, "driver", v1beta1_allowed_flex_volume->driver) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_allowed_flex_volume_t *v1beta1_allowed_flex_volume_parseFromJSON(cJSON *v1beta1_allowed_flex_volumeJSON){ - - v1beta1_allowed_flex_volume_t *v1beta1_allowed_flex_volume_local_var = NULL; - - // v1beta1_allowed_flex_volume->driver - cJSON *driver = cJSON_GetObjectItemCaseSensitive(v1beta1_allowed_flex_volumeJSON, "driver"); - if (!driver) { - goto end; - } - - - if(!cJSON_IsString(driver)) - { - goto end; //String - } - - - v1beta1_allowed_flex_volume_local_var = v1beta1_allowed_flex_volume_create ( - strdup(driver->valuestring) - ); - - return v1beta1_allowed_flex_volume_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_allowed_flex_volume.h b/kubernetes/model/v1beta1_allowed_flex_volume.h deleted file mode 100644 index bba3b51..0000000 --- a/kubernetes/model/v1beta1_allowed_flex_volume.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * v1beta1_allowed_flex_volume.h - * - * AllowedFlexVolume represents a single Flexvolume that is allowed to be used. - */ - -#ifndef _v1beta1_allowed_flex_volume_H_ -#define _v1beta1_allowed_flex_volume_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_allowed_flex_volume_t v1beta1_allowed_flex_volume_t; - - - - -typedef struct v1beta1_allowed_flex_volume_t { - char *driver; // string - -} v1beta1_allowed_flex_volume_t; - -v1beta1_allowed_flex_volume_t *v1beta1_allowed_flex_volume_create( - char *driver -); - -void v1beta1_allowed_flex_volume_free(v1beta1_allowed_flex_volume_t *v1beta1_allowed_flex_volume); - -v1beta1_allowed_flex_volume_t *v1beta1_allowed_flex_volume_parseFromJSON(cJSON *v1beta1_allowed_flex_volumeJSON); - -cJSON *v1beta1_allowed_flex_volume_convertToJSON(v1beta1_allowed_flex_volume_t *v1beta1_allowed_flex_volume); - -#endif /* _v1beta1_allowed_flex_volume_H_ */ - diff --git a/kubernetes/model/v1beta1_allowed_host_path.c b/kubernetes/model/v1beta1_allowed_host_path.c deleted file mode 100644 index 519e7ec..0000000 --- a/kubernetes/model/v1beta1_allowed_host_path.c +++ /dev/null @@ -1,93 +0,0 @@ -#include -#include -#include -#include "v1beta1_allowed_host_path.h" - - - -v1beta1_allowed_host_path_t *v1beta1_allowed_host_path_create( - char *path_prefix, - int read_only - ) { - v1beta1_allowed_host_path_t *v1beta1_allowed_host_path_local_var = malloc(sizeof(v1beta1_allowed_host_path_t)); - if (!v1beta1_allowed_host_path_local_var) { - return NULL; - } - v1beta1_allowed_host_path_local_var->path_prefix = path_prefix; - v1beta1_allowed_host_path_local_var->read_only = read_only; - - return v1beta1_allowed_host_path_local_var; -} - - -void v1beta1_allowed_host_path_free(v1beta1_allowed_host_path_t *v1beta1_allowed_host_path) { - if(NULL == v1beta1_allowed_host_path){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_allowed_host_path->path_prefix) { - free(v1beta1_allowed_host_path->path_prefix); - v1beta1_allowed_host_path->path_prefix = NULL; - } - free(v1beta1_allowed_host_path); -} - -cJSON *v1beta1_allowed_host_path_convertToJSON(v1beta1_allowed_host_path_t *v1beta1_allowed_host_path) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_allowed_host_path->path_prefix - if(v1beta1_allowed_host_path->path_prefix) { - if(cJSON_AddStringToObject(item, "pathPrefix", v1beta1_allowed_host_path->path_prefix) == NULL) { - goto fail; //String - } - } - - - // v1beta1_allowed_host_path->read_only - if(v1beta1_allowed_host_path->read_only) { - if(cJSON_AddBoolToObject(item, "readOnly", v1beta1_allowed_host_path->read_only) == NULL) { - goto fail; //Bool - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_allowed_host_path_t *v1beta1_allowed_host_path_parseFromJSON(cJSON *v1beta1_allowed_host_pathJSON){ - - v1beta1_allowed_host_path_t *v1beta1_allowed_host_path_local_var = NULL; - - // v1beta1_allowed_host_path->path_prefix - cJSON *path_prefix = cJSON_GetObjectItemCaseSensitive(v1beta1_allowed_host_pathJSON, "pathPrefix"); - if (path_prefix) { - if(!cJSON_IsString(path_prefix)) - { - goto end; //String - } - } - - // v1beta1_allowed_host_path->read_only - cJSON *read_only = cJSON_GetObjectItemCaseSensitive(v1beta1_allowed_host_pathJSON, "readOnly"); - if (read_only) { - if(!cJSON_IsBool(read_only)) - { - goto end; //Bool - } - } - - - v1beta1_allowed_host_path_local_var = v1beta1_allowed_host_path_create ( - path_prefix ? strdup(path_prefix->valuestring) : NULL, - read_only ? read_only->valueint : 0 - ); - - return v1beta1_allowed_host_path_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_allowed_host_path.h b/kubernetes/model/v1beta1_allowed_host_path.h deleted file mode 100644 index b400a94..0000000 --- a/kubernetes/model/v1beta1_allowed_host_path.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * v1beta1_allowed_host_path.h - * - * AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined. - */ - -#ifndef _v1beta1_allowed_host_path_H_ -#define _v1beta1_allowed_host_path_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_allowed_host_path_t v1beta1_allowed_host_path_t; - - - - -typedef struct v1beta1_allowed_host_path_t { - char *path_prefix; // string - int read_only; //boolean - -} v1beta1_allowed_host_path_t; - -v1beta1_allowed_host_path_t *v1beta1_allowed_host_path_create( - char *path_prefix, - int read_only -); - -void v1beta1_allowed_host_path_free(v1beta1_allowed_host_path_t *v1beta1_allowed_host_path); - -v1beta1_allowed_host_path_t *v1beta1_allowed_host_path_parseFromJSON(cJSON *v1beta1_allowed_host_pathJSON); - -cJSON *v1beta1_allowed_host_path_convertToJSON(v1beta1_allowed_host_path_t *v1beta1_allowed_host_path); - -#endif /* _v1beta1_allowed_host_path_H_ */ - diff --git a/kubernetes/model/v1beta1_cron_job.c b/kubernetes/model/v1beta1_cron_job.c deleted file mode 100644 index 03ea54a..0000000 --- a/kubernetes/model/v1beta1_cron_job.c +++ /dev/null @@ -1,196 +0,0 @@ -#include -#include -#include -#include "v1beta1_cron_job.h" - - - -v1beta1_cron_job_t *v1beta1_cron_job_create( - char *api_version, - char *kind, - v1_object_meta_t *metadata, - v1beta1_cron_job_spec_t *spec, - v1beta1_cron_job_status_t *status - ) { - v1beta1_cron_job_t *v1beta1_cron_job_local_var = malloc(sizeof(v1beta1_cron_job_t)); - if (!v1beta1_cron_job_local_var) { - return NULL; - } - v1beta1_cron_job_local_var->api_version = api_version; - v1beta1_cron_job_local_var->kind = kind; - v1beta1_cron_job_local_var->metadata = metadata; - v1beta1_cron_job_local_var->spec = spec; - v1beta1_cron_job_local_var->status = status; - - return v1beta1_cron_job_local_var; -} - - -void v1beta1_cron_job_free(v1beta1_cron_job_t *v1beta1_cron_job) { - if(NULL == v1beta1_cron_job){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_cron_job->api_version) { - free(v1beta1_cron_job->api_version); - v1beta1_cron_job->api_version = NULL; - } - if (v1beta1_cron_job->kind) { - free(v1beta1_cron_job->kind); - v1beta1_cron_job->kind = NULL; - } - if (v1beta1_cron_job->metadata) { - v1_object_meta_free(v1beta1_cron_job->metadata); - v1beta1_cron_job->metadata = NULL; - } - if (v1beta1_cron_job->spec) { - v1beta1_cron_job_spec_free(v1beta1_cron_job->spec); - v1beta1_cron_job->spec = NULL; - } - if (v1beta1_cron_job->status) { - v1beta1_cron_job_status_free(v1beta1_cron_job->status); - v1beta1_cron_job->status = NULL; - } - free(v1beta1_cron_job); -} - -cJSON *v1beta1_cron_job_convertToJSON(v1beta1_cron_job_t *v1beta1_cron_job) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_cron_job->api_version - if(v1beta1_cron_job->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v1beta1_cron_job->api_version) == NULL) { - goto fail; //String - } - } - - - // v1beta1_cron_job->kind - if(v1beta1_cron_job->kind) { - if(cJSON_AddStringToObject(item, "kind", v1beta1_cron_job->kind) == NULL) { - goto fail; //String - } - } - - - // v1beta1_cron_job->metadata - if(v1beta1_cron_job->metadata) { - cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1beta1_cron_job->metadata); - if(metadata_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_cron_job->spec - if(v1beta1_cron_job->spec) { - cJSON *spec_local_JSON = v1beta1_cron_job_spec_convertToJSON(v1beta1_cron_job->spec); - if(spec_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "spec", spec_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_cron_job->status - if(v1beta1_cron_job->status) { - cJSON *status_local_JSON = v1beta1_cron_job_status_convertToJSON(v1beta1_cron_job->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_cron_job_t *v1beta1_cron_job_parseFromJSON(cJSON *v1beta1_cron_jobJSON){ - - v1beta1_cron_job_t *v1beta1_cron_job_local_var = NULL; - - // define the local variable for v1beta1_cron_job->metadata - v1_object_meta_t *metadata_local_nonprim = NULL; - - // define the local variable for v1beta1_cron_job->spec - v1beta1_cron_job_spec_t *spec_local_nonprim = NULL; - - // define the local variable for v1beta1_cron_job->status - v1beta1_cron_job_status_t *status_local_nonprim = NULL; - - // v1beta1_cron_job->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_cron_jobJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version)) - { - goto end; //String - } - } - - // v1beta1_cron_job->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_cron_jobJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind)) - { - goto end; //String - } - } - - // v1beta1_cron_job->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_cron_jobJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive - } - - // v1beta1_cron_job->spec - cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1beta1_cron_jobJSON, "spec"); - if (spec) { - spec_local_nonprim = v1beta1_cron_job_spec_parseFromJSON(spec); //nonprimitive - } - - // v1beta1_cron_job->status - cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta1_cron_jobJSON, "status"); - if (status) { - status_local_nonprim = v1beta1_cron_job_status_parseFromJSON(status); //nonprimitive - } - - - v1beta1_cron_job_local_var = v1beta1_cron_job_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL, - spec ? spec_local_nonprim : NULL, - status ? status_local_nonprim : NULL - ); - - return v1beta1_cron_job_local_var; -end: - if (metadata_local_nonprim) { - v1_object_meta_free(metadata_local_nonprim); - metadata_local_nonprim = NULL; - } - if (spec_local_nonprim) { - v1beta1_cron_job_spec_free(spec_local_nonprim); - spec_local_nonprim = NULL; - } - if (status_local_nonprim) { - v1beta1_cron_job_status_free(status_local_nonprim); - status_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_cron_job.h b/kubernetes/model/v1beta1_cron_job.h deleted file mode 100644 index 21f941d..0000000 --- a/kubernetes/model/v1beta1_cron_job.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * v1beta1_cron_job.h - * - * CronJob represents the configuration of a single cron job. - */ - -#ifndef _v1beta1_cron_job_H_ -#define _v1beta1_cron_job_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_cron_job_t v1beta1_cron_job_t; - -#include "v1_object_meta.h" -#include "v1beta1_cron_job_spec.h" -#include "v1beta1_cron_job_status.h" - - - -typedef struct v1beta1_cron_job_t { - char *api_version; // string - char *kind; // string - struct v1_object_meta_t *metadata; //model - struct v1beta1_cron_job_spec_t *spec; //model - struct v1beta1_cron_job_status_t *status; //model - -} v1beta1_cron_job_t; - -v1beta1_cron_job_t *v1beta1_cron_job_create( - char *api_version, - char *kind, - v1_object_meta_t *metadata, - v1beta1_cron_job_spec_t *spec, - v1beta1_cron_job_status_t *status -); - -void v1beta1_cron_job_free(v1beta1_cron_job_t *v1beta1_cron_job); - -v1beta1_cron_job_t *v1beta1_cron_job_parseFromJSON(cJSON *v1beta1_cron_jobJSON); - -cJSON *v1beta1_cron_job_convertToJSON(v1beta1_cron_job_t *v1beta1_cron_job); - -#endif /* _v1beta1_cron_job_H_ */ - diff --git a/kubernetes/model/v1beta1_cron_job_list.c b/kubernetes/model/v1beta1_cron_job_list.c deleted file mode 100644 index e5337ed..0000000 --- a/kubernetes/model/v1beta1_cron_job_list.c +++ /dev/null @@ -1,197 +0,0 @@ -#include -#include -#include -#include "v1beta1_cron_job_list.h" - - - -v1beta1_cron_job_list_t *v1beta1_cron_job_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata - ) { - v1beta1_cron_job_list_t *v1beta1_cron_job_list_local_var = malloc(sizeof(v1beta1_cron_job_list_t)); - if (!v1beta1_cron_job_list_local_var) { - return NULL; - } - v1beta1_cron_job_list_local_var->api_version = api_version; - v1beta1_cron_job_list_local_var->items = items; - v1beta1_cron_job_list_local_var->kind = kind; - v1beta1_cron_job_list_local_var->metadata = metadata; - - return v1beta1_cron_job_list_local_var; -} - - -void v1beta1_cron_job_list_free(v1beta1_cron_job_list_t *v1beta1_cron_job_list) { - if(NULL == v1beta1_cron_job_list){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_cron_job_list->api_version) { - free(v1beta1_cron_job_list->api_version); - v1beta1_cron_job_list->api_version = NULL; - } - if (v1beta1_cron_job_list->items) { - list_ForEach(listEntry, v1beta1_cron_job_list->items) { - v1beta1_cron_job_free(listEntry->data); - } - list_freeList(v1beta1_cron_job_list->items); - v1beta1_cron_job_list->items = NULL; - } - if (v1beta1_cron_job_list->kind) { - free(v1beta1_cron_job_list->kind); - v1beta1_cron_job_list->kind = NULL; - } - if (v1beta1_cron_job_list->metadata) { - v1_list_meta_free(v1beta1_cron_job_list->metadata); - v1beta1_cron_job_list->metadata = NULL; - } - free(v1beta1_cron_job_list); -} - -cJSON *v1beta1_cron_job_list_convertToJSON(v1beta1_cron_job_list_t *v1beta1_cron_job_list) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_cron_job_list->api_version - if(v1beta1_cron_job_list->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v1beta1_cron_job_list->api_version) == NULL) { - goto fail; //String - } - } - - - // v1beta1_cron_job_list->items - if (!v1beta1_cron_job_list->items) { - goto fail; - } - cJSON *items = cJSON_AddArrayToObject(item, "items"); - if(items == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *itemsListEntry; - if (v1beta1_cron_job_list->items) { - list_ForEach(itemsListEntry, v1beta1_cron_job_list->items) { - cJSON *itemLocal = v1beta1_cron_job_convertToJSON(itemsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(items, itemLocal); - } - } - - - // v1beta1_cron_job_list->kind - if(v1beta1_cron_job_list->kind) { - if(cJSON_AddStringToObject(item, "kind", v1beta1_cron_job_list->kind) == NULL) { - goto fail; //String - } - } - - - // v1beta1_cron_job_list->metadata - if(v1beta1_cron_job_list->metadata) { - cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1beta1_cron_job_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_cron_job_list_t *v1beta1_cron_job_list_parseFromJSON(cJSON *v1beta1_cron_job_listJSON){ - - v1beta1_cron_job_list_t *v1beta1_cron_job_list_local_var = NULL; - - // define the local list for v1beta1_cron_job_list->items - list_t *itemsList = NULL; - - // define the local variable for v1beta1_cron_job_list->metadata - v1_list_meta_t *metadata_local_nonprim = NULL; - - // v1beta1_cron_job_list->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_cron_job_listJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version)) - { - goto end; //String - } - } - - // v1beta1_cron_job_list->items - cJSON *items = cJSON_GetObjectItemCaseSensitive(v1beta1_cron_job_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_cron_job_t *itemsItem = v1beta1_cron_job_parseFromJSON(items_local_nonprimitive); - - list_addElement(itemsList, itemsItem); - } - - // v1beta1_cron_job_list->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_cron_job_listJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind)) - { - goto end; //String - } - } - - // v1beta1_cron_job_list->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_cron_job_listJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive - } - - - v1beta1_cron_job_list_local_var = v1beta1_cron_job_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, - itemsList, - kind ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL - ); - - return v1beta1_cron_job_list_local_var; -end: - if (itemsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, itemsList) { - v1beta1_cron_job_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_cron_job_list.h b/kubernetes/model/v1beta1_cron_job_list.h deleted file mode 100644 index ade264b..0000000 --- a/kubernetes/model/v1beta1_cron_job_list.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v1beta1_cron_job_list.h - * - * CronJobList is a collection of cron jobs. - */ - -#ifndef _v1beta1_cron_job_list_H_ -#define _v1beta1_cron_job_list_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_cron_job_list_t v1beta1_cron_job_list_t; - -#include "v1_list_meta.h" -#include "v1beta1_cron_job.h" - - - -typedef struct v1beta1_cron_job_list_t { - char *api_version; // string - list_t *items; //nonprimitive container - char *kind; // string - struct v1_list_meta_t *metadata; //model - -} v1beta1_cron_job_list_t; - -v1beta1_cron_job_list_t *v1beta1_cron_job_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata -); - -void v1beta1_cron_job_list_free(v1beta1_cron_job_list_t *v1beta1_cron_job_list); - -v1beta1_cron_job_list_t *v1beta1_cron_job_list_parseFromJSON(cJSON *v1beta1_cron_job_listJSON); - -cJSON *v1beta1_cron_job_list_convertToJSON(v1beta1_cron_job_list_t *v1beta1_cron_job_list); - -#endif /* _v1beta1_cron_job_list_H_ */ - diff --git a/kubernetes/model/v1beta1_cron_job_spec.c b/kubernetes/model/v1beta1_cron_job_spec.c deleted file mode 100644 index 6a272ec..0000000 --- a/kubernetes/model/v1beta1_cron_job_spec.c +++ /dev/null @@ -1,242 +0,0 @@ -#include -#include -#include -#include "v1beta1_cron_job_spec.h" - - - -v1beta1_cron_job_spec_t *v1beta1_cron_job_spec_create( - char *concurrency_policy, - int failed_jobs_history_limit, - v1beta1_job_template_spec_t *job_template, - char *schedule, - long starting_deadline_seconds, - int successful_jobs_history_limit, - int suspend, - char *time_zone - ) { - v1beta1_cron_job_spec_t *v1beta1_cron_job_spec_local_var = malloc(sizeof(v1beta1_cron_job_spec_t)); - if (!v1beta1_cron_job_spec_local_var) { - return NULL; - } - v1beta1_cron_job_spec_local_var->concurrency_policy = concurrency_policy; - v1beta1_cron_job_spec_local_var->failed_jobs_history_limit = failed_jobs_history_limit; - v1beta1_cron_job_spec_local_var->job_template = job_template; - v1beta1_cron_job_spec_local_var->schedule = schedule; - v1beta1_cron_job_spec_local_var->starting_deadline_seconds = starting_deadline_seconds; - v1beta1_cron_job_spec_local_var->successful_jobs_history_limit = successful_jobs_history_limit; - v1beta1_cron_job_spec_local_var->suspend = suspend; - v1beta1_cron_job_spec_local_var->time_zone = time_zone; - - return v1beta1_cron_job_spec_local_var; -} - - -void v1beta1_cron_job_spec_free(v1beta1_cron_job_spec_t *v1beta1_cron_job_spec) { - if(NULL == v1beta1_cron_job_spec){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_cron_job_spec->concurrency_policy) { - free(v1beta1_cron_job_spec->concurrency_policy); - v1beta1_cron_job_spec->concurrency_policy = NULL; - } - if (v1beta1_cron_job_spec->job_template) { - v1beta1_job_template_spec_free(v1beta1_cron_job_spec->job_template); - v1beta1_cron_job_spec->job_template = NULL; - } - if (v1beta1_cron_job_spec->schedule) { - free(v1beta1_cron_job_spec->schedule); - v1beta1_cron_job_spec->schedule = NULL; - } - if (v1beta1_cron_job_spec->time_zone) { - free(v1beta1_cron_job_spec->time_zone); - v1beta1_cron_job_spec->time_zone = NULL; - } - free(v1beta1_cron_job_spec); -} - -cJSON *v1beta1_cron_job_spec_convertToJSON(v1beta1_cron_job_spec_t *v1beta1_cron_job_spec) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_cron_job_spec->concurrency_policy - if(v1beta1_cron_job_spec->concurrency_policy) { - if(cJSON_AddStringToObject(item, "concurrencyPolicy", v1beta1_cron_job_spec->concurrency_policy) == NULL) { - goto fail; //String - } - } - - - // v1beta1_cron_job_spec->failed_jobs_history_limit - if(v1beta1_cron_job_spec->failed_jobs_history_limit) { - if(cJSON_AddNumberToObject(item, "failedJobsHistoryLimit", v1beta1_cron_job_spec->failed_jobs_history_limit) == NULL) { - goto fail; //Numeric - } - } - - - // v1beta1_cron_job_spec->job_template - if (!v1beta1_cron_job_spec->job_template) { - goto fail; - } - cJSON *job_template_local_JSON = v1beta1_job_template_spec_convertToJSON(v1beta1_cron_job_spec->job_template); - if(job_template_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "jobTemplate", job_template_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v1beta1_cron_job_spec->schedule - if (!v1beta1_cron_job_spec->schedule) { - goto fail; - } - if(cJSON_AddStringToObject(item, "schedule", v1beta1_cron_job_spec->schedule) == NULL) { - goto fail; //String - } - - - // v1beta1_cron_job_spec->starting_deadline_seconds - if(v1beta1_cron_job_spec->starting_deadline_seconds) { - if(cJSON_AddNumberToObject(item, "startingDeadlineSeconds", v1beta1_cron_job_spec->starting_deadline_seconds) == NULL) { - goto fail; //Numeric - } - } - - - // v1beta1_cron_job_spec->successful_jobs_history_limit - if(v1beta1_cron_job_spec->successful_jobs_history_limit) { - if(cJSON_AddNumberToObject(item, "successfulJobsHistoryLimit", v1beta1_cron_job_spec->successful_jobs_history_limit) == NULL) { - goto fail; //Numeric - } - } - - - // v1beta1_cron_job_spec->suspend - if(v1beta1_cron_job_spec->suspend) { - if(cJSON_AddBoolToObject(item, "suspend", v1beta1_cron_job_spec->suspend) == NULL) { - goto fail; //Bool - } - } - - - // v1beta1_cron_job_spec->time_zone - if(v1beta1_cron_job_spec->time_zone) { - if(cJSON_AddStringToObject(item, "timeZone", v1beta1_cron_job_spec->time_zone) == NULL) { - goto fail; //String - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_cron_job_spec_t *v1beta1_cron_job_spec_parseFromJSON(cJSON *v1beta1_cron_job_specJSON){ - - v1beta1_cron_job_spec_t *v1beta1_cron_job_spec_local_var = NULL; - - // define the local variable for v1beta1_cron_job_spec->job_template - v1beta1_job_template_spec_t *job_template_local_nonprim = NULL; - - // v1beta1_cron_job_spec->concurrency_policy - cJSON *concurrency_policy = cJSON_GetObjectItemCaseSensitive(v1beta1_cron_job_specJSON, "concurrencyPolicy"); - if (concurrency_policy) { - if(!cJSON_IsString(concurrency_policy)) - { - goto end; //String - } - } - - // v1beta1_cron_job_spec->failed_jobs_history_limit - cJSON *failed_jobs_history_limit = cJSON_GetObjectItemCaseSensitive(v1beta1_cron_job_specJSON, "failedJobsHistoryLimit"); - if (failed_jobs_history_limit) { - if(!cJSON_IsNumber(failed_jobs_history_limit)) - { - goto end; //Numeric - } - } - - // v1beta1_cron_job_spec->job_template - cJSON *job_template = cJSON_GetObjectItemCaseSensitive(v1beta1_cron_job_specJSON, "jobTemplate"); - if (!job_template) { - goto end; - } - - - job_template_local_nonprim = v1beta1_job_template_spec_parseFromJSON(job_template); //nonprimitive - - // v1beta1_cron_job_spec->schedule - cJSON *schedule = cJSON_GetObjectItemCaseSensitive(v1beta1_cron_job_specJSON, "schedule"); - if (!schedule) { - goto end; - } - - - if(!cJSON_IsString(schedule)) - { - goto end; //String - } - - // v1beta1_cron_job_spec->starting_deadline_seconds - cJSON *starting_deadline_seconds = cJSON_GetObjectItemCaseSensitive(v1beta1_cron_job_specJSON, "startingDeadlineSeconds"); - if (starting_deadline_seconds) { - if(!cJSON_IsNumber(starting_deadline_seconds)) - { - goto end; //Numeric - } - } - - // v1beta1_cron_job_spec->successful_jobs_history_limit - cJSON *successful_jobs_history_limit = cJSON_GetObjectItemCaseSensitive(v1beta1_cron_job_specJSON, "successfulJobsHistoryLimit"); - if (successful_jobs_history_limit) { - if(!cJSON_IsNumber(successful_jobs_history_limit)) - { - goto end; //Numeric - } - } - - // v1beta1_cron_job_spec->suspend - cJSON *suspend = cJSON_GetObjectItemCaseSensitive(v1beta1_cron_job_specJSON, "suspend"); - if (suspend) { - if(!cJSON_IsBool(suspend)) - { - goto end; //Bool - } - } - - // v1beta1_cron_job_spec->time_zone - cJSON *time_zone = cJSON_GetObjectItemCaseSensitive(v1beta1_cron_job_specJSON, "timeZone"); - if (time_zone) { - if(!cJSON_IsString(time_zone)) - { - goto end; //String - } - } - - - v1beta1_cron_job_spec_local_var = v1beta1_cron_job_spec_create ( - 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 - ); - - return v1beta1_cron_job_spec_local_var; -end: - if (job_template_local_nonprim) { - v1beta1_job_template_spec_free(job_template_local_nonprim); - job_template_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_cron_job_spec.h b/kubernetes/model/v1beta1_cron_job_spec.h deleted file mode 100644 index 942f4bc..0000000 --- a/kubernetes/model/v1beta1_cron_job_spec.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * v1beta1_cron_job_spec.h - * - * CronJobSpec describes how the job execution will look like and when it will actually run. - */ - -#ifndef _v1beta1_cron_job_spec_H_ -#define _v1beta1_cron_job_spec_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_cron_job_spec_t v1beta1_cron_job_spec_t; - -#include "v1beta1_job_template_spec.h" - - - -typedef struct v1beta1_cron_job_spec_t { - char *concurrency_policy; // string - int failed_jobs_history_limit; //numeric - struct v1beta1_job_template_spec_t *job_template; //model - char *schedule; // string - long starting_deadline_seconds; //numeric - int successful_jobs_history_limit; //numeric - int suspend; //boolean - char *time_zone; // string - -} v1beta1_cron_job_spec_t; - -v1beta1_cron_job_spec_t *v1beta1_cron_job_spec_create( - char *concurrency_policy, - int failed_jobs_history_limit, - v1beta1_job_template_spec_t *job_template, - char *schedule, - long starting_deadline_seconds, - int successful_jobs_history_limit, - int suspend, - char *time_zone -); - -void v1beta1_cron_job_spec_free(v1beta1_cron_job_spec_t *v1beta1_cron_job_spec); - -v1beta1_cron_job_spec_t *v1beta1_cron_job_spec_parseFromJSON(cJSON *v1beta1_cron_job_specJSON); - -cJSON *v1beta1_cron_job_spec_convertToJSON(v1beta1_cron_job_spec_t *v1beta1_cron_job_spec); - -#endif /* _v1beta1_cron_job_spec_H_ */ - diff --git a/kubernetes/model/v1beta1_cron_job_status.c b/kubernetes/model/v1beta1_cron_job_status.c deleted file mode 100644 index 36d118e..0000000 --- a/kubernetes/model/v1beta1_cron_job_status.c +++ /dev/null @@ -1,160 +0,0 @@ -#include -#include -#include -#include "v1beta1_cron_job_status.h" - - - -v1beta1_cron_job_status_t *v1beta1_cron_job_status_create( - list_t *active, - char *last_schedule_time, - char *last_successful_time - ) { - v1beta1_cron_job_status_t *v1beta1_cron_job_status_local_var = malloc(sizeof(v1beta1_cron_job_status_t)); - if (!v1beta1_cron_job_status_local_var) { - return NULL; - } - v1beta1_cron_job_status_local_var->active = active; - v1beta1_cron_job_status_local_var->last_schedule_time = last_schedule_time; - v1beta1_cron_job_status_local_var->last_successful_time = last_successful_time; - - return v1beta1_cron_job_status_local_var; -} - - -void v1beta1_cron_job_status_free(v1beta1_cron_job_status_t *v1beta1_cron_job_status) { - if(NULL == v1beta1_cron_job_status){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_cron_job_status->active) { - list_ForEach(listEntry, v1beta1_cron_job_status->active) { - v1_object_reference_free(listEntry->data); - } - list_freeList(v1beta1_cron_job_status->active); - v1beta1_cron_job_status->active = NULL; - } - if (v1beta1_cron_job_status->last_schedule_time) { - free(v1beta1_cron_job_status->last_schedule_time); - v1beta1_cron_job_status->last_schedule_time = NULL; - } - if (v1beta1_cron_job_status->last_successful_time) { - free(v1beta1_cron_job_status->last_successful_time); - v1beta1_cron_job_status->last_successful_time = NULL; - } - free(v1beta1_cron_job_status); -} - -cJSON *v1beta1_cron_job_status_convertToJSON(v1beta1_cron_job_status_t *v1beta1_cron_job_status) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_cron_job_status->active - if(v1beta1_cron_job_status->active) { - cJSON *active = cJSON_AddArrayToObject(item, "active"); - if(active == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *activeListEntry; - if (v1beta1_cron_job_status->active) { - list_ForEach(activeListEntry, v1beta1_cron_job_status->active) { - cJSON *itemLocal = v1_object_reference_convertToJSON(activeListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(active, itemLocal); - } - } - } - - - // v1beta1_cron_job_status->last_schedule_time - if(v1beta1_cron_job_status->last_schedule_time) { - if(cJSON_AddStringToObject(item, "lastScheduleTime", v1beta1_cron_job_status->last_schedule_time) == NULL) { - goto fail; //Date-Time - } - } - - - // v1beta1_cron_job_status->last_successful_time - if(v1beta1_cron_job_status->last_successful_time) { - if(cJSON_AddStringToObject(item, "lastSuccessfulTime", v1beta1_cron_job_status->last_successful_time) == NULL) { - goto fail; //Date-Time - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_cron_job_status_t *v1beta1_cron_job_status_parseFromJSON(cJSON *v1beta1_cron_job_statusJSON){ - - v1beta1_cron_job_status_t *v1beta1_cron_job_status_local_var = NULL; - - // define the local list for v1beta1_cron_job_status->active - list_t *activeList = NULL; - - // v1beta1_cron_job_status->active - cJSON *active = cJSON_GetObjectItemCaseSensitive(v1beta1_cron_job_statusJSON, "active"); - if (active) { - cJSON *active_local_nonprimitive = NULL; - if(!cJSON_IsArray(active)){ - goto end; //nonprimitive container - } - - activeList = list_createList(); - - cJSON_ArrayForEach(active_local_nonprimitive,active ) - { - if(!cJSON_IsObject(active_local_nonprimitive)){ - goto end; - } - v1_object_reference_t *activeItem = v1_object_reference_parseFromJSON(active_local_nonprimitive); - - list_addElement(activeList, activeItem); - } - } - - // v1beta1_cron_job_status->last_schedule_time - cJSON *last_schedule_time = cJSON_GetObjectItemCaseSensitive(v1beta1_cron_job_statusJSON, "lastScheduleTime"); - if (last_schedule_time) { - if(!cJSON_IsString(last_schedule_time)) - { - goto end; //DateTime - } - } - - // v1beta1_cron_job_status->last_successful_time - cJSON *last_successful_time = cJSON_GetObjectItemCaseSensitive(v1beta1_cron_job_statusJSON, "lastSuccessfulTime"); - if (last_successful_time) { - if(!cJSON_IsString(last_successful_time)) - { - goto end; //DateTime - } - } - - - v1beta1_cron_job_status_local_var = v1beta1_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 - ); - - return v1beta1_cron_job_status_local_var; -end: - if (activeList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, activeList) { - v1_object_reference_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(activeList); - activeList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_cron_job_status.h b/kubernetes/model/v1beta1_cron_job_status.h deleted file mode 100644 index 55655e4..0000000 --- a/kubernetes/model/v1beta1_cron_job_status.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * v1beta1_cron_job_status.h - * - * CronJobStatus represents the current state of a cron job. - */ - -#ifndef _v1beta1_cron_job_status_H_ -#define _v1beta1_cron_job_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_cron_job_status_t v1beta1_cron_job_status_t; - -#include "v1_object_reference.h" - - - -typedef struct v1beta1_cron_job_status_t { - list_t *active; //nonprimitive container - char *last_schedule_time; //date time - char *last_successful_time; //date time - -} v1beta1_cron_job_status_t; - -v1beta1_cron_job_status_t *v1beta1_cron_job_status_create( - list_t *active, - char *last_schedule_time, - char *last_successful_time -); - -void v1beta1_cron_job_status_free(v1beta1_cron_job_status_t *v1beta1_cron_job_status); - -v1beta1_cron_job_status_t *v1beta1_cron_job_status_parseFromJSON(cJSON *v1beta1_cron_job_statusJSON); - -cJSON *v1beta1_cron_job_status_convertToJSON(v1beta1_cron_job_status_t *v1beta1_cron_job_status); - -#endif /* _v1beta1_cron_job_status_H_ */ - diff --git a/kubernetes/model/v1beta1_endpoint.c b/kubernetes/model/v1beta1_endpoint.c deleted file mode 100644 index 87779c6..0000000 --- a/kubernetes/model/v1beta1_endpoint.c +++ /dev/null @@ -1,333 +0,0 @@ -#include -#include -#include -#include "v1beta1_endpoint.h" - - - -v1beta1_endpoint_t *v1beta1_endpoint_create( - list_t *addresses, - v1beta1_endpoint_conditions_t *conditions, - v1beta1_endpoint_hints_t *hints, - char *hostname, - char *node_name, - v1_object_reference_t *target_ref, - list_t* topology - ) { - v1beta1_endpoint_t *v1beta1_endpoint_local_var = malloc(sizeof(v1beta1_endpoint_t)); - if (!v1beta1_endpoint_local_var) { - return NULL; - } - v1beta1_endpoint_local_var->addresses = addresses; - v1beta1_endpoint_local_var->conditions = conditions; - v1beta1_endpoint_local_var->hints = hints; - v1beta1_endpoint_local_var->hostname = hostname; - v1beta1_endpoint_local_var->node_name = node_name; - v1beta1_endpoint_local_var->target_ref = target_ref; - v1beta1_endpoint_local_var->topology = topology; - - return v1beta1_endpoint_local_var; -} - - -void v1beta1_endpoint_free(v1beta1_endpoint_t *v1beta1_endpoint) { - if(NULL == v1beta1_endpoint){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_endpoint->addresses) { - list_ForEach(listEntry, v1beta1_endpoint->addresses) { - free(listEntry->data); - } - list_freeList(v1beta1_endpoint->addresses); - v1beta1_endpoint->addresses = NULL; - } - if (v1beta1_endpoint->conditions) { - v1beta1_endpoint_conditions_free(v1beta1_endpoint->conditions); - v1beta1_endpoint->conditions = NULL; - } - if (v1beta1_endpoint->hints) { - v1beta1_endpoint_hints_free(v1beta1_endpoint->hints); - v1beta1_endpoint->hints = NULL; - } - if (v1beta1_endpoint->hostname) { - free(v1beta1_endpoint->hostname); - v1beta1_endpoint->hostname = NULL; - } - if (v1beta1_endpoint->node_name) { - free(v1beta1_endpoint->node_name); - v1beta1_endpoint->node_name = NULL; - } - if (v1beta1_endpoint->target_ref) { - v1_object_reference_free(v1beta1_endpoint->target_ref); - v1beta1_endpoint->target_ref = NULL; - } - if (v1beta1_endpoint->topology) { - list_ForEach(listEntry, v1beta1_endpoint->topology) { - keyValuePair_t *localKeyValue = (keyValuePair_t*) listEntry->data; - free (localKeyValue->key); - free (localKeyValue->value); - keyValuePair_free(localKeyValue); - } - list_freeList(v1beta1_endpoint->topology); - v1beta1_endpoint->topology = NULL; - } - free(v1beta1_endpoint); -} - -cJSON *v1beta1_endpoint_convertToJSON(v1beta1_endpoint_t *v1beta1_endpoint) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_endpoint->addresses - if (!v1beta1_endpoint->addresses) { - goto fail; - } - cJSON *addresses = cJSON_AddArrayToObject(item, "addresses"); - if(addresses == NULL) { - goto fail; //primitive container - } - - listEntry_t *addressesListEntry; - list_ForEach(addressesListEntry, v1beta1_endpoint->addresses) { - if(cJSON_AddStringToObject(addresses, "", (char*)addressesListEntry->data) == NULL) - { - goto fail; - } - } - - - // v1beta1_endpoint->conditions - if(v1beta1_endpoint->conditions) { - cJSON *conditions_local_JSON = v1beta1_endpoint_conditions_convertToJSON(v1beta1_endpoint->conditions); - if(conditions_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "conditions", conditions_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_endpoint->hints - if(v1beta1_endpoint->hints) { - cJSON *hints_local_JSON = v1beta1_endpoint_hints_convertToJSON(v1beta1_endpoint->hints); - if(hints_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "hints", hints_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_endpoint->hostname - if(v1beta1_endpoint->hostname) { - if(cJSON_AddStringToObject(item, "hostname", v1beta1_endpoint->hostname) == NULL) { - goto fail; //String - } - } - - - // v1beta1_endpoint->node_name - if(v1beta1_endpoint->node_name) { - if(cJSON_AddStringToObject(item, "nodeName", v1beta1_endpoint->node_name) == NULL) { - goto fail; //String - } - } - - - // v1beta1_endpoint->target_ref - if(v1beta1_endpoint->target_ref) { - cJSON *target_ref_local_JSON = v1_object_reference_convertToJSON(v1beta1_endpoint->target_ref); - if(target_ref_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "targetRef", target_ref_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_endpoint->topology - if(v1beta1_endpoint->topology) { - cJSON *topology = cJSON_AddObjectToObject(item, "topology"); - if(topology == NULL) { - goto fail; //primitive map container - } - cJSON *localMapObject = topology; - listEntry_t *topologyListEntry; - if (v1beta1_endpoint->topology) { - list_ForEach(topologyListEntry, v1beta1_endpoint->topology) { - keyValuePair_t *localKeyValue = (keyValuePair_t*)topologyListEntry->data; - if(cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) - { - goto fail; - } - } - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_endpoint_t *v1beta1_endpoint_parseFromJSON(cJSON *v1beta1_endpointJSON){ - - v1beta1_endpoint_t *v1beta1_endpoint_local_var = NULL; - - // define the local list for v1beta1_endpoint->addresses - list_t *addressesList = NULL; - - // define the local variable for v1beta1_endpoint->conditions - v1beta1_endpoint_conditions_t *conditions_local_nonprim = NULL; - - // define the local variable for v1beta1_endpoint->hints - v1beta1_endpoint_hints_t *hints_local_nonprim = NULL; - - // define the local variable for v1beta1_endpoint->target_ref - v1_object_reference_t *target_ref_local_nonprim = NULL; - - // define the local map for v1beta1_endpoint->topology - list_t *topologyList = NULL; - - // v1beta1_endpoint->addresses - cJSON *addresses = cJSON_GetObjectItemCaseSensitive(v1beta1_endpointJSON, "addresses"); - if (!addresses) { - goto end; - } - - - cJSON *addresses_local = NULL; - if(!cJSON_IsArray(addresses)) { - goto end;//primitive container - } - addressesList = list_createList(); - - cJSON_ArrayForEach(addresses_local, addresses) - { - if(!cJSON_IsString(addresses_local)) - { - goto end; - } - list_addElement(addressesList , strdup(addresses_local->valuestring)); - } - - // v1beta1_endpoint->conditions - cJSON *conditions = cJSON_GetObjectItemCaseSensitive(v1beta1_endpointJSON, "conditions"); - if (conditions) { - conditions_local_nonprim = v1beta1_endpoint_conditions_parseFromJSON(conditions); //nonprimitive - } - - // v1beta1_endpoint->hints - cJSON *hints = cJSON_GetObjectItemCaseSensitive(v1beta1_endpointJSON, "hints"); - if (hints) { - hints_local_nonprim = v1beta1_endpoint_hints_parseFromJSON(hints); //nonprimitive - } - - // v1beta1_endpoint->hostname - cJSON *hostname = cJSON_GetObjectItemCaseSensitive(v1beta1_endpointJSON, "hostname"); - if (hostname) { - if(!cJSON_IsString(hostname)) - { - goto end; //String - } - } - - // v1beta1_endpoint->node_name - cJSON *node_name = cJSON_GetObjectItemCaseSensitive(v1beta1_endpointJSON, "nodeName"); - if (node_name) { - if(!cJSON_IsString(node_name)) - { - goto end; //String - } - } - - // v1beta1_endpoint->target_ref - cJSON *target_ref = cJSON_GetObjectItemCaseSensitive(v1beta1_endpointJSON, "targetRef"); - if (target_ref) { - target_ref_local_nonprim = v1_object_reference_parseFromJSON(target_ref); //nonprimitive - } - - // v1beta1_endpoint->topology - cJSON *topology = cJSON_GetObjectItemCaseSensitive(v1beta1_endpointJSON, "topology"); - if (topology) { - cJSON *topology_local_map = NULL; - if(!cJSON_IsObject(topology) && !cJSON_IsNull(topology)) - { - goto end;//primitive map container - } - if(cJSON_IsObject(topology)) - { - topologyList = list_createList(); - keyValuePair_t *localMapKeyPair; - cJSON_ArrayForEach(topology_local_map, topology) - { - cJSON *localMapObject = topology_local_map; - if(!cJSON_IsString(localMapObject)) - { - goto end; - } - localMapKeyPair = keyValuePair_create(strdup(localMapObject->string),strdup(localMapObject->valuestring)); - list_addElement(topologyList , localMapKeyPair); - } - } - } - - - v1beta1_endpoint_local_var = v1beta1_endpoint_create ( - addressesList, - conditions ? conditions_local_nonprim : NULL, - hints ? hints_local_nonprim : NULL, - hostname ? strdup(hostname->valuestring) : NULL, - node_name ? strdup(node_name->valuestring) : NULL, - target_ref ? target_ref_local_nonprim : NULL, - topology ? topologyList : NULL - ); - - return v1beta1_endpoint_local_var; -end: - if (addressesList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, addressesList) { - free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(addressesList); - addressesList = NULL; - } - if (conditions_local_nonprim) { - v1beta1_endpoint_conditions_free(conditions_local_nonprim); - conditions_local_nonprim = NULL; - } - if (hints_local_nonprim) { - v1beta1_endpoint_hints_free(hints_local_nonprim); - hints_local_nonprim = NULL; - } - if (target_ref_local_nonprim) { - v1_object_reference_free(target_ref_local_nonprim); - target_ref_local_nonprim = NULL; - } - if (topologyList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, topologyList) { - keyValuePair_t *localKeyValue = (keyValuePair_t*) listEntry->data; - free(localKeyValue->key); - localKeyValue->key = NULL; - free(localKeyValue->value); - localKeyValue->value = NULL; - keyValuePair_free(localKeyValue); - localKeyValue = NULL; - } - list_freeList(topologyList); - topologyList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_endpoint.h b/kubernetes/model/v1beta1_endpoint.h deleted file mode 100644 index c63f60a..0000000 --- a/kubernetes/model/v1beta1_endpoint.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * v1beta1_endpoint.h - * - * Endpoint represents a single logical \"backend\" implementing a service. - */ - -#ifndef _v1beta1_endpoint_H_ -#define _v1beta1_endpoint_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_endpoint_t v1beta1_endpoint_t; - -#include "v1_object_reference.h" -#include "v1beta1_endpoint_conditions.h" -#include "v1beta1_endpoint_hints.h" - - - -typedef struct v1beta1_endpoint_t { - list_t *addresses; //primitive container - struct v1beta1_endpoint_conditions_t *conditions; //model - struct v1beta1_endpoint_hints_t *hints; //model - char *hostname; // string - char *node_name; // string - struct v1_object_reference_t *target_ref; //model - list_t* topology; //map - -} v1beta1_endpoint_t; - -v1beta1_endpoint_t *v1beta1_endpoint_create( - list_t *addresses, - v1beta1_endpoint_conditions_t *conditions, - v1beta1_endpoint_hints_t *hints, - char *hostname, - char *node_name, - v1_object_reference_t *target_ref, - list_t* topology -); - -void v1beta1_endpoint_free(v1beta1_endpoint_t *v1beta1_endpoint); - -v1beta1_endpoint_t *v1beta1_endpoint_parseFromJSON(cJSON *v1beta1_endpointJSON); - -cJSON *v1beta1_endpoint_convertToJSON(v1beta1_endpoint_t *v1beta1_endpoint); - -#endif /* _v1beta1_endpoint_H_ */ - diff --git a/kubernetes/model/v1beta1_endpoint_conditions.c b/kubernetes/model/v1beta1_endpoint_conditions.c deleted file mode 100644 index a1f5e75..0000000 --- a/kubernetes/model/v1beta1_endpoint_conditions.c +++ /dev/null @@ -1,109 +0,0 @@ -#include -#include -#include -#include "v1beta1_endpoint_conditions.h" - - - -v1beta1_endpoint_conditions_t *v1beta1_endpoint_conditions_create( - int ready, - int serving, - int terminating - ) { - v1beta1_endpoint_conditions_t *v1beta1_endpoint_conditions_local_var = malloc(sizeof(v1beta1_endpoint_conditions_t)); - if (!v1beta1_endpoint_conditions_local_var) { - return NULL; - } - v1beta1_endpoint_conditions_local_var->ready = ready; - v1beta1_endpoint_conditions_local_var->serving = serving; - v1beta1_endpoint_conditions_local_var->terminating = terminating; - - return v1beta1_endpoint_conditions_local_var; -} - - -void v1beta1_endpoint_conditions_free(v1beta1_endpoint_conditions_t *v1beta1_endpoint_conditions) { - if(NULL == v1beta1_endpoint_conditions){ - return ; - } - listEntry_t *listEntry; - free(v1beta1_endpoint_conditions); -} - -cJSON *v1beta1_endpoint_conditions_convertToJSON(v1beta1_endpoint_conditions_t *v1beta1_endpoint_conditions) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_endpoint_conditions->ready - if(v1beta1_endpoint_conditions->ready) { - if(cJSON_AddBoolToObject(item, "ready", v1beta1_endpoint_conditions->ready) == NULL) { - goto fail; //Bool - } - } - - - // v1beta1_endpoint_conditions->serving - if(v1beta1_endpoint_conditions->serving) { - if(cJSON_AddBoolToObject(item, "serving", v1beta1_endpoint_conditions->serving) == NULL) { - goto fail; //Bool - } - } - - - // v1beta1_endpoint_conditions->terminating - if(v1beta1_endpoint_conditions->terminating) { - if(cJSON_AddBoolToObject(item, "terminating", v1beta1_endpoint_conditions->terminating) == NULL) { - goto fail; //Bool - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_endpoint_conditions_t *v1beta1_endpoint_conditions_parseFromJSON(cJSON *v1beta1_endpoint_conditionsJSON){ - - v1beta1_endpoint_conditions_t *v1beta1_endpoint_conditions_local_var = NULL; - - // v1beta1_endpoint_conditions->ready - cJSON *ready = cJSON_GetObjectItemCaseSensitive(v1beta1_endpoint_conditionsJSON, "ready"); - if (ready) { - if(!cJSON_IsBool(ready)) - { - goto end; //Bool - } - } - - // v1beta1_endpoint_conditions->serving - cJSON *serving = cJSON_GetObjectItemCaseSensitive(v1beta1_endpoint_conditionsJSON, "serving"); - if (serving) { - if(!cJSON_IsBool(serving)) - { - goto end; //Bool - } - } - - // v1beta1_endpoint_conditions->terminating - cJSON *terminating = cJSON_GetObjectItemCaseSensitive(v1beta1_endpoint_conditionsJSON, "terminating"); - if (terminating) { - if(!cJSON_IsBool(terminating)) - { - goto end; //Bool - } - } - - - v1beta1_endpoint_conditions_local_var = v1beta1_endpoint_conditions_create ( - ready ? ready->valueint : 0, - serving ? serving->valueint : 0, - terminating ? terminating->valueint : 0 - ); - - return v1beta1_endpoint_conditions_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_endpoint_conditions.h b/kubernetes/model/v1beta1_endpoint_conditions.h deleted file mode 100644 index f2b7ffe..0000000 --- a/kubernetes/model/v1beta1_endpoint_conditions.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v1beta1_endpoint_conditions.h - * - * EndpointConditions represents the current condition of an endpoint. - */ - -#ifndef _v1beta1_endpoint_conditions_H_ -#define _v1beta1_endpoint_conditions_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_endpoint_conditions_t v1beta1_endpoint_conditions_t; - - - - -typedef struct v1beta1_endpoint_conditions_t { - int ready; //boolean - int serving; //boolean - int terminating; //boolean - -} v1beta1_endpoint_conditions_t; - -v1beta1_endpoint_conditions_t *v1beta1_endpoint_conditions_create( - int ready, - int serving, - int terminating -); - -void v1beta1_endpoint_conditions_free(v1beta1_endpoint_conditions_t *v1beta1_endpoint_conditions); - -v1beta1_endpoint_conditions_t *v1beta1_endpoint_conditions_parseFromJSON(cJSON *v1beta1_endpoint_conditionsJSON); - -cJSON *v1beta1_endpoint_conditions_convertToJSON(v1beta1_endpoint_conditions_t *v1beta1_endpoint_conditions); - -#endif /* _v1beta1_endpoint_conditions_H_ */ - diff --git a/kubernetes/model/v1beta1_endpoint_hints.c b/kubernetes/model/v1beta1_endpoint_hints.c deleted file mode 100644 index dee24da..0000000 --- a/kubernetes/model/v1beta1_endpoint_hints.c +++ /dev/null @@ -1,112 +0,0 @@ -#include -#include -#include -#include "v1beta1_endpoint_hints.h" - - - -v1beta1_endpoint_hints_t *v1beta1_endpoint_hints_create( - list_t *for_zones - ) { - v1beta1_endpoint_hints_t *v1beta1_endpoint_hints_local_var = malloc(sizeof(v1beta1_endpoint_hints_t)); - if (!v1beta1_endpoint_hints_local_var) { - return NULL; - } - v1beta1_endpoint_hints_local_var->for_zones = for_zones; - - return v1beta1_endpoint_hints_local_var; -} - - -void v1beta1_endpoint_hints_free(v1beta1_endpoint_hints_t *v1beta1_endpoint_hints) { - if(NULL == v1beta1_endpoint_hints){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_endpoint_hints->for_zones) { - list_ForEach(listEntry, v1beta1_endpoint_hints->for_zones) { - v1beta1_for_zone_free(listEntry->data); - } - list_freeList(v1beta1_endpoint_hints->for_zones); - v1beta1_endpoint_hints->for_zones = NULL; - } - free(v1beta1_endpoint_hints); -} - -cJSON *v1beta1_endpoint_hints_convertToJSON(v1beta1_endpoint_hints_t *v1beta1_endpoint_hints) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_endpoint_hints->for_zones - if(v1beta1_endpoint_hints->for_zones) { - cJSON *for_zones = cJSON_AddArrayToObject(item, "forZones"); - if(for_zones == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *for_zonesListEntry; - if (v1beta1_endpoint_hints->for_zones) { - list_ForEach(for_zonesListEntry, v1beta1_endpoint_hints->for_zones) { - cJSON *itemLocal = v1beta1_for_zone_convertToJSON(for_zonesListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(for_zones, itemLocal); - } - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_endpoint_hints_t *v1beta1_endpoint_hints_parseFromJSON(cJSON *v1beta1_endpoint_hintsJSON){ - - v1beta1_endpoint_hints_t *v1beta1_endpoint_hints_local_var = NULL; - - // define the local list for v1beta1_endpoint_hints->for_zones - list_t *for_zonesList = NULL; - - // v1beta1_endpoint_hints->for_zones - cJSON *for_zones = cJSON_GetObjectItemCaseSensitive(v1beta1_endpoint_hintsJSON, "forZones"); - if (for_zones) { - cJSON *for_zones_local_nonprimitive = NULL; - if(!cJSON_IsArray(for_zones)){ - goto end; //nonprimitive container - } - - for_zonesList = list_createList(); - - cJSON_ArrayForEach(for_zones_local_nonprimitive,for_zones ) - { - if(!cJSON_IsObject(for_zones_local_nonprimitive)){ - goto end; - } - v1beta1_for_zone_t *for_zonesItem = v1beta1_for_zone_parseFromJSON(for_zones_local_nonprimitive); - - list_addElement(for_zonesList, for_zonesItem); - } - } - - - v1beta1_endpoint_hints_local_var = v1beta1_endpoint_hints_create ( - for_zones ? for_zonesList : NULL - ); - - return v1beta1_endpoint_hints_local_var; -end: - if (for_zonesList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, for_zonesList) { - v1beta1_for_zone_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(for_zonesList); - for_zonesList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_endpoint_hints.h b/kubernetes/model/v1beta1_endpoint_hints.h deleted file mode 100644 index 6d115a1..0000000 --- a/kubernetes/model/v1beta1_endpoint_hints.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * v1beta1_endpoint_hints.h - * - * EndpointHints provides hints describing how an endpoint should be consumed. - */ - -#ifndef _v1beta1_endpoint_hints_H_ -#define _v1beta1_endpoint_hints_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_endpoint_hints_t v1beta1_endpoint_hints_t; - -#include "v1beta1_for_zone.h" - - - -typedef struct v1beta1_endpoint_hints_t { - list_t *for_zones; //nonprimitive container - -} v1beta1_endpoint_hints_t; - -v1beta1_endpoint_hints_t *v1beta1_endpoint_hints_create( - list_t *for_zones -); - -void v1beta1_endpoint_hints_free(v1beta1_endpoint_hints_t *v1beta1_endpoint_hints); - -v1beta1_endpoint_hints_t *v1beta1_endpoint_hints_parseFromJSON(cJSON *v1beta1_endpoint_hintsJSON); - -cJSON *v1beta1_endpoint_hints_convertToJSON(v1beta1_endpoint_hints_t *v1beta1_endpoint_hints); - -#endif /* _v1beta1_endpoint_hints_H_ */ - diff --git a/kubernetes/model/v1beta1_endpoint_port.c b/kubernetes/model/v1beta1_endpoint_port.c deleted file mode 100644 index 0c203d9..0000000 --- a/kubernetes/model/v1beta1_endpoint_port.c +++ /dev/null @@ -1,141 +0,0 @@ -#include -#include -#include -#include "v1beta1_endpoint_port.h" - - - -v1beta1_endpoint_port_t *v1beta1_endpoint_port_create( - char *app_protocol, - char *name, - int port, - char *protocol - ) { - v1beta1_endpoint_port_t *v1beta1_endpoint_port_local_var = malloc(sizeof(v1beta1_endpoint_port_t)); - if (!v1beta1_endpoint_port_local_var) { - return NULL; - } - v1beta1_endpoint_port_local_var->app_protocol = app_protocol; - v1beta1_endpoint_port_local_var->name = name; - v1beta1_endpoint_port_local_var->port = port; - v1beta1_endpoint_port_local_var->protocol = protocol; - - return v1beta1_endpoint_port_local_var; -} - - -void v1beta1_endpoint_port_free(v1beta1_endpoint_port_t *v1beta1_endpoint_port) { - if(NULL == v1beta1_endpoint_port){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_endpoint_port->app_protocol) { - free(v1beta1_endpoint_port->app_protocol); - v1beta1_endpoint_port->app_protocol = NULL; - } - if (v1beta1_endpoint_port->name) { - free(v1beta1_endpoint_port->name); - v1beta1_endpoint_port->name = NULL; - } - if (v1beta1_endpoint_port->protocol) { - free(v1beta1_endpoint_port->protocol); - v1beta1_endpoint_port->protocol = NULL; - } - free(v1beta1_endpoint_port); -} - -cJSON *v1beta1_endpoint_port_convertToJSON(v1beta1_endpoint_port_t *v1beta1_endpoint_port) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_endpoint_port->app_protocol - if(v1beta1_endpoint_port->app_protocol) { - if(cJSON_AddStringToObject(item, "appProtocol", v1beta1_endpoint_port->app_protocol) == NULL) { - goto fail; //String - } - } - - - // v1beta1_endpoint_port->name - if(v1beta1_endpoint_port->name) { - if(cJSON_AddStringToObject(item, "name", v1beta1_endpoint_port->name) == NULL) { - goto fail; //String - } - } - - - // v1beta1_endpoint_port->port - if(v1beta1_endpoint_port->port) { - if(cJSON_AddNumberToObject(item, "port", v1beta1_endpoint_port->port) == NULL) { - goto fail; //Numeric - } - } - - - // v1beta1_endpoint_port->protocol - if(v1beta1_endpoint_port->protocol) { - if(cJSON_AddStringToObject(item, "protocol", v1beta1_endpoint_port->protocol) == NULL) { - goto fail; //String - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_endpoint_port_t *v1beta1_endpoint_port_parseFromJSON(cJSON *v1beta1_endpoint_portJSON){ - - v1beta1_endpoint_port_t *v1beta1_endpoint_port_local_var = NULL; - - // v1beta1_endpoint_port->app_protocol - cJSON *app_protocol = cJSON_GetObjectItemCaseSensitive(v1beta1_endpoint_portJSON, "appProtocol"); - if (app_protocol) { - if(!cJSON_IsString(app_protocol)) - { - goto end; //String - } - } - - // v1beta1_endpoint_port->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v1beta1_endpoint_portJSON, "name"); - if (name) { - if(!cJSON_IsString(name)) - { - goto end; //String - } - } - - // v1beta1_endpoint_port->port - cJSON *port = cJSON_GetObjectItemCaseSensitive(v1beta1_endpoint_portJSON, "port"); - if (port) { - if(!cJSON_IsNumber(port)) - { - goto end; //Numeric - } - } - - // v1beta1_endpoint_port->protocol - cJSON *protocol = cJSON_GetObjectItemCaseSensitive(v1beta1_endpoint_portJSON, "protocol"); - if (protocol) { - if(!cJSON_IsString(protocol)) - { - goto end; //String - } - } - - - v1beta1_endpoint_port_local_var = v1beta1_endpoint_port_create ( - app_protocol ? strdup(app_protocol->valuestring) : NULL, - name ? strdup(name->valuestring) : NULL, - port ? port->valuedouble : 0, - protocol ? strdup(protocol->valuestring) : NULL - ); - - return v1beta1_endpoint_port_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_endpoint_port.h b/kubernetes/model/v1beta1_endpoint_port.h deleted file mode 100644 index 40f0130..0000000 --- a/kubernetes/model/v1beta1_endpoint_port.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * v1beta1_endpoint_port.h - * - * EndpointPort represents a Port used by an EndpointSlice - */ - -#ifndef _v1beta1_endpoint_port_H_ -#define _v1beta1_endpoint_port_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_endpoint_port_t v1beta1_endpoint_port_t; - - - - -typedef struct v1beta1_endpoint_port_t { - char *app_protocol; // string - char *name; // string - int port; //numeric - char *protocol; // string - -} v1beta1_endpoint_port_t; - -v1beta1_endpoint_port_t *v1beta1_endpoint_port_create( - char *app_protocol, - char *name, - int port, - char *protocol -); - -void v1beta1_endpoint_port_free(v1beta1_endpoint_port_t *v1beta1_endpoint_port); - -v1beta1_endpoint_port_t *v1beta1_endpoint_port_parseFromJSON(cJSON *v1beta1_endpoint_portJSON); - -cJSON *v1beta1_endpoint_port_convertToJSON(v1beta1_endpoint_port_t *v1beta1_endpoint_port); - -#endif /* _v1beta1_endpoint_port_H_ */ - diff --git a/kubernetes/model/v1beta1_endpoint_slice.c b/kubernetes/model/v1beta1_endpoint_slice.c deleted file mode 100644 index e29f7cc..0000000 --- a/kubernetes/model/v1beta1_endpoint_slice.c +++ /dev/null @@ -1,288 +0,0 @@ -#include -#include -#include -#include "v1beta1_endpoint_slice.h" - - - -v1beta1_endpoint_slice_t *v1beta1_endpoint_slice_create( - char *address_type, - char *api_version, - list_t *endpoints, - char *kind, - v1_object_meta_t *metadata, - list_t *ports - ) { - v1beta1_endpoint_slice_t *v1beta1_endpoint_slice_local_var = malloc(sizeof(v1beta1_endpoint_slice_t)); - if (!v1beta1_endpoint_slice_local_var) { - return NULL; - } - v1beta1_endpoint_slice_local_var->address_type = address_type; - v1beta1_endpoint_slice_local_var->api_version = api_version; - v1beta1_endpoint_slice_local_var->endpoints = endpoints; - v1beta1_endpoint_slice_local_var->kind = kind; - v1beta1_endpoint_slice_local_var->metadata = metadata; - v1beta1_endpoint_slice_local_var->ports = ports; - - return v1beta1_endpoint_slice_local_var; -} - - -void v1beta1_endpoint_slice_free(v1beta1_endpoint_slice_t *v1beta1_endpoint_slice) { - if(NULL == v1beta1_endpoint_slice){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_endpoint_slice->address_type) { - free(v1beta1_endpoint_slice->address_type); - v1beta1_endpoint_slice->address_type = NULL; - } - if (v1beta1_endpoint_slice->api_version) { - free(v1beta1_endpoint_slice->api_version); - v1beta1_endpoint_slice->api_version = NULL; - } - if (v1beta1_endpoint_slice->endpoints) { - list_ForEach(listEntry, v1beta1_endpoint_slice->endpoints) { - v1beta1_endpoint_free(listEntry->data); - } - list_freeList(v1beta1_endpoint_slice->endpoints); - v1beta1_endpoint_slice->endpoints = NULL; - } - if (v1beta1_endpoint_slice->kind) { - free(v1beta1_endpoint_slice->kind); - v1beta1_endpoint_slice->kind = NULL; - } - if (v1beta1_endpoint_slice->metadata) { - v1_object_meta_free(v1beta1_endpoint_slice->metadata); - v1beta1_endpoint_slice->metadata = NULL; - } - if (v1beta1_endpoint_slice->ports) { - list_ForEach(listEntry, v1beta1_endpoint_slice->ports) { - v1beta1_endpoint_port_free(listEntry->data); - } - list_freeList(v1beta1_endpoint_slice->ports); - v1beta1_endpoint_slice->ports = NULL; - } - free(v1beta1_endpoint_slice); -} - -cJSON *v1beta1_endpoint_slice_convertToJSON(v1beta1_endpoint_slice_t *v1beta1_endpoint_slice) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_endpoint_slice->address_type - if (!v1beta1_endpoint_slice->address_type) { - goto fail; - } - if(cJSON_AddStringToObject(item, "addressType", v1beta1_endpoint_slice->address_type) == NULL) { - goto fail; //String - } - - - // v1beta1_endpoint_slice->api_version - if(v1beta1_endpoint_slice->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v1beta1_endpoint_slice->api_version) == NULL) { - goto fail; //String - } - } - - - // v1beta1_endpoint_slice->endpoints - if (!v1beta1_endpoint_slice->endpoints) { - goto fail; - } - cJSON *endpoints = cJSON_AddArrayToObject(item, "endpoints"); - if(endpoints == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *endpointsListEntry; - if (v1beta1_endpoint_slice->endpoints) { - list_ForEach(endpointsListEntry, v1beta1_endpoint_slice->endpoints) { - cJSON *itemLocal = v1beta1_endpoint_convertToJSON(endpointsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(endpoints, itemLocal); - } - } - - - // v1beta1_endpoint_slice->kind - if(v1beta1_endpoint_slice->kind) { - if(cJSON_AddStringToObject(item, "kind", v1beta1_endpoint_slice->kind) == NULL) { - goto fail; //String - } - } - - - // v1beta1_endpoint_slice->metadata - if(v1beta1_endpoint_slice->metadata) { - cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1beta1_endpoint_slice->metadata); - if(metadata_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_endpoint_slice->ports - if(v1beta1_endpoint_slice->ports) { - cJSON *ports = cJSON_AddArrayToObject(item, "ports"); - if(ports == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *portsListEntry; - if (v1beta1_endpoint_slice->ports) { - list_ForEach(portsListEntry, v1beta1_endpoint_slice->ports) { - cJSON *itemLocal = v1beta1_endpoint_port_convertToJSON(portsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(ports, itemLocal); - } - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_endpoint_slice_t *v1beta1_endpoint_slice_parseFromJSON(cJSON *v1beta1_endpoint_sliceJSON){ - - v1beta1_endpoint_slice_t *v1beta1_endpoint_slice_local_var = NULL; - - // define the local list for v1beta1_endpoint_slice->endpoints - list_t *endpointsList = NULL; - - // define the local variable for v1beta1_endpoint_slice->metadata - v1_object_meta_t *metadata_local_nonprim = NULL; - - // define the local list for v1beta1_endpoint_slice->ports - list_t *portsList = NULL; - - // v1beta1_endpoint_slice->address_type - cJSON *address_type = cJSON_GetObjectItemCaseSensitive(v1beta1_endpoint_sliceJSON, "addressType"); - if (!address_type) { - goto end; - } - - - if(!cJSON_IsString(address_type)) - { - goto end; //String - } - - // v1beta1_endpoint_slice->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_endpoint_sliceJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version)) - { - goto end; //String - } - } - - // v1beta1_endpoint_slice->endpoints - cJSON *endpoints = cJSON_GetObjectItemCaseSensitive(v1beta1_endpoint_sliceJSON, "endpoints"); - if (!endpoints) { - goto end; - } - - - cJSON *endpoints_local_nonprimitive = NULL; - if(!cJSON_IsArray(endpoints)){ - goto end; //nonprimitive container - } - - endpointsList = list_createList(); - - cJSON_ArrayForEach(endpoints_local_nonprimitive,endpoints ) - { - if(!cJSON_IsObject(endpoints_local_nonprimitive)){ - goto end; - } - v1beta1_endpoint_t *endpointsItem = v1beta1_endpoint_parseFromJSON(endpoints_local_nonprimitive); - - list_addElement(endpointsList, endpointsItem); - } - - // v1beta1_endpoint_slice->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_endpoint_sliceJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind)) - { - goto end; //String - } - } - - // v1beta1_endpoint_slice->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_endpoint_sliceJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive - } - - // v1beta1_endpoint_slice->ports - cJSON *ports = cJSON_GetObjectItemCaseSensitive(v1beta1_endpoint_sliceJSON, "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; - } - v1beta1_endpoint_port_t *portsItem = v1beta1_endpoint_port_parseFromJSON(ports_local_nonprimitive); - - list_addElement(portsList, portsItem); - } - } - - - v1beta1_endpoint_slice_local_var = v1beta1_endpoint_slice_create ( - strdup(address_type->valuestring), - api_version ? strdup(api_version->valuestring) : NULL, - endpointsList, - kind ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL, - ports ? portsList : NULL - ); - - return v1beta1_endpoint_slice_local_var; -end: - if (endpointsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, endpointsList) { - v1beta1_endpoint_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(endpointsList); - endpointsList = NULL; - } - if (metadata_local_nonprim) { - v1_object_meta_free(metadata_local_nonprim); - metadata_local_nonprim = NULL; - } - if (portsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, portsList) { - v1beta1_endpoint_port_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(portsList); - portsList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_endpoint_slice.h b/kubernetes/model/v1beta1_endpoint_slice.h deleted file mode 100644 index 9421b62..0000000 --- a/kubernetes/model/v1beta1_endpoint_slice.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * v1beta1_endpoint_slice.h - * - * EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. - */ - -#ifndef _v1beta1_endpoint_slice_H_ -#define _v1beta1_endpoint_slice_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_endpoint_slice_t v1beta1_endpoint_slice_t; - -#include "v1_object_meta.h" -#include "v1beta1_endpoint.h" -#include "v1beta1_endpoint_port.h" - - - -typedef struct v1beta1_endpoint_slice_t { - char *address_type; // string - char *api_version; // string - list_t *endpoints; //nonprimitive container - char *kind; // string - struct v1_object_meta_t *metadata; //model - list_t *ports; //nonprimitive container - -} v1beta1_endpoint_slice_t; - -v1beta1_endpoint_slice_t *v1beta1_endpoint_slice_create( - char *address_type, - char *api_version, - list_t *endpoints, - char *kind, - v1_object_meta_t *metadata, - list_t *ports -); - -void v1beta1_endpoint_slice_free(v1beta1_endpoint_slice_t *v1beta1_endpoint_slice); - -v1beta1_endpoint_slice_t *v1beta1_endpoint_slice_parseFromJSON(cJSON *v1beta1_endpoint_sliceJSON); - -cJSON *v1beta1_endpoint_slice_convertToJSON(v1beta1_endpoint_slice_t *v1beta1_endpoint_slice); - -#endif /* _v1beta1_endpoint_slice_H_ */ - diff --git a/kubernetes/model/v1beta1_endpoint_slice_list.c b/kubernetes/model/v1beta1_endpoint_slice_list.c deleted file mode 100644 index 6734872..0000000 --- a/kubernetes/model/v1beta1_endpoint_slice_list.c +++ /dev/null @@ -1,197 +0,0 @@ -#include -#include -#include -#include "v1beta1_endpoint_slice_list.h" - - - -v1beta1_endpoint_slice_list_t *v1beta1_endpoint_slice_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata - ) { - v1beta1_endpoint_slice_list_t *v1beta1_endpoint_slice_list_local_var = malloc(sizeof(v1beta1_endpoint_slice_list_t)); - if (!v1beta1_endpoint_slice_list_local_var) { - return NULL; - } - v1beta1_endpoint_slice_list_local_var->api_version = api_version; - v1beta1_endpoint_slice_list_local_var->items = items; - v1beta1_endpoint_slice_list_local_var->kind = kind; - v1beta1_endpoint_slice_list_local_var->metadata = metadata; - - return v1beta1_endpoint_slice_list_local_var; -} - - -void v1beta1_endpoint_slice_list_free(v1beta1_endpoint_slice_list_t *v1beta1_endpoint_slice_list) { - if(NULL == v1beta1_endpoint_slice_list){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_endpoint_slice_list->api_version) { - free(v1beta1_endpoint_slice_list->api_version); - v1beta1_endpoint_slice_list->api_version = NULL; - } - if (v1beta1_endpoint_slice_list->items) { - list_ForEach(listEntry, v1beta1_endpoint_slice_list->items) { - v1beta1_endpoint_slice_free(listEntry->data); - } - list_freeList(v1beta1_endpoint_slice_list->items); - v1beta1_endpoint_slice_list->items = NULL; - } - if (v1beta1_endpoint_slice_list->kind) { - free(v1beta1_endpoint_slice_list->kind); - v1beta1_endpoint_slice_list->kind = NULL; - } - if (v1beta1_endpoint_slice_list->metadata) { - v1_list_meta_free(v1beta1_endpoint_slice_list->metadata); - v1beta1_endpoint_slice_list->metadata = NULL; - } - free(v1beta1_endpoint_slice_list); -} - -cJSON *v1beta1_endpoint_slice_list_convertToJSON(v1beta1_endpoint_slice_list_t *v1beta1_endpoint_slice_list) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_endpoint_slice_list->api_version - if(v1beta1_endpoint_slice_list->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v1beta1_endpoint_slice_list->api_version) == NULL) { - goto fail; //String - } - } - - - // v1beta1_endpoint_slice_list->items - if (!v1beta1_endpoint_slice_list->items) { - goto fail; - } - cJSON *items = cJSON_AddArrayToObject(item, "items"); - if(items == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *itemsListEntry; - if (v1beta1_endpoint_slice_list->items) { - list_ForEach(itemsListEntry, v1beta1_endpoint_slice_list->items) { - cJSON *itemLocal = v1beta1_endpoint_slice_convertToJSON(itemsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(items, itemLocal); - } - } - - - // v1beta1_endpoint_slice_list->kind - if(v1beta1_endpoint_slice_list->kind) { - if(cJSON_AddStringToObject(item, "kind", v1beta1_endpoint_slice_list->kind) == NULL) { - goto fail; //String - } - } - - - // v1beta1_endpoint_slice_list->metadata - if(v1beta1_endpoint_slice_list->metadata) { - cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1beta1_endpoint_slice_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_endpoint_slice_list_t *v1beta1_endpoint_slice_list_parseFromJSON(cJSON *v1beta1_endpoint_slice_listJSON){ - - v1beta1_endpoint_slice_list_t *v1beta1_endpoint_slice_list_local_var = NULL; - - // define the local list for v1beta1_endpoint_slice_list->items - list_t *itemsList = NULL; - - // define the local variable for v1beta1_endpoint_slice_list->metadata - v1_list_meta_t *metadata_local_nonprim = NULL; - - // v1beta1_endpoint_slice_list->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_endpoint_slice_listJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version)) - { - goto end; //String - } - } - - // v1beta1_endpoint_slice_list->items - cJSON *items = cJSON_GetObjectItemCaseSensitive(v1beta1_endpoint_slice_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_endpoint_slice_t *itemsItem = v1beta1_endpoint_slice_parseFromJSON(items_local_nonprimitive); - - list_addElement(itemsList, itemsItem); - } - - // v1beta1_endpoint_slice_list->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_endpoint_slice_listJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind)) - { - goto end; //String - } - } - - // v1beta1_endpoint_slice_list->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_endpoint_slice_listJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive - } - - - v1beta1_endpoint_slice_list_local_var = v1beta1_endpoint_slice_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, - itemsList, - kind ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL - ); - - return v1beta1_endpoint_slice_list_local_var; -end: - if (itemsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, itemsList) { - v1beta1_endpoint_slice_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_endpoint_slice_list.h b/kubernetes/model/v1beta1_endpoint_slice_list.h deleted file mode 100644 index e34ff3a..0000000 --- a/kubernetes/model/v1beta1_endpoint_slice_list.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v1beta1_endpoint_slice_list.h - * - * EndpointSliceList represents a list of endpoint slices - */ - -#ifndef _v1beta1_endpoint_slice_list_H_ -#define _v1beta1_endpoint_slice_list_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_endpoint_slice_list_t v1beta1_endpoint_slice_list_t; - -#include "v1_list_meta.h" -#include "v1beta1_endpoint_slice.h" - - - -typedef struct v1beta1_endpoint_slice_list_t { - char *api_version; // string - list_t *items; //nonprimitive container - char *kind; // string - struct v1_list_meta_t *metadata; //model - -} v1beta1_endpoint_slice_list_t; - -v1beta1_endpoint_slice_list_t *v1beta1_endpoint_slice_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata -); - -void v1beta1_endpoint_slice_list_free(v1beta1_endpoint_slice_list_t *v1beta1_endpoint_slice_list); - -v1beta1_endpoint_slice_list_t *v1beta1_endpoint_slice_list_parseFromJSON(cJSON *v1beta1_endpoint_slice_listJSON); - -cJSON *v1beta1_endpoint_slice_list_convertToJSON(v1beta1_endpoint_slice_list_t *v1beta1_endpoint_slice_list); - -#endif /* _v1beta1_endpoint_slice_list_H_ */ - diff --git a/kubernetes/model/v1beta1_event.c b/kubernetes/model/v1beta1_event.c deleted file mode 100644 index 51404e8..0000000 --- a/kubernetes/model/v1beta1_event.c +++ /dev/null @@ -1,502 +0,0 @@ -#include -#include -#include -#include "v1beta1_event.h" - - - -v1beta1_event_t *v1beta1_event_create( - char *action, - char *api_version, - int deprecated_count, - char *deprecated_first_timestamp, - char *deprecated_last_timestamp, - v1_event_source_t *deprecated_source, - char *event_time, - char *kind, - v1_object_meta_t *metadata, - char *note, - char *reason, - v1_object_reference_t *regarding, - v1_object_reference_t *related, - char *reporting_controller, - char *reporting_instance, - v1beta1_event_series_t *series, - char *type - ) { - v1beta1_event_t *v1beta1_event_local_var = malloc(sizeof(v1beta1_event_t)); - if (!v1beta1_event_local_var) { - return NULL; - } - v1beta1_event_local_var->action = action; - v1beta1_event_local_var->api_version = api_version; - v1beta1_event_local_var->deprecated_count = deprecated_count; - v1beta1_event_local_var->deprecated_first_timestamp = deprecated_first_timestamp; - v1beta1_event_local_var->deprecated_last_timestamp = deprecated_last_timestamp; - v1beta1_event_local_var->deprecated_source = deprecated_source; - v1beta1_event_local_var->event_time = event_time; - v1beta1_event_local_var->kind = kind; - v1beta1_event_local_var->metadata = metadata; - v1beta1_event_local_var->note = note; - v1beta1_event_local_var->reason = reason; - v1beta1_event_local_var->regarding = regarding; - v1beta1_event_local_var->related = related; - v1beta1_event_local_var->reporting_controller = reporting_controller; - v1beta1_event_local_var->reporting_instance = reporting_instance; - v1beta1_event_local_var->series = series; - v1beta1_event_local_var->type = type; - - return v1beta1_event_local_var; -} - - -void v1beta1_event_free(v1beta1_event_t *v1beta1_event) { - if(NULL == v1beta1_event){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_event->action) { - free(v1beta1_event->action); - v1beta1_event->action = NULL; - } - if (v1beta1_event->api_version) { - free(v1beta1_event->api_version); - v1beta1_event->api_version = NULL; - } - if (v1beta1_event->deprecated_first_timestamp) { - free(v1beta1_event->deprecated_first_timestamp); - v1beta1_event->deprecated_first_timestamp = NULL; - } - if (v1beta1_event->deprecated_last_timestamp) { - free(v1beta1_event->deprecated_last_timestamp); - v1beta1_event->deprecated_last_timestamp = NULL; - } - if (v1beta1_event->deprecated_source) { - v1_event_source_free(v1beta1_event->deprecated_source); - v1beta1_event->deprecated_source = NULL; - } - if (v1beta1_event->event_time) { - free(v1beta1_event->event_time); - v1beta1_event->event_time = NULL; - } - if (v1beta1_event->kind) { - free(v1beta1_event->kind); - v1beta1_event->kind = NULL; - } - if (v1beta1_event->metadata) { - v1_object_meta_free(v1beta1_event->metadata); - v1beta1_event->metadata = NULL; - } - if (v1beta1_event->note) { - free(v1beta1_event->note); - v1beta1_event->note = NULL; - } - if (v1beta1_event->reason) { - free(v1beta1_event->reason); - v1beta1_event->reason = NULL; - } - if (v1beta1_event->regarding) { - v1_object_reference_free(v1beta1_event->regarding); - v1beta1_event->regarding = NULL; - } - if (v1beta1_event->related) { - v1_object_reference_free(v1beta1_event->related); - v1beta1_event->related = NULL; - } - if (v1beta1_event->reporting_controller) { - free(v1beta1_event->reporting_controller); - v1beta1_event->reporting_controller = NULL; - } - if (v1beta1_event->reporting_instance) { - free(v1beta1_event->reporting_instance); - v1beta1_event->reporting_instance = NULL; - } - if (v1beta1_event->series) { - v1beta1_event_series_free(v1beta1_event->series); - v1beta1_event->series = NULL; - } - if (v1beta1_event->type) { - free(v1beta1_event->type); - v1beta1_event->type = NULL; - } - free(v1beta1_event); -} - -cJSON *v1beta1_event_convertToJSON(v1beta1_event_t *v1beta1_event) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_event->action - if(v1beta1_event->action) { - if(cJSON_AddStringToObject(item, "action", v1beta1_event->action) == NULL) { - goto fail; //String - } - } - - - // v1beta1_event->api_version - if(v1beta1_event->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v1beta1_event->api_version) == NULL) { - goto fail; //String - } - } - - - // v1beta1_event->deprecated_count - if(v1beta1_event->deprecated_count) { - if(cJSON_AddNumberToObject(item, "deprecatedCount", v1beta1_event->deprecated_count) == NULL) { - goto fail; //Numeric - } - } - - - // v1beta1_event->deprecated_first_timestamp - if(v1beta1_event->deprecated_first_timestamp) { - if(cJSON_AddStringToObject(item, "deprecatedFirstTimestamp", v1beta1_event->deprecated_first_timestamp) == NULL) { - goto fail; //Date-Time - } - } - - - // v1beta1_event->deprecated_last_timestamp - if(v1beta1_event->deprecated_last_timestamp) { - if(cJSON_AddStringToObject(item, "deprecatedLastTimestamp", v1beta1_event->deprecated_last_timestamp) == NULL) { - goto fail; //Date-Time - } - } - - - // v1beta1_event->deprecated_source - if(v1beta1_event->deprecated_source) { - cJSON *deprecated_source_local_JSON = v1_event_source_convertToJSON(v1beta1_event->deprecated_source); - if(deprecated_source_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "deprecatedSource", deprecated_source_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_event->event_time - if (!v1beta1_event->event_time) { - goto fail; - } - if(cJSON_AddStringToObject(item, "eventTime", v1beta1_event->event_time) == NULL) { - goto fail; //Date-Time - } - - - // v1beta1_event->kind - if(v1beta1_event->kind) { - if(cJSON_AddStringToObject(item, "kind", v1beta1_event->kind) == NULL) { - goto fail; //String - } - } - - - // v1beta1_event->metadata - if(v1beta1_event->metadata) { - cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1beta1_event->metadata); - if(metadata_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_event->note - if(v1beta1_event->note) { - if(cJSON_AddStringToObject(item, "note", v1beta1_event->note) == NULL) { - goto fail; //String - } - } - - - // v1beta1_event->reason - if(v1beta1_event->reason) { - if(cJSON_AddStringToObject(item, "reason", v1beta1_event->reason) == NULL) { - goto fail; //String - } - } - - - // v1beta1_event->regarding - if(v1beta1_event->regarding) { - cJSON *regarding_local_JSON = v1_object_reference_convertToJSON(v1beta1_event->regarding); - if(regarding_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "regarding", regarding_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_event->related - if(v1beta1_event->related) { - cJSON *related_local_JSON = v1_object_reference_convertToJSON(v1beta1_event->related); - if(related_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "related", related_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_event->reporting_controller - if(v1beta1_event->reporting_controller) { - if(cJSON_AddStringToObject(item, "reportingController", v1beta1_event->reporting_controller) == NULL) { - goto fail; //String - } - } - - - // v1beta1_event->reporting_instance - if(v1beta1_event->reporting_instance) { - if(cJSON_AddStringToObject(item, "reportingInstance", v1beta1_event->reporting_instance) == NULL) { - goto fail; //String - } - } - - - // v1beta1_event->series - if(v1beta1_event->series) { - cJSON *series_local_JSON = v1beta1_event_series_convertToJSON(v1beta1_event->series); - if(series_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "series", series_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_event->type - if(v1beta1_event->type) { - if(cJSON_AddStringToObject(item, "type", v1beta1_event->type) == NULL) { - goto fail; //String - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_event_t *v1beta1_event_parseFromJSON(cJSON *v1beta1_eventJSON){ - - v1beta1_event_t *v1beta1_event_local_var = NULL; - - // define the local variable for v1beta1_event->deprecated_source - v1_event_source_t *deprecated_source_local_nonprim = NULL; - - // define the local variable for v1beta1_event->metadata - v1_object_meta_t *metadata_local_nonprim = NULL; - - // define the local variable for v1beta1_event->regarding - v1_object_reference_t *regarding_local_nonprim = NULL; - - // define the local variable for v1beta1_event->related - v1_object_reference_t *related_local_nonprim = NULL; - - // define the local variable for v1beta1_event->series - v1beta1_event_series_t *series_local_nonprim = NULL; - - // v1beta1_event->action - cJSON *action = cJSON_GetObjectItemCaseSensitive(v1beta1_eventJSON, "action"); - if (action) { - if(!cJSON_IsString(action)) - { - goto end; //String - } - } - - // v1beta1_event->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_eventJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version)) - { - goto end; //String - } - } - - // v1beta1_event->deprecated_count - cJSON *deprecated_count = cJSON_GetObjectItemCaseSensitive(v1beta1_eventJSON, "deprecatedCount"); - if (deprecated_count) { - if(!cJSON_IsNumber(deprecated_count)) - { - goto end; //Numeric - } - } - - // v1beta1_event->deprecated_first_timestamp - cJSON *deprecated_first_timestamp = cJSON_GetObjectItemCaseSensitive(v1beta1_eventJSON, "deprecatedFirstTimestamp"); - if (deprecated_first_timestamp) { - if(!cJSON_IsString(deprecated_first_timestamp)) - { - goto end; //DateTime - } - } - - // v1beta1_event->deprecated_last_timestamp - cJSON *deprecated_last_timestamp = cJSON_GetObjectItemCaseSensitive(v1beta1_eventJSON, "deprecatedLastTimestamp"); - if (deprecated_last_timestamp) { - if(!cJSON_IsString(deprecated_last_timestamp)) - { - goto end; //DateTime - } - } - - // v1beta1_event->deprecated_source - cJSON *deprecated_source = cJSON_GetObjectItemCaseSensitive(v1beta1_eventJSON, "deprecatedSource"); - if (deprecated_source) { - deprecated_source_local_nonprim = v1_event_source_parseFromJSON(deprecated_source); //nonprimitive - } - - // v1beta1_event->event_time - cJSON *event_time = cJSON_GetObjectItemCaseSensitive(v1beta1_eventJSON, "eventTime"); - if (!event_time) { - goto end; - } - - - if(!cJSON_IsString(event_time)) - { - goto end; //DateTime - } - - // v1beta1_event->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_eventJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind)) - { - goto end; //String - } - } - - // v1beta1_event->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_eventJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive - } - - // v1beta1_event->note - cJSON *note = cJSON_GetObjectItemCaseSensitive(v1beta1_eventJSON, "note"); - if (note) { - if(!cJSON_IsString(note)) - { - goto end; //String - } - } - - // v1beta1_event->reason - cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1beta1_eventJSON, "reason"); - if (reason) { - if(!cJSON_IsString(reason)) - { - goto end; //String - } - } - - // v1beta1_event->regarding - cJSON *regarding = cJSON_GetObjectItemCaseSensitive(v1beta1_eventJSON, "regarding"); - if (regarding) { - regarding_local_nonprim = v1_object_reference_parseFromJSON(regarding); //nonprimitive - } - - // v1beta1_event->related - cJSON *related = cJSON_GetObjectItemCaseSensitive(v1beta1_eventJSON, "related"); - if (related) { - related_local_nonprim = v1_object_reference_parseFromJSON(related); //nonprimitive - } - - // v1beta1_event->reporting_controller - cJSON *reporting_controller = cJSON_GetObjectItemCaseSensitive(v1beta1_eventJSON, "reportingController"); - if (reporting_controller) { - if(!cJSON_IsString(reporting_controller)) - { - goto end; //String - } - } - - // v1beta1_event->reporting_instance - cJSON *reporting_instance = cJSON_GetObjectItemCaseSensitive(v1beta1_eventJSON, "reportingInstance"); - if (reporting_instance) { - if(!cJSON_IsString(reporting_instance)) - { - goto end; //String - } - } - - // v1beta1_event->series - cJSON *series = cJSON_GetObjectItemCaseSensitive(v1beta1_eventJSON, "series"); - if (series) { - series_local_nonprim = v1beta1_event_series_parseFromJSON(series); //nonprimitive - } - - // v1beta1_event->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta1_eventJSON, "type"); - if (type) { - if(!cJSON_IsString(type)) - { - goto end; //String - } - } - - - v1beta1_event_local_var = v1beta1_event_create ( - 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_source ? deprecated_source_local_nonprim : NULL, - strdup(event_time->valuestring), - kind ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL, - note ? strdup(note->valuestring) : NULL, - 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, - series ? series_local_nonprim : NULL, - type ? strdup(type->valuestring) : NULL - ); - - return v1beta1_event_local_var; -end: - if (deprecated_source_local_nonprim) { - v1_event_source_free(deprecated_source_local_nonprim); - deprecated_source_local_nonprim = NULL; - } - if (metadata_local_nonprim) { - v1_object_meta_free(metadata_local_nonprim); - metadata_local_nonprim = NULL; - } - if (regarding_local_nonprim) { - v1_object_reference_free(regarding_local_nonprim); - regarding_local_nonprim = NULL; - } - if (related_local_nonprim) { - v1_object_reference_free(related_local_nonprim); - related_local_nonprim = NULL; - } - if (series_local_nonprim) { - v1beta1_event_series_free(series_local_nonprim); - series_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_event.h b/kubernetes/model/v1beta1_event.h deleted file mode 100644 index 463b96b..0000000 --- a/kubernetes/model/v1beta1_event.h +++ /dev/null @@ -1,73 +0,0 @@ -/* - * v1beta1_event.h - * - * Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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. - */ - -#ifndef _v1beta1_event_H_ -#define _v1beta1_event_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_event_t v1beta1_event_t; - -#include "v1_event_source.h" -#include "v1_object_meta.h" -#include "v1_object_reference.h" -#include "v1beta1_event_series.h" - - - -typedef struct v1beta1_event_t { - char *action; // string - char *api_version; // string - int deprecated_count; //numeric - char *deprecated_first_timestamp; //date time - char *deprecated_last_timestamp; //date time - struct v1_event_source_t *deprecated_source; //model - char *event_time; //date time - char *kind; // string - struct v1_object_meta_t *metadata; //model - char *note; // string - char *reason; // string - struct v1_object_reference_t *regarding; //model - struct v1_object_reference_t *related; //model - char *reporting_controller; // string - char *reporting_instance; // string - struct v1beta1_event_series_t *series; //model - char *type; // string - -} v1beta1_event_t; - -v1beta1_event_t *v1beta1_event_create( - char *action, - char *api_version, - int deprecated_count, - char *deprecated_first_timestamp, - char *deprecated_last_timestamp, - v1_event_source_t *deprecated_source, - char *event_time, - char *kind, - v1_object_meta_t *metadata, - char *note, - char *reason, - v1_object_reference_t *regarding, - v1_object_reference_t *related, - char *reporting_controller, - char *reporting_instance, - v1beta1_event_series_t *series, - char *type -); - -void v1beta1_event_free(v1beta1_event_t *v1beta1_event); - -v1beta1_event_t *v1beta1_event_parseFromJSON(cJSON *v1beta1_eventJSON); - -cJSON *v1beta1_event_convertToJSON(v1beta1_event_t *v1beta1_event); - -#endif /* _v1beta1_event_H_ */ - diff --git a/kubernetes/model/v1beta1_event_list.c b/kubernetes/model/v1beta1_event_list.c deleted file mode 100644 index 2f3490a..0000000 --- a/kubernetes/model/v1beta1_event_list.c +++ /dev/null @@ -1,197 +0,0 @@ -#include -#include -#include -#include "v1beta1_event_list.h" - - - -v1beta1_event_list_t *v1beta1_event_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata - ) { - v1beta1_event_list_t *v1beta1_event_list_local_var = malloc(sizeof(v1beta1_event_list_t)); - if (!v1beta1_event_list_local_var) { - return NULL; - } - v1beta1_event_list_local_var->api_version = api_version; - v1beta1_event_list_local_var->items = items; - v1beta1_event_list_local_var->kind = kind; - v1beta1_event_list_local_var->metadata = metadata; - - return v1beta1_event_list_local_var; -} - - -void v1beta1_event_list_free(v1beta1_event_list_t *v1beta1_event_list) { - if(NULL == v1beta1_event_list){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_event_list->api_version) { - free(v1beta1_event_list->api_version); - v1beta1_event_list->api_version = NULL; - } - if (v1beta1_event_list->items) { - list_ForEach(listEntry, v1beta1_event_list->items) { - v1beta1_event_free(listEntry->data); - } - list_freeList(v1beta1_event_list->items); - v1beta1_event_list->items = NULL; - } - if (v1beta1_event_list->kind) { - free(v1beta1_event_list->kind); - v1beta1_event_list->kind = NULL; - } - if (v1beta1_event_list->metadata) { - v1_list_meta_free(v1beta1_event_list->metadata); - v1beta1_event_list->metadata = NULL; - } - free(v1beta1_event_list); -} - -cJSON *v1beta1_event_list_convertToJSON(v1beta1_event_list_t *v1beta1_event_list) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_event_list->api_version - if(v1beta1_event_list->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v1beta1_event_list->api_version) == NULL) { - goto fail; //String - } - } - - - // v1beta1_event_list->items - if (!v1beta1_event_list->items) { - goto fail; - } - cJSON *items = cJSON_AddArrayToObject(item, "items"); - if(items == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *itemsListEntry; - if (v1beta1_event_list->items) { - list_ForEach(itemsListEntry, v1beta1_event_list->items) { - cJSON *itemLocal = v1beta1_event_convertToJSON(itemsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(items, itemLocal); - } - } - - - // v1beta1_event_list->kind - if(v1beta1_event_list->kind) { - if(cJSON_AddStringToObject(item, "kind", v1beta1_event_list->kind) == NULL) { - goto fail; //String - } - } - - - // v1beta1_event_list->metadata - if(v1beta1_event_list->metadata) { - cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1beta1_event_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_event_list_t *v1beta1_event_list_parseFromJSON(cJSON *v1beta1_event_listJSON){ - - v1beta1_event_list_t *v1beta1_event_list_local_var = NULL; - - // define the local list for v1beta1_event_list->items - list_t *itemsList = NULL; - - // define the local variable for v1beta1_event_list->metadata - v1_list_meta_t *metadata_local_nonprim = NULL; - - // v1beta1_event_list->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_event_listJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version)) - { - goto end; //String - } - } - - // v1beta1_event_list->items - cJSON *items = cJSON_GetObjectItemCaseSensitive(v1beta1_event_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_event_t *itemsItem = v1beta1_event_parseFromJSON(items_local_nonprimitive); - - list_addElement(itemsList, itemsItem); - } - - // v1beta1_event_list->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_event_listJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind)) - { - goto end; //String - } - } - - // v1beta1_event_list->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_event_listJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive - } - - - v1beta1_event_list_local_var = v1beta1_event_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, - itemsList, - kind ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL - ); - - return v1beta1_event_list_local_var; -end: - if (itemsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, itemsList) { - v1beta1_event_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_event_list.h b/kubernetes/model/v1beta1_event_list.h deleted file mode 100644 index 2b3a739..0000000 --- a/kubernetes/model/v1beta1_event_list.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v1beta1_event_list.h - * - * EventList is a list of Event objects. - */ - -#ifndef _v1beta1_event_list_H_ -#define _v1beta1_event_list_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_event_list_t v1beta1_event_list_t; - -#include "v1_list_meta.h" -#include "v1beta1_event.h" - - - -typedef struct v1beta1_event_list_t { - char *api_version; // string - list_t *items; //nonprimitive container - char *kind; // string - struct v1_list_meta_t *metadata; //model - -} v1beta1_event_list_t; - -v1beta1_event_list_t *v1beta1_event_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata -); - -void v1beta1_event_list_free(v1beta1_event_list_t *v1beta1_event_list); - -v1beta1_event_list_t *v1beta1_event_list_parseFromJSON(cJSON *v1beta1_event_listJSON); - -cJSON *v1beta1_event_list_convertToJSON(v1beta1_event_list_t *v1beta1_event_list); - -#endif /* _v1beta1_event_list_H_ */ - diff --git a/kubernetes/model/v1beta1_event_series.c b/kubernetes/model/v1beta1_event_series.c deleted file mode 100644 index 67ce079..0000000 --- a/kubernetes/model/v1beta1_event_series.c +++ /dev/null @@ -1,101 +0,0 @@ -#include -#include -#include -#include "v1beta1_event_series.h" - - - -v1beta1_event_series_t *v1beta1_event_series_create( - int count, - char *last_observed_time - ) { - v1beta1_event_series_t *v1beta1_event_series_local_var = malloc(sizeof(v1beta1_event_series_t)); - if (!v1beta1_event_series_local_var) { - return NULL; - } - v1beta1_event_series_local_var->count = count; - v1beta1_event_series_local_var->last_observed_time = last_observed_time; - - return v1beta1_event_series_local_var; -} - - -void v1beta1_event_series_free(v1beta1_event_series_t *v1beta1_event_series) { - if(NULL == v1beta1_event_series){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_event_series->last_observed_time) { - free(v1beta1_event_series->last_observed_time); - v1beta1_event_series->last_observed_time = NULL; - } - free(v1beta1_event_series); -} - -cJSON *v1beta1_event_series_convertToJSON(v1beta1_event_series_t *v1beta1_event_series) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_event_series->count - if (!v1beta1_event_series->count) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "count", v1beta1_event_series->count) == NULL) { - goto fail; //Numeric - } - - - // v1beta1_event_series->last_observed_time - if (!v1beta1_event_series->last_observed_time) { - goto fail; - } - if(cJSON_AddStringToObject(item, "lastObservedTime", v1beta1_event_series->last_observed_time) == NULL) { - goto fail; //Date-Time - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_event_series_t *v1beta1_event_series_parseFromJSON(cJSON *v1beta1_event_seriesJSON){ - - v1beta1_event_series_t *v1beta1_event_series_local_var = NULL; - - // v1beta1_event_series->count - cJSON *count = cJSON_GetObjectItemCaseSensitive(v1beta1_event_seriesJSON, "count"); - if (!count) { - goto end; - } - - - if(!cJSON_IsNumber(count)) - { - goto end; //Numeric - } - - // v1beta1_event_series->last_observed_time - cJSON *last_observed_time = cJSON_GetObjectItemCaseSensitive(v1beta1_event_seriesJSON, "lastObservedTime"); - if (!last_observed_time) { - goto end; - } - - - if(!cJSON_IsString(last_observed_time)) - { - goto end; //DateTime - } - - - v1beta1_event_series_local_var = v1beta1_event_series_create ( - count->valuedouble, - strdup(last_observed_time->valuestring) - ); - - return v1beta1_event_series_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_event_series.h b/kubernetes/model/v1beta1_event_series.h deleted file mode 100644 index 4b28569..0000000 --- a/kubernetes/model/v1beta1_event_series.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * v1beta1_event_series.h - * - * EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. - */ - -#ifndef _v1beta1_event_series_H_ -#define _v1beta1_event_series_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_event_series_t v1beta1_event_series_t; - - - - -typedef struct v1beta1_event_series_t { - int count; //numeric - char *last_observed_time; //date time - -} v1beta1_event_series_t; - -v1beta1_event_series_t *v1beta1_event_series_create( - int count, - char *last_observed_time -); - -void v1beta1_event_series_free(v1beta1_event_series_t *v1beta1_event_series); - -v1beta1_event_series_t *v1beta1_event_series_parseFromJSON(cJSON *v1beta1_event_seriesJSON); - -cJSON *v1beta1_event_series_convertToJSON(v1beta1_event_series_t *v1beta1_event_series); - -#endif /* _v1beta1_event_series_H_ */ - diff --git a/kubernetes/model/v1beta1_for_zone.c b/kubernetes/model/v1beta1_for_zone.c deleted file mode 100644 index 691ceb0..0000000 --- a/kubernetes/model/v1beta1_for_zone.c +++ /dev/null @@ -1,77 +0,0 @@ -#include -#include -#include -#include "v1beta1_for_zone.h" - - - -v1beta1_for_zone_t *v1beta1_for_zone_create( - char *name - ) { - v1beta1_for_zone_t *v1beta1_for_zone_local_var = malloc(sizeof(v1beta1_for_zone_t)); - if (!v1beta1_for_zone_local_var) { - return NULL; - } - v1beta1_for_zone_local_var->name = name; - - return v1beta1_for_zone_local_var; -} - - -void v1beta1_for_zone_free(v1beta1_for_zone_t *v1beta1_for_zone) { - if(NULL == v1beta1_for_zone){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_for_zone->name) { - free(v1beta1_for_zone->name); - v1beta1_for_zone->name = NULL; - } - free(v1beta1_for_zone); -} - -cJSON *v1beta1_for_zone_convertToJSON(v1beta1_for_zone_t *v1beta1_for_zone) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_for_zone->name - if (!v1beta1_for_zone->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v1beta1_for_zone->name) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_for_zone_t *v1beta1_for_zone_parseFromJSON(cJSON *v1beta1_for_zoneJSON){ - - v1beta1_for_zone_t *v1beta1_for_zone_local_var = NULL; - - // v1beta1_for_zone->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v1beta1_for_zoneJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - - v1beta1_for_zone_local_var = v1beta1_for_zone_create ( - strdup(name->valuestring) - ); - - return v1beta1_for_zone_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_for_zone.h b/kubernetes/model/v1beta1_for_zone.h deleted file mode 100644 index 01c1deb..0000000 --- a/kubernetes/model/v1beta1_for_zone.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * v1beta1_for_zone.h - * - * ForZone provides information about which zones should consume this endpoint. - */ - -#ifndef _v1beta1_for_zone_H_ -#define _v1beta1_for_zone_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_for_zone_t v1beta1_for_zone_t; - - - - -typedef struct v1beta1_for_zone_t { - char *name; // string - -} v1beta1_for_zone_t; - -v1beta1_for_zone_t *v1beta1_for_zone_create( - char *name -); - -void v1beta1_for_zone_free(v1beta1_for_zone_t *v1beta1_for_zone); - -v1beta1_for_zone_t *v1beta1_for_zone_parseFromJSON(cJSON *v1beta1_for_zoneJSON); - -cJSON *v1beta1_for_zone_convertToJSON(v1beta1_for_zone_t *v1beta1_for_zone); - -#endif /* _v1beta1_for_zone_H_ */ - diff --git a/kubernetes/model/v1beta1_fs_group_strategy_options.c b/kubernetes/model/v1beta1_fs_group_strategy_options.c deleted file mode 100644 index f316994..0000000 --- a/kubernetes/model/v1beta1_fs_group_strategy_options.c +++ /dev/null @@ -1,136 +0,0 @@ -#include -#include -#include -#include "v1beta1_fs_group_strategy_options.h" - - - -v1beta1_fs_group_strategy_options_t *v1beta1_fs_group_strategy_options_create( - list_t *ranges, - char *rule - ) { - v1beta1_fs_group_strategy_options_t *v1beta1_fs_group_strategy_options_local_var = malloc(sizeof(v1beta1_fs_group_strategy_options_t)); - if (!v1beta1_fs_group_strategy_options_local_var) { - return NULL; - } - v1beta1_fs_group_strategy_options_local_var->ranges = ranges; - v1beta1_fs_group_strategy_options_local_var->rule = rule; - - return v1beta1_fs_group_strategy_options_local_var; -} - - -void v1beta1_fs_group_strategy_options_free(v1beta1_fs_group_strategy_options_t *v1beta1_fs_group_strategy_options) { - if(NULL == v1beta1_fs_group_strategy_options){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_fs_group_strategy_options->ranges) { - list_ForEach(listEntry, v1beta1_fs_group_strategy_options->ranges) { - v1beta1_id_range_free(listEntry->data); - } - list_freeList(v1beta1_fs_group_strategy_options->ranges); - v1beta1_fs_group_strategy_options->ranges = NULL; - } - if (v1beta1_fs_group_strategy_options->rule) { - free(v1beta1_fs_group_strategy_options->rule); - v1beta1_fs_group_strategy_options->rule = NULL; - } - free(v1beta1_fs_group_strategy_options); -} - -cJSON *v1beta1_fs_group_strategy_options_convertToJSON(v1beta1_fs_group_strategy_options_t *v1beta1_fs_group_strategy_options) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_fs_group_strategy_options->ranges - if(v1beta1_fs_group_strategy_options->ranges) { - cJSON *ranges = cJSON_AddArrayToObject(item, "ranges"); - if(ranges == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *rangesListEntry; - if (v1beta1_fs_group_strategy_options->ranges) { - list_ForEach(rangesListEntry, v1beta1_fs_group_strategy_options->ranges) { - cJSON *itemLocal = v1beta1_id_range_convertToJSON(rangesListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(ranges, itemLocal); - } - } - } - - - // v1beta1_fs_group_strategy_options->rule - if(v1beta1_fs_group_strategy_options->rule) { - if(cJSON_AddStringToObject(item, "rule", v1beta1_fs_group_strategy_options->rule) == NULL) { - goto fail; //String - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_fs_group_strategy_options_t *v1beta1_fs_group_strategy_options_parseFromJSON(cJSON *v1beta1_fs_group_strategy_optionsJSON){ - - v1beta1_fs_group_strategy_options_t *v1beta1_fs_group_strategy_options_local_var = NULL; - - // define the local list for v1beta1_fs_group_strategy_options->ranges - list_t *rangesList = NULL; - - // v1beta1_fs_group_strategy_options->ranges - cJSON *ranges = cJSON_GetObjectItemCaseSensitive(v1beta1_fs_group_strategy_optionsJSON, "ranges"); - if (ranges) { - cJSON *ranges_local_nonprimitive = NULL; - if(!cJSON_IsArray(ranges)){ - goto end; //nonprimitive container - } - - rangesList = list_createList(); - - cJSON_ArrayForEach(ranges_local_nonprimitive,ranges ) - { - if(!cJSON_IsObject(ranges_local_nonprimitive)){ - goto end; - } - v1beta1_id_range_t *rangesItem = v1beta1_id_range_parseFromJSON(ranges_local_nonprimitive); - - list_addElement(rangesList, rangesItem); - } - } - - // v1beta1_fs_group_strategy_options->rule - cJSON *rule = cJSON_GetObjectItemCaseSensitive(v1beta1_fs_group_strategy_optionsJSON, "rule"); - if (rule) { - if(!cJSON_IsString(rule)) - { - goto end; //String - } - } - - - v1beta1_fs_group_strategy_options_local_var = v1beta1_fs_group_strategy_options_create ( - ranges ? rangesList : NULL, - rule ? strdup(rule->valuestring) : NULL - ); - - return v1beta1_fs_group_strategy_options_local_var; -end: - if (rangesList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, rangesList) { - v1beta1_id_range_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(rangesList); - rangesList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_fs_group_strategy_options.h b/kubernetes/model/v1beta1_fs_group_strategy_options.h deleted file mode 100644 index 64fdaa7..0000000 --- a/kubernetes/model/v1beta1_fs_group_strategy_options.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * v1beta1_fs_group_strategy_options.h - * - * FSGroupStrategyOptions defines the strategy type and options used to create the strategy. - */ - -#ifndef _v1beta1_fs_group_strategy_options_H_ -#define _v1beta1_fs_group_strategy_options_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_fs_group_strategy_options_t v1beta1_fs_group_strategy_options_t; - -#include "v1beta1_id_range.h" - - - -typedef struct v1beta1_fs_group_strategy_options_t { - list_t *ranges; //nonprimitive container - char *rule; // string - -} v1beta1_fs_group_strategy_options_t; - -v1beta1_fs_group_strategy_options_t *v1beta1_fs_group_strategy_options_create( - list_t *ranges, - char *rule -); - -void v1beta1_fs_group_strategy_options_free(v1beta1_fs_group_strategy_options_t *v1beta1_fs_group_strategy_options); - -v1beta1_fs_group_strategy_options_t *v1beta1_fs_group_strategy_options_parseFromJSON(cJSON *v1beta1_fs_group_strategy_optionsJSON); - -cJSON *v1beta1_fs_group_strategy_options_convertToJSON(v1beta1_fs_group_strategy_options_t *v1beta1_fs_group_strategy_options); - -#endif /* _v1beta1_fs_group_strategy_options_H_ */ - diff --git a/kubernetes/model/v1beta1_host_port_range.c b/kubernetes/model/v1beta1_host_port_range.c deleted file mode 100644 index 8dfb03e..0000000 --- a/kubernetes/model/v1beta1_host_port_range.c +++ /dev/null @@ -1,97 +0,0 @@ -#include -#include -#include -#include "v1beta1_host_port_range.h" - - - -v1beta1_host_port_range_t *v1beta1_host_port_range_create( - int max, - int min - ) { - v1beta1_host_port_range_t *v1beta1_host_port_range_local_var = malloc(sizeof(v1beta1_host_port_range_t)); - if (!v1beta1_host_port_range_local_var) { - return NULL; - } - v1beta1_host_port_range_local_var->max = max; - v1beta1_host_port_range_local_var->min = min; - - return v1beta1_host_port_range_local_var; -} - - -void v1beta1_host_port_range_free(v1beta1_host_port_range_t *v1beta1_host_port_range) { - if(NULL == v1beta1_host_port_range){ - return ; - } - listEntry_t *listEntry; - free(v1beta1_host_port_range); -} - -cJSON *v1beta1_host_port_range_convertToJSON(v1beta1_host_port_range_t *v1beta1_host_port_range) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_host_port_range->max - if (!v1beta1_host_port_range->max) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "max", v1beta1_host_port_range->max) == NULL) { - goto fail; //Numeric - } - - - // v1beta1_host_port_range->min - if (!v1beta1_host_port_range->min) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "min", v1beta1_host_port_range->min) == NULL) { - goto fail; //Numeric - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_host_port_range_t *v1beta1_host_port_range_parseFromJSON(cJSON *v1beta1_host_port_rangeJSON){ - - v1beta1_host_port_range_t *v1beta1_host_port_range_local_var = NULL; - - // v1beta1_host_port_range->max - cJSON *max = cJSON_GetObjectItemCaseSensitive(v1beta1_host_port_rangeJSON, "max"); - if (!max) { - goto end; - } - - - if(!cJSON_IsNumber(max)) - { - goto end; //Numeric - } - - // v1beta1_host_port_range->min - cJSON *min = cJSON_GetObjectItemCaseSensitive(v1beta1_host_port_rangeJSON, "min"); - if (!min) { - goto end; - } - - - if(!cJSON_IsNumber(min)) - { - goto end; //Numeric - } - - - v1beta1_host_port_range_local_var = v1beta1_host_port_range_create ( - max->valuedouble, - min->valuedouble - ); - - return v1beta1_host_port_range_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_host_port_range.h b/kubernetes/model/v1beta1_host_port_range.h deleted file mode 100644 index 4ca7cc5..0000000 --- a/kubernetes/model/v1beta1_host_port_range.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * v1beta1_host_port_range.h - * - * HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined. - */ - -#ifndef _v1beta1_host_port_range_H_ -#define _v1beta1_host_port_range_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_host_port_range_t v1beta1_host_port_range_t; - - - - -typedef struct v1beta1_host_port_range_t { - int max; //numeric - int min; //numeric - -} v1beta1_host_port_range_t; - -v1beta1_host_port_range_t *v1beta1_host_port_range_create( - int max, - int min -); - -void v1beta1_host_port_range_free(v1beta1_host_port_range_t *v1beta1_host_port_range); - -v1beta1_host_port_range_t *v1beta1_host_port_range_parseFromJSON(cJSON *v1beta1_host_port_rangeJSON); - -cJSON *v1beta1_host_port_range_convertToJSON(v1beta1_host_port_range_t *v1beta1_host_port_range); - -#endif /* _v1beta1_host_port_range_H_ */ - diff --git a/kubernetes/model/v1beta1_id_range.c b/kubernetes/model/v1beta1_id_range.c deleted file mode 100644 index 47d0380..0000000 --- a/kubernetes/model/v1beta1_id_range.c +++ /dev/null @@ -1,97 +0,0 @@ -#include -#include -#include -#include "v1beta1_id_range.h" - - - -v1beta1_id_range_t *v1beta1_id_range_create( - long max, - long min - ) { - v1beta1_id_range_t *v1beta1_id_range_local_var = malloc(sizeof(v1beta1_id_range_t)); - if (!v1beta1_id_range_local_var) { - return NULL; - } - v1beta1_id_range_local_var->max = max; - v1beta1_id_range_local_var->min = min; - - return v1beta1_id_range_local_var; -} - - -void v1beta1_id_range_free(v1beta1_id_range_t *v1beta1_id_range) { - if(NULL == v1beta1_id_range){ - return ; - } - listEntry_t *listEntry; - free(v1beta1_id_range); -} - -cJSON *v1beta1_id_range_convertToJSON(v1beta1_id_range_t *v1beta1_id_range) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_id_range->max - if (!v1beta1_id_range->max) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "max", v1beta1_id_range->max) == NULL) { - goto fail; //Numeric - } - - - // v1beta1_id_range->min - if (!v1beta1_id_range->min) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "min", v1beta1_id_range->min) == NULL) { - goto fail; //Numeric - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_id_range_t *v1beta1_id_range_parseFromJSON(cJSON *v1beta1_id_rangeJSON){ - - v1beta1_id_range_t *v1beta1_id_range_local_var = NULL; - - // v1beta1_id_range->max - cJSON *max = cJSON_GetObjectItemCaseSensitive(v1beta1_id_rangeJSON, "max"); - if (!max) { - goto end; - } - - - if(!cJSON_IsNumber(max)) - { - goto end; //Numeric - } - - // v1beta1_id_range->min - cJSON *min = cJSON_GetObjectItemCaseSensitive(v1beta1_id_rangeJSON, "min"); - if (!min) { - goto end; - } - - - if(!cJSON_IsNumber(min)) - { - goto end; //Numeric - } - - - v1beta1_id_range_local_var = v1beta1_id_range_create ( - max->valuedouble, - min->valuedouble - ); - - return v1beta1_id_range_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_id_range.h b/kubernetes/model/v1beta1_id_range.h deleted file mode 100644 index fb83098..0000000 --- a/kubernetes/model/v1beta1_id_range.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * v1beta1_id_range.h - * - * IDRange provides a min/max of an allowed range of IDs. - */ - -#ifndef _v1beta1_id_range_H_ -#define _v1beta1_id_range_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_id_range_t v1beta1_id_range_t; - - - - -typedef struct v1beta1_id_range_t { - long max; //numeric - long min; //numeric - -} v1beta1_id_range_t; - -v1beta1_id_range_t *v1beta1_id_range_create( - long max, - long min -); - -void v1beta1_id_range_free(v1beta1_id_range_t *v1beta1_id_range); - -v1beta1_id_range_t *v1beta1_id_range_parseFromJSON(cJSON *v1beta1_id_rangeJSON); - -cJSON *v1beta1_id_range_convertToJSON(v1beta1_id_range_t *v1beta1_id_range); - -#endif /* _v1beta1_id_range_H_ */ - diff --git a/kubernetes/model/v1beta1_job_template_spec.c b/kubernetes/model/v1beta1_job_template_spec.c deleted file mode 100644 index 5c32d41..0000000 --- a/kubernetes/model/v1beta1_job_template_spec.c +++ /dev/null @@ -1,115 +0,0 @@ -#include -#include -#include -#include "v1beta1_job_template_spec.h" - - - -v1beta1_job_template_spec_t *v1beta1_job_template_spec_create( - v1_object_meta_t *metadata, - v1_job_spec_t *spec - ) { - v1beta1_job_template_spec_t *v1beta1_job_template_spec_local_var = malloc(sizeof(v1beta1_job_template_spec_t)); - if (!v1beta1_job_template_spec_local_var) { - return NULL; - } - v1beta1_job_template_spec_local_var->metadata = metadata; - v1beta1_job_template_spec_local_var->spec = spec; - - return v1beta1_job_template_spec_local_var; -} - - -void v1beta1_job_template_spec_free(v1beta1_job_template_spec_t *v1beta1_job_template_spec) { - if(NULL == v1beta1_job_template_spec){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_job_template_spec->metadata) { - v1_object_meta_free(v1beta1_job_template_spec->metadata); - v1beta1_job_template_spec->metadata = NULL; - } - if (v1beta1_job_template_spec->spec) { - v1_job_spec_free(v1beta1_job_template_spec->spec); - v1beta1_job_template_spec->spec = NULL; - } - free(v1beta1_job_template_spec); -} - -cJSON *v1beta1_job_template_spec_convertToJSON(v1beta1_job_template_spec_t *v1beta1_job_template_spec) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_job_template_spec->metadata - if(v1beta1_job_template_spec->metadata) { - cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1beta1_job_template_spec->metadata); - if(metadata_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_job_template_spec->spec - if(v1beta1_job_template_spec->spec) { - cJSON *spec_local_JSON = v1_job_spec_convertToJSON(v1beta1_job_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; -} - -v1beta1_job_template_spec_t *v1beta1_job_template_spec_parseFromJSON(cJSON *v1beta1_job_template_specJSON){ - - v1beta1_job_template_spec_t *v1beta1_job_template_spec_local_var = NULL; - - // define the local variable for v1beta1_job_template_spec->metadata - v1_object_meta_t *metadata_local_nonprim = NULL; - - // define the local variable for v1beta1_job_template_spec->spec - v1_job_spec_t *spec_local_nonprim = NULL; - - // v1beta1_job_template_spec->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_job_template_specJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive - } - - // v1beta1_job_template_spec->spec - cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1beta1_job_template_specJSON, "spec"); - if (spec) { - spec_local_nonprim = v1_job_spec_parseFromJSON(spec); //nonprimitive - } - - - v1beta1_job_template_spec_local_var = v1beta1_job_template_spec_create ( - metadata ? metadata_local_nonprim : NULL, - spec ? spec_local_nonprim : NULL - ); - - return v1beta1_job_template_spec_local_var; -end: - if (metadata_local_nonprim) { - v1_object_meta_free(metadata_local_nonprim); - metadata_local_nonprim = NULL; - } - if (spec_local_nonprim) { - v1_job_spec_free(spec_local_nonprim); - spec_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_job_template_spec.h b/kubernetes/model/v1beta1_job_template_spec.h deleted file mode 100644 index dd63e27..0000000 --- a/kubernetes/model/v1beta1_job_template_spec.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v1beta1_job_template_spec.h - * - * JobTemplateSpec describes the data a Job should have when created from a template - */ - -#ifndef _v1beta1_job_template_spec_H_ -#define _v1beta1_job_template_spec_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_job_template_spec_t v1beta1_job_template_spec_t; - -#include "v1_job_spec.h" -#include "v1_object_meta.h" - - - -typedef struct v1beta1_job_template_spec_t { - struct v1_object_meta_t *metadata; //model - struct v1_job_spec_t *spec; //model - -} v1beta1_job_template_spec_t; - -v1beta1_job_template_spec_t *v1beta1_job_template_spec_create( - v1_object_meta_t *metadata, - v1_job_spec_t *spec -); - -void v1beta1_job_template_spec_free(v1beta1_job_template_spec_t *v1beta1_job_template_spec); - -v1beta1_job_template_spec_t *v1beta1_job_template_spec_parseFromJSON(cJSON *v1beta1_job_template_specJSON); - -cJSON *v1beta1_job_template_spec_convertToJSON(v1beta1_job_template_spec_t *v1beta1_job_template_spec); - -#endif /* _v1beta1_job_template_spec_H_ */ - diff --git a/kubernetes/model/v1beta1_limited_priority_level_configuration.h b/kubernetes/model/v1beta1_limited_priority_level_configuration.h index 24056c6..f5a4b59 100644 --- a/kubernetes/model/v1beta1_limited_priority_level_configuration.h +++ b/kubernetes/model/v1beta1_limited_priority_level_configuration.h @@ -1,7 +1,7 @@ /* * 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? + * 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_ diff --git a/kubernetes/model/v1beta1_overhead.c b/kubernetes/model/v1beta1_overhead.c deleted file mode 100644 index dd46448..0000000 --- a/kubernetes/model/v1beta1_overhead.c +++ /dev/null @@ -1,124 +0,0 @@ -#include -#include -#include -#include "v1beta1_overhead.h" - - - -v1beta1_overhead_t *v1beta1_overhead_create( - list_t* pod_fixed - ) { - v1beta1_overhead_t *v1beta1_overhead_local_var = malloc(sizeof(v1beta1_overhead_t)); - if (!v1beta1_overhead_local_var) { - return NULL; - } - v1beta1_overhead_local_var->pod_fixed = pod_fixed; - - return v1beta1_overhead_local_var; -} - - -void v1beta1_overhead_free(v1beta1_overhead_t *v1beta1_overhead) { - if(NULL == v1beta1_overhead){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_overhead->pod_fixed) { - list_ForEach(listEntry, v1beta1_overhead->pod_fixed) { - keyValuePair_t *localKeyValue = (keyValuePair_t*) listEntry->data; - free (localKeyValue->key); - free (localKeyValue->value); - keyValuePair_free(localKeyValue); - } - list_freeList(v1beta1_overhead->pod_fixed); - v1beta1_overhead->pod_fixed = NULL; - } - free(v1beta1_overhead); -} - -cJSON *v1beta1_overhead_convertToJSON(v1beta1_overhead_t *v1beta1_overhead) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_overhead->pod_fixed - if(v1beta1_overhead->pod_fixed) { - cJSON *pod_fixed = cJSON_AddObjectToObject(item, "podFixed"); - if(pod_fixed == NULL) { - goto fail; //primitive map container - } - cJSON *localMapObject = pod_fixed; - listEntry_t *pod_fixedListEntry; - if (v1beta1_overhead->pod_fixed) { - list_ForEach(pod_fixedListEntry, v1beta1_overhead->pod_fixed) { - keyValuePair_t *localKeyValue = (keyValuePair_t*)pod_fixedListEntry->data; - if(cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) - { - goto fail; - } - } - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_overhead_t *v1beta1_overhead_parseFromJSON(cJSON *v1beta1_overheadJSON){ - - v1beta1_overhead_t *v1beta1_overhead_local_var = NULL; - - // define the local map for v1beta1_overhead->pod_fixed - list_t *pod_fixedList = NULL; - - // v1beta1_overhead->pod_fixed - cJSON *pod_fixed = cJSON_GetObjectItemCaseSensitive(v1beta1_overheadJSON, "podFixed"); - if (pod_fixed) { - cJSON *pod_fixed_local_map = NULL; - if(!cJSON_IsObject(pod_fixed) && !cJSON_IsNull(pod_fixed)) - { - goto end;//primitive map container - } - if(cJSON_IsObject(pod_fixed)) - { - pod_fixedList = list_createList(); - keyValuePair_t *localMapKeyPair; - cJSON_ArrayForEach(pod_fixed_local_map, pod_fixed) - { - cJSON *localMapObject = pod_fixed_local_map; - if(!cJSON_IsString(localMapObject)) - { - goto end; - } - localMapKeyPair = keyValuePair_create(strdup(localMapObject->string),strdup(localMapObject->valuestring)); - list_addElement(pod_fixedList , localMapKeyPair); - } - } - } - - - v1beta1_overhead_local_var = v1beta1_overhead_create ( - pod_fixed ? pod_fixedList : NULL - ); - - return v1beta1_overhead_local_var; -end: - if (pod_fixedList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, pod_fixedList) { - keyValuePair_t *localKeyValue = (keyValuePair_t*) listEntry->data; - free(localKeyValue->key); - localKeyValue->key = NULL; - free(localKeyValue->value); - localKeyValue->value = NULL; - keyValuePair_free(localKeyValue); - localKeyValue = NULL; - } - list_freeList(pod_fixedList); - pod_fixedList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_overhead.h b/kubernetes/model/v1beta1_overhead.h deleted file mode 100644 index 039ae4f..0000000 --- a/kubernetes/model/v1beta1_overhead.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * v1beta1_overhead.h - * - * Overhead structure represents the resource overhead associated with running a pod. - */ - -#ifndef _v1beta1_overhead_H_ -#define _v1beta1_overhead_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_overhead_t v1beta1_overhead_t; - - - - -typedef struct v1beta1_overhead_t { - list_t* pod_fixed; //map - -} v1beta1_overhead_t; - -v1beta1_overhead_t *v1beta1_overhead_create( - list_t* pod_fixed -); - -void v1beta1_overhead_free(v1beta1_overhead_t *v1beta1_overhead); - -v1beta1_overhead_t *v1beta1_overhead_parseFromJSON(cJSON *v1beta1_overheadJSON); - -cJSON *v1beta1_overhead_convertToJSON(v1beta1_overhead_t *v1beta1_overhead); - -#endif /* _v1beta1_overhead_H_ */ - diff --git a/kubernetes/model/v1beta1_pod_disruption_budget.c b/kubernetes/model/v1beta1_pod_disruption_budget.c deleted file mode 100644 index 14f6bb4..0000000 --- a/kubernetes/model/v1beta1_pod_disruption_budget.c +++ /dev/null @@ -1,196 +0,0 @@ -#include -#include -#include -#include "v1beta1_pod_disruption_budget.h" - - - -v1beta1_pod_disruption_budget_t *v1beta1_pod_disruption_budget_create( - char *api_version, - char *kind, - v1_object_meta_t *metadata, - v1beta1_pod_disruption_budget_spec_t *spec, - v1beta1_pod_disruption_budget_status_t *status - ) { - v1beta1_pod_disruption_budget_t *v1beta1_pod_disruption_budget_local_var = malloc(sizeof(v1beta1_pod_disruption_budget_t)); - if (!v1beta1_pod_disruption_budget_local_var) { - return NULL; - } - v1beta1_pod_disruption_budget_local_var->api_version = api_version; - v1beta1_pod_disruption_budget_local_var->kind = kind; - v1beta1_pod_disruption_budget_local_var->metadata = metadata; - v1beta1_pod_disruption_budget_local_var->spec = spec; - v1beta1_pod_disruption_budget_local_var->status = status; - - return v1beta1_pod_disruption_budget_local_var; -} - - -void v1beta1_pod_disruption_budget_free(v1beta1_pod_disruption_budget_t *v1beta1_pod_disruption_budget) { - if(NULL == v1beta1_pod_disruption_budget){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_pod_disruption_budget->api_version) { - free(v1beta1_pod_disruption_budget->api_version); - v1beta1_pod_disruption_budget->api_version = NULL; - } - if (v1beta1_pod_disruption_budget->kind) { - free(v1beta1_pod_disruption_budget->kind); - v1beta1_pod_disruption_budget->kind = NULL; - } - if (v1beta1_pod_disruption_budget->metadata) { - v1_object_meta_free(v1beta1_pod_disruption_budget->metadata); - v1beta1_pod_disruption_budget->metadata = NULL; - } - if (v1beta1_pod_disruption_budget->spec) { - v1beta1_pod_disruption_budget_spec_free(v1beta1_pod_disruption_budget->spec); - v1beta1_pod_disruption_budget->spec = NULL; - } - if (v1beta1_pod_disruption_budget->status) { - v1beta1_pod_disruption_budget_status_free(v1beta1_pod_disruption_budget->status); - v1beta1_pod_disruption_budget->status = NULL; - } - free(v1beta1_pod_disruption_budget); -} - -cJSON *v1beta1_pod_disruption_budget_convertToJSON(v1beta1_pod_disruption_budget_t *v1beta1_pod_disruption_budget) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_pod_disruption_budget->api_version - if(v1beta1_pod_disruption_budget->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v1beta1_pod_disruption_budget->api_version) == NULL) { - goto fail; //String - } - } - - - // v1beta1_pod_disruption_budget->kind - if(v1beta1_pod_disruption_budget->kind) { - if(cJSON_AddStringToObject(item, "kind", v1beta1_pod_disruption_budget->kind) == NULL) { - goto fail; //String - } - } - - - // v1beta1_pod_disruption_budget->metadata - if(v1beta1_pod_disruption_budget->metadata) { - cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1beta1_pod_disruption_budget->metadata); - if(metadata_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_pod_disruption_budget->spec - if(v1beta1_pod_disruption_budget->spec) { - cJSON *spec_local_JSON = v1beta1_pod_disruption_budget_spec_convertToJSON(v1beta1_pod_disruption_budget->spec); - if(spec_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "spec", spec_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_pod_disruption_budget->status - if(v1beta1_pod_disruption_budget->status) { - cJSON *status_local_JSON = v1beta1_pod_disruption_budget_status_convertToJSON(v1beta1_pod_disruption_budget->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_pod_disruption_budget_t *v1beta1_pod_disruption_budget_parseFromJSON(cJSON *v1beta1_pod_disruption_budgetJSON){ - - v1beta1_pod_disruption_budget_t *v1beta1_pod_disruption_budget_local_var = NULL; - - // define the local variable for v1beta1_pod_disruption_budget->metadata - v1_object_meta_t *metadata_local_nonprim = NULL; - - // define the local variable for v1beta1_pod_disruption_budget->spec - v1beta1_pod_disruption_budget_spec_t *spec_local_nonprim = NULL; - - // define the local variable for v1beta1_pod_disruption_budget->status - v1beta1_pod_disruption_budget_status_t *status_local_nonprim = NULL; - - // v1beta1_pod_disruption_budget->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_disruption_budgetJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version)) - { - goto end; //String - } - } - - // v1beta1_pod_disruption_budget->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_disruption_budgetJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind)) - { - goto end; //String - } - } - - // v1beta1_pod_disruption_budget->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_disruption_budgetJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive - } - - // v1beta1_pod_disruption_budget->spec - cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_disruption_budgetJSON, "spec"); - if (spec) { - spec_local_nonprim = v1beta1_pod_disruption_budget_spec_parseFromJSON(spec); //nonprimitive - } - - // v1beta1_pod_disruption_budget->status - cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_disruption_budgetJSON, "status"); - if (status) { - status_local_nonprim = v1beta1_pod_disruption_budget_status_parseFromJSON(status); //nonprimitive - } - - - v1beta1_pod_disruption_budget_local_var = v1beta1_pod_disruption_budget_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL, - spec ? spec_local_nonprim : NULL, - status ? status_local_nonprim : NULL - ); - - return v1beta1_pod_disruption_budget_local_var; -end: - if (metadata_local_nonprim) { - v1_object_meta_free(metadata_local_nonprim); - metadata_local_nonprim = NULL; - } - if (spec_local_nonprim) { - v1beta1_pod_disruption_budget_spec_free(spec_local_nonprim); - spec_local_nonprim = NULL; - } - if (status_local_nonprim) { - v1beta1_pod_disruption_budget_status_free(status_local_nonprim); - status_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_pod_disruption_budget.h b/kubernetes/model/v1beta1_pod_disruption_budget.h deleted file mode 100644 index 0f3badc..0000000 --- a/kubernetes/model/v1beta1_pod_disruption_budget.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * v1beta1_pod_disruption_budget.h - * - * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods - */ - -#ifndef _v1beta1_pod_disruption_budget_H_ -#define _v1beta1_pod_disruption_budget_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_pod_disruption_budget_t v1beta1_pod_disruption_budget_t; - -#include "v1_object_meta.h" -#include "v1beta1_pod_disruption_budget_spec.h" -#include "v1beta1_pod_disruption_budget_status.h" - - - -typedef struct v1beta1_pod_disruption_budget_t { - char *api_version; // string - char *kind; // string - struct v1_object_meta_t *metadata; //model - struct v1beta1_pod_disruption_budget_spec_t *spec; //model - struct v1beta1_pod_disruption_budget_status_t *status; //model - -} v1beta1_pod_disruption_budget_t; - -v1beta1_pod_disruption_budget_t *v1beta1_pod_disruption_budget_create( - char *api_version, - char *kind, - v1_object_meta_t *metadata, - v1beta1_pod_disruption_budget_spec_t *spec, - v1beta1_pod_disruption_budget_status_t *status -); - -void v1beta1_pod_disruption_budget_free(v1beta1_pod_disruption_budget_t *v1beta1_pod_disruption_budget); - -v1beta1_pod_disruption_budget_t *v1beta1_pod_disruption_budget_parseFromJSON(cJSON *v1beta1_pod_disruption_budgetJSON); - -cJSON *v1beta1_pod_disruption_budget_convertToJSON(v1beta1_pod_disruption_budget_t *v1beta1_pod_disruption_budget); - -#endif /* _v1beta1_pod_disruption_budget_H_ */ - diff --git a/kubernetes/model/v1beta1_pod_disruption_budget_list.c b/kubernetes/model/v1beta1_pod_disruption_budget_list.c deleted file mode 100644 index 30bf41f..0000000 --- a/kubernetes/model/v1beta1_pod_disruption_budget_list.c +++ /dev/null @@ -1,197 +0,0 @@ -#include -#include -#include -#include "v1beta1_pod_disruption_budget_list.h" - - - -v1beta1_pod_disruption_budget_list_t *v1beta1_pod_disruption_budget_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata - ) { - v1beta1_pod_disruption_budget_list_t *v1beta1_pod_disruption_budget_list_local_var = malloc(sizeof(v1beta1_pod_disruption_budget_list_t)); - if (!v1beta1_pod_disruption_budget_list_local_var) { - return NULL; - } - v1beta1_pod_disruption_budget_list_local_var->api_version = api_version; - v1beta1_pod_disruption_budget_list_local_var->items = items; - v1beta1_pod_disruption_budget_list_local_var->kind = kind; - v1beta1_pod_disruption_budget_list_local_var->metadata = metadata; - - return v1beta1_pod_disruption_budget_list_local_var; -} - - -void v1beta1_pod_disruption_budget_list_free(v1beta1_pod_disruption_budget_list_t *v1beta1_pod_disruption_budget_list) { - if(NULL == v1beta1_pod_disruption_budget_list){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_pod_disruption_budget_list->api_version) { - free(v1beta1_pod_disruption_budget_list->api_version); - v1beta1_pod_disruption_budget_list->api_version = NULL; - } - if (v1beta1_pod_disruption_budget_list->items) { - list_ForEach(listEntry, v1beta1_pod_disruption_budget_list->items) { - v1beta1_pod_disruption_budget_free(listEntry->data); - } - list_freeList(v1beta1_pod_disruption_budget_list->items); - v1beta1_pod_disruption_budget_list->items = NULL; - } - if (v1beta1_pod_disruption_budget_list->kind) { - free(v1beta1_pod_disruption_budget_list->kind); - v1beta1_pod_disruption_budget_list->kind = NULL; - } - if (v1beta1_pod_disruption_budget_list->metadata) { - v1_list_meta_free(v1beta1_pod_disruption_budget_list->metadata); - v1beta1_pod_disruption_budget_list->metadata = NULL; - } - free(v1beta1_pod_disruption_budget_list); -} - -cJSON *v1beta1_pod_disruption_budget_list_convertToJSON(v1beta1_pod_disruption_budget_list_t *v1beta1_pod_disruption_budget_list) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_pod_disruption_budget_list->api_version - if(v1beta1_pod_disruption_budget_list->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v1beta1_pod_disruption_budget_list->api_version) == NULL) { - goto fail; //String - } - } - - - // v1beta1_pod_disruption_budget_list->items - if (!v1beta1_pod_disruption_budget_list->items) { - goto fail; - } - cJSON *items = cJSON_AddArrayToObject(item, "items"); - if(items == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *itemsListEntry; - if (v1beta1_pod_disruption_budget_list->items) { - list_ForEach(itemsListEntry, v1beta1_pod_disruption_budget_list->items) { - cJSON *itemLocal = v1beta1_pod_disruption_budget_convertToJSON(itemsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(items, itemLocal); - } - } - - - // v1beta1_pod_disruption_budget_list->kind - if(v1beta1_pod_disruption_budget_list->kind) { - if(cJSON_AddStringToObject(item, "kind", v1beta1_pod_disruption_budget_list->kind) == NULL) { - goto fail; //String - } - } - - - // v1beta1_pod_disruption_budget_list->metadata - if(v1beta1_pod_disruption_budget_list->metadata) { - cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1beta1_pod_disruption_budget_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_pod_disruption_budget_list_t *v1beta1_pod_disruption_budget_list_parseFromJSON(cJSON *v1beta1_pod_disruption_budget_listJSON){ - - v1beta1_pod_disruption_budget_list_t *v1beta1_pod_disruption_budget_list_local_var = NULL; - - // define the local list for v1beta1_pod_disruption_budget_list->items - list_t *itemsList = NULL; - - // define the local variable for v1beta1_pod_disruption_budget_list->metadata - v1_list_meta_t *metadata_local_nonprim = NULL; - - // v1beta1_pod_disruption_budget_list->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_disruption_budget_listJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version)) - { - goto end; //String - } - } - - // v1beta1_pod_disruption_budget_list->items - cJSON *items = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_disruption_budget_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_pod_disruption_budget_t *itemsItem = v1beta1_pod_disruption_budget_parseFromJSON(items_local_nonprimitive); - - list_addElement(itemsList, itemsItem); - } - - // v1beta1_pod_disruption_budget_list->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_disruption_budget_listJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind)) - { - goto end; //String - } - } - - // v1beta1_pod_disruption_budget_list->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_disruption_budget_listJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive - } - - - v1beta1_pod_disruption_budget_list_local_var = v1beta1_pod_disruption_budget_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, - itemsList, - kind ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL - ); - - return v1beta1_pod_disruption_budget_list_local_var; -end: - if (itemsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, itemsList) { - v1beta1_pod_disruption_budget_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_pod_disruption_budget_list.h b/kubernetes/model/v1beta1_pod_disruption_budget_list.h deleted file mode 100644 index 4887115..0000000 --- a/kubernetes/model/v1beta1_pod_disruption_budget_list.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v1beta1_pod_disruption_budget_list.h - * - * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. - */ - -#ifndef _v1beta1_pod_disruption_budget_list_H_ -#define _v1beta1_pod_disruption_budget_list_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_pod_disruption_budget_list_t v1beta1_pod_disruption_budget_list_t; - -#include "v1_list_meta.h" -#include "v1beta1_pod_disruption_budget.h" - - - -typedef struct v1beta1_pod_disruption_budget_list_t { - char *api_version; // string - list_t *items; //nonprimitive container - char *kind; // string - struct v1_list_meta_t *metadata; //model - -} v1beta1_pod_disruption_budget_list_t; - -v1beta1_pod_disruption_budget_list_t *v1beta1_pod_disruption_budget_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata -); - -void v1beta1_pod_disruption_budget_list_free(v1beta1_pod_disruption_budget_list_t *v1beta1_pod_disruption_budget_list); - -v1beta1_pod_disruption_budget_list_t *v1beta1_pod_disruption_budget_list_parseFromJSON(cJSON *v1beta1_pod_disruption_budget_listJSON); - -cJSON *v1beta1_pod_disruption_budget_list_convertToJSON(v1beta1_pod_disruption_budget_list_t *v1beta1_pod_disruption_budget_list); - -#endif /* _v1beta1_pod_disruption_budget_list_H_ */ - diff --git a/kubernetes/model/v1beta1_pod_disruption_budget_spec.c b/kubernetes/model/v1beta1_pod_disruption_budget_spec.c deleted file mode 100644 index 0464e5c..0000000 --- a/kubernetes/model/v1beta1_pod_disruption_budget_spec.c +++ /dev/null @@ -1,148 +0,0 @@ -#include -#include -#include -#include "v1beta1_pod_disruption_budget_spec.h" - - - -v1beta1_pod_disruption_budget_spec_t *v1beta1_pod_disruption_budget_spec_create( - int_or_string_t *max_unavailable, - int_or_string_t *min_available, - v1_label_selector_t *selector - ) { - v1beta1_pod_disruption_budget_spec_t *v1beta1_pod_disruption_budget_spec_local_var = malloc(sizeof(v1beta1_pod_disruption_budget_spec_t)); - if (!v1beta1_pod_disruption_budget_spec_local_var) { - return NULL; - } - v1beta1_pod_disruption_budget_spec_local_var->max_unavailable = max_unavailable; - v1beta1_pod_disruption_budget_spec_local_var->min_available = min_available; - v1beta1_pod_disruption_budget_spec_local_var->selector = selector; - - return v1beta1_pod_disruption_budget_spec_local_var; -} - - -void v1beta1_pod_disruption_budget_spec_free(v1beta1_pod_disruption_budget_spec_t *v1beta1_pod_disruption_budget_spec) { - if(NULL == v1beta1_pod_disruption_budget_spec){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_pod_disruption_budget_spec->max_unavailable) { - int_or_string_free(v1beta1_pod_disruption_budget_spec->max_unavailable); - v1beta1_pod_disruption_budget_spec->max_unavailable = NULL; - } - if (v1beta1_pod_disruption_budget_spec->min_available) { - int_or_string_free(v1beta1_pod_disruption_budget_spec->min_available); - v1beta1_pod_disruption_budget_spec->min_available = NULL; - } - if (v1beta1_pod_disruption_budget_spec->selector) { - v1_label_selector_free(v1beta1_pod_disruption_budget_spec->selector); - v1beta1_pod_disruption_budget_spec->selector = NULL; - } - free(v1beta1_pod_disruption_budget_spec); -} - -cJSON *v1beta1_pod_disruption_budget_spec_convertToJSON(v1beta1_pod_disruption_budget_spec_t *v1beta1_pod_disruption_budget_spec) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_pod_disruption_budget_spec->max_unavailable - if(v1beta1_pod_disruption_budget_spec->max_unavailable) { - cJSON *max_unavailable_local_JSON = int_or_string_convertToJSON(v1beta1_pod_disruption_budget_spec->max_unavailable); - if(max_unavailable_local_JSON == NULL) { - goto fail; // custom - } - cJSON_AddItemToObject(item, "maxUnavailable", max_unavailable_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_pod_disruption_budget_spec->min_available - if(v1beta1_pod_disruption_budget_spec->min_available) { - cJSON *min_available_local_JSON = int_or_string_convertToJSON(v1beta1_pod_disruption_budget_spec->min_available); - if(min_available_local_JSON == NULL) { - goto fail; // custom - } - cJSON_AddItemToObject(item, "minAvailable", min_available_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_pod_disruption_budget_spec->selector - if(v1beta1_pod_disruption_budget_spec->selector) { - cJSON *selector_local_JSON = v1_label_selector_convertToJSON(v1beta1_pod_disruption_budget_spec->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; -} - -v1beta1_pod_disruption_budget_spec_t *v1beta1_pod_disruption_budget_spec_parseFromJSON(cJSON *v1beta1_pod_disruption_budget_specJSON){ - - v1beta1_pod_disruption_budget_spec_t *v1beta1_pod_disruption_budget_spec_local_var = NULL; - - // define the local variable for v1beta1_pod_disruption_budget_spec->max_unavailable - int_or_string_t *max_unavailable_local_nonprim = NULL; - - // define the local variable for v1beta1_pod_disruption_budget_spec->min_available - int_or_string_t *min_available_local_nonprim = NULL; - - // define the local variable for v1beta1_pod_disruption_budget_spec->selector - v1_label_selector_t *selector_local_nonprim = NULL; - - // v1beta1_pod_disruption_budget_spec->max_unavailable - cJSON *max_unavailable = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_disruption_budget_specJSON, "maxUnavailable"); - if (max_unavailable) { - max_unavailable_local_nonprim = int_or_string_parseFromJSON(max_unavailable); //custom - } - - // v1beta1_pod_disruption_budget_spec->min_available - cJSON *min_available = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_disruption_budget_specJSON, "minAvailable"); - if (min_available) { - min_available_local_nonprim = int_or_string_parseFromJSON(min_available); //custom - } - - // v1beta1_pod_disruption_budget_spec->selector - cJSON *selector = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_disruption_budget_specJSON, "selector"); - if (selector) { - selector_local_nonprim = v1_label_selector_parseFromJSON(selector); //nonprimitive - } - - - v1beta1_pod_disruption_budget_spec_local_var = v1beta1_pod_disruption_budget_spec_create ( - max_unavailable ? max_unavailable_local_nonprim : NULL, - min_available ? min_available_local_nonprim : NULL, - selector ? selector_local_nonprim : NULL - ); - - return v1beta1_pod_disruption_budget_spec_local_var; -end: - if (max_unavailable_local_nonprim) { - int_or_string_free(max_unavailable_local_nonprim); - max_unavailable_local_nonprim = NULL; - } - if (min_available_local_nonprim) { - int_or_string_free(min_available_local_nonprim); - min_available_local_nonprim = NULL; - } - if (selector_local_nonprim) { - v1_label_selector_free(selector_local_nonprim); - selector_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_pod_disruption_budget_spec.h b/kubernetes/model/v1beta1_pod_disruption_budget_spec.h deleted file mode 100644 index dbcc325..0000000 --- a/kubernetes/model/v1beta1_pod_disruption_budget_spec.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * v1beta1_pod_disruption_budget_spec.h - * - * PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. - */ - -#ifndef _v1beta1_pod_disruption_budget_spec_H_ -#define _v1beta1_pod_disruption_budget_spec_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_pod_disruption_budget_spec_t v1beta1_pod_disruption_budget_spec_t; - -#include "int_or_string.h" -#include "v1_label_selector.h" - - - -typedef struct v1beta1_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 - -} v1beta1_pod_disruption_budget_spec_t; - -v1beta1_pod_disruption_budget_spec_t *v1beta1_pod_disruption_budget_spec_create( - int_or_string_t *max_unavailable, - int_or_string_t *min_available, - v1_label_selector_t *selector -); - -void v1beta1_pod_disruption_budget_spec_free(v1beta1_pod_disruption_budget_spec_t *v1beta1_pod_disruption_budget_spec); - -v1beta1_pod_disruption_budget_spec_t *v1beta1_pod_disruption_budget_spec_parseFromJSON(cJSON *v1beta1_pod_disruption_budget_specJSON); - -cJSON *v1beta1_pod_disruption_budget_spec_convertToJSON(v1beta1_pod_disruption_budget_spec_t *v1beta1_pod_disruption_budget_spec); - -#endif /* _v1beta1_pod_disruption_budget_spec_H_ */ - diff --git a/kubernetes/model/v1beta1_pod_disruption_budget_status.c b/kubernetes/model/v1beta1_pod_disruption_budget_status.c deleted file mode 100644 index 25f736d..0000000 --- a/kubernetes/model/v1beta1_pod_disruption_budget_status.c +++ /dev/null @@ -1,292 +0,0 @@ -#include -#include -#include -#include "v1beta1_pod_disruption_budget_status.h" - - - -v1beta1_pod_disruption_budget_status_t *v1beta1_pod_disruption_budget_status_create( - list_t *conditions, - int current_healthy, - int desired_healthy, - list_t* disrupted_pods, - int disruptions_allowed, - int expected_pods, - long observed_generation - ) { - v1beta1_pod_disruption_budget_status_t *v1beta1_pod_disruption_budget_status_local_var = malloc(sizeof(v1beta1_pod_disruption_budget_status_t)); - if (!v1beta1_pod_disruption_budget_status_local_var) { - return NULL; - } - v1beta1_pod_disruption_budget_status_local_var->conditions = conditions; - v1beta1_pod_disruption_budget_status_local_var->current_healthy = current_healthy; - v1beta1_pod_disruption_budget_status_local_var->desired_healthy = desired_healthy; - v1beta1_pod_disruption_budget_status_local_var->disrupted_pods = disrupted_pods; - v1beta1_pod_disruption_budget_status_local_var->disruptions_allowed = disruptions_allowed; - v1beta1_pod_disruption_budget_status_local_var->expected_pods = expected_pods; - v1beta1_pod_disruption_budget_status_local_var->observed_generation = observed_generation; - - return v1beta1_pod_disruption_budget_status_local_var; -} - - -void v1beta1_pod_disruption_budget_status_free(v1beta1_pod_disruption_budget_status_t *v1beta1_pod_disruption_budget_status) { - if(NULL == v1beta1_pod_disruption_budget_status){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_pod_disruption_budget_status->conditions) { - list_ForEach(listEntry, v1beta1_pod_disruption_budget_status->conditions) { - v1_condition_free(listEntry->data); - } - list_freeList(v1beta1_pod_disruption_budget_status->conditions); - v1beta1_pod_disruption_budget_status->conditions = NULL; - } - if (v1beta1_pod_disruption_budget_status->disrupted_pods) { - list_ForEach(listEntry, v1beta1_pod_disruption_budget_status->disrupted_pods) { - keyValuePair_t *localKeyValue = (keyValuePair_t*) listEntry->data; - free (localKeyValue->key); - free (localKeyValue->value); - keyValuePair_free(localKeyValue); - } - list_freeList(v1beta1_pod_disruption_budget_status->disrupted_pods); - v1beta1_pod_disruption_budget_status->disrupted_pods = NULL; - } - free(v1beta1_pod_disruption_budget_status); -} - -cJSON *v1beta1_pod_disruption_budget_status_convertToJSON(v1beta1_pod_disruption_budget_status_t *v1beta1_pod_disruption_budget_status) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_pod_disruption_budget_status->conditions - if(v1beta1_pod_disruption_budget_status->conditions) { - cJSON *conditions = cJSON_AddArrayToObject(item, "conditions"); - if(conditions == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *conditionsListEntry; - if (v1beta1_pod_disruption_budget_status->conditions) { - list_ForEach(conditionsListEntry, v1beta1_pod_disruption_budget_status->conditions) { - cJSON *itemLocal = v1_condition_convertToJSON(conditionsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(conditions, itemLocal); - } - } - } - - - // v1beta1_pod_disruption_budget_status->current_healthy - if (!v1beta1_pod_disruption_budget_status->current_healthy) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "currentHealthy", v1beta1_pod_disruption_budget_status->current_healthy) == NULL) { - goto fail; //Numeric - } - - - // v1beta1_pod_disruption_budget_status->desired_healthy - if (!v1beta1_pod_disruption_budget_status->desired_healthy) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "desiredHealthy", v1beta1_pod_disruption_budget_status->desired_healthy) == NULL) { - goto fail; //Numeric - } - - - // v1beta1_pod_disruption_budget_status->disrupted_pods - if(v1beta1_pod_disruption_budget_status->disrupted_pods) { - cJSON *disrupted_pods = cJSON_AddObjectToObject(item, "disruptedPods"); - if(disrupted_pods == NULL) { - goto fail; //primitive map container - } - cJSON *localMapObject = disrupted_pods; - listEntry_t *disrupted_podsListEntry; - if (v1beta1_pod_disruption_budget_status->disrupted_pods) { - list_ForEach(disrupted_podsListEntry, v1beta1_pod_disruption_budget_status->disrupted_pods) { - keyValuePair_t *localKeyValue = (keyValuePair_t*)disrupted_podsListEntry->data; - } - } - } - - - // v1beta1_pod_disruption_budget_status->disruptions_allowed - if (!v1beta1_pod_disruption_budget_status->disruptions_allowed) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "disruptionsAllowed", v1beta1_pod_disruption_budget_status->disruptions_allowed) == NULL) { - goto fail; //Numeric - } - - - // v1beta1_pod_disruption_budget_status->expected_pods - if (!v1beta1_pod_disruption_budget_status->expected_pods) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "expectedPods", v1beta1_pod_disruption_budget_status->expected_pods) == NULL) { - goto fail; //Numeric - } - - - // v1beta1_pod_disruption_budget_status->observed_generation - if(v1beta1_pod_disruption_budget_status->observed_generation) { - if(cJSON_AddNumberToObject(item, "observedGeneration", v1beta1_pod_disruption_budget_status->observed_generation) == NULL) { - goto fail; //Numeric - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_pod_disruption_budget_status_t *v1beta1_pod_disruption_budget_status_parseFromJSON(cJSON *v1beta1_pod_disruption_budget_statusJSON){ - - v1beta1_pod_disruption_budget_status_t *v1beta1_pod_disruption_budget_status_local_var = NULL; - - // define the local list for v1beta1_pod_disruption_budget_status->conditions - list_t *conditionsList = NULL; - - // define the local map for v1beta1_pod_disruption_budget_status->disrupted_pods - list_t *disrupted_podsList = NULL; - - // v1beta1_pod_disruption_budget_status->conditions - cJSON *conditions = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_disruption_budget_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; - } - v1_condition_t *conditionsItem = v1_condition_parseFromJSON(conditions_local_nonprimitive); - - list_addElement(conditionsList, conditionsItem); - } - } - - // v1beta1_pod_disruption_budget_status->current_healthy - cJSON *current_healthy = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_disruption_budget_statusJSON, "currentHealthy"); - if (!current_healthy) { - goto end; - } - - - if(!cJSON_IsNumber(current_healthy)) - { - goto end; //Numeric - } - - // v1beta1_pod_disruption_budget_status->desired_healthy - cJSON *desired_healthy = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_disruption_budget_statusJSON, "desiredHealthy"); - if (!desired_healthy) { - goto end; - } - - - if(!cJSON_IsNumber(desired_healthy)) - { - goto end; //Numeric - } - - // v1beta1_pod_disruption_budget_status->disrupted_pods - cJSON *disrupted_pods = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_disruption_budget_statusJSON, "disruptedPods"); - if (disrupted_pods) { - cJSON *disrupted_pods_local_map = NULL; - if(!cJSON_IsObject(disrupted_pods) && !cJSON_IsNull(disrupted_pods)) - { - goto end;//primitive map container - } - if(cJSON_IsObject(disrupted_pods)) - { - disrupted_podsList = list_createList(); - keyValuePair_t *localMapKeyPair; - cJSON_ArrayForEach(disrupted_pods_local_map, disrupted_pods) - { - cJSON *localMapObject = disrupted_pods_local_map; - list_addElement(disrupted_podsList , localMapKeyPair); - } - } - } - - // v1beta1_pod_disruption_budget_status->disruptions_allowed - cJSON *disruptions_allowed = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_disruption_budget_statusJSON, "disruptionsAllowed"); - if (!disruptions_allowed) { - goto end; - } - - - if(!cJSON_IsNumber(disruptions_allowed)) - { - goto end; //Numeric - } - - // v1beta1_pod_disruption_budget_status->expected_pods - cJSON *expected_pods = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_disruption_budget_statusJSON, "expectedPods"); - if (!expected_pods) { - goto end; - } - - - if(!cJSON_IsNumber(expected_pods)) - { - goto end; //Numeric - } - - // v1beta1_pod_disruption_budget_status->observed_generation - cJSON *observed_generation = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_disruption_budget_statusJSON, "observedGeneration"); - if (observed_generation) { - if(!cJSON_IsNumber(observed_generation)) - { - goto end; //Numeric - } - } - - - v1beta1_pod_disruption_budget_status_local_var = v1beta1_pod_disruption_budget_status_create ( - conditions ? conditionsList : NULL, - current_healthy->valuedouble, - desired_healthy->valuedouble, - disrupted_pods ? disrupted_podsList : NULL, - disruptions_allowed->valuedouble, - expected_pods->valuedouble, - observed_generation ? observed_generation->valuedouble : 0 - ); - - return v1beta1_pod_disruption_budget_status_local_var; -end: - if (conditionsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, conditionsList) { - v1_condition_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(conditionsList); - conditionsList = NULL; - } - if (disrupted_podsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, disrupted_podsList) { - keyValuePair_t *localKeyValue = (keyValuePair_t*) listEntry->data; - free(localKeyValue->key); - localKeyValue->key = NULL; - keyValuePair_free(localKeyValue); - localKeyValue = NULL; - } - list_freeList(disrupted_podsList); - disrupted_podsList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_pod_disruption_budget_status.h b/kubernetes/model/v1beta1_pod_disruption_budget_status.h deleted file mode 100644 index 2f8ee2d..0000000 --- a/kubernetes/model/v1beta1_pod_disruption_budget_status.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * v1beta1_pod_disruption_budget_status.h - * - * PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system. - */ - -#ifndef _v1beta1_pod_disruption_budget_status_H_ -#define _v1beta1_pod_disruption_budget_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_pod_disruption_budget_status_t v1beta1_pod_disruption_budget_status_t; - -#include "v1_condition.h" - - - -typedef struct v1beta1_pod_disruption_budget_status_t { - list_t *conditions; //nonprimitive container - int current_healthy; //numeric - int desired_healthy; //numeric - list_t* disrupted_pods; //map - int disruptions_allowed; //numeric - int expected_pods; //numeric - long observed_generation; //numeric - -} v1beta1_pod_disruption_budget_status_t; - -v1beta1_pod_disruption_budget_status_t *v1beta1_pod_disruption_budget_status_create( - list_t *conditions, - int current_healthy, - int desired_healthy, - list_t* disrupted_pods, - int disruptions_allowed, - int expected_pods, - long observed_generation -); - -void v1beta1_pod_disruption_budget_status_free(v1beta1_pod_disruption_budget_status_t *v1beta1_pod_disruption_budget_status); - -v1beta1_pod_disruption_budget_status_t *v1beta1_pod_disruption_budget_status_parseFromJSON(cJSON *v1beta1_pod_disruption_budget_statusJSON); - -cJSON *v1beta1_pod_disruption_budget_status_convertToJSON(v1beta1_pod_disruption_budget_status_t *v1beta1_pod_disruption_budget_status); - -#endif /* _v1beta1_pod_disruption_budget_status_H_ */ - diff --git a/kubernetes/model/v1beta1_pod_security_policy.c b/kubernetes/model/v1beta1_pod_security_policy.c deleted file mode 100644 index 04f0d5f..0000000 --- a/kubernetes/model/v1beta1_pod_security_policy.c +++ /dev/null @@ -1,163 +0,0 @@ -#include -#include -#include -#include "v1beta1_pod_security_policy.h" - - - -v1beta1_pod_security_policy_t *v1beta1_pod_security_policy_create( - char *api_version, - char *kind, - v1_object_meta_t *metadata, - v1beta1_pod_security_policy_spec_t *spec - ) { - v1beta1_pod_security_policy_t *v1beta1_pod_security_policy_local_var = malloc(sizeof(v1beta1_pod_security_policy_t)); - if (!v1beta1_pod_security_policy_local_var) { - return NULL; - } - v1beta1_pod_security_policy_local_var->api_version = api_version; - v1beta1_pod_security_policy_local_var->kind = kind; - v1beta1_pod_security_policy_local_var->metadata = metadata; - v1beta1_pod_security_policy_local_var->spec = spec; - - return v1beta1_pod_security_policy_local_var; -} - - -void v1beta1_pod_security_policy_free(v1beta1_pod_security_policy_t *v1beta1_pod_security_policy) { - if(NULL == v1beta1_pod_security_policy){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_pod_security_policy->api_version) { - free(v1beta1_pod_security_policy->api_version); - v1beta1_pod_security_policy->api_version = NULL; - } - if (v1beta1_pod_security_policy->kind) { - free(v1beta1_pod_security_policy->kind); - v1beta1_pod_security_policy->kind = NULL; - } - if (v1beta1_pod_security_policy->metadata) { - v1_object_meta_free(v1beta1_pod_security_policy->metadata); - v1beta1_pod_security_policy->metadata = NULL; - } - if (v1beta1_pod_security_policy->spec) { - v1beta1_pod_security_policy_spec_free(v1beta1_pod_security_policy->spec); - v1beta1_pod_security_policy->spec = NULL; - } - free(v1beta1_pod_security_policy); -} - -cJSON *v1beta1_pod_security_policy_convertToJSON(v1beta1_pod_security_policy_t *v1beta1_pod_security_policy) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_pod_security_policy->api_version - if(v1beta1_pod_security_policy->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v1beta1_pod_security_policy->api_version) == NULL) { - goto fail; //String - } - } - - - // v1beta1_pod_security_policy->kind - if(v1beta1_pod_security_policy->kind) { - if(cJSON_AddStringToObject(item, "kind", v1beta1_pod_security_policy->kind) == NULL) { - goto fail; //String - } - } - - - // v1beta1_pod_security_policy->metadata - if(v1beta1_pod_security_policy->metadata) { - cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1beta1_pod_security_policy->metadata); - if(metadata_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_pod_security_policy->spec - if(v1beta1_pod_security_policy->spec) { - cJSON *spec_local_JSON = v1beta1_pod_security_policy_spec_convertToJSON(v1beta1_pod_security_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; -} - -v1beta1_pod_security_policy_t *v1beta1_pod_security_policy_parseFromJSON(cJSON *v1beta1_pod_security_policyJSON){ - - v1beta1_pod_security_policy_t *v1beta1_pod_security_policy_local_var = NULL; - - // define the local variable for v1beta1_pod_security_policy->metadata - v1_object_meta_t *metadata_local_nonprim = NULL; - - // define the local variable for v1beta1_pod_security_policy->spec - v1beta1_pod_security_policy_spec_t *spec_local_nonprim = NULL; - - // v1beta1_pod_security_policy->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policyJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version)) - { - goto end; //String - } - } - - // v1beta1_pod_security_policy->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policyJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind)) - { - goto end; //String - } - } - - // v1beta1_pod_security_policy->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policyJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive - } - - // v1beta1_pod_security_policy->spec - cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policyJSON, "spec"); - if (spec) { - spec_local_nonprim = v1beta1_pod_security_policy_spec_parseFromJSON(spec); //nonprimitive - } - - - v1beta1_pod_security_policy_local_var = v1beta1_pod_security_policy_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL, - spec ? spec_local_nonprim : NULL - ); - - return v1beta1_pod_security_policy_local_var; -end: - if (metadata_local_nonprim) { - v1_object_meta_free(metadata_local_nonprim); - metadata_local_nonprim = NULL; - } - if (spec_local_nonprim) { - v1beta1_pod_security_policy_spec_free(spec_local_nonprim); - spec_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_pod_security_policy.h b/kubernetes/model/v1beta1_pod_security_policy.h deleted file mode 100644 index f0160d4..0000000 --- a/kubernetes/model/v1beta1_pod_security_policy.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v1beta1_pod_security_policy.h - * - * PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated in 1.21. - */ - -#ifndef _v1beta1_pod_security_policy_H_ -#define _v1beta1_pod_security_policy_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_pod_security_policy_t v1beta1_pod_security_policy_t; - -#include "v1_object_meta.h" -#include "v1beta1_pod_security_policy_spec.h" - - - -typedef struct v1beta1_pod_security_policy_t { - char *api_version; // string - char *kind; // string - struct v1_object_meta_t *metadata; //model - struct v1beta1_pod_security_policy_spec_t *spec; //model - -} v1beta1_pod_security_policy_t; - -v1beta1_pod_security_policy_t *v1beta1_pod_security_policy_create( - char *api_version, - char *kind, - v1_object_meta_t *metadata, - v1beta1_pod_security_policy_spec_t *spec -); - -void v1beta1_pod_security_policy_free(v1beta1_pod_security_policy_t *v1beta1_pod_security_policy); - -v1beta1_pod_security_policy_t *v1beta1_pod_security_policy_parseFromJSON(cJSON *v1beta1_pod_security_policyJSON); - -cJSON *v1beta1_pod_security_policy_convertToJSON(v1beta1_pod_security_policy_t *v1beta1_pod_security_policy); - -#endif /* _v1beta1_pod_security_policy_H_ */ - diff --git a/kubernetes/model/v1beta1_pod_security_policy_list.c b/kubernetes/model/v1beta1_pod_security_policy_list.c deleted file mode 100644 index fec7206..0000000 --- a/kubernetes/model/v1beta1_pod_security_policy_list.c +++ /dev/null @@ -1,197 +0,0 @@ -#include -#include -#include -#include "v1beta1_pod_security_policy_list.h" - - - -v1beta1_pod_security_policy_list_t *v1beta1_pod_security_policy_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata - ) { - v1beta1_pod_security_policy_list_t *v1beta1_pod_security_policy_list_local_var = malloc(sizeof(v1beta1_pod_security_policy_list_t)); - if (!v1beta1_pod_security_policy_list_local_var) { - return NULL; - } - v1beta1_pod_security_policy_list_local_var->api_version = api_version; - v1beta1_pod_security_policy_list_local_var->items = items; - v1beta1_pod_security_policy_list_local_var->kind = kind; - v1beta1_pod_security_policy_list_local_var->metadata = metadata; - - return v1beta1_pod_security_policy_list_local_var; -} - - -void v1beta1_pod_security_policy_list_free(v1beta1_pod_security_policy_list_t *v1beta1_pod_security_policy_list) { - if(NULL == v1beta1_pod_security_policy_list){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_pod_security_policy_list->api_version) { - free(v1beta1_pod_security_policy_list->api_version); - v1beta1_pod_security_policy_list->api_version = NULL; - } - if (v1beta1_pod_security_policy_list->items) { - list_ForEach(listEntry, v1beta1_pod_security_policy_list->items) { - v1beta1_pod_security_policy_free(listEntry->data); - } - list_freeList(v1beta1_pod_security_policy_list->items); - v1beta1_pod_security_policy_list->items = NULL; - } - if (v1beta1_pod_security_policy_list->kind) { - free(v1beta1_pod_security_policy_list->kind); - v1beta1_pod_security_policy_list->kind = NULL; - } - if (v1beta1_pod_security_policy_list->metadata) { - v1_list_meta_free(v1beta1_pod_security_policy_list->metadata); - v1beta1_pod_security_policy_list->metadata = NULL; - } - free(v1beta1_pod_security_policy_list); -} - -cJSON *v1beta1_pod_security_policy_list_convertToJSON(v1beta1_pod_security_policy_list_t *v1beta1_pod_security_policy_list) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_pod_security_policy_list->api_version - if(v1beta1_pod_security_policy_list->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v1beta1_pod_security_policy_list->api_version) == NULL) { - goto fail; //String - } - } - - - // v1beta1_pod_security_policy_list->items - if (!v1beta1_pod_security_policy_list->items) { - goto fail; - } - cJSON *items = cJSON_AddArrayToObject(item, "items"); - if(items == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *itemsListEntry; - if (v1beta1_pod_security_policy_list->items) { - list_ForEach(itemsListEntry, v1beta1_pod_security_policy_list->items) { - cJSON *itemLocal = v1beta1_pod_security_policy_convertToJSON(itemsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(items, itemLocal); - } - } - - - // v1beta1_pod_security_policy_list->kind - if(v1beta1_pod_security_policy_list->kind) { - if(cJSON_AddStringToObject(item, "kind", v1beta1_pod_security_policy_list->kind) == NULL) { - goto fail; //String - } - } - - - // v1beta1_pod_security_policy_list->metadata - if(v1beta1_pod_security_policy_list->metadata) { - cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1beta1_pod_security_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; -} - -v1beta1_pod_security_policy_list_t *v1beta1_pod_security_policy_list_parseFromJSON(cJSON *v1beta1_pod_security_policy_listJSON){ - - v1beta1_pod_security_policy_list_t *v1beta1_pod_security_policy_list_local_var = NULL; - - // define the local list for v1beta1_pod_security_policy_list->items - list_t *itemsList = NULL; - - // define the local variable for v1beta1_pod_security_policy_list->metadata - v1_list_meta_t *metadata_local_nonprim = NULL; - - // v1beta1_pod_security_policy_list->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_listJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version)) - { - goto end; //String - } - } - - // v1beta1_pod_security_policy_list->items - cJSON *items = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_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_pod_security_policy_t *itemsItem = v1beta1_pod_security_policy_parseFromJSON(items_local_nonprimitive); - - list_addElement(itemsList, itemsItem); - } - - // v1beta1_pod_security_policy_list->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_listJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind)) - { - goto end; //String - } - } - - // v1beta1_pod_security_policy_list->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_listJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive - } - - - v1beta1_pod_security_policy_list_local_var = v1beta1_pod_security_policy_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, - itemsList, - kind ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL - ); - - return v1beta1_pod_security_policy_list_local_var; -end: - if (itemsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, itemsList) { - v1beta1_pod_security_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/v1beta1_pod_security_policy_list.h b/kubernetes/model/v1beta1_pod_security_policy_list.h deleted file mode 100644 index 9badbe3..0000000 --- a/kubernetes/model/v1beta1_pod_security_policy_list.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v1beta1_pod_security_policy_list.h - * - * PodSecurityPolicyList is a list of PodSecurityPolicy objects. - */ - -#ifndef _v1beta1_pod_security_policy_list_H_ -#define _v1beta1_pod_security_policy_list_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_pod_security_policy_list_t v1beta1_pod_security_policy_list_t; - -#include "v1_list_meta.h" -#include "v1beta1_pod_security_policy.h" - - - -typedef struct v1beta1_pod_security_policy_list_t { - char *api_version; // string - list_t *items; //nonprimitive container - char *kind; // string - struct v1_list_meta_t *metadata; //model - -} v1beta1_pod_security_policy_list_t; - -v1beta1_pod_security_policy_list_t *v1beta1_pod_security_policy_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata -); - -void v1beta1_pod_security_policy_list_free(v1beta1_pod_security_policy_list_t *v1beta1_pod_security_policy_list); - -v1beta1_pod_security_policy_list_t *v1beta1_pod_security_policy_list_parseFromJSON(cJSON *v1beta1_pod_security_policy_listJSON); - -cJSON *v1beta1_pod_security_policy_list_convertToJSON(v1beta1_pod_security_policy_list_t *v1beta1_pod_security_policy_list); - -#endif /* _v1beta1_pod_security_policy_list_H_ */ - diff --git a/kubernetes/model/v1beta1_pod_security_policy_spec.c b/kubernetes/model/v1beta1_pod_security_policy_spec.c deleted file mode 100644 index 782848f..0000000 --- a/kubernetes/model/v1beta1_pod_security_policy_spec.c +++ /dev/null @@ -1,1061 +0,0 @@ -#include -#include -#include -#include "v1beta1_pod_security_policy_spec.h" - - - -v1beta1_pod_security_policy_spec_t *v1beta1_pod_security_policy_spec_create( - int allow_privilege_escalation, - list_t *allowed_csi_drivers, - list_t *allowed_capabilities, - list_t *allowed_flex_volumes, - list_t *allowed_host_paths, - list_t *allowed_proc_mount_types, - list_t *allowed_unsafe_sysctls, - list_t *default_add_capabilities, - int default_allow_privilege_escalation, - list_t *forbidden_sysctls, - v1beta1_fs_group_strategy_options_t *fs_group, - int host_ipc, - int host_network, - int host_pid, - list_t *host_ports, - int privileged, - int read_only_root_filesystem, - list_t *required_drop_capabilities, - v1beta1_run_as_group_strategy_options_t *run_as_group, - v1beta1_run_as_user_strategy_options_t *run_as_user, - v1beta1_runtime_class_strategy_options_t *runtime_class, - v1beta1_se_linux_strategy_options_t *se_linux, - v1beta1_supplemental_groups_strategy_options_t *supplemental_groups, - list_t *volumes - ) { - v1beta1_pod_security_policy_spec_t *v1beta1_pod_security_policy_spec_local_var = malloc(sizeof(v1beta1_pod_security_policy_spec_t)); - if (!v1beta1_pod_security_policy_spec_local_var) { - return NULL; - } - v1beta1_pod_security_policy_spec_local_var->allow_privilege_escalation = allow_privilege_escalation; - v1beta1_pod_security_policy_spec_local_var->allowed_csi_drivers = allowed_csi_drivers; - v1beta1_pod_security_policy_spec_local_var->allowed_capabilities = allowed_capabilities; - v1beta1_pod_security_policy_spec_local_var->allowed_flex_volumes = allowed_flex_volumes; - v1beta1_pod_security_policy_spec_local_var->allowed_host_paths = allowed_host_paths; - v1beta1_pod_security_policy_spec_local_var->allowed_proc_mount_types = allowed_proc_mount_types; - v1beta1_pod_security_policy_spec_local_var->allowed_unsafe_sysctls = allowed_unsafe_sysctls; - v1beta1_pod_security_policy_spec_local_var->default_add_capabilities = default_add_capabilities; - v1beta1_pod_security_policy_spec_local_var->default_allow_privilege_escalation = default_allow_privilege_escalation; - v1beta1_pod_security_policy_spec_local_var->forbidden_sysctls = forbidden_sysctls; - v1beta1_pod_security_policy_spec_local_var->fs_group = fs_group; - v1beta1_pod_security_policy_spec_local_var->host_ipc = host_ipc; - v1beta1_pod_security_policy_spec_local_var->host_network = host_network; - v1beta1_pod_security_policy_spec_local_var->host_pid = host_pid; - v1beta1_pod_security_policy_spec_local_var->host_ports = host_ports; - v1beta1_pod_security_policy_spec_local_var->privileged = privileged; - v1beta1_pod_security_policy_spec_local_var->read_only_root_filesystem = read_only_root_filesystem; - v1beta1_pod_security_policy_spec_local_var->required_drop_capabilities = required_drop_capabilities; - v1beta1_pod_security_policy_spec_local_var->run_as_group = run_as_group; - v1beta1_pod_security_policy_spec_local_var->run_as_user = run_as_user; - v1beta1_pod_security_policy_spec_local_var->runtime_class = runtime_class; - v1beta1_pod_security_policy_spec_local_var->se_linux = se_linux; - v1beta1_pod_security_policy_spec_local_var->supplemental_groups = supplemental_groups; - v1beta1_pod_security_policy_spec_local_var->volumes = volumes; - - return v1beta1_pod_security_policy_spec_local_var; -} - - -void v1beta1_pod_security_policy_spec_free(v1beta1_pod_security_policy_spec_t *v1beta1_pod_security_policy_spec) { - if(NULL == v1beta1_pod_security_policy_spec){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_pod_security_policy_spec->allowed_csi_drivers) { - list_ForEach(listEntry, v1beta1_pod_security_policy_spec->allowed_csi_drivers) { - v1beta1_allowed_csi_driver_free(listEntry->data); - } - list_freeList(v1beta1_pod_security_policy_spec->allowed_csi_drivers); - v1beta1_pod_security_policy_spec->allowed_csi_drivers = NULL; - } - if (v1beta1_pod_security_policy_spec->allowed_capabilities) { - list_ForEach(listEntry, v1beta1_pod_security_policy_spec->allowed_capabilities) { - free(listEntry->data); - } - list_freeList(v1beta1_pod_security_policy_spec->allowed_capabilities); - v1beta1_pod_security_policy_spec->allowed_capabilities = NULL; - } - if (v1beta1_pod_security_policy_spec->allowed_flex_volumes) { - list_ForEach(listEntry, v1beta1_pod_security_policy_spec->allowed_flex_volumes) { - v1beta1_allowed_flex_volume_free(listEntry->data); - } - list_freeList(v1beta1_pod_security_policy_spec->allowed_flex_volumes); - v1beta1_pod_security_policy_spec->allowed_flex_volumes = NULL; - } - if (v1beta1_pod_security_policy_spec->allowed_host_paths) { - list_ForEach(listEntry, v1beta1_pod_security_policy_spec->allowed_host_paths) { - v1beta1_allowed_host_path_free(listEntry->data); - } - list_freeList(v1beta1_pod_security_policy_spec->allowed_host_paths); - v1beta1_pod_security_policy_spec->allowed_host_paths = NULL; - } - if (v1beta1_pod_security_policy_spec->allowed_proc_mount_types) { - list_ForEach(listEntry, v1beta1_pod_security_policy_spec->allowed_proc_mount_types) { - free(listEntry->data); - } - list_freeList(v1beta1_pod_security_policy_spec->allowed_proc_mount_types); - v1beta1_pod_security_policy_spec->allowed_proc_mount_types = NULL; - } - if (v1beta1_pod_security_policy_spec->allowed_unsafe_sysctls) { - list_ForEach(listEntry, v1beta1_pod_security_policy_spec->allowed_unsafe_sysctls) { - free(listEntry->data); - } - list_freeList(v1beta1_pod_security_policy_spec->allowed_unsafe_sysctls); - v1beta1_pod_security_policy_spec->allowed_unsafe_sysctls = NULL; - } - if (v1beta1_pod_security_policy_spec->default_add_capabilities) { - list_ForEach(listEntry, v1beta1_pod_security_policy_spec->default_add_capabilities) { - free(listEntry->data); - } - list_freeList(v1beta1_pod_security_policy_spec->default_add_capabilities); - v1beta1_pod_security_policy_spec->default_add_capabilities = NULL; - } - if (v1beta1_pod_security_policy_spec->forbidden_sysctls) { - list_ForEach(listEntry, v1beta1_pod_security_policy_spec->forbidden_sysctls) { - free(listEntry->data); - } - list_freeList(v1beta1_pod_security_policy_spec->forbidden_sysctls); - v1beta1_pod_security_policy_spec->forbidden_sysctls = NULL; - } - if (v1beta1_pod_security_policy_spec->fs_group) { - v1beta1_fs_group_strategy_options_free(v1beta1_pod_security_policy_spec->fs_group); - v1beta1_pod_security_policy_spec->fs_group = NULL; - } - if (v1beta1_pod_security_policy_spec->host_ports) { - list_ForEach(listEntry, v1beta1_pod_security_policy_spec->host_ports) { - v1beta1_host_port_range_free(listEntry->data); - } - list_freeList(v1beta1_pod_security_policy_spec->host_ports); - v1beta1_pod_security_policy_spec->host_ports = NULL; - } - if (v1beta1_pod_security_policy_spec->required_drop_capabilities) { - list_ForEach(listEntry, v1beta1_pod_security_policy_spec->required_drop_capabilities) { - free(listEntry->data); - } - list_freeList(v1beta1_pod_security_policy_spec->required_drop_capabilities); - v1beta1_pod_security_policy_spec->required_drop_capabilities = NULL; - } - if (v1beta1_pod_security_policy_spec->run_as_group) { - v1beta1_run_as_group_strategy_options_free(v1beta1_pod_security_policy_spec->run_as_group); - v1beta1_pod_security_policy_spec->run_as_group = NULL; - } - if (v1beta1_pod_security_policy_spec->run_as_user) { - v1beta1_run_as_user_strategy_options_free(v1beta1_pod_security_policy_spec->run_as_user); - v1beta1_pod_security_policy_spec->run_as_user = NULL; - } - if (v1beta1_pod_security_policy_spec->runtime_class) { - v1beta1_runtime_class_strategy_options_free(v1beta1_pod_security_policy_spec->runtime_class); - v1beta1_pod_security_policy_spec->runtime_class = NULL; - } - if (v1beta1_pod_security_policy_spec->se_linux) { - v1beta1_se_linux_strategy_options_free(v1beta1_pod_security_policy_spec->se_linux); - v1beta1_pod_security_policy_spec->se_linux = NULL; - } - if (v1beta1_pod_security_policy_spec->supplemental_groups) { - v1beta1_supplemental_groups_strategy_options_free(v1beta1_pod_security_policy_spec->supplemental_groups); - v1beta1_pod_security_policy_spec->supplemental_groups = NULL; - } - if (v1beta1_pod_security_policy_spec->volumes) { - list_ForEach(listEntry, v1beta1_pod_security_policy_spec->volumes) { - free(listEntry->data); - } - list_freeList(v1beta1_pod_security_policy_spec->volumes); - v1beta1_pod_security_policy_spec->volumes = NULL; - } - free(v1beta1_pod_security_policy_spec); -} - -cJSON *v1beta1_pod_security_policy_spec_convertToJSON(v1beta1_pod_security_policy_spec_t *v1beta1_pod_security_policy_spec) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_pod_security_policy_spec->allow_privilege_escalation - if(v1beta1_pod_security_policy_spec->allow_privilege_escalation) { - if(cJSON_AddBoolToObject(item, "allowPrivilegeEscalation", v1beta1_pod_security_policy_spec->allow_privilege_escalation) == NULL) { - goto fail; //Bool - } - } - - - // v1beta1_pod_security_policy_spec->allowed_csi_drivers - if(v1beta1_pod_security_policy_spec->allowed_csi_drivers) { - cJSON *allowed_csi_drivers = cJSON_AddArrayToObject(item, "allowedCSIDrivers"); - if(allowed_csi_drivers == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *allowed_csi_driversListEntry; - if (v1beta1_pod_security_policy_spec->allowed_csi_drivers) { - list_ForEach(allowed_csi_driversListEntry, v1beta1_pod_security_policy_spec->allowed_csi_drivers) { - cJSON *itemLocal = v1beta1_allowed_csi_driver_convertToJSON(allowed_csi_driversListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(allowed_csi_drivers, itemLocal); - } - } - } - - - // v1beta1_pod_security_policy_spec->allowed_capabilities - if(v1beta1_pod_security_policy_spec->allowed_capabilities) { - cJSON *allowed_capabilities = cJSON_AddArrayToObject(item, "allowedCapabilities"); - if(allowed_capabilities == NULL) { - goto fail; //primitive container - } - - listEntry_t *allowed_capabilitiesListEntry; - list_ForEach(allowed_capabilitiesListEntry, v1beta1_pod_security_policy_spec->allowed_capabilities) { - if(cJSON_AddStringToObject(allowed_capabilities, "", (char*)allowed_capabilitiesListEntry->data) == NULL) - { - goto fail; - } - } - } - - - // v1beta1_pod_security_policy_spec->allowed_flex_volumes - if(v1beta1_pod_security_policy_spec->allowed_flex_volumes) { - cJSON *allowed_flex_volumes = cJSON_AddArrayToObject(item, "allowedFlexVolumes"); - if(allowed_flex_volumes == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *allowed_flex_volumesListEntry; - if (v1beta1_pod_security_policy_spec->allowed_flex_volumes) { - list_ForEach(allowed_flex_volumesListEntry, v1beta1_pod_security_policy_spec->allowed_flex_volumes) { - cJSON *itemLocal = v1beta1_allowed_flex_volume_convertToJSON(allowed_flex_volumesListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(allowed_flex_volumes, itemLocal); - } - } - } - - - // v1beta1_pod_security_policy_spec->allowed_host_paths - if(v1beta1_pod_security_policy_spec->allowed_host_paths) { - cJSON *allowed_host_paths = cJSON_AddArrayToObject(item, "allowedHostPaths"); - if(allowed_host_paths == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *allowed_host_pathsListEntry; - if (v1beta1_pod_security_policy_spec->allowed_host_paths) { - list_ForEach(allowed_host_pathsListEntry, v1beta1_pod_security_policy_spec->allowed_host_paths) { - cJSON *itemLocal = v1beta1_allowed_host_path_convertToJSON(allowed_host_pathsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(allowed_host_paths, itemLocal); - } - } - } - - - // v1beta1_pod_security_policy_spec->allowed_proc_mount_types - if(v1beta1_pod_security_policy_spec->allowed_proc_mount_types) { - cJSON *allowed_proc_mount_types = cJSON_AddArrayToObject(item, "allowedProcMountTypes"); - if(allowed_proc_mount_types == NULL) { - goto fail; //primitive container - } - - listEntry_t *allowed_proc_mount_typesListEntry; - list_ForEach(allowed_proc_mount_typesListEntry, v1beta1_pod_security_policy_spec->allowed_proc_mount_types) { - if(cJSON_AddStringToObject(allowed_proc_mount_types, "", (char*)allowed_proc_mount_typesListEntry->data) == NULL) - { - goto fail; - } - } - } - - - // v1beta1_pod_security_policy_spec->allowed_unsafe_sysctls - if(v1beta1_pod_security_policy_spec->allowed_unsafe_sysctls) { - cJSON *allowed_unsafe_sysctls = cJSON_AddArrayToObject(item, "allowedUnsafeSysctls"); - if(allowed_unsafe_sysctls == NULL) { - goto fail; //primitive container - } - - listEntry_t *allowed_unsafe_sysctlsListEntry; - list_ForEach(allowed_unsafe_sysctlsListEntry, v1beta1_pod_security_policy_spec->allowed_unsafe_sysctls) { - if(cJSON_AddStringToObject(allowed_unsafe_sysctls, "", (char*)allowed_unsafe_sysctlsListEntry->data) == NULL) - { - goto fail; - } - } - } - - - // v1beta1_pod_security_policy_spec->default_add_capabilities - if(v1beta1_pod_security_policy_spec->default_add_capabilities) { - cJSON *default_add_capabilities = cJSON_AddArrayToObject(item, "defaultAddCapabilities"); - if(default_add_capabilities == NULL) { - goto fail; //primitive container - } - - listEntry_t *default_add_capabilitiesListEntry; - list_ForEach(default_add_capabilitiesListEntry, v1beta1_pod_security_policy_spec->default_add_capabilities) { - if(cJSON_AddStringToObject(default_add_capabilities, "", (char*)default_add_capabilitiesListEntry->data) == NULL) - { - goto fail; - } - } - } - - - // v1beta1_pod_security_policy_spec->default_allow_privilege_escalation - if(v1beta1_pod_security_policy_spec->default_allow_privilege_escalation) { - if(cJSON_AddBoolToObject(item, "defaultAllowPrivilegeEscalation", v1beta1_pod_security_policy_spec->default_allow_privilege_escalation) == NULL) { - goto fail; //Bool - } - } - - - // v1beta1_pod_security_policy_spec->forbidden_sysctls - if(v1beta1_pod_security_policy_spec->forbidden_sysctls) { - cJSON *forbidden_sysctls = cJSON_AddArrayToObject(item, "forbiddenSysctls"); - if(forbidden_sysctls == NULL) { - goto fail; //primitive container - } - - listEntry_t *forbidden_sysctlsListEntry; - list_ForEach(forbidden_sysctlsListEntry, v1beta1_pod_security_policy_spec->forbidden_sysctls) { - if(cJSON_AddStringToObject(forbidden_sysctls, "", (char*)forbidden_sysctlsListEntry->data) == NULL) - { - goto fail; - } - } - } - - - // v1beta1_pod_security_policy_spec->fs_group - if (!v1beta1_pod_security_policy_spec->fs_group) { - goto fail; - } - cJSON *fs_group_local_JSON = v1beta1_fs_group_strategy_options_convertToJSON(v1beta1_pod_security_policy_spec->fs_group); - if(fs_group_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "fsGroup", fs_group_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v1beta1_pod_security_policy_spec->host_ipc - if(v1beta1_pod_security_policy_spec->host_ipc) { - if(cJSON_AddBoolToObject(item, "hostIPC", v1beta1_pod_security_policy_spec->host_ipc) == NULL) { - goto fail; //Bool - } - } - - - // v1beta1_pod_security_policy_spec->host_network - if(v1beta1_pod_security_policy_spec->host_network) { - if(cJSON_AddBoolToObject(item, "hostNetwork", v1beta1_pod_security_policy_spec->host_network) == NULL) { - goto fail; //Bool - } - } - - - // v1beta1_pod_security_policy_spec->host_pid - if(v1beta1_pod_security_policy_spec->host_pid) { - if(cJSON_AddBoolToObject(item, "hostPID", v1beta1_pod_security_policy_spec->host_pid) == NULL) { - goto fail; //Bool - } - } - - - // v1beta1_pod_security_policy_spec->host_ports - if(v1beta1_pod_security_policy_spec->host_ports) { - cJSON *host_ports = cJSON_AddArrayToObject(item, "hostPorts"); - if(host_ports == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *host_portsListEntry; - if (v1beta1_pod_security_policy_spec->host_ports) { - list_ForEach(host_portsListEntry, v1beta1_pod_security_policy_spec->host_ports) { - cJSON *itemLocal = v1beta1_host_port_range_convertToJSON(host_portsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(host_ports, itemLocal); - } - } - } - - - // v1beta1_pod_security_policy_spec->privileged - if(v1beta1_pod_security_policy_spec->privileged) { - if(cJSON_AddBoolToObject(item, "privileged", v1beta1_pod_security_policy_spec->privileged) == NULL) { - goto fail; //Bool - } - } - - - // v1beta1_pod_security_policy_spec->read_only_root_filesystem - if(v1beta1_pod_security_policy_spec->read_only_root_filesystem) { - if(cJSON_AddBoolToObject(item, "readOnlyRootFilesystem", v1beta1_pod_security_policy_spec->read_only_root_filesystem) == NULL) { - goto fail; //Bool - } - } - - - // v1beta1_pod_security_policy_spec->required_drop_capabilities - if(v1beta1_pod_security_policy_spec->required_drop_capabilities) { - cJSON *required_drop_capabilities = cJSON_AddArrayToObject(item, "requiredDropCapabilities"); - if(required_drop_capabilities == NULL) { - goto fail; //primitive container - } - - listEntry_t *required_drop_capabilitiesListEntry; - list_ForEach(required_drop_capabilitiesListEntry, v1beta1_pod_security_policy_spec->required_drop_capabilities) { - if(cJSON_AddStringToObject(required_drop_capabilities, "", (char*)required_drop_capabilitiesListEntry->data) == NULL) - { - goto fail; - } - } - } - - - // v1beta1_pod_security_policy_spec->run_as_group - if(v1beta1_pod_security_policy_spec->run_as_group) { - cJSON *run_as_group_local_JSON = v1beta1_run_as_group_strategy_options_convertToJSON(v1beta1_pod_security_policy_spec->run_as_group); - if(run_as_group_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "runAsGroup", run_as_group_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_pod_security_policy_spec->run_as_user - if (!v1beta1_pod_security_policy_spec->run_as_user) { - goto fail; - } - cJSON *run_as_user_local_JSON = v1beta1_run_as_user_strategy_options_convertToJSON(v1beta1_pod_security_policy_spec->run_as_user); - if(run_as_user_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "runAsUser", run_as_user_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v1beta1_pod_security_policy_spec->runtime_class - if(v1beta1_pod_security_policy_spec->runtime_class) { - cJSON *runtime_class_local_JSON = v1beta1_runtime_class_strategy_options_convertToJSON(v1beta1_pod_security_policy_spec->runtime_class); - if(runtime_class_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "runtimeClass", runtime_class_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_pod_security_policy_spec->se_linux - if (!v1beta1_pod_security_policy_spec->se_linux) { - goto fail; - } - cJSON *se_linux_local_JSON = v1beta1_se_linux_strategy_options_convertToJSON(v1beta1_pod_security_policy_spec->se_linux); - if(se_linux_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "seLinux", se_linux_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v1beta1_pod_security_policy_spec->supplemental_groups - if (!v1beta1_pod_security_policy_spec->supplemental_groups) { - goto fail; - } - cJSON *supplemental_groups_local_JSON = v1beta1_supplemental_groups_strategy_options_convertToJSON(v1beta1_pod_security_policy_spec->supplemental_groups); - if(supplemental_groups_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "supplementalGroups", supplemental_groups_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v1beta1_pod_security_policy_spec->volumes - if(v1beta1_pod_security_policy_spec->volumes) { - cJSON *volumes = cJSON_AddArrayToObject(item, "volumes"); - if(volumes == NULL) { - goto fail; //primitive container - } - - listEntry_t *volumesListEntry; - list_ForEach(volumesListEntry, v1beta1_pod_security_policy_spec->volumes) { - if(cJSON_AddStringToObject(volumes, "", (char*)volumesListEntry->data) == NULL) - { - goto fail; - } - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_pod_security_policy_spec_t *v1beta1_pod_security_policy_spec_parseFromJSON(cJSON *v1beta1_pod_security_policy_specJSON){ - - v1beta1_pod_security_policy_spec_t *v1beta1_pod_security_policy_spec_local_var = NULL; - - // define the local list for v1beta1_pod_security_policy_spec->allowed_csi_drivers - list_t *allowed_csi_driversList = NULL; - - // define the local list for v1beta1_pod_security_policy_spec->allowed_capabilities - list_t *allowed_capabilitiesList = NULL; - - // define the local list for v1beta1_pod_security_policy_spec->allowed_flex_volumes - list_t *allowed_flex_volumesList = NULL; - - // define the local list for v1beta1_pod_security_policy_spec->allowed_host_paths - list_t *allowed_host_pathsList = NULL; - - // define the local list for v1beta1_pod_security_policy_spec->allowed_proc_mount_types - list_t *allowed_proc_mount_typesList = NULL; - - // define the local list for v1beta1_pod_security_policy_spec->allowed_unsafe_sysctls - list_t *allowed_unsafe_sysctlsList = NULL; - - // define the local list for v1beta1_pod_security_policy_spec->default_add_capabilities - list_t *default_add_capabilitiesList = NULL; - - // define the local list for v1beta1_pod_security_policy_spec->forbidden_sysctls - list_t *forbidden_sysctlsList = NULL; - - // define the local variable for v1beta1_pod_security_policy_spec->fs_group - v1beta1_fs_group_strategy_options_t *fs_group_local_nonprim = NULL; - - // define the local list for v1beta1_pod_security_policy_spec->host_ports - list_t *host_portsList = NULL; - - // define the local list for v1beta1_pod_security_policy_spec->required_drop_capabilities - list_t *required_drop_capabilitiesList = NULL; - - // define the local variable for v1beta1_pod_security_policy_spec->run_as_group - v1beta1_run_as_group_strategy_options_t *run_as_group_local_nonprim = NULL; - - // define the local variable for v1beta1_pod_security_policy_spec->run_as_user - v1beta1_run_as_user_strategy_options_t *run_as_user_local_nonprim = NULL; - - // define the local variable for v1beta1_pod_security_policy_spec->runtime_class - v1beta1_runtime_class_strategy_options_t *runtime_class_local_nonprim = NULL; - - // define the local variable for v1beta1_pod_security_policy_spec->se_linux - v1beta1_se_linux_strategy_options_t *se_linux_local_nonprim = NULL; - - // define the local variable for v1beta1_pod_security_policy_spec->supplemental_groups - v1beta1_supplemental_groups_strategy_options_t *supplemental_groups_local_nonprim = NULL; - - // define the local list for v1beta1_pod_security_policy_spec->volumes - list_t *volumesList = NULL; - - // v1beta1_pod_security_policy_spec->allow_privilege_escalation - cJSON *allow_privilege_escalation = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "allowPrivilegeEscalation"); - if (allow_privilege_escalation) { - if(!cJSON_IsBool(allow_privilege_escalation)) - { - goto end; //Bool - } - } - - // v1beta1_pod_security_policy_spec->allowed_csi_drivers - cJSON *allowed_csi_drivers = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "allowedCSIDrivers"); - if (allowed_csi_drivers) { - cJSON *allowed_csi_drivers_local_nonprimitive = NULL; - if(!cJSON_IsArray(allowed_csi_drivers)){ - goto end; //nonprimitive container - } - - allowed_csi_driversList = list_createList(); - - cJSON_ArrayForEach(allowed_csi_drivers_local_nonprimitive,allowed_csi_drivers ) - { - if(!cJSON_IsObject(allowed_csi_drivers_local_nonprimitive)){ - goto end; - } - v1beta1_allowed_csi_driver_t *allowed_csi_driversItem = v1beta1_allowed_csi_driver_parseFromJSON(allowed_csi_drivers_local_nonprimitive); - - list_addElement(allowed_csi_driversList, allowed_csi_driversItem); - } - } - - // v1beta1_pod_security_policy_spec->allowed_capabilities - cJSON *allowed_capabilities = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "allowedCapabilities"); - if (allowed_capabilities) { - cJSON *allowed_capabilities_local = NULL; - if(!cJSON_IsArray(allowed_capabilities)) { - goto end;//primitive container - } - allowed_capabilitiesList = list_createList(); - - cJSON_ArrayForEach(allowed_capabilities_local, allowed_capabilities) - { - if(!cJSON_IsString(allowed_capabilities_local)) - { - goto end; - } - list_addElement(allowed_capabilitiesList , strdup(allowed_capabilities_local->valuestring)); - } - } - - // v1beta1_pod_security_policy_spec->allowed_flex_volumes - cJSON *allowed_flex_volumes = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "allowedFlexVolumes"); - if (allowed_flex_volumes) { - cJSON *allowed_flex_volumes_local_nonprimitive = NULL; - if(!cJSON_IsArray(allowed_flex_volumes)){ - goto end; //nonprimitive container - } - - allowed_flex_volumesList = list_createList(); - - cJSON_ArrayForEach(allowed_flex_volumes_local_nonprimitive,allowed_flex_volumes ) - { - if(!cJSON_IsObject(allowed_flex_volumes_local_nonprimitive)){ - goto end; - } - v1beta1_allowed_flex_volume_t *allowed_flex_volumesItem = v1beta1_allowed_flex_volume_parseFromJSON(allowed_flex_volumes_local_nonprimitive); - - list_addElement(allowed_flex_volumesList, allowed_flex_volumesItem); - } - } - - // v1beta1_pod_security_policy_spec->allowed_host_paths - cJSON *allowed_host_paths = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "allowedHostPaths"); - if (allowed_host_paths) { - cJSON *allowed_host_paths_local_nonprimitive = NULL; - if(!cJSON_IsArray(allowed_host_paths)){ - goto end; //nonprimitive container - } - - allowed_host_pathsList = list_createList(); - - cJSON_ArrayForEach(allowed_host_paths_local_nonprimitive,allowed_host_paths ) - { - if(!cJSON_IsObject(allowed_host_paths_local_nonprimitive)){ - goto end; - } - v1beta1_allowed_host_path_t *allowed_host_pathsItem = v1beta1_allowed_host_path_parseFromJSON(allowed_host_paths_local_nonprimitive); - - list_addElement(allowed_host_pathsList, allowed_host_pathsItem); - } - } - - // v1beta1_pod_security_policy_spec->allowed_proc_mount_types - cJSON *allowed_proc_mount_types = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "allowedProcMountTypes"); - if (allowed_proc_mount_types) { - cJSON *allowed_proc_mount_types_local = NULL; - if(!cJSON_IsArray(allowed_proc_mount_types)) { - goto end;//primitive container - } - allowed_proc_mount_typesList = list_createList(); - - cJSON_ArrayForEach(allowed_proc_mount_types_local, allowed_proc_mount_types) - { - if(!cJSON_IsString(allowed_proc_mount_types_local)) - { - goto end; - } - list_addElement(allowed_proc_mount_typesList , strdup(allowed_proc_mount_types_local->valuestring)); - } - } - - // v1beta1_pod_security_policy_spec->allowed_unsafe_sysctls - cJSON *allowed_unsafe_sysctls = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "allowedUnsafeSysctls"); - if (allowed_unsafe_sysctls) { - cJSON *allowed_unsafe_sysctls_local = NULL; - if(!cJSON_IsArray(allowed_unsafe_sysctls)) { - goto end;//primitive container - } - allowed_unsafe_sysctlsList = list_createList(); - - cJSON_ArrayForEach(allowed_unsafe_sysctls_local, allowed_unsafe_sysctls) - { - if(!cJSON_IsString(allowed_unsafe_sysctls_local)) - { - goto end; - } - list_addElement(allowed_unsafe_sysctlsList , strdup(allowed_unsafe_sysctls_local->valuestring)); - } - } - - // v1beta1_pod_security_policy_spec->default_add_capabilities - cJSON *default_add_capabilities = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "defaultAddCapabilities"); - if (default_add_capabilities) { - cJSON *default_add_capabilities_local = NULL; - if(!cJSON_IsArray(default_add_capabilities)) { - goto end;//primitive container - } - default_add_capabilitiesList = list_createList(); - - cJSON_ArrayForEach(default_add_capabilities_local, default_add_capabilities) - { - if(!cJSON_IsString(default_add_capabilities_local)) - { - goto end; - } - list_addElement(default_add_capabilitiesList , strdup(default_add_capabilities_local->valuestring)); - } - } - - // v1beta1_pod_security_policy_spec->default_allow_privilege_escalation - cJSON *default_allow_privilege_escalation = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "defaultAllowPrivilegeEscalation"); - if (default_allow_privilege_escalation) { - if(!cJSON_IsBool(default_allow_privilege_escalation)) - { - goto end; //Bool - } - } - - // v1beta1_pod_security_policy_spec->forbidden_sysctls - cJSON *forbidden_sysctls = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "forbiddenSysctls"); - if (forbidden_sysctls) { - cJSON *forbidden_sysctls_local = NULL; - if(!cJSON_IsArray(forbidden_sysctls)) { - goto end;//primitive container - } - forbidden_sysctlsList = list_createList(); - - cJSON_ArrayForEach(forbidden_sysctls_local, forbidden_sysctls) - { - if(!cJSON_IsString(forbidden_sysctls_local)) - { - goto end; - } - list_addElement(forbidden_sysctlsList , strdup(forbidden_sysctls_local->valuestring)); - } - } - - // v1beta1_pod_security_policy_spec->fs_group - cJSON *fs_group = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "fsGroup"); - if (!fs_group) { - goto end; - } - - - fs_group_local_nonprim = v1beta1_fs_group_strategy_options_parseFromJSON(fs_group); //nonprimitive - - // v1beta1_pod_security_policy_spec->host_ipc - cJSON *host_ipc = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "hostIPC"); - if (host_ipc) { - if(!cJSON_IsBool(host_ipc)) - { - goto end; //Bool - } - } - - // v1beta1_pod_security_policy_spec->host_network - cJSON *host_network = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "hostNetwork"); - if (host_network) { - if(!cJSON_IsBool(host_network)) - { - goto end; //Bool - } - } - - // v1beta1_pod_security_policy_spec->host_pid - cJSON *host_pid = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "hostPID"); - if (host_pid) { - if(!cJSON_IsBool(host_pid)) - { - goto end; //Bool - } - } - - // v1beta1_pod_security_policy_spec->host_ports - cJSON *host_ports = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "hostPorts"); - if (host_ports) { - cJSON *host_ports_local_nonprimitive = NULL; - if(!cJSON_IsArray(host_ports)){ - goto end; //nonprimitive container - } - - host_portsList = list_createList(); - - cJSON_ArrayForEach(host_ports_local_nonprimitive,host_ports ) - { - if(!cJSON_IsObject(host_ports_local_nonprimitive)){ - goto end; - } - v1beta1_host_port_range_t *host_portsItem = v1beta1_host_port_range_parseFromJSON(host_ports_local_nonprimitive); - - list_addElement(host_portsList, host_portsItem); - } - } - - // v1beta1_pod_security_policy_spec->privileged - cJSON *privileged = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "privileged"); - if (privileged) { - if(!cJSON_IsBool(privileged)) - { - goto end; //Bool - } - } - - // v1beta1_pod_security_policy_spec->read_only_root_filesystem - cJSON *read_only_root_filesystem = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "readOnlyRootFilesystem"); - if (read_only_root_filesystem) { - if(!cJSON_IsBool(read_only_root_filesystem)) - { - goto end; //Bool - } - } - - // v1beta1_pod_security_policy_spec->required_drop_capabilities - cJSON *required_drop_capabilities = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "requiredDropCapabilities"); - if (required_drop_capabilities) { - cJSON *required_drop_capabilities_local = NULL; - if(!cJSON_IsArray(required_drop_capabilities)) { - goto end;//primitive container - } - required_drop_capabilitiesList = list_createList(); - - cJSON_ArrayForEach(required_drop_capabilities_local, required_drop_capabilities) - { - if(!cJSON_IsString(required_drop_capabilities_local)) - { - goto end; - } - list_addElement(required_drop_capabilitiesList , strdup(required_drop_capabilities_local->valuestring)); - } - } - - // v1beta1_pod_security_policy_spec->run_as_group - cJSON *run_as_group = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "runAsGroup"); - if (run_as_group) { - run_as_group_local_nonprim = v1beta1_run_as_group_strategy_options_parseFromJSON(run_as_group); //nonprimitive - } - - // v1beta1_pod_security_policy_spec->run_as_user - cJSON *run_as_user = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "runAsUser"); - if (!run_as_user) { - goto end; - } - - - run_as_user_local_nonprim = v1beta1_run_as_user_strategy_options_parseFromJSON(run_as_user); //nonprimitive - - // v1beta1_pod_security_policy_spec->runtime_class - cJSON *runtime_class = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "runtimeClass"); - if (runtime_class) { - runtime_class_local_nonprim = v1beta1_runtime_class_strategy_options_parseFromJSON(runtime_class); //nonprimitive - } - - // v1beta1_pod_security_policy_spec->se_linux - cJSON *se_linux = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "seLinux"); - if (!se_linux) { - goto end; - } - - - se_linux_local_nonprim = v1beta1_se_linux_strategy_options_parseFromJSON(se_linux); //nonprimitive - - // v1beta1_pod_security_policy_spec->supplemental_groups - cJSON *supplemental_groups = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "supplementalGroups"); - if (!supplemental_groups) { - goto end; - } - - - supplemental_groups_local_nonprim = v1beta1_supplemental_groups_strategy_options_parseFromJSON(supplemental_groups); //nonprimitive - - // v1beta1_pod_security_policy_spec->volumes - cJSON *volumes = cJSON_GetObjectItemCaseSensitive(v1beta1_pod_security_policy_specJSON, "volumes"); - if (volumes) { - cJSON *volumes_local = NULL; - if(!cJSON_IsArray(volumes)) { - goto end;//primitive container - } - volumesList = list_createList(); - - cJSON_ArrayForEach(volumes_local, volumes) - { - if(!cJSON_IsString(volumes_local)) - { - goto end; - } - list_addElement(volumesList , strdup(volumes_local->valuestring)); - } - } - - - v1beta1_pod_security_policy_spec_local_var = v1beta1_pod_security_policy_spec_create ( - allow_privilege_escalation ? allow_privilege_escalation->valueint : 0, - allowed_csi_drivers ? allowed_csi_driversList : NULL, - allowed_capabilities ? allowed_capabilitiesList : NULL, - allowed_flex_volumes ? allowed_flex_volumesList : NULL, - allowed_host_paths ? allowed_host_pathsList : NULL, - allowed_proc_mount_types ? allowed_proc_mount_typesList : NULL, - allowed_unsafe_sysctls ? allowed_unsafe_sysctlsList : NULL, - default_add_capabilities ? default_add_capabilitiesList : NULL, - default_allow_privilege_escalation ? default_allow_privilege_escalation->valueint : 0, - forbidden_sysctls ? forbidden_sysctlsList : NULL, - fs_group_local_nonprim, - host_ipc ? host_ipc->valueint : 0, - host_network ? host_network->valueint : 0, - host_pid ? host_pid->valueint : 0, - host_ports ? host_portsList : NULL, - privileged ? privileged->valueint : 0, - read_only_root_filesystem ? read_only_root_filesystem->valueint : 0, - required_drop_capabilities ? required_drop_capabilitiesList : NULL, - run_as_group ? run_as_group_local_nonprim : NULL, - run_as_user_local_nonprim, - runtime_class ? runtime_class_local_nonprim : NULL, - se_linux_local_nonprim, - supplemental_groups_local_nonprim, - volumes ? volumesList : NULL - ); - - return v1beta1_pod_security_policy_spec_local_var; -end: - if (allowed_csi_driversList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, allowed_csi_driversList) { - v1beta1_allowed_csi_driver_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(allowed_csi_driversList); - allowed_csi_driversList = NULL; - } - if (allowed_capabilitiesList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, allowed_capabilitiesList) { - free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(allowed_capabilitiesList); - allowed_capabilitiesList = NULL; - } - if (allowed_flex_volumesList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, allowed_flex_volumesList) { - v1beta1_allowed_flex_volume_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(allowed_flex_volumesList); - allowed_flex_volumesList = NULL; - } - if (allowed_host_pathsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, allowed_host_pathsList) { - v1beta1_allowed_host_path_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(allowed_host_pathsList); - allowed_host_pathsList = NULL; - } - if (allowed_proc_mount_typesList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, allowed_proc_mount_typesList) { - free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(allowed_proc_mount_typesList); - allowed_proc_mount_typesList = NULL; - } - if (allowed_unsafe_sysctlsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, allowed_unsafe_sysctlsList) { - free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(allowed_unsafe_sysctlsList); - allowed_unsafe_sysctlsList = NULL; - } - if (default_add_capabilitiesList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, default_add_capabilitiesList) { - free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(default_add_capabilitiesList); - default_add_capabilitiesList = NULL; - } - if (forbidden_sysctlsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, forbidden_sysctlsList) { - free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(forbidden_sysctlsList); - forbidden_sysctlsList = NULL; - } - if (fs_group_local_nonprim) { - v1beta1_fs_group_strategy_options_free(fs_group_local_nonprim); - fs_group_local_nonprim = NULL; - } - if (host_portsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, host_portsList) { - v1beta1_host_port_range_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(host_portsList); - host_portsList = NULL; - } - if (required_drop_capabilitiesList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, required_drop_capabilitiesList) { - free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(required_drop_capabilitiesList); - required_drop_capabilitiesList = NULL; - } - if (run_as_group_local_nonprim) { - v1beta1_run_as_group_strategy_options_free(run_as_group_local_nonprim); - run_as_group_local_nonprim = NULL; - } - if (run_as_user_local_nonprim) { - v1beta1_run_as_user_strategy_options_free(run_as_user_local_nonprim); - run_as_user_local_nonprim = NULL; - } - if (runtime_class_local_nonprim) { - v1beta1_runtime_class_strategy_options_free(runtime_class_local_nonprim); - runtime_class_local_nonprim = NULL; - } - if (se_linux_local_nonprim) { - v1beta1_se_linux_strategy_options_free(se_linux_local_nonprim); - se_linux_local_nonprim = NULL; - } - if (supplemental_groups_local_nonprim) { - v1beta1_supplemental_groups_strategy_options_free(supplemental_groups_local_nonprim); - supplemental_groups_local_nonprim = NULL; - } - if (volumesList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, volumesList) { - free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(volumesList); - volumesList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_pod_security_policy_spec.h b/kubernetes/model/v1beta1_pod_security_policy_spec.h deleted file mode 100644 index bbe1768..0000000 --- a/kubernetes/model/v1beta1_pod_security_policy_spec.h +++ /dev/null @@ -1,93 +0,0 @@ -/* - * v1beta1_pod_security_policy_spec.h - * - * PodSecurityPolicySpec defines the policy enforced. - */ - -#ifndef _v1beta1_pod_security_policy_spec_H_ -#define _v1beta1_pod_security_policy_spec_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_pod_security_policy_spec_t v1beta1_pod_security_policy_spec_t; - -#include "v1beta1_allowed_csi_driver.h" -#include "v1beta1_allowed_flex_volume.h" -#include "v1beta1_allowed_host_path.h" -#include "v1beta1_fs_group_strategy_options.h" -#include "v1beta1_host_port_range.h" -#include "v1beta1_run_as_group_strategy_options.h" -#include "v1beta1_run_as_user_strategy_options.h" -#include "v1beta1_runtime_class_strategy_options.h" -#include "v1beta1_se_linux_strategy_options.h" -#include "v1beta1_supplemental_groups_strategy_options.h" - - - -typedef struct v1beta1_pod_security_policy_spec_t { - int allow_privilege_escalation; //boolean - list_t *allowed_csi_drivers; //nonprimitive container - list_t *allowed_capabilities; //primitive container - list_t *allowed_flex_volumes; //nonprimitive container - list_t *allowed_host_paths; //nonprimitive container - list_t *allowed_proc_mount_types; //primitive container - list_t *allowed_unsafe_sysctls; //primitive container - list_t *default_add_capabilities; //primitive container - int default_allow_privilege_escalation; //boolean - list_t *forbidden_sysctls; //primitive container - struct v1beta1_fs_group_strategy_options_t *fs_group; //model - int host_ipc; //boolean - int host_network; //boolean - int host_pid; //boolean - list_t *host_ports; //nonprimitive container - int privileged; //boolean - int read_only_root_filesystem; //boolean - list_t *required_drop_capabilities; //primitive container - struct v1beta1_run_as_group_strategy_options_t *run_as_group; //model - struct v1beta1_run_as_user_strategy_options_t *run_as_user; //model - struct v1beta1_runtime_class_strategy_options_t *runtime_class; //model - struct v1beta1_se_linux_strategy_options_t *se_linux; //model - struct v1beta1_supplemental_groups_strategy_options_t *supplemental_groups; //model - list_t *volumes; //primitive container - -} v1beta1_pod_security_policy_spec_t; - -v1beta1_pod_security_policy_spec_t *v1beta1_pod_security_policy_spec_create( - int allow_privilege_escalation, - list_t *allowed_csi_drivers, - list_t *allowed_capabilities, - list_t *allowed_flex_volumes, - list_t *allowed_host_paths, - list_t *allowed_proc_mount_types, - list_t *allowed_unsafe_sysctls, - list_t *default_add_capabilities, - int default_allow_privilege_escalation, - list_t *forbidden_sysctls, - v1beta1_fs_group_strategy_options_t *fs_group, - int host_ipc, - int host_network, - int host_pid, - list_t *host_ports, - int privileged, - int read_only_root_filesystem, - list_t *required_drop_capabilities, - v1beta1_run_as_group_strategy_options_t *run_as_group, - v1beta1_run_as_user_strategy_options_t *run_as_user, - v1beta1_runtime_class_strategy_options_t *runtime_class, - v1beta1_se_linux_strategy_options_t *se_linux, - v1beta1_supplemental_groups_strategy_options_t *supplemental_groups, - list_t *volumes -); - -void v1beta1_pod_security_policy_spec_free(v1beta1_pod_security_policy_spec_t *v1beta1_pod_security_policy_spec); - -v1beta1_pod_security_policy_spec_t *v1beta1_pod_security_policy_spec_parseFromJSON(cJSON *v1beta1_pod_security_policy_specJSON); - -cJSON *v1beta1_pod_security_policy_spec_convertToJSON(v1beta1_pod_security_policy_spec_t *v1beta1_pod_security_policy_spec); - -#endif /* _v1beta1_pod_security_policy_spec_H_ */ - diff --git a/kubernetes/model/v1beta1_run_as_group_strategy_options.c b/kubernetes/model/v1beta1_run_as_group_strategy_options.c deleted file mode 100644 index 4c6fe09..0000000 --- a/kubernetes/model/v1beta1_run_as_group_strategy_options.c +++ /dev/null @@ -1,140 +0,0 @@ -#include -#include -#include -#include "v1beta1_run_as_group_strategy_options.h" - - - -v1beta1_run_as_group_strategy_options_t *v1beta1_run_as_group_strategy_options_create( - list_t *ranges, - char *rule - ) { - v1beta1_run_as_group_strategy_options_t *v1beta1_run_as_group_strategy_options_local_var = malloc(sizeof(v1beta1_run_as_group_strategy_options_t)); - if (!v1beta1_run_as_group_strategy_options_local_var) { - return NULL; - } - v1beta1_run_as_group_strategy_options_local_var->ranges = ranges; - v1beta1_run_as_group_strategy_options_local_var->rule = rule; - - return v1beta1_run_as_group_strategy_options_local_var; -} - - -void v1beta1_run_as_group_strategy_options_free(v1beta1_run_as_group_strategy_options_t *v1beta1_run_as_group_strategy_options) { - if(NULL == v1beta1_run_as_group_strategy_options){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_run_as_group_strategy_options->ranges) { - list_ForEach(listEntry, v1beta1_run_as_group_strategy_options->ranges) { - v1beta1_id_range_free(listEntry->data); - } - list_freeList(v1beta1_run_as_group_strategy_options->ranges); - v1beta1_run_as_group_strategy_options->ranges = NULL; - } - if (v1beta1_run_as_group_strategy_options->rule) { - free(v1beta1_run_as_group_strategy_options->rule); - v1beta1_run_as_group_strategy_options->rule = NULL; - } - free(v1beta1_run_as_group_strategy_options); -} - -cJSON *v1beta1_run_as_group_strategy_options_convertToJSON(v1beta1_run_as_group_strategy_options_t *v1beta1_run_as_group_strategy_options) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_run_as_group_strategy_options->ranges - if(v1beta1_run_as_group_strategy_options->ranges) { - cJSON *ranges = cJSON_AddArrayToObject(item, "ranges"); - if(ranges == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *rangesListEntry; - if (v1beta1_run_as_group_strategy_options->ranges) { - list_ForEach(rangesListEntry, v1beta1_run_as_group_strategy_options->ranges) { - cJSON *itemLocal = v1beta1_id_range_convertToJSON(rangesListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(ranges, itemLocal); - } - } - } - - - // v1beta1_run_as_group_strategy_options->rule - if (!v1beta1_run_as_group_strategy_options->rule) { - goto fail; - } - if(cJSON_AddStringToObject(item, "rule", v1beta1_run_as_group_strategy_options->rule) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_run_as_group_strategy_options_t *v1beta1_run_as_group_strategy_options_parseFromJSON(cJSON *v1beta1_run_as_group_strategy_optionsJSON){ - - v1beta1_run_as_group_strategy_options_t *v1beta1_run_as_group_strategy_options_local_var = NULL; - - // define the local list for v1beta1_run_as_group_strategy_options->ranges - list_t *rangesList = NULL; - - // v1beta1_run_as_group_strategy_options->ranges - cJSON *ranges = cJSON_GetObjectItemCaseSensitive(v1beta1_run_as_group_strategy_optionsJSON, "ranges"); - if (ranges) { - cJSON *ranges_local_nonprimitive = NULL; - if(!cJSON_IsArray(ranges)){ - goto end; //nonprimitive container - } - - rangesList = list_createList(); - - cJSON_ArrayForEach(ranges_local_nonprimitive,ranges ) - { - if(!cJSON_IsObject(ranges_local_nonprimitive)){ - goto end; - } - v1beta1_id_range_t *rangesItem = v1beta1_id_range_parseFromJSON(ranges_local_nonprimitive); - - list_addElement(rangesList, rangesItem); - } - } - - // v1beta1_run_as_group_strategy_options->rule - cJSON *rule = cJSON_GetObjectItemCaseSensitive(v1beta1_run_as_group_strategy_optionsJSON, "rule"); - if (!rule) { - goto end; - } - - - if(!cJSON_IsString(rule)) - { - goto end; //String - } - - - v1beta1_run_as_group_strategy_options_local_var = v1beta1_run_as_group_strategy_options_create ( - ranges ? rangesList : NULL, - strdup(rule->valuestring) - ); - - return v1beta1_run_as_group_strategy_options_local_var; -end: - if (rangesList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, rangesList) { - v1beta1_id_range_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(rangesList); - rangesList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_run_as_group_strategy_options.h b/kubernetes/model/v1beta1_run_as_group_strategy_options.h deleted file mode 100644 index 0753aa3..0000000 --- a/kubernetes/model/v1beta1_run_as_group_strategy_options.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * v1beta1_run_as_group_strategy_options.h - * - * RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy. - */ - -#ifndef _v1beta1_run_as_group_strategy_options_H_ -#define _v1beta1_run_as_group_strategy_options_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_run_as_group_strategy_options_t v1beta1_run_as_group_strategy_options_t; - -#include "v1beta1_id_range.h" - - - -typedef struct v1beta1_run_as_group_strategy_options_t { - list_t *ranges; //nonprimitive container - char *rule; // string - -} v1beta1_run_as_group_strategy_options_t; - -v1beta1_run_as_group_strategy_options_t *v1beta1_run_as_group_strategy_options_create( - list_t *ranges, - char *rule -); - -void v1beta1_run_as_group_strategy_options_free(v1beta1_run_as_group_strategy_options_t *v1beta1_run_as_group_strategy_options); - -v1beta1_run_as_group_strategy_options_t *v1beta1_run_as_group_strategy_options_parseFromJSON(cJSON *v1beta1_run_as_group_strategy_optionsJSON); - -cJSON *v1beta1_run_as_group_strategy_options_convertToJSON(v1beta1_run_as_group_strategy_options_t *v1beta1_run_as_group_strategy_options); - -#endif /* _v1beta1_run_as_group_strategy_options_H_ */ - diff --git a/kubernetes/model/v1beta1_run_as_user_strategy_options.c b/kubernetes/model/v1beta1_run_as_user_strategy_options.c deleted file mode 100644 index 342cec0..0000000 --- a/kubernetes/model/v1beta1_run_as_user_strategy_options.c +++ /dev/null @@ -1,140 +0,0 @@ -#include -#include -#include -#include "v1beta1_run_as_user_strategy_options.h" - - - -v1beta1_run_as_user_strategy_options_t *v1beta1_run_as_user_strategy_options_create( - list_t *ranges, - char *rule - ) { - v1beta1_run_as_user_strategy_options_t *v1beta1_run_as_user_strategy_options_local_var = malloc(sizeof(v1beta1_run_as_user_strategy_options_t)); - if (!v1beta1_run_as_user_strategy_options_local_var) { - return NULL; - } - v1beta1_run_as_user_strategy_options_local_var->ranges = ranges; - v1beta1_run_as_user_strategy_options_local_var->rule = rule; - - return v1beta1_run_as_user_strategy_options_local_var; -} - - -void v1beta1_run_as_user_strategy_options_free(v1beta1_run_as_user_strategy_options_t *v1beta1_run_as_user_strategy_options) { - if(NULL == v1beta1_run_as_user_strategy_options){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_run_as_user_strategy_options->ranges) { - list_ForEach(listEntry, v1beta1_run_as_user_strategy_options->ranges) { - v1beta1_id_range_free(listEntry->data); - } - list_freeList(v1beta1_run_as_user_strategy_options->ranges); - v1beta1_run_as_user_strategy_options->ranges = NULL; - } - if (v1beta1_run_as_user_strategy_options->rule) { - free(v1beta1_run_as_user_strategy_options->rule); - v1beta1_run_as_user_strategy_options->rule = NULL; - } - free(v1beta1_run_as_user_strategy_options); -} - -cJSON *v1beta1_run_as_user_strategy_options_convertToJSON(v1beta1_run_as_user_strategy_options_t *v1beta1_run_as_user_strategy_options) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_run_as_user_strategy_options->ranges - if(v1beta1_run_as_user_strategy_options->ranges) { - cJSON *ranges = cJSON_AddArrayToObject(item, "ranges"); - if(ranges == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *rangesListEntry; - if (v1beta1_run_as_user_strategy_options->ranges) { - list_ForEach(rangesListEntry, v1beta1_run_as_user_strategy_options->ranges) { - cJSON *itemLocal = v1beta1_id_range_convertToJSON(rangesListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(ranges, itemLocal); - } - } - } - - - // v1beta1_run_as_user_strategy_options->rule - if (!v1beta1_run_as_user_strategy_options->rule) { - goto fail; - } - if(cJSON_AddStringToObject(item, "rule", v1beta1_run_as_user_strategy_options->rule) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_run_as_user_strategy_options_t *v1beta1_run_as_user_strategy_options_parseFromJSON(cJSON *v1beta1_run_as_user_strategy_optionsJSON){ - - v1beta1_run_as_user_strategy_options_t *v1beta1_run_as_user_strategy_options_local_var = NULL; - - // define the local list for v1beta1_run_as_user_strategy_options->ranges - list_t *rangesList = NULL; - - // v1beta1_run_as_user_strategy_options->ranges - cJSON *ranges = cJSON_GetObjectItemCaseSensitive(v1beta1_run_as_user_strategy_optionsJSON, "ranges"); - if (ranges) { - cJSON *ranges_local_nonprimitive = NULL; - if(!cJSON_IsArray(ranges)){ - goto end; //nonprimitive container - } - - rangesList = list_createList(); - - cJSON_ArrayForEach(ranges_local_nonprimitive,ranges ) - { - if(!cJSON_IsObject(ranges_local_nonprimitive)){ - goto end; - } - v1beta1_id_range_t *rangesItem = v1beta1_id_range_parseFromJSON(ranges_local_nonprimitive); - - list_addElement(rangesList, rangesItem); - } - } - - // v1beta1_run_as_user_strategy_options->rule - cJSON *rule = cJSON_GetObjectItemCaseSensitive(v1beta1_run_as_user_strategy_optionsJSON, "rule"); - if (!rule) { - goto end; - } - - - if(!cJSON_IsString(rule)) - { - goto end; //String - } - - - v1beta1_run_as_user_strategy_options_local_var = v1beta1_run_as_user_strategy_options_create ( - ranges ? rangesList : NULL, - strdup(rule->valuestring) - ); - - return v1beta1_run_as_user_strategy_options_local_var; -end: - if (rangesList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, rangesList) { - v1beta1_id_range_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(rangesList); - rangesList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_run_as_user_strategy_options.h b/kubernetes/model/v1beta1_run_as_user_strategy_options.h deleted file mode 100644 index 6931c5a..0000000 --- a/kubernetes/model/v1beta1_run_as_user_strategy_options.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * v1beta1_run_as_user_strategy_options.h - * - * RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy. - */ - -#ifndef _v1beta1_run_as_user_strategy_options_H_ -#define _v1beta1_run_as_user_strategy_options_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_run_as_user_strategy_options_t v1beta1_run_as_user_strategy_options_t; - -#include "v1beta1_id_range.h" - - - -typedef struct v1beta1_run_as_user_strategy_options_t { - list_t *ranges; //nonprimitive container - char *rule; // string - -} v1beta1_run_as_user_strategy_options_t; - -v1beta1_run_as_user_strategy_options_t *v1beta1_run_as_user_strategy_options_create( - list_t *ranges, - char *rule -); - -void v1beta1_run_as_user_strategy_options_free(v1beta1_run_as_user_strategy_options_t *v1beta1_run_as_user_strategy_options); - -v1beta1_run_as_user_strategy_options_t *v1beta1_run_as_user_strategy_options_parseFromJSON(cJSON *v1beta1_run_as_user_strategy_optionsJSON); - -cJSON *v1beta1_run_as_user_strategy_options_convertToJSON(v1beta1_run_as_user_strategy_options_t *v1beta1_run_as_user_strategy_options); - -#endif /* _v1beta1_run_as_user_strategy_options_H_ */ - diff --git a/kubernetes/model/v1beta1_runtime_class.c b/kubernetes/model/v1beta1_runtime_class.c deleted file mode 100644 index 3d09844..0000000 --- a/kubernetes/model/v1beta1_runtime_class.c +++ /dev/null @@ -1,224 +0,0 @@ -#include -#include -#include -#include "v1beta1_runtime_class.h" - - - -v1beta1_runtime_class_t *v1beta1_runtime_class_create( - char *api_version, - char *handler, - char *kind, - v1_object_meta_t *metadata, - v1beta1_overhead_t *overhead, - v1beta1_scheduling_t *scheduling - ) { - v1beta1_runtime_class_t *v1beta1_runtime_class_local_var = malloc(sizeof(v1beta1_runtime_class_t)); - if (!v1beta1_runtime_class_local_var) { - return NULL; - } - v1beta1_runtime_class_local_var->api_version = api_version; - v1beta1_runtime_class_local_var->handler = handler; - v1beta1_runtime_class_local_var->kind = kind; - v1beta1_runtime_class_local_var->metadata = metadata; - v1beta1_runtime_class_local_var->overhead = overhead; - v1beta1_runtime_class_local_var->scheduling = scheduling; - - return v1beta1_runtime_class_local_var; -} - - -void v1beta1_runtime_class_free(v1beta1_runtime_class_t *v1beta1_runtime_class) { - if(NULL == v1beta1_runtime_class){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_runtime_class->api_version) { - free(v1beta1_runtime_class->api_version); - v1beta1_runtime_class->api_version = NULL; - } - if (v1beta1_runtime_class->handler) { - free(v1beta1_runtime_class->handler); - v1beta1_runtime_class->handler = NULL; - } - if (v1beta1_runtime_class->kind) { - free(v1beta1_runtime_class->kind); - v1beta1_runtime_class->kind = NULL; - } - if (v1beta1_runtime_class->metadata) { - v1_object_meta_free(v1beta1_runtime_class->metadata); - v1beta1_runtime_class->metadata = NULL; - } - if (v1beta1_runtime_class->overhead) { - v1beta1_overhead_free(v1beta1_runtime_class->overhead); - v1beta1_runtime_class->overhead = NULL; - } - if (v1beta1_runtime_class->scheduling) { - v1beta1_scheduling_free(v1beta1_runtime_class->scheduling); - v1beta1_runtime_class->scheduling = NULL; - } - free(v1beta1_runtime_class); -} - -cJSON *v1beta1_runtime_class_convertToJSON(v1beta1_runtime_class_t *v1beta1_runtime_class) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_runtime_class->api_version - if(v1beta1_runtime_class->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v1beta1_runtime_class->api_version) == NULL) { - goto fail; //String - } - } - - - // v1beta1_runtime_class->handler - if (!v1beta1_runtime_class->handler) { - goto fail; - } - if(cJSON_AddStringToObject(item, "handler", v1beta1_runtime_class->handler) == NULL) { - goto fail; //String - } - - - // v1beta1_runtime_class->kind - if(v1beta1_runtime_class->kind) { - if(cJSON_AddStringToObject(item, "kind", v1beta1_runtime_class->kind) == NULL) { - goto fail; //String - } - } - - - // v1beta1_runtime_class->metadata - if(v1beta1_runtime_class->metadata) { - cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1beta1_runtime_class->metadata); - if(metadata_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_runtime_class->overhead - if(v1beta1_runtime_class->overhead) { - cJSON *overhead_local_JSON = v1beta1_overhead_convertToJSON(v1beta1_runtime_class->overhead); - if(overhead_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "overhead", overhead_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_runtime_class->scheduling - if(v1beta1_runtime_class->scheduling) { - cJSON *scheduling_local_JSON = v1beta1_scheduling_convertToJSON(v1beta1_runtime_class->scheduling); - if(scheduling_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "scheduling", scheduling_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_runtime_class_t *v1beta1_runtime_class_parseFromJSON(cJSON *v1beta1_runtime_classJSON){ - - v1beta1_runtime_class_t *v1beta1_runtime_class_local_var = NULL; - - // define the local variable for v1beta1_runtime_class->metadata - v1_object_meta_t *metadata_local_nonprim = NULL; - - // define the local variable for v1beta1_runtime_class->overhead - v1beta1_overhead_t *overhead_local_nonprim = NULL; - - // define the local variable for v1beta1_runtime_class->scheduling - v1beta1_scheduling_t *scheduling_local_nonprim = NULL; - - // v1beta1_runtime_class->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_runtime_classJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version)) - { - goto end; //String - } - } - - // v1beta1_runtime_class->handler - cJSON *handler = cJSON_GetObjectItemCaseSensitive(v1beta1_runtime_classJSON, "handler"); - if (!handler) { - goto end; - } - - - if(!cJSON_IsString(handler)) - { - goto end; //String - } - - // v1beta1_runtime_class->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_runtime_classJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind)) - { - goto end; //String - } - } - - // v1beta1_runtime_class->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_runtime_classJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive - } - - // v1beta1_runtime_class->overhead - cJSON *overhead = cJSON_GetObjectItemCaseSensitive(v1beta1_runtime_classJSON, "overhead"); - if (overhead) { - overhead_local_nonprim = v1beta1_overhead_parseFromJSON(overhead); //nonprimitive - } - - // v1beta1_runtime_class->scheduling - cJSON *scheduling = cJSON_GetObjectItemCaseSensitive(v1beta1_runtime_classJSON, "scheduling"); - if (scheduling) { - scheduling_local_nonprim = v1beta1_scheduling_parseFromJSON(scheduling); //nonprimitive - } - - - v1beta1_runtime_class_local_var = v1beta1_runtime_class_create ( - api_version ? strdup(api_version->valuestring) : NULL, - strdup(handler->valuestring), - kind ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL, - overhead ? overhead_local_nonprim : NULL, - scheduling ? scheduling_local_nonprim : NULL - ); - - return v1beta1_runtime_class_local_var; -end: - if (metadata_local_nonprim) { - v1_object_meta_free(metadata_local_nonprim); - metadata_local_nonprim = NULL; - } - if (overhead_local_nonprim) { - v1beta1_overhead_free(overhead_local_nonprim); - overhead_local_nonprim = NULL; - } - if (scheduling_local_nonprim) { - v1beta1_scheduling_free(scheduling_local_nonprim); - scheduling_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_runtime_class.h b/kubernetes/model/v1beta1_runtime_class.h deleted file mode 100644 index b4f1551..0000000 --- a/kubernetes/model/v1beta1_runtime_class.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * v1beta1_runtime_class.h - * - * RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class - */ - -#ifndef _v1beta1_runtime_class_H_ -#define _v1beta1_runtime_class_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_runtime_class_t v1beta1_runtime_class_t; - -#include "v1_object_meta.h" -#include "v1beta1_overhead.h" -#include "v1beta1_scheduling.h" - - - -typedef struct v1beta1_runtime_class_t { - char *api_version; // string - char *handler; // string - char *kind; // string - struct v1_object_meta_t *metadata; //model - struct v1beta1_overhead_t *overhead; //model - struct v1beta1_scheduling_t *scheduling; //model - -} v1beta1_runtime_class_t; - -v1beta1_runtime_class_t *v1beta1_runtime_class_create( - char *api_version, - char *handler, - char *kind, - v1_object_meta_t *metadata, - v1beta1_overhead_t *overhead, - v1beta1_scheduling_t *scheduling -); - -void v1beta1_runtime_class_free(v1beta1_runtime_class_t *v1beta1_runtime_class); - -v1beta1_runtime_class_t *v1beta1_runtime_class_parseFromJSON(cJSON *v1beta1_runtime_classJSON); - -cJSON *v1beta1_runtime_class_convertToJSON(v1beta1_runtime_class_t *v1beta1_runtime_class); - -#endif /* _v1beta1_runtime_class_H_ */ - diff --git a/kubernetes/model/v1beta1_runtime_class_list.c b/kubernetes/model/v1beta1_runtime_class_list.c deleted file mode 100644 index f0c0134..0000000 --- a/kubernetes/model/v1beta1_runtime_class_list.c +++ /dev/null @@ -1,197 +0,0 @@ -#include -#include -#include -#include "v1beta1_runtime_class_list.h" - - - -v1beta1_runtime_class_list_t *v1beta1_runtime_class_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata - ) { - v1beta1_runtime_class_list_t *v1beta1_runtime_class_list_local_var = malloc(sizeof(v1beta1_runtime_class_list_t)); - if (!v1beta1_runtime_class_list_local_var) { - return NULL; - } - v1beta1_runtime_class_list_local_var->api_version = api_version; - v1beta1_runtime_class_list_local_var->items = items; - v1beta1_runtime_class_list_local_var->kind = kind; - v1beta1_runtime_class_list_local_var->metadata = metadata; - - return v1beta1_runtime_class_list_local_var; -} - - -void v1beta1_runtime_class_list_free(v1beta1_runtime_class_list_t *v1beta1_runtime_class_list) { - if(NULL == v1beta1_runtime_class_list){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_runtime_class_list->api_version) { - free(v1beta1_runtime_class_list->api_version); - v1beta1_runtime_class_list->api_version = NULL; - } - if (v1beta1_runtime_class_list->items) { - list_ForEach(listEntry, v1beta1_runtime_class_list->items) { - v1beta1_runtime_class_free(listEntry->data); - } - list_freeList(v1beta1_runtime_class_list->items); - v1beta1_runtime_class_list->items = NULL; - } - if (v1beta1_runtime_class_list->kind) { - free(v1beta1_runtime_class_list->kind); - v1beta1_runtime_class_list->kind = NULL; - } - if (v1beta1_runtime_class_list->metadata) { - v1_list_meta_free(v1beta1_runtime_class_list->metadata); - v1beta1_runtime_class_list->metadata = NULL; - } - free(v1beta1_runtime_class_list); -} - -cJSON *v1beta1_runtime_class_list_convertToJSON(v1beta1_runtime_class_list_t *v1beta1_runtime_class_list) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_runtime_class_list->api_version - if(v1beta1_runtime_class_list->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v1beta1_runtime_class_list->api_version) == NULL) { - goto fail; //String - } - } - - - // v1beta1_runtime_class_list->items - if (!v1beta1_runtime_class_list->items) { - goto fail; - } - cJSON *items = cJSON_AddArrayToObject(item, "items"); - if(items == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *itemsListEntry; - if (v1beta1_runtime_class_list->items) { - list_ForEach(itemsListEntry, v1beta1_runtime_class_list->items) { - cJSON *itemLocal = v1beta1_runtime_class_convertToJSON(itemsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(items, itemLocal); - } - } - - - // v1beta1_runtime_class_list->kind - if(v1beta1_runtime_class_list->kind) { - if(cJSON_AddStringToObject(item, "kind", v1beta1_runtime_class_list->kind) == NULL) { - goto fail; //String - } - } - - - // v1beta1_runtime_class_list->metadata - if(v1beta1_runtime_class_list->metadata) { - cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1beta1_runtime_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; -} - -v1beta1_runtime_class_list_t *v1beta1_runtime_class_list_parseFromJSON(cJSON *v1beta1_runtime_class_listJSON){ - - v1beta1_runtime_class_list_t *v1beta1_runtime_class_list_local_var = NULL; - - // define the local list for v1beta1_runtime_class_list->items - list_t *itemsList = NULL; - - // define the local variable for v1beta1_runtime_class_list->metadata - v1_list_meta_t *metadata_local_nonprim = NULL; - - // v1beta1_runtime_class_list->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_runtime_class_listJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version)) - { - goto end; //String - } - } - - // v1beta1_runtime_class_list->items - cJSON *items = cJSON_GetObjectItemCaseSensitive(v1beta1_runtime_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; - } - v1beta1_runtime_class_t *itemsItem = v1beta1_runtime_class_parseFromJSON(items_local_nonprimitive); - - list_addElement(itemsList, itemsItem); - } - - // v1beta1_runtime_class_list->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_runtime_class_listJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind)) - { - goto end; //String - } - } - - // v1beta1_runtime_class_list->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_runtime_class_listJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive - } - - - v1beta1_runtime_class_list_local_var = v1beta1_runtime_class_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, - itemsList, - kind ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL - ); - - return v1beta1_runtime_class_list_local_var; -end: - if (itemsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, itemsList) { - v1beta1_runtime_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/v1beta1_runtime_class_list.h b/kubernetes/model/v1beta1_runtime_class_list.h deleted file mode 100644 index 603f9cd..0000000 --- a/kubernetes/model/v1beta1_runtime_class_list.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v1beta1_runtime_class_list.h - * - * RuntimeClassList is a list of RuntimeClass objects. - */ - -#ifndef _v1beta1_runtime_class_list_H_ -#define _v1beta1_runtime_class_list_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_runtime_class_list_t v1beta1_runtime_class_list_t; - -#include "v1_list_meta.h" -#include "v1beta1_runtime_class.h" - - - -typedef struct v1beta1_runtime_class_list_t { - char *api_version; // string - list_t *items; //nonprimitive container - char *kind; // string - struct v1_list_meta_t *metadata; //model - -} v1beta1_runtime_class_list_t; - -v1beta1_runtime_class_list_t *v1beta1_runtime_class_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata -); - -void v1beta1_runtime_class_list_free(v1beta1_runtime_class_list_t *v1beta1_runtime_class_list); - -v1beta1_runtime_class_list_t *v1beta1_runtime_class_list_parseFromJSON(cJSON *v1beta1_runtime_class_listJSON); - -cJSON *v1beta1_runtime_class_list_convertToJSON(v1beta1_runtime_class_list_t *v1beta1_runtime_class_list); - -#endif /* _v1beta1_runtime_class_list_H_ */ - diff --git a/kubernetes/model/v1beta1_runtime_class_strategy_options.c b/kubernetes/model/v1beta1_runtime_class_strategy_options.c deleted file mode 100644 index 521623e..0000000 --- a/kubernetes/model/v1beta1_runtime_class_strategy_options.c +++ /dev/null @@ -1,135 +0,0 @@ -#include -#include -#include -#include "v1beta1_runtime_class_strategy_options.h" - - - -v1beta1_runtime_class_strategy_options_t *v1beta1_runtime_class_strategy_options_create( - list_t *allowed_runtime_class_names, - char *default_runtime_class_name - ) { - v1beta1_runtime_class_strategy_options_t *v1beta1_runtime_class_strategy_options_local_var = malloc(sizeof(v1beta1_runtime_class_strategy_options_t)); - if (!v1beta1_runtime_class_strategy_options_local_var) { - return NULL; - } - v1beta1_runtime_class_strategy_options_local_var->allowed_runtime_class_names = allowed_runtime_class_names; - v1beta1_runtime_class_strategy_options_local_var->default_runtime_class_name = default_runtime_class_name; - - return v1beta1_runtime_class_strategy_options_local_var; -} - - -void v1beta1_runtime_class_strategy_options_free(v1beta1_runtime_class_strategy_options_t *v1beta1_runtime_class_strategy_options) { - if(NULL == v1beta1_runtime_class_strategy_options){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_runtime_class_strategy_options->allowed_runtime_class_names) { - list_ForEach(listEntry, v1beta1_runtime_class_strategy_options->allowed_runtime_class_names) { - free(listEntry->data); - } - list_freeList(v1beta1_runtime_class_strategy_options->allowed_runtime_class_names); - v1beta1_runtime_class_strategy_options->allowed_runtime_class_names = NULL; - } - if (v1beta1_runtime_class_strategy_options->default_runtime_class_name) { - free(v1beta1_runtime_class_strategy_options->default_runtime_class_name); - v1beta1_runtime_class_strategy_options->default_runtime_class_name = NULL; - } - free(v1beta1_runtime_class_strategy_options); -} - -cJSON *v1beta1_runtime_class_strategy_options_convertToJSON(v1beta1_runtime_class_strategy_options_t *v1beta1_runtime_class_strategy_options) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_runtime_class_strategy_options->allowed_runtime_class_names - if (!v1beta1_runtime_class_strategy_options->allowed_runtime_class_names) { - goto fail; - } - cJSON *allowed_runtime_class_names = cJSON_AddArrayToObject(item, "allowedRuntimeClassNames"); - if(allowed_runtime_class_names == NULL) { - goto fail; //primitive container - } - - listEntry_t *allowed_runtime_class_namesListEntry; - list_ForEach(allowed_runtime_class_namesListEntry, v1beta1_runtime_class_strategy_options->allowed_runtime_class_names) { - if(cJSON_AddStringToObject(allowed_runtime_class_names, "", (char*)allowed_runtime_class_namesListEntry->data) == NULL) - { - goto fail; - } - } - - - // v1beta1_runtime_class_strategy_options->default_runtime_class_name - if(v1beta1_runtime_class_strategy_options->default_runtime_class_name) { - if(cJSON_AddStringToObject(item, "defaultRuntimeClassName", v1beta1_runtime_class_strategy_options->default_runtime_class_name) == NULL) { - goto fail; //String - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_runtime_class_strategy_options_t *v1beta1_runtime_class_strategy_options_parseFromJSON(cJSON *v1beta1_runtime_class_strategy_optionsJSON){ - - v1beta1_runtime_class_strategy_options_t *v1beta1_runtime_class_strategy_options_local_var = NULL; - - // define the local list for v1beta1_runtime_class_strategy_options->allowed_runtime_class_names - list_t *allowed_runtime_class_namesList = NULL; - - // v1beta1_runtime_class_strategy_options->allowed_runtime_class_names - cJSON *allowed_runtime_class_names = cJSON_GetObjectItemCaseSensitive(v1beta1_runtime_class_strategy_optionsJSON, "allowedRuntimeClassNames"); - if (!allowed_runtime_class_names) { - goto end; - } - - - cJSON *allowed_runtime_class_names_local = NULL; - if(!cJSON_IsArray(allowed_runtime_class_names)) { - goto end;//primitive container - } - allowed_runtime_class_namesList = list_createList(); - - cJSON_ArrayForEach(allowed_runtime_class_names_local, allowed_runtime_class_names) - { - if(!cJSON_IsString(allowed_runtime_class_names_local)) - { - goto end; - } - list_addElement(allowed_runtime_class_namesList , strdup(allowed_runtime_class_names_local->valuestring)); - } - - // v1beta1_runtime_class_strategy_options->default_runtime_class_name - cJSON *default_runtime_class_name = cJSON_GetObjectItemCaseSensitive(v1beta1_runtime_class_strategy_optionsJSON, "defaultRuntimeClassName"); - if (default_runtime_class_name) { - if(!cJSON_IsString(default_runtime_class_name)) - { - goto end; //String - } - } - - - v1beta1_runtime_class_strategy_options_local_var = v1beta1_runtime_class_strategy_options_create ( - allowed_runtime_class_namesList, - default_runtime_class_name ? strdup(default_runtime_class_name->valuestring) : NULL - ); - - return v1beta1_runtime_class_strategy_options_local_var; -end: - if (allowed_runtime_class_namesList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, allowed_runtime_class_namesList) { - free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(allowed_runtime_class_namesList); - allowed_runtime_class_namesList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_runtime_class_strategy_options.h b/kubernetes/model/v1beta1_runtime_class_strategy_options.h deleted file mode 100644 index 1ec208b..0000000 --- a/kubernetes/model/v1beta1_runtime_class_strategy_options.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * v1beta1_runtime_class_strategy_options.h - * - * RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod. - */ - -#ifndef _v1beta1_runtime_class_strategy_options_H_ -#define _v1beta1_runtime_class_strategy_options_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_runtime_class_strategy_options_t v1beta1_runtime_class_strategy_options_t; - - - - -typedef struct v1beta1_runtime_class_strategy_options_t { - list_t *allowed_runtime_class_names; //primitive container - char *default_runtime_class_name; // string - -} v1beta1_runtime_class_strategy_options_t; - -v1beta1_runtime_class_strategy_options_t *v1beta1_runtime_class_strategy_options_create( - list_t *allowed_runtime_class_names, - char *default_runtime_class_name -); - -void v1beta1_runtime_class_strategy_options_free(v1beta1_runtime_class_strategy_options_t *v1beta1_runtime_class_strategy_options); - -v1beta1_runtime_class_strategy_options_t *v1beta1_runtime_class_strategy_options_parseFromJSON(cJSON *v1beta1_runtime_class_strategy_optionsJSON); - -cJSON *v1beta1_runtime_class_strategy_options_convertToJSON(v1beta1_runtime_class_strategy_options_t *v1beta1_runtime_class_strategy_options); - -#endif /* _v1beta1_runtime_class_strategy_options_H_ */ - diff --git a/kubernetes/model/v1beta1_scheduling.c b/kubernetes/model/v1beta1_scheduling.c deleted file mode 100644 index 130d983..0000000 --- a/kubernetes/model/v1beta1_scheduling.c +++ /dev/null @@ -1,187 +0,0 @@ -#include -#include -#include -#include "v1beta1_scheduling.h" - - - -v1beta1_scheduling_t *v1beta1_scheduling_create( - list_t* node_selector, - list_t *tolerations - ) { - v1beta1_scheduling_t *v1beta1_scheduling_local_var = malloc(sizeof(v1beta1_scheduling_t)); - if (!v1beta1_scheduling_local_var) { - return NULL; - } - v1beta1_scheduling_local_var->node_selector = node_selector; - v1beta1_scheduling_local_var->tolerations = tolerations; - - return v1beta1_scheduling_local_var; -} - - -void v1beta1_scheduling_free(v1beta1_scheduling_t *v1beta1_scheduling) { - if(NULL == v1beta1_scheduling){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_scheduling->node_selector) { - list_ForEach(listEntry, v1beta1_scheduling->node_selector) { - keyValuePair_t *localKeyValue = (keyValuePair_t*) listEntry->data; - free (localKeyValue->key); - free (localKeyValue->value); - keyValuePair_free(localKeyValue); - } - list_freeList(v1beta1_scheduling->node_selector); - v1beta1_scheduling->node_selector = NULL; - } - if (v1beta1_scheduling->tolerations) { - list_ForEach(listEntry, v1beta1_scheduling->tolerations) { - v1_toleration_free(listEntry->data); - } - list_freeList(v1beta1_scheduling->tolerations); - v1beta1_scheduling->tolerations = NULL; - } - free(v1beta1_scheduling); -} - -cJSON *v1beta1_scheduling_convertToJSON(v1beta1_scheduling_t *v1beta1_scheduling) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_scheduling->node_selector - if(v1beta1_scheduling->node_selector) { - cJSON *node_selector = cJSON_AddObjectToObject(item, "nodeSelector"); - if(node_selector == NULL) { - goto fail; //primitive map container - } - cJSON *localMapObject = node_selector; - listEntry_t *node_selectorListEntry; - if (v1beta1_scheduling->node_selector) { - list_ForEach(node_selectorListEntry, v1beta1_scheduling->node_selector) { - keyValuePair_t *localKeyValue = (keyValuePair_t*)node_selectorListEntry->data; - if(cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) - { - goto fail; - } - } - } - } - - - // v1beta1_scheduling->tolerations - if(v1beta1_scheduling->tolerations) { - cJSON *tolerations = cJSON_AddArrayToObject(item, "tolerations"); - if(tolerations == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *tolerationsListEntry; - if (v1beta1_scheduling->tolerations) { - list_ForEach(tolerationsListEntry, v1beta1_scheduling->tolerations) { - cJSON *itemLocal = v1_toleration_convertToJSON(tolerationsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(tolerations, itemLocal); - } - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_scheduling_t *v1beta1_scheduling_parseFromJSON(cJSON *v1beta1_schedulingJSON){ - - v1beta1_scheduling_t *v1beta1_scheduling_local_var = NULL; - - // define the local map for v1beta1_scheduling->node_selector - list_t *node_selectorList = NULL; - - // define the local list for v1beta1_scheduling->tolerations - list_t *tolerationsList = NULL; - - // v1beta1_scheduling->node_selector - cJSON *node_selector = cJSON_GetObjectItemCaseSensitive(v1beta1_schedulingJSON, "nodeSelector"); - if (node_selector) { - cJSON *node_selector_local_map = NULL; - if(!cJSON_IsObject(node_selector) && !cJSON_IsNull(node_selector)) - { - goto end;//primitive map container - } - if(cJSON_IsObject(node_selector)) - { - node_selectorList = list_createList(); - keyValuePair_t *localMapKeyPair; - cJSON_ArrayForEach(node_selector_local_map, node_selector) - { - cJSON *localMapObject = node_selector_local_map; - if(!cJSON_IsString(localMapObject)) - { - goto end; - } - localMapKeyPair = keyValuePair_create(strdup(localMapObject->string),strdup(localMapObject->valuestring)); - list_addElement(node_selectorList , localMapKeyPair); - } - } - } - - // v1beta1_scheduling->tolerations - cJSON *tolerations = cJSON_GetObjectItemCaseSensitive(v1beta1_schedulingJSON, "tolerations"); - if (tolerations) { - cJSON *tolerations_local_nonprimitive = NULL; - if(!cJSON_IsArray(tolerations)){ - goto end; //nonprimitive container - } - - tolerationsList = list_createList(); - - cJSON_ArrayForEach(tolerations_local_nonprimitive,tolerations ) - { - if(!cJSON_IsObject(tolerations_local_nonprimitive)){ - goto end; - } - v1_toleration_t *tolerationsItem = v1_toleration_parseFromJSON(tolerations_local_nonprimitive); - - list_addElement(tolerationsList, tolerationsItem); - } - } - - - v1beta1_scheduling_local_var = v1beta1_scheduling_create ( - node_selector ? node_selectorList : NULL, - tolerations ? tolerationsList : NULL - ); - - return v1beta1_scheduling_local_var; -end: - if (node_selectorList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, node_selectorList) { - keyValuePair_t *localKeyValue = (keyValuePair_t*) listEntry->data; - free(localKeyValue->key); - localKeyValue->key = NULL; - free(localKeyValue->value); - localKeyValue->value = NULL; - keyValuePair_free(localKeyValue); - localKeyValue = NULL; - } - list_freeList(node_selectorList); - node_selectorList = NULL; - } - if (tolerationsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, tolerationsList) { - v1_toleration_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(tolerationsList); - tolerationsList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_scheduling.h b/kubernetes/model/v1beta1_scheduling.h deleted file mode 100644 index 0233517..0000000 --- a/kubernetes/model/v1beta1_scheduling.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * v1beta1_scheduling.h - * - * Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. - */ - -#ifndef _v1beta1_scheduling_H_ -#define _v1beta1_scheduling_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_scheduling_t v1beta1_scheduling_t; - -#include "v1_toleration.h" - - - -typedef struct v1beta1_scheduling_t { - list_t* node_selector; //map - list_t *tolerations; //nonprimitive container - -} v1beta1_scheduling_t; - -v1beta1_scheduling_t *v1beta1_scheduling_create( - list_t* node_selector, - list_t *tolerations -); - -void v1beta1_scheduling_free(v1beta1_scheduling_t *v1beta1_scheduling); - -v1beta1_scheduling_t *v1beta1_scheduling_parseFromJSON(cJSON *v1beta1_schedulingJSON); - -cJSON *v1beta1_scheduling_convertToJSON(v1beta1_scheduling_t *v1beta1_scheduling); - -#endif /* _v1beta1_scheduling_H_ */ - diff --git a/kubernetes/model/v1beta1_se_linux_strategy_options.c b/kubernetes/model/v1beta1_se_linux_strategy_options.c deleted file mode 100644 index d1d9049..0000000 --- a/kubernetes/model/v1beta1_se_linux_strategy_options.c +++ /dev/null @@ -1,110 +0,0 @@ -#include -#include -#include -#include "v1beta1_se_linux_strategy_options.h" - - - -v1beta1_se_linux_strategy_options_t *v1beta1_se_linux_strategy_options_create( - char *rule, - v1_se_linux_options_t *se_linux_options - ) { - v1beta1_se_linux_strategy_options_t *v1beta1_se_linux_strategy_options_local_var = malloc(sizeof(v1beta1_se_linux_strategy_options_t)); - if (!v1beta1_se_linux_strategy_options_local_var) { - return NULL; - } - v1beta1_se_linux_strategy_options_local_var->rule = rule; - v1beta1_se_linux_strategy_options_local_var->se_linux_options = se_linux_options; - - return v1beta1_se_linux_strategy_options_local_var; -} - - -void v1beta1_se_linux_strategy_options_free(v1beta1_se_linux_strategy_options_t *v1beta1_se_linux_strategy_options) { - if(NULL == v1beta1_se_linux_strategy_options){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_se_linux_strategy_options->rule) { - free(v1beta1_se_linux_strategy_options->rule); - v1beta1_se_linux_strategy_options->rule = NULL; - } - if (v1beta1_se_linux_strategy_options->se_linux_options) { - v1_se_linux_options_free(v1beta1_se_linux_strategy_options->se_linux_options); - v1beta1_se_linux_strategy_options->se_linux_options = NULL; - } - free(v1beta1_se_linux_strategy_options); -} - -cJSON *v1beta1_se_linux_strategy_options_convertToJSON(v1beta1_se_linux_strategy_options_t *v1beta1_se_linux_strategy_options) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_se_linux_strategy_options->rule - if (!v1beta1_se_linux_strategy_options->rule) { - goto fail; - } - if(cJSON_AddStringToObject(item, "rule", v1beta1_se_linux_strategy_options->rule) == NULL) { - goto fail; //String - } - - - // v1beta1_se_linux_strategy_options->se_linux_options - if(v1beta1_se_linux_strategy_options->se_linux_options) { - cJSON *se_linux_options_local_JSON = v1_se_linux_options_convertToJSON(v1beta1_se_linux_strategy_options->se_linux_options); - if(se_linux_options_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "seLinuxOptions", se_linux_options_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_se_linux_strategy_options_t *v1beta1_se_linux_strategy_options_parseFromJSON(cJSON *v1beta1_se_linux_strategy_optionsJSON){ - - v1beta1_se_linux_strategy_options_t *v1beta1_se_linux_strategy_options_local_var = NULL; - - // define the local variable for v1beta1_se_linux_strategy_options->se_linux_options - v1_se_linux_options_t *se_linux_options_local_nonprim = NULL; - - // v1beta1_se_linux_strategy_options->rule - cJSON *rule = cJSON_GetObjectItemCaseSensitive(v1beta1_se_linux_strategy_optionsJSON, "rule"); - if (!rule) { - goto end; - } - - - if(!cJSON_IsString(rule)) - { - goto end; //String - } - - // v1beta1_se_linux_strategy_options->se_linux_options - cJSON *se_linux_options = cJSON_GetObjectItemCaseSensitive(v1beta1_se_linux_strategy_optionsJSON, "seLinuxOptions"); - if (se_linux_options) { - se_linux_options_local_nonprim = v1_se_linux_options_parseFromJSON(se_linux_options); //nonprimitive - } - - - v1beta1_se_linux_strategy_options_local_var = v1beta1_se_linux_strategy_options_create ( - strdup(rule->valuestring), - se_linux_options ? se_linux_options_local_nonprim : NULL - ); - - return v1beta1_se_linux_strategy_options_local_var; -end: - if (se_linux_options_local_nonprim) { - v1_se_linux_options_free(se_linux_options_local_nonprim); - se_linux_options_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_se_linux_strategy_options.h b/kubernetes/model/v1beta1_se_linux_strategy_options.h deleted file mode 100644 index d59798e..0000000 --- a/kubernetes/model/v1beta1_se_linux_strategy_options.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * v1beta1_se_linux_strategy_options.h - * - * SELinuxStrategyOptions defines the strategy type and any options used to create the strategy. - */ - -#ifndef _v1beta1_se_linux_strategy_options_H_ -#define _v1beta1_se_linux_strategy_options_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_se_linux_strategy_options_t v1beta1_se_linux_strategy_options_t; - -#include "v1_se_linux_options.h" - - - -typedef struct v1beta1_se_linux_strategy_options_t { - char *rule; // string - struct v1_se_linux_options_t *se_linux_options; //model - -} v1beta1_se_linux_strategy_options_t; - -v1beta1_se_linux_strategy_options_t *v1beta1_se_linux_strategy_options_create( - char *rule, - v1_se_linux_options_t *se_linux_options -); - -void v1beta1_se_linux_strategy_options_free(v1beta1_se_linux_strategy_options_t *v1beta1_se_linux_strategy_options); - -v1beta1_se_linux_strategy_options_t *v1beta1_se_linux_strategy_options_parseFromJSON(cJSON *v1beta1_se_linux_strategy_optionsJSON); - -cJSON *v1beta1_se_linux_strategy_options_convertToJSON(v1beta1_se_linux_strategy_options_t *v1beta1_se_linux_strategy_options); - -#endif /* _v1beta1_se_linux_strategy_options_H_ */ - diff --git a/kubernetes/model/v1beta1_supplemental_groups_strategy_options.c b/kubernetes/model/v1beta1_supplemental_groups_strategy_options.c deleted file mode 100644 index 71ea66c..0000000 --- a/kubernetes/model/v1beta1_supplemental_groups_strategy_options.c +++ /dev/null @@ -1,136 +0,0 @@ -#include -#include -#include -#include "v1beta1_supplemental_groups_strategy_options.h" - - - -v1beta1_supplemental_groups_strategy_options_t *v1beta1_supplemental_groups_strategy_options_create( - list_t *ranges, - char *rule - ) { - v1beta1_supplemental_groups_strategy_options_t *v1beta1_supplemental_groups_strategy_options_local_var = malloc(sizeof(v1beta1_supplemental_groups_strategy_options_t)); - if (!v1beta1_supplemental_groups_strategy_options_local_var) { - return NULL; - } - v1beta1_supplemental_groups_strategy_options_local_var->ranges = ranges; - v1beta1_supplemental_groups_strategy_options_local_var->rule = rule; - - return v1beta1_supplemental_groups_strategy_options_local_var; -} - - -void v1beta1_supplemental_groups_strategy_options_free(v1beta1_supplemental_groups_strategy_options_t *v1beta1_supplemental_groups_strategy_options) { - if(NULL == v1beta1_supplemental_groups_strategy_options){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_supplemental_groups_strategy_options->ranges) { - list_ForEach(listEntry, v1beta1_supplemental_groups_strategy_options->ranges) { - v1beta1_id_range_free(listEntry->data); - } - list_freeList(v1beta1_supplemental_groups_strategy_options->ranges); - v1beta1_supplemental_groups_strategy_options->ranges = NULL; - } - if (v1beta1_supplemental_groups_strategy_options->rule) { - free(v1beta1_supplemental_groups_strategy_options->rule); - v1beta1_supplemental_groups_strategy_options->rule = NULL; - } - free(v1beta1_supplemental_groups_strategy_options); -} - -cJSON *v1beta1_supplemental_groups_strategy_options_convertToJSON(v1beta1_supplemental_groups_strategy_options_t *v1beta1_supplemental_groups_strategy_options) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_supplemental_groups_strategy_options->ranges - if(v1beta1_supplemental_groups_strategy_options->ranges) { - cJSON *ranges = cJSON_AddArrayToObject(item, "ranges"); - if(ranges == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *rangesListEntry; - if (v1beta1_supplemental_groups_strategy_options->ranges) { - list_ForEach(rangesListEntry, v1beta1_supplemental_groups_strategy_options->ranges) { - cJSON *itemLocal = v1beta1_id_range_convertToJSON(rangesListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(ranges, itemLocal); - } - } - } - - - // v1beta1_supplemental_groups_strategy_options->rule - if(v1beta1_supplemental_groups_strategy_options->rule) { - if(cJSON_AddStringToObject(item, "rule", v1beta1_supplemental_groups_strategy_options->rule) == NULL) { - goto fail; //String - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_supplemental_groups_strategy_options_t *v1beta1_supplemental_groups_strategy_options_parseFromJSON(cJSON *v1beta1_supplemental_groups_strategy_optionsJSON){ - - v1beta1_supplemental_groups_strategy_options_t *v1beta1_supplemental_groups_strategy_options_local_var = NULL; - - // define the local list for v1beta1_supplemental_groups_strategy_options->ranges - list_t *rangesList = NULL; - - // v1beta1_supplemental_groups_strategy_options->ranges - cJSON *ranges = cJSON_GetObjectItemCaseSensitive(v1beta1_supplemental_groups_strategy_optionsJSON, "ranges"); - if (ranges) { - cJSON *ranges_local_nonprimitive = NULL; - if(!cJSON_IsArray(ranges)){ - goto end; //nonprimitive container - } - - rangesList = list_createList(); - - cJSON_ArrayForEach(ranges_local_nonprimitive,ranges ) - { - if(!cJSON_IsObject(ranges_local_nonprimitive)){ - goto end; - } - v1beta1_id_range_t *rangesItem = v1beta1_id_range_parseFromJSON(ranges_local_nonprimitive); - - list_addElement(rangesList, rangesItem); - } - } - - // v1beta1_supplemental_groups_strategy_options->rule - cJSON *rule = cJSON_GetObjectItemCaseSensitive(v1beta1_supplemental_groups_strategy_optionsJSON, "rule"); - if (rule) { - if(!cJSON_IsString(rule)) - { - goto end; //String - } - } - - - v1beta1_supplemental_groups_strategy_options_local_var = v1beta1_supplemental_groups_strategy_options_create ( - ranges ? rangesList : NULL, - rule ? strdup(rule->valuestring) : NULL - ); - - return v1beta1_supplemental_groups_strategy_options_local_var; -end: - if (rangesList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, rangesList) { - v1beta1_id_range_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(rangesList); - rangesList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_supplemental_groups_strategy_options.h b/kubernetes/model/v1beta1_supplemental_groups_strategy_options.h deleted file mode 100644 index 341dd02..0000000 --- a/kubernetes/model/v1beta1_supplemental_groups_strategy_options.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * v1beta1_supplemental_groups_strategy_options.h - * - * SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy. - */ - -#ifndef _v1beta1_supplemental_groups_strategy_options_H_ -#define _v1beta1_supplemental_groups_strategy_options_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_supplemental_groups_strategy_options_t v1beta1_supplemental_groups_strategy_options_t; - -#include "v1beta1_id_range.h" - - - -typedef struct v1beta1_supplemental_groups_strategy_options_t { - list_t *ranges; //nonprimitive container - char *rule; // string - -} v1beta1_supplemental_groups_strategy_options_t; - -v1beta1_supplemental_groups_strategy_options_t *v1beta1_supplemental_groups_strategy_options_create( - list_t *ranges, - char *rule -); - -void v1beta1_supplemental_groups_strategy_options_free(v1beta1_supplemental_groups_strategy_options_t *v1beta1_supplemental_groups_strategy_options); - -v1beta1_supplemental_groups_strategy_options_t *v1beta1_supplemental_groups_strategy_options_parseFromJSON(cJSON *v1beta1_supplemental_groups_strategy_optionsJSON); - -cJSON *v1beta1_supplemental_groups_strategy_options_convertToJSON(v1beta1_supplemental_groups_strategy_options_t *v1beta1_supplemental_groups_strategy_options); - -#endif /* _v1beta1_supplemental_groups_strategy_options_H_ */ - diff --git a/kubernetes/model/v1beta2_limited_priority_level_configuration.h b/kubernetes/model/v1beta2_limited_priority_level_configuration.h index dbf717c..31d1bde 100644 --- a/kubernetes/model/v1beta2_limited_priority_level_configuration.h +++ b/kubernetes/model/v1beta2_limited_priority_level_configuration.h @@ -1,7 +1,7 @@ /* * v1beta2_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? + * 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 _v1beta2_limited_priority_level_configuration_H_ diff --git a/kubernetes/model/v2beta1_container_resource_metric_source.c b/kubernetes/model/v2beta1_container_resource_metric_source.c deleted file mode 100644 index b504d3f..0000000 --- a/kubernetes/model/v2beta1_container_resource_metric_source.c +++ /dev/null @@ -1,149 +0,0 @@ -#include -#include -#include -#include "v2beta1_container_resource_metric_source.h" - - - -v2beta1_container_resource_metric_source_t *v2beta1_container_resource_metric_source_create( - char *container, - char *name, - int target_average_utilization, - char *target_average_value - ) { - v2beta1_container_resource_metric_source_t *v2beta1_container_resource_metric_source_local_var = malloc(sizeof(v2beta1_container_resource_metric_source_t)); - if (!v2beta1_container_resource_metric_source_local_var) { - return NULL; - } - v2beta1_container_resource_metric_source_local_var->container = container; - v2beta1_container_resource_metric_source_local_var->name = name; - v2beta1_container_resource_metric_source_local_var->target_average_utilization = target_average_utilization; - v2beta1_container_resource_metric_source_local_var->target_average_value = target_average_value; - - return v2beta1_container_resource_metric_source_local_var; -} - - -void v2beta1_container_resource_metric_source_free(v2beta1_container_resource_metric_source_t *v2beta1_container_resource_metric_source) { - if(NULL == v2beta1_container_resource_metric_source){ - return ; - } - listEntry_t *listEntry; - if (v2beta1_container_resource_metric_source->container) { - free(v2beta1_container_resource_metric_source->container); - v2beta1_container_resource_metric_source->container = NULL; - } - if (v2beta1_container_resource_metric_source->name) { - free(v2beta1_container_resource_metric_source->name); - v2beta1_container_resource_metric_source->name = NULL; - } - if (v2beta1_container_resource_metric_source->target_average_value) { - free(v2beta1_container_resource_metric_source->target_average_value); - v2beta1_container_resource_metric_source->target_average_value = NULL; - } - free(v2beta1_container_resource_metric_source); -} - -cJSON *v2beta1_container_resource_metric_source_convertToJSON(v2beta1_container_resource_metric_source_t *v2beta1_container_resource_metric_source) { - cJSON *item = cJSON_CreateObject(); - - // v2beta1_container_resource_metric_source->container - if (!v2beta1_container_resource_metric_source->container) { - goto fail; - } - if(cJSON_AddStringToObject(item, "container", v2beta1_container_resource_metric_source->container) == NULL) { - goto fail; //String - } - - - // v2beta1_container_resource_metric_source->name - if (!v2beta1_container_resource_metric_source->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v2beta1_container_resource_metric_source->name) == NULL) { - goto fail; //String - } - - - // v2beta1_container_resource_metric_source->target_average_utilization - if(v2beta1_container_resource_metric_source->target_average_utilization) { - if(cJSON_AddNumberToObject(item, "targetAverageUtilization", v2beta1_container_resource_metric_source->target_average_utilization) == NULL) { - goto fail; //Numeric - } - } - - - // v2beta1_container_resource_metric_source->target_average_value - if(v2beta1_container_resource_metric_source->target_average_value) { - if(cJSON_AddStringToObject(item, "targetAverageValue", v2beta1_container_resource_metric_source->target_average_value) == NULL) { - goto fail; //String - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta1_container_resource_metric_source_t *v2beta1_container_resource_metric_source_parseFromJSON(cJSON *v2beta1_container_resource_metric_sourceJSON){ - - v2beta1_container_resource_metric_source_t *v2beta1_container_resource_metric_source_local_var = NULL; - - // v2beta1_container_resource_metric_source->container - cJSON *container = cJSON_GetObjectItemCaseSensitive(v2beta1_container_resource_metric_sourceJSON, "container"); - if (!container) { - goto end; - } - - - if(!cJSON_IsString(container)) - { - goto end; //String - } - - // v2beta1_container_resource_metric_source->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v2beta1_container_resource_metric_sourceJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - // v2beta1_container_resource_metric_source->target_average_utilization - cJSON *target_average_utilization = cJSON_GetObjectItemCaseSensitive(v2beta1_container_resource_metric_sourceJSON, "targetAverageUtilization"); - if (target_average_utilization) { - if(!cJSON_IsNumber(target_average_utilization)) - { - goto end; //Numeric - } - } - - // v2beta1_container_resource_metric_source->target_average_value - cJSON *target_average_value = cJSON_GetObjectItemCaseSensitive(v2beta1_container_resource_metric_sourceJSON, "targetAverageValue"); - if (target_average_value) { - if(!cJSON_IsString(target_average_value)) - { - goto end; //String - } - } - - - v2beta1_container_resource_metric_source_local_var = v2beta1_container_resource_metric_source_create ( - strdup(container->valuestring), - strdup(name->valuestring), - target_average_utilization ? target_average_utilization->valuedouble : 0, - target_average_value ? strdup(target_average_value->valuestring) : NULL - ); - - return v2beta1_container_resource_metric_source_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v2beta1_container_resource_metric_source.h b/kubernetes/model/v2beta1_container_resource_metric_source.h deleted file mode 100644 index 451272f..0000000 --- a/kubernetes/model/v2beta1_container_resource_metric_source.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * v2beta1_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 _v2beta1_container_resource_metric_source_H_ -#define _v2beta1_container_resource_metric_source_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta1_container_resource_metric_source_t v2beta1_container_resource_metric_source_t; - - - - -typedef struct v2beta1_container_resource_metric_source_t { - char *container; // string - char *name; // string - int target_average_utilization; //numeric - char *target_average_value; // string - -} v2beta1_container_resource_metric_source_t; - -v2beta1_container_resource_metric_source_t *v2beta1_container_resource_metric_source_create( - char *container, - char *name, - int target_average_utilization, - char *target_average_value -); - -void v2beta1_container_resource_metric_source_free(v2beta1_container_resource_metric_source_t *v2beta1_container_resource_metric_source); - -v2beta1_container_resource_metric_source_t *v2beta1_container_resource_metric_source_parseFromJSON(cJSON *v2beta1_container_resource_metric_sourceJSON); - -cJSON *v2beta1_container_resource_metric_source_convertToJSON(v2beta1_container_resource_metric_source_t *v2beta1_container_resource_metric_source); - -#endif /* _v2beta1_container_resource_metric_source_H_ */ - diff --git a/kubernetes/model/v2beta1_container_resource_metric_status.c b/kubernetes/model/v2beta1_container_resource_metric_status.c deleted file mode 100644 index 3191e57..0000000 --- a/kubernetes/model/v2beta1_container_resource_metric_status.c +++ /dev/null @@ -1,153 +0,0 @@ -#include -#include -#include -#include "v2beta1_container_resource_metric_status.h" - - - -v2beta1_container_resource_metric_status_t *v2beta1_container_resource_metric_status_create( - char *container, - int current_average_utilization, - char *current_average_value, - char *name - ) { - v2beta1_container_resource_metric_status_t *v2beta1_container_resource_metric_status_local_var = malloc(sizeof(v2beta1_container_resource_metric_status_t)); - if (!v2beta1_container_resource_metric_status_local_var) { - return NULL; - } - v2beta1_container_resource_metric_status_local_var->container = container; - v2beta1_container_resource_metric_status_local_var->current_average_utilization = current_average_utilization; - v2beta1_container_resource_metric_status_local_var->current_average_value = current_average_value; - v2beta1_container_resource_metric_status_local_var->name = name; - - return v2beta1_container_resource_metric_status_local_var; -} - - -void v2beta1_container_resource_metric_status_free(v2beta1_container_resource_metric_status_t *v2beta1_container_resource_metric_status) { - if(NULL == v2beta1_container_resource_metric_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta1_container_resource_metric_status->container) { - free(v2beta1_container_resource_metric_status->container); - v2beta1_container_resource_metric_status->container = NULL; - } - if (v2beta1_container_resource_metric_status->current_average_value) { - free(v2beta1_container_resource_metric_status->current_average_value); - v2beta1_container_resource_metric_status->current_average_value = NULL; - } - if (v2beta1_container_resource_metric_status->name) { - free(v2beta1_container_resource_metric_status->name); - v2beta1_container_resource_metric_status->name = NULL; - } - free(v2beta1_container_resource_metric_status); -} - -cJSON *v2beta1_container_resource_metric_status_convertToJSON(v2beta1_container_resource_metric_status_t *v2beta1_container_resource_metric_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta1_container_resource_metric_status->container - if (!v2beta1_container_resource_metric_status->container) { - goto fail; - } - if(cJSON_AddStringToObject(item, "container", v2beta1_container_resource_metric_status->container) == NULL) { - goto fail; //String - } - - - // v2beta1_container_resource_metric_status->current_average_utilization - if(v2beta1_container_resource_metric_status->current_average_utilization) { - if(cJSON_AddNumberToObject(item, "currentAverageUtilization", v2beta1_container_resource_metric_status->current_average_utilization) == NULL) { - goto fail; //Numeric - } - } - - - // v2beta1_container_resource_metric_status->current_average_value - if (!v2beta1_container_resource_metric_status->current_average_value) { - goto fail; - } - if(cJSON_AddStringToObject(item, "currentAverageValue", v2beta1_container_resource_metric_status->current_average_value) == NULL) { - goto fail; //String - } - - - // v2beta1_container_resource_metric_status->name - if (!v2beta1_container_resource_metric_status->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v2beta1_container_resource_metric_status->name) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta1_container_resource_metric_status_t *v2beta1_container_resource_metric_status_parseFromJSON(cJSON *v2beta1_container_resource_metric_statusJSON){ - - v2beta1_container_resource_metric_status_t *v2beta1_container_resource_metric_status_local_var = NULL; - - // v2beta1_container_resource_metric_status->container - cJSON *container = cJSON_GetObjectItemCaseSensitive(v2beta1_container_resource_metric_statusJSON, "container"); - if (!container) { - goto end; - } - - - if(!cJSON_IsString(container)) - { - goto end; //String - } - - // v2beta1_container_resource_metric_status->current_average_utilization - cJSON *current_average_utilization = cJSON_GetObjectItemCaseSensitive(v2beta1_container_resource_metric_statusJSON, "currentAverageUtilization"); - if (current_average_utilization) { - if(!cJSON_IsNumber(current_average_utilization)) - { - goto end; //Numeric - } - } - - // v2beta1_container_resource_metric_status->current_average_value - cJSON *current_average_value = cJSON_GetObjectItemCaseSensitive(v2beta1_container_resource_metric_statusJSON, "currentAverageValue"); - if (!current_average_value) { - goto end; - } - - - if(!cJSON_IsString(current_average_value)) - { - goto end; //String - } - - // v2beta1_container_resource_metric_status->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v2beta1_container_resource_metric_statusJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - - v2beta1_container_resource_metric_status_local_var = v2beta1_container_resource_metric_status_create ( - strdup(container->valuestring), - current_average_utilization ? current_average_utilization->valuedouble : 0, - strdup(current_average_value->valuestring), - strdup(name->valuestring) - ); - - return v2beta1_container_resource_metric_status_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v2beta1_container_resource_metric_status.h b/kubernetes/model/v2beta1_container_resource_metric_status.h deleted file mode 100644 index ecafadb..0000000 --- a/kubernetes/model/v2beta1_container_resource_metric_status.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * v2beta1_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 _v2beta1_container_resource_metric_status_H_ -#define _v2beta1_container_resource_metric_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta1_container_resource_metric_status_t v2beta1_container_resource_metric_status_t; - - - - -typedef struct v2beta1_container_resource_metric_status_t { - char *container; // string - int current_average_utilization; //numeric - char *current_average_value; // string - char *name; // string - -} v2beta1_container_resource_metric_status_t; - -v2beta1_container_resource_metric_status_t *v2beta1_container_resource_metric_status_create( - char *container, - int current_average_utilization, - char *current_average_value, - char *name -); - -void v2beta1_container_resource_metric_status_free(v2beta1_container_resource_metric_status_t *v2beta1_container_resource_metric_status); - -v2beta1_container_resource_metric_status_t *v2beta1_container_resource_metric_status_parseFromJSON(cJSON *v2beta1_container_resource_metric_statusJSON); - -cJSON *v2beta1_container_resource_metric_status_convertToJSON(v2beta1_container_resource_metric_status_t *v2beta1_container_resource_metric_status); - -#endif /* _v2beta1_container_resource_metric_status_H_ */ - diff --git a/kubernetes/model/v2beta1_cross_version_object_reference.c b/kubernetes/model/v2beta1_cross_version_object_reference.c deleted file mode 100644 index 83c91e0..0000000 --- a/kubernetes/model/v2beta1_cross_version_object_reference.c +++ /dev/null @@ -1,129 +0,0 @@ -#include -#include -#include -#include "v2beta1_cross_version_object_reference.h" - - - -v2beta1_cross_version_object_reference_t *v2beta1_cross_version_object_reference_create( - char *api_version, - char *kind, - char *name - ) { - v2beta1_cross_version_object_reference_t *v2beta1_cross_version_object_reference_local_var = malloc(sizeof(v2beta1_cross_version_object_reference_t)); - if (!v2beta1_cross_version_object_reference_local_var) { - return NULL; - } - v2beta1_cross_version_object_reference_local_var->api_version = api_version; - v2beta1_cross_version_object_reference_local_var->kind = kind; - v2beta1_cross_version_object_reference_local_var->name = name; - - return v2beta1_cross_version_object_reference_local_var; -} - - -void v2beta1_cross_version_object_reference_free(v2beta1_cross_version_object_reference_t *v2beta1_cross_version_object_reference) { - if(NULL == v2beta1_cross_version_object_reference){ - return ; - } - listEntry_t *listEntry; - if (v2beta1_cross_version_object_reference->api_version) { - free(v2beta1_cross_version_object_reference->api_version); - v2beta1_cross_version_object_reference->api_version = NULL; - } - if (v2beta1_cross_version_object_reference->kind) { - free(v2beta1_cross_version_object_reference->kind); - v2beta1_cross_version_object_reference->kind = NULL; - } - if (v2beta1_cross_version_object_reference->name) { - free(v2beta1_cross_version_object_reference->name); - v2beta1_cross_version_object_reference->name = NULL; - } - free(v2beta1_cross_version_object_reference); -} - -cJSON *v2beta1_cross_version_object_reference_convertToJSON(v2beta1_cross_version_object_reference_t *v2beta1_cross_version_object_reference) { - cJSON *item = cJSON_CreateObject(); - - // v2beta1_cross_version_object_reference->api_version - if(v2beta1_cross_version_object_reference->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v2beta1_cross_version_object_reference->api_version) == NULL) { - goto fail; //String - } - } - - - // v2beta1_cross_version_object_reference->kind - if (!v2beta1_cross_version_object_reference->kind) { - goto fail; - } - if(cJSON_AddStringToObject(item, "kind", v2beta1_cross_version_object_reference->kind) == NULL) { - goto fail; //String - } - - - // v2beta1_cross_version_object_reference->name - if (!v2beta1_cross_version_object_reference->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v2beta1_cross_version_object_reference->name) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta1_cross_version_object_reference_t *v2beta1_cross_version_object_reference_parseFromJSON(cJSON *v2beta1_cross_version_object_referenceJSON){ - - v2beta1_cross_version_object_reference_t *v2beta1_cross_version_object_reference_local_var = NULL; - - // v2beta1_cross_version_object_reference->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v2beta1_cross_version_object_referenceJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version)) - { - goto end; //String - } - } - - // v2beta1_cross_version_object_reference->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v2beta1_cross_version_object_referenceJSON, "kind"); - if (!kind) { - goto end; - } - - - if(!cJSON_IsString(kind)) - { - goto end; //String - } - - // v2beta1_cross_version_object_reference->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v2beta1_cross_version_object_referenceJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - - v2beta1_cross_version_object_reference_local_var = v2beta1_cross_version_object_reference_create ( - api_version ? strdup(api_version->valuestring) : NULL, - strdup(kind->valuestring), - strdup(name->valuestring) - ); - - return v2beta1_cross_version_object_reference_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v2beta1_cross_version_object_reference.h b/kubernetes/model/v2beta1_cross_version_object_reference.h deleted file mode 100644 index 8b455ba..0000000 --- a/kubernetes/model/v2beta1_cross_version_object_reference.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v2beta1_cross_version_object_reference.h - * - * CrossVersionObjectReference contains enough information to let you identify the referred resource. - */ - -#ifndef _v2beta1_cross_version_object_reference_H_ -#define _v2beta1_cross_version_object_reference_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta1_cross_version_object_reference_t v2beta1_cross_version_object_reference_t; - - - - -typedef struct v2beta1_cross_version_object_reference_t { - char *api_version; // string - char *kind; // string - char *name; // string - -} v2beta1_cross_version_object_reference_t; - -v2beta1_cross_version_object_reference_t *v2beta1_cross_version_object_reference_create( - char *api_version, - char *kind, - char *name -); - -void v2beta1_cross_version_object_reference_free(v2beta1_cross_version_object_reference_t *v2beta1_cross_version_object_reference); - -v2beta1_cross_version_object_reference_t *v2beta1_cross_version_object_reference_parseFromJSON(cJSON *v2beta1_cross_version_object_referenceJSON); - -cJSON *v2beta1_cross_version_object_reference_convertToJSON(v2beta1_cross_version_object_reference_t *v2beta1_cross_version_object_reference); - -#endif /* _v2beta1_cross_version_object_reference_H_ */ - diff --git a/kubernetes/model/v2beta1_external_metric_source.c b/kubernetes/model/v2beta1_external_metric_source.c deleted file mode 100644 index d445d23..0000000 --- a/kubernetes/model/v2beta1_external_metric_source.c +++ /dev/null @@ -1,158 +0,0 @@ -#include -#include -#include -#include "v2beta1_external_metric_source.h" - - - -v2beta1_external_metric_source_t *v2beta1_external_metric_source_create( - char *metric_name, - v1_label_selector_t *metric_selector, - char *target_average_value, - char *target_value - ) { - v2beta1_external_metric_source_t *v2beta1_external_metric_source_local_var = malloc(sizeof(v2beta1_external_metric_source_t)); - if (!v2beta1_external_metric_source_local_var) { - return NULL; - } - v2beta1_external_metric_source_local_var->metric_name = metric_name; - v2beta1_external_metric_source_local_var->metric_selector = metric_selector; - v2beta1_external_metric_source_local_var->target_average_value = target_average_value; - v2beta1_external_metric_source_local_var->target_value = target_value; - - return v2beta1_external_metric_source_local_var; -} - - -void v2beta1_external_metric_source_free(v2beta1_external_metric_source_t *v2beta1_external_metric_source) { - if(NULL == v2beta1_external_metric_source){ - return ; - } - listEntry_t *listEntry; - if (v2beta1_external_metric_source->metric_name) { - free(v2beta1_external_metric_source->metric_name); - v2beta1_external_metric_source->metric_name = NULL; - } - if (v2beta1_external_metric_source->metric_selector) { - v1_label_selector_free(v2beta1_external_metric_source->metric_selector); - v2beta1_external_metric_source->metric_selector = NULL; - } - if (v2beta1_external_metric_source->target_average_value) { - free(v2beta1_external_metric_source->target_average_value); - v2beta1_external_metric_source->target_average_value = NULL; - } - if (v2beta1_external_metric_source->target_value) { - free(v2beta1_external_metric_source->target_value); - v2beta1_external_metric_source->target_value = NULL; - } - free(v2beta1_external_metric_source); -} - -cJSON *v2beta1_external_metric_source_convertToJSON(v2beta1_external_metric_source_t *v2beta1_external_metric_source) { - cJSON *item = cJSON_CreateObject(); - - // v2beta1_external_metric_source->metric_name - if (!v2beta1_external_metric_source->metric_name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "metricName", v2beta1_external_metric_source->metric_name) == NULL) { - goto fail; //String - } - - - // v2beta1_external_metric_source->metric_selector - if(v2beta1_external_metric_source->metric_selector) { - cJSON *metric_selector_local_JSON = v1_label_selector_convertToJSON(v2beta1_external_metric_source->metric_selector); - if(metric_selector_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metricSelector", metric_selector_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta1_external_metric_source->target_average_value - if(v2beta1_external_metric_source->target_average_value) { - if(cJSON_AddStringToObject(item, "targetAverageValue", v2beta1_external_metric_source->target_average_value) == NULL) { - goto fail; //String - } - } - - - // v2beta1_external_metric_source->target_value - if(v2beta1_external_metric_source->target_value) { - if(cJSON_AddStringToObject(item, "targetValue", v2beta1_external_metric_source->target_value) == NULL) { - goto fail; //String - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta1_external_metric_source_t *v2beta1_external_metric_source_parseFromJSON(cJSON *v2beta1_external_metric_sourceJSON){ - - v2beta1_external_metric_source_t *v2beta1_external_metric_source_local_var = NULL; - - // define the local variable for v2beta1_external_metric_source->metric_selector - v1_label_selector_t *metric_selector_local_nonprim = NULL; - - // v2beta1_external_metric_source->metric_name - cJSON *metric_name = cJSON_GetObjectItemCaseSensitive(v2beta1_external_metric_sourceJSON, "metricName"); - if (!metric_name) { - goto end; - } - - - if(!cJSON_IsString(metric_name)) - { - goto end; //String - } - - // v2beta1_external_metric_source->metric_selector - cJSON *metric_selector = cJSON_GetObjectItemCaseSensitive(v2beta1_external_metric_sourceJSON, "metricSelector"); - if (metric_selector) { - metric_selector_local_nonprim = v1_label_selector_parseFromJSON(metric_selector); //nonprimitive - } - - // v2beta1_external_metric_source->target_average_value - cJSON *target_average_value = cJSON_GetObjectItemCaseSensitive(v2beta1_external_metric_sourceJSON, "targetAverageValue"); - if (target_average_value) { - if(!cJSON_IsString(target_average_value)) - { - goto end; //String - } - } - - // v2beta1_external_metric_source->target_value - cJSON *target_value = cJSON_GetObjectItemCaseSensitive(v2beta1_external_metric_sourceJSON, "targetValue"); - if (target_value) { - if(!cJSON_IsString(target_value)) - { - goto end; //String - } - } - - - v2beta1_external_metric_source_local_var = v2beta1_external_metric_source_create ( - strdup(metric_name->valuestring), - metric_selector ? metric_selector_local_nonprim : NULL, - target_average_value ? strdup(target_average_value->valuestring) : NULL, - target_value ? strdup(target_value->valuestring) : NULL - ); - - return v2beta1_external_metric_source_local_var; -end: - if (metric_selector_local_nonprim) { - v1_label_selector_free(metric_selector_local_nonprim); - metric_selector_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta1_external_metric_source.h b/kubernetes/model/v2beta1_external_metric_source.h deleted file mode 100644 index e7514fb..0000000 --- a/kubernetes/model/v2beta1_external_metric_source.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * v2beta1_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). Exactly one \"target\" type should be set. - */ - -#ifndef _v2beta1_external_metric_source_H_ -#define _v2beta1_external_metric_source_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta1_external_metric_source_t v2beta1_external_metric_source_t; - -#include "v1_label_selector.h" - - - -typedef struct v2beta1_external_metric_source_t { - char *metric_name; // string - struct v1_label_selector_t *metric_selector; //model - char *target_average_value; // string - char *target_value; // string - -} v2beta1_external_metric_source_t; - -v2beta1_external_metric_source_t *v2beta1_external_metric_source_create( - char *metric_name, - v1_label_selector_t *metric_selector, - char *target_average_value, - char *target_value -); - -void v2beta1_external_metric_source_free(v2beta1_external_metric_source_t *v2beta1_external_metric_source); - -v2beta1_external_metric_source_t *v2beta1_external_metric_source_parseFromJSON(cJSON *v2beta1_external_metric_sourceJSON); - -cJSON *v2beta1_external_metric_source_convertToJSON(v2beta1_external_metric_source_t *v2beta1_external_metric_source); - -#endif /* _v2beta1_external_metric_source_H_ */ - diff --git a/kubernetes/model/v2beta1_external_metric_status.c b/kubernetes/model/v2beta1_external_metric_status.c deleted file mode 100644 index 7f72c6a..0000000 --- a/kubernetes/model/v2beta1_external_metric_status.c +++ /dev/null @@ -1,162 +0,0 @@ -#include -#include -#include -#include "v2beta1_external_metric_status.h" - - - -v2beta1_external_metric_status_t *v2beta1_external_metric_status_create( - char *current_average_value, - char *current_value, - char *metric_name, - v1_label_selector_t *metric_selector - ) { - v2beta1_external_metric_status_t *v2beta1_external_metric_status_local_var = malloc(sizeof(v2beta1_external_metric_status_t)); - if (!v2beta1_external_metric_status_local_var) { - return NULL; - } - v2beta1_external_metric_status_local_var->current_average_value = current_average_value; - v2beta1_external_metric_status_local_var->current_value = current_value; - v2beta1_external_metric_status_local_var->metric_name = metric_name; - v2beta1_external_metric_status_local_var->metric_selector = metric_selector; - - return v2beta1_external_metric_status_local_var; -} - - -void v2beta1_external_metric_status_free(v2beta1_external_metric_status_t *v2beta1_external_metric_status) { - if(NULL == v2beta1_external_metric_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta1_external_metric_status->current_average_value) { - free(v2beta1_external_metric_status->current_average_value); - v2beta1_external_metric_status->current_average_value = NULL; - } - if (v2beta1_external_metric_status->current_value) { - free(v2beta1_external_metric_status->current_value); - v2beta1_external_metric_status->current_value = NULL; - } - if (v2beta1_external_metric_status->metric_name) { - free(v2beta1_external_metric_status->metric_name); - v2beta1_external_metric_status->metric_name = NULL; - } - if (v2beta1_external_metric_status->metric_selector) { - v1_label_selector_free(v2beta1_external_metric_status->metric_selector); - v2beta1_external_metric_status->metric_selector = NULL; - } - free(v2beta1_external_metric_status); -} - -cJSON *v2beta1_external_metric_status_convertToJSON(v2beta1_external_metric_status_t *v2beta1_external_metric_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta1_external_metric_status->current_average_value - if(v2beta1_external_metric_status->current_average_value) { - if(cJSON_AddStringToObject(item, "currentAverageValue", v2beta1_external_metric_status->current_average_value) == NULL) { - goto fail; //String - } - } - - - // v2beta1_external_metric_status->current_value - if (!v2beta1_external_metric_status->current_value) { - goto fail; - } - if(cJSON_AddStringToObject(item, "currentValue", v2beta1_external_metric_status->current_value) == NULL) { - goto fail; //String - } - - - // v2beta1_external_metric_status->metric_name - if (!v2beta1_external_metric_status->metric_name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "metricName", v2beta1_external_metric_status->metric_name) == NULL) { - goto fail; //String - } - - - // v2beta1_external_metric_status->metric_selector - if(v2beta1_external_metric_status->metric_selector) { - cJSON *metric_selector_local_JSON = v1_label_selector_convertToJSON(v2beta1_external_metric_status->metric_selector); - if(metric_selector_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metricSelector", metric_selector_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta1_external_metric_status_t *v2beta1_external_metric_status_parseFromJSON(cJSON *v2beta1_external_metric_statusJSON){ - - v2beta1_external_metric_status_t *v2beta1_external_metric_status_local_var = NULL; - - // define the local variable for v2beta1_external_metric_status->metric_selector - v1_label_selector_t *metric_selector_local_nonprim = NULL; - - // v2beta1_external_metric_status->current_average_value - cJSON *current_average_value = cJSON_GetObjectItemCaseSensitive(v2beta1_external_metric_statusJSON, "currentAverageValue"); - if (current_average_value) { - if(!cJSON_IsString(current_average_value)) - { - goto end; //String - } - } - - // v2beta1_external_metric_status->current_value - cJSON *current_value = cJSON_GetObjectItemCaseSensitive(v2beta1_external_metric_statusJSON, "currentValue"); - if (!current_value) { - goto end; - } - - - if(!cJSON_IsString(current_value)) - { - goto end; //String - } - - // v2beta1_external_metric_status->metric_name - cJSON *metric_name = cJSON_GetObjectItemCaseSensitive(v2beta1_external_metric_statusJSON, "metricName"); - if (!metric_name) { - goto end; - } - - - if(!cJSON_IsString(metric_name)) - { - goto end; //String - } - - // v2beta1_external_metric_status->metric_selector - cJSON *metric_selector = cJSON_GetObjectItemCaseSensitive(v2beta1_external_metric_statusJSON, "metricSelector"); - if (metric_selector) { - metric_selector_local_nonprim = v1_label_selector_parseFromJSON(metric_selector); //nonprimitive - } - - - v2beta1_external_metric_status_local_var = v2beta1_external_metric_status_create ( - current_average_value ? strdup(current_average_value->valuestring) : NULL, - strdup(current_value->valuestring), - strdup(metric_name->valuestring), - metric_selector ? metric_selector_local_nonprim : NULL - ); - - return v2beta1_external_metric_status_local_var; -end: - if (metric_selector_local_nonprim) { - v1_label_selector_free(metric_selector_local_nonprim); - metric_selector_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta1_external_metric_status.h b/kubernetes/model/v2beta1_external_metric_status.h deleted file mode 100644 index 0db0cb0..0000000 --- a/kubernetes/model/v2beta1_external_metric_status.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * v2beta1_external_metric_status.h - * - * ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object. - */ - -#ifndef _v2beta1_external_metric_status_H_ -#define _v2beta1_external_metric_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta1_external_metric_status_t v2beta1_external_metric_status_t; - -#include "v1_label_selector.h" - - - -typedef struct v2beta1_external_metric_status_t { - char *current_average_value; // string - char *current_value; // string - char *metric_name; // string - struct v1_label_selector_t *metric_selector; //model - -} v2beta1_external_metric_status_t; - -v2beta1_external_metric_status_t *v2beta1_external_metric_status_create( - char *current_average_value, - char *current_value, - char *metric_name, - v1_label_selector_t *metric_selector -); - -void v2beta1_external_metric_status_free(v2beta1_external_metric_status_t *v2beta1_external_metric_status); - -v2beta1_external_metric_status_t *v2beta1_external_metric_status_parseFromJSON(cJSON *v2beta1_external_metric_statusJSON); - -cJSON *v2beta1_external_metric_status_convertToJSON(v2beta1_external_metric_status_t *v2beta1_external_metric_status); - -#endif /* _v2beta1_external_metric_status_H_ */ - diff --git a/kubernetes/model/v2beta1_horizontal_pod_autoscaler.c b/kubernetes/model/v2beta1_horizontal_pod_autoscaler.c deleted file mode 100644 index 8d93035..0000000 --- a/kubernetes/model/v2beta1_horizontal_pod_autoscaler.c +++ /dev/null @@ -1,196 +0,0 @@ -#include -#include -#include -#include "v2beta1_horizontal_pod_autoscaler.h" - - - -v2beta1_horizontal_pod_autoscaler_t *v2beta1_horizontal_pod_autoscaler_create( - char *api_version, - char *kind, - v1_object_meta_t *metadata, - v2beta1_horizontal_pod_autoscaler_spec_t *spec, - v2beta1_horizontal_pod_autoscaler_status_t *status - ) { - v2beta1_horizontal_pod_autoscaler_t *v2beta1_horizontal_pod_autoscaler_local_var = malloc(sizeof(v2beta1_horizontal_pod_autoscaler_t)); - if (!v2beta1_horizontal_pod_autoscaler_local_var) { - return NULL; - } - v2beta1_horizontal_pod_autoscaler_local_var->api_version = api_version; - v2beta1_horizontal_pod_autoscaler_local_var->kind = kind; - v2beta1_horizontal_pod_autoscaler_local_var->metadata = metadata; - v2beta1_horizontal_pod_autoscaler_local_var->spec = spec; - v2beta1_horizontal_pod_autoscaler_local_var->status = status; - - return v2beta1_horizontal_pod_autoscaler_local_var; -} - - -void v2beta1_horizontal_pod_autoscaler_free(v2beta1_horizontal_pod_autoscaler_t *v2beta1_horizontal_pod_autoscaler) { - if(NULL == v2beta1_horizontal_pod_autoscaler){ - return ; - } - listEntry_t *listEntry; - if (v2beta1_horizontal_pod_autoscaler->api_version) { - free(v2beta1_horizontal_pod_autoscaler->api_version); - v2beta1_horizontal_pod_autoscaler->api_version = NULL; - } - if (v2beta1_horizontal_pod_autoscaler->kind) { - free(v2beta1_horizontal_pod_autoscaler->kind); - v2beta1_horizontal_pod_autoscaler->kind = NULL; - } - if (v2beta1_horizontal_pod_autoscaler->metadata) { - v1_object_meta_free(v2beta1_horizontal_pod_autoscaler->metadata); - v2beta1_horizontal_pod_autoscaler->metadata = NULL; - } - if (v2beta1_horizontal_pod_autoscaler->spec) { - v2beta1_horizontal_pod_autoscaler_spec_free(v2beta1_horizontal_pod_autoscaler->spec); - v2beta1_horizontal_pod_autoscaler->spec = NULL; - } - if (v2beta1_horizontal_pod_autoscaler->status) { - v2beta1_horizontal_pod_autoscaler_status_free(v2beta1_horizontal_pod_autoscaler->status); - v2beta1_horizontal_pod_autoscaler->status = NULL; - } - free(v2beta1_horizontal_pod_autoscaler); -} - -cJSON *v2beta1_horizontal_pod_autoscaler_convertToJSON(v2beta1_horizontal_pod_autoscaler_t *v2beta1_horizontal_pod_autoscaler) { - cJSON *item = cJSON_CreateObject(); - - // v2beta1_horizontal_pod_autoscaler->api_version - if(v2beta1_horizontal_pod_autoscaler->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v2beta1_horizontal_pod_autoscaler->api_version) == NULL) { - goto fail; //String - } - } - - - // v2beta1_horizontal_pod_autoscaler->kind - if(v2beta1_horizontal_pod_autoscaler->kind) { - if(cJSON_AddStringToObject(item, "kind", v2beta1_horizontal_pod_autoscaler->kind) == NULL) { - goto fail; //String - } - } - - - // v2beta1_horizontal_pod_autoscaler->metadata - if(v2beta1_horizontal_pod_autoscaler->metadata) { - cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v2beta1_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; - } - } - - - // v2beta1_horizontal_pod_autoscaler->spec - if(v2beta1_horizontal_pod_autoscaler->spec) { - cJSON *spec_local_JSON = v2beta1_horizontal_pod_autoscaler_spec_convertToJSON(v2beta1_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; - } - } - - - // v2beta1_horizontal_pod_autoscaler->status - if(v2beta1_horizontal_pod_autoscaler->status) { - cJSON *status_local_JSON = v2beta1_horizontal_pod_autoscaler_status_convertToJSON(v2beta1_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; -} - -v2beta1_horizontal_pod_autoscaler_t *v2beta1_horizontal_pod_autoscaler_parseFromJSON(cJSON *v2beta1_horizontal_pod_autoscalerJSON){ - - v2beta1_horizontal_pod_autoscaler_t *v2beta1_horizontal_pod_autoscaler_local_var = NULL; - - // define the local variable for v2beta1_horizontal_pod_autoscaler->metadata - v1_object_meta_t *metadata_local_nonprim = NULL; - - // define the local variable for v2beta1_horizontal_pod_autoscaler->spec - v2beta1_horizontal_pod_autoscaler_spec_t *spec_local_nonprim = NULL; - - // define the local variable for v2beta1_horizontal_pod_autoscaler->status - v2beta1_horizontal_pod_autoscaler_status_t *status_local_nonprim = NULL; - - // v2beta1_horizontal_pod_autoscaler->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v2beta1_horizontal_pod_autoscalerJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version)) - { - goto end; //String - } - } - - // v2beta1_horizontal_pod_autoscaler->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v2beta1_horizontal_pod_autoscalerJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind)) - { - goto end; //String - } - } - - // v2beta1_horizontal_pod_autoscaler->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v2beta1_horizontal_pod_autoscalerJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive - } - - // v2beta1_horizontal_pod_autoscaler->spec - cJSON *spec = cJSON_GetObjectItemCaseSensitive(v2beta1_horizontal_pod_autoscalerJSON, "spec"); - if (spec) { - spec_local_nonprim = v2beta1_horizontal_pod_autoscaler_spec_parseFromJSON(spec); //nonprimitive - } - - // v2beta1_horizontal_pod_autoscaler->status - cJSON *status = cJSON_GetObjectItemCaseSensitive(v2beta1_horizontal_pod_autoscalerJSON, "status"); - if (status) { - status_local_nonprim = v2beta1_horizontal_pod_autoscaler_status_parseFromJSON(status); //nonprimitive - } - - - v2beta1_horizontal_pod_autoscaler_local_var = v2beta1_horizontal_pod_autoscaler_create ( - api_version ? strdup(api_version->valuestring) : NULL, - kind ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL, - spec ? spec_local_nonprim : NULL, - status ? status_local_nonprim : NULL - ); - - return v2beta1_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) { - v2beta1_horizontal_pod_autoscaler_spec_free(spec_local_nonprim); - spec_local_nonprim = NULL; - } - if (status_local_nonprim) { - v2beta1_horizontal_pod_autoscaler_status_free(status_local_nonprim); - status_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta1_horizontal_pod_autoscaler.h b/kubernetes/model/v2beta1_horizontal_pod_autoscaler.h deleted file mode 100644 index 3ce2fb0..0000000 --- a/kubernetes/model/v2beta1_horizontal_pod_autoscaler.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * v2beta1_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 _v2beta1_horizontal_pod_autoscaler_H_ -#define _v2beta1_horizontal_pod_autoscaler_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta1_horizontal_pod_autoscaler_t v2beta1_horizontal_pod_autoscaler_t; - -#include "v1_object_meta.h" -#include "v2beta1_horizontal_pod_autoscaler_spec.h" -#include "v2beta1_horizontal_pod_autoscaler_status.h" - - - -typedef struct v2beta1_horizontal_pod_autoscaler_t { - char *api_version; // string - char *kind; // string - struct v1_object_meta_t *metadata; //model - struct v2beta1_horizontal_pod_autoscaler_spec_t *spec; //model - struct v2beta1_horizontal_pod_autoscaler_status_t *status; //model - -} v2beta1_horizontal_pod_autoscaler_t; - -v2beta1_horizontal_pod_autoscaler_t *v2beta1_horizontal_pod_autoscaler_create( - char *api_version, - char *kind, - v1_object_meta_t *metadata, - v2beta1_horizontal_pod_autoscaler_spec_t *spec, - v2beta1_horizontal_pod_autoscaler_status_t *status -); - -void v2beta1_horizontal_pod_autoscaler_free(v2beta1_horizontal_pod_autoscaler_t *v2beta1_horizontal_pod_autoscaler); - -v2beta1_horizontal_pod_autoscaler_t *v2beta1_horizontal_pod_autoscaler_parseFromJSON(cJSON *v2beta1_horizontal_pod_autoscalerJSON); - -cJSON *v2beta1_horizontal_pod_autoscaler_convertToJSON(v2beta1_horizontal_pod_autoscaler_t *v2beta1_horizontal_pod_autoscaler); - -#endif /* _v2beta1_horizontal_pod_autoscaler_H_ */ - diff --git a/kubernetes/model/v2beta1_horizontal_pod_autoscaler_condition.c b/kubernetes/model/v2beta1_horizontal_pod_autoscaler_condition.c deleted file mode 100644 index 337a993..0000000 --- a/kubernetes/model/v2beta1_horizontal_pod_autoscaler_condition.c +++ /dev/null @@ -1,177 +0,0 @@ -#include -#include -#include -#include "v2beta1_horizontal_pod_autoscaler_condition.h" - - - -v2beta1_horizontal_pod_autoscaler_condition_t *v2beta1_horizontal_pod_autoscaler_condition_create( - char *last_transition_time, - char *message, - char *reason, - char *status, - char *type - ) { - v2beta1_horizontal_pod_autoscaler_condition_t *v2beta1_horizontal_pod_autoscaler_condition_local_var = malloc(sizeof(v2beta1_horizontal_pod_autoscaler_condition_t)); - if (!v2beta1_horizontal_pod_autoscaler_condition_local_var) { - return NULL; - } - v2beta1_horizontal_pod_autoscaler_condition_local_var->last_transition_time = last_transition_time; - v2beta1_horizontal_pod_autoscaler_condition_local_var->message = message; - v2beta1_horizontal_pod_autoscaler_condition_local_var->reason = reason; - v2beta1_horizontal_pod_autoscaler_condition_local_var->status = status; - v2beta1_horizontal_pod_autoscaler_condition_local_var->type = type; - - return v2beta1_horizontal_pod_autoscaler_condition_local_var; -} - - -void v2beta1_horizontal_pod_autoscaler_condition_free(v2beta1_horizontal_pod_autoscaler_condition_t *v2beta1_horizontal_pod_autoscaler_condition) { - if(NULL == v2beta1_horizontal_pod_autoscaler_condition){ - return ; - } - listEntry_t *listEntry; - if (v2beta1_horizontal_pod_autoscaler_condition->last_transition_time) { - free(v2beta1_horizontal_pod_autoscaler_condition->last_transition_time); - v2beta1_horizontal_pod_autoscaler_condition->last_transition_time = NULL; - } - if (v2beta1_horizontal_pod_autoscaler_condition->message) { - free(v2beta1_horizontal_pod_autoscaler_condition->message); - v2beta1_horizontal_pod_autoscaler_condition->message = NULL; - } - if (v2beta1_horizontal_pod_autoscaler_condition->reason) { - free(v2beta1_horizontal_pod_autoscaler_condition->reason); - v2beta1_horizontal_pod_autoscaler_condition->reason = NULL; - } - if (v2beta1_horizontal_pod_autoscaler_condition->status) { - free(v2beta1_horizontal_pod_autoscaler_condition->status); - v2beta1_horizontal_pod_autoscaler_condition->status = NULL; - } - if (v2beta1_horizontal_pod_autoscaler_condition->type) { - free(v2beta1_horizontal_pod_autoscaler_condition->type); - v2beta1_horizontal_pod_autoscaler_condition->type = NULL; - } - free(v2beta1_horizontal_pod_autoscaler_condition); -} - -cJSON *v2beta1_horizontal_pod_autoscaler_condition_convertToJSON(v2beta1_horizontal_pod_autoscaler_condition_t *v2beta1_horizontal_pod_autoscaler_condition) { - cJSON *item = cJSON_CreateObject(); - - // v2beta1_horizontal_pod_autoscaler_condition->last_transition_time - if(v2beta1_horizontal_pod_autoscaler_condition->last_transition_time) { - if(cJSON_AddStringToObject(item, "lastTransitionTime", v2beta1_horizontal_pod_autoscaler_condition->last_transition_time) == NULL) { - goto fail; //Date-Time - } - } - - - // v2beta1_horizontal_pod_autoscaler_condition->message - if(v2beta1_horizontal_pod_autoscaler_condition->message) { - if(cJSON_AddStringToObject(item, "message", v2beta1_horizontal_pod_autoscaler_condition->message) == NULL) { - goto fail; //String - } - } - - - // v2beta1_horizontal_pod_autoscaler_condition->reason - if(v2beta1_horizontal_pod_autoscaler_condition->reason) { - if(cJSON_AddStringToObject(item, "reason", v2beta1_horizontal_pod_autoscaler_condition->reason) == NULL) { - goto fail; //String - } - } - - - // v2beta1_horizontal_pod_autoscaler_condition->status - if (!v2beta1_horizontal_pod_autoscaler_condition->status) { - goto fail; - } - if(cJSON_AddStringToObject(item, "status", v2beta1_horizontal_pod_autoscaler_condition->status) == NULL) { - goto fail; //String - } - - - // v2beta1_horizontal_pod_autoscaler_condition->type - if (!v2beta1_horizontal_pod_autoscaler_condition->type) { - goto fail; - } - if(cJSON_AddStringToObject(item, "type", v2beta1_horizontal_pod_autoscaler_condition->type) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta1_horizontal_pod_autoscaler_condition_t *v2beta1_horizontal_pod_autoscaler_condition_parseFromJSON(cJSON *v2beta1_horizontal_pod_autoscaler_conditionJSON){ - - v2beta1_horizontal_pod_autoscaler_condition_t *v2beta1_horizontal_pod_autoscaler_condition_local_var = NULL; - - // v2beta1_horizontal_pod_autoscaler_condition->last_transition_time - cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v2beta1_horizontal_pod_autoscaler_conditionJSON, "lastTransitionTime"); - if (last_transition_time) { - if(!cJSON_IsString(last_transition_time)) - { - goto end; //DateTime - } - } - - // v2beta1_horizontal_pod_autoscaler_condition->message - cJSON *message = cJSON_GetObjectItemCaseSensitive(v2beta1_horizontal_pod_autoscaler_conditionJSON, "message"); - if (message) { - if(!cJSON_IsString(message)) - { - goto end; //String - } - } - - // v2beta1_horizontal_pod_autoscaler_condition->reason - cJSON *reason = cJSON_GetObjectItemCaseSensitive(v2beta1_horizontal_pod_autoscaler_conditionJSON, "reason"); - if (reason) { - if(!cJSON_IsString(reason)) - { - goto end; //String - } - } - - // v2beta1_horizontal_pod_autoscaler_condition->status - cJSON *status = cJSON_GetObjectItemCaseSensitive(v2beta1_horizontal_pod_autoscaler_conditionJSON, "status"); - if (!status) { - goto end; - } - - - if(!cJSON_IsString(status)) - { - goto end; //String - } - - // v2beta1_horizontal_pod_autoscaler_condition->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v2beta1_horizontal_pod_autoscaler_conditionJSON, "type"); - if (!type) { - goto end; - } - - - if(!cJSON_IsString(type)) - { - goto end; //String - } - - - v2beta1_horizontal_pod_autoscaler_condition_local_var = v2beta1_horizontal_pod_autoscaler_condition_create ( - last_transition_time ? strdup(last_transition_time->valuestring) : NULL, - message ? strdup(message->valuestring) : NULL, - reason ? strdup(reason->valuestring) : NULL, - strdup(status->valuestring), - strdup(type->valuestring) - ); - - return v2beta1_horizontal_pod_autoscaler_condition_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v2beta1_horizontal_pod_autoscaler_condition.h b/kubernetes/model/v2beta1_horizontal_pod_autoscaler_condition.h deleted file mode 100644 index 663a386..0000000 --- a/kubernetes/model/v2beta1_horizontal_pod_autoscaler_condition.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v2beta1_horizontal_pod_autoscaler_condition.h - * - * HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point. - */ - -#ifndef _v2beta1_horizontal_pod_autoscaler_condition_H_ -#define _v2beta1_horizontal_pod_autoscaler_condition_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta1_horizontal_pod_autoscaler_condition_t v2beta1_horizontal_pod_autoscaler_condition_t; - - - - -typedef struct v2beta1_horizontal_pod_autoscaler_condition_t { - char *last_transition_time; //date time - char *message; // string - char *reason; // string - char *status; // string - char *type; // string - -} v2beta1_horizontal_pod_autoscaler_condition_t; - -v2beta1_horizontal_pod_autoscaler_condition_t *v2beta1_horizontal_pod_autoscaler_condition_create( - char *last_transition_time, - char *message, - char *reason, - char *status, - char *type -); - -void v2beta1_horizontal_pod_autoscaler_condition_free(v2beta1_horizontal_pod_autoscaler_condition_t *v2beta1_horizontal_pod_autoscaler_condition); - -v2beta1_horizontal_pod_autoscaler_condition_t *v2beta1_horizontal_pod_autoscaler_condition_parseFromJSON(cJSON *v2beta1_horizontal_pod_autoscaler_conditionJSON); - -cJSON *v2beta1_horizontal_pod_autoscaler_condition_convertToJSON(v2beta1_horizontal_pod_autoscaler_condition_t *v2beta1_horizontal_pod_autoscaler_condition); - -#endif /* _v2beta1_horizontal_pod_autoscaler_condition_H_ */ - diff --git a/kubernetes/model/v2beta1_horizontal_pod_autoscaler_list.c b/kubernetes/model/v2beta1_horizontal_pod_autoscaler_list.c deleted file mode 100644 index 05dc6a9..0000000 --- a/kubernetes/model/v2beta1_horizontal_pod_autoscaler_list.c +++ /dev/null @@ -1,197 +0,0 @@ -#include -#include -#include -#include "v2beta1_horizontal_pod_autoscaler_list.h" - - - -v2beta1_horizontal_pod_autoscaler_list_t *v2beta1_horizontal_pod_autoscaler_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata - ) { - v2beta1_horizontal_pod_autoscaler_list_t *v2beta1_horizontal_pod_autoscaler_list_local_var = malloc(sizeof(v2beta1_horizontal_pod_autoscaler_list_t)); - if (!v2beta1_horizontal_pod_autoscaler_list_local_var) { - return NULL; - } - v2beta1_horizontal_pod_autoscaler_list_local_var->api_version = api_version; - v2beta1_horizontal_pod_autoscaler_list_local_var->items = items; - v2beta1_horizontal_pod_autoscaler_list_local_var->kind = kind; - v2beta1_horizontal_pod_autoscaler_list_local_var->metadata = metadata; - - return v2beta1_horizontal_pod_autoscaler_list_local_var; -} - - -void v2beta1_horizontal_pod_autoscaler_list_free(v2beta1_horizontal_pod_autoscaler_list_t *v2beta1_horizontal_pod_autoscaler_list) { - if(NULL == v2beta1_horizontal_pod_autoscaler_list){ - return ; - } - listEntry_t *listEntry; - if (v2beta1_horizontal_pod_autoscaler_list->api_version) { - free(v2beta1_horizontal_pod_autoscaler_list->api_version); - v2beta1_horizontal_pod_autoscaler_list->api_version = NULL; - } - if (v2beta1_horizontal_pod_autoscaler_list->items) { - list_ForEach(listEntry, v2beta1_horizontal_pod_autoscaler_list->items) { - v2beta1_horizontal_pod_autoscaler_free(listEntry->data); - } - list_freeList(v2beta1_horizontal_pod_autoscaler_list->items); - v2beta1_horizontal_pod_autoscaler_list->items = NULL; - } - if (v2beta1_horizontal_pod_autoscaler_list->kind) { - free(v2beta1_horizontal_pod_autoscaler_list->kind); - v2beta1_horizontal_pod_autoscaler_list->kind = NULL; - } - if (v2beta1_horizontal_pod_autoscaler_list->metadata) { - v1_list_meta_free(v2beta1_horizontal_pod_autoscaler_list->metadata); - v2beta1_horizontal_pod_autoscaler_list->metadata = NULL; - } - free(v2beta1_horizontal_pod_autoscaler_list); -} - -cJSON *v2beta1_horizontal_pod_autoscaler_list_convertToJSON(v2beta1_horizontal_pod_autoscaler_list_t *v2beta1_horizontal_pod_autoscaler_list) { - cJSON *item = cJSON_CreateObject(); - - // v2beta1_horizontal_pod_autoscaler_list->api_version - if(v2beta1_horizontal_pod_autoscaler_list->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v2beta1_horizontal_pod_autoscaler_list->api_version) == NULL) { - goto fail; //String - } - } - - - // v2beta1_horizontal_pod_autoscaler_list->items - if (!v2beta1_horizontal_pod_autoscaler_list->items) { - goto fail; - } - cJSON *items = cJSON_AddArrayToObject(item, "items"); - if(items == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *itemsListEntry; - if (v2beta1_horizontal_pod_autoscaler_list->items) { - list_ForEach(itemsListEntry, v2beta1_horizontal_pod_autoscaler_list->items) { - cJSON *itemLocal = v2beta1_horizontal_pod_autoscaler_convertToJSON(itemsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(items, itemLocal); - } - } - - - // v2beta1_horizontal_pod_autoscaler_list->kind - if(v2beta1_horizontal_pod_autoscaler_list->kind) { - if(cJSON_AddStringToObject(item, "kind", v2beta1_horizontal_pod_autoscaler_list->kind) == NULL) { - goto fail; //String - } - } - - - // v2beta1_horizontal_pod_autoscaler_list->metadata - if(v2beta1_horizontal_pod_autoscaler_list->metadata) { - cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v2beta1_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; -} - -v2beta1_horizontal_pod_autoscaler_list_t *v2beta1_horizontal_pod_autoscaler_list_parseFromJSON(cJSON *v2beta1_horizontal_pod_autoscaler_listJSON){ - - v2beta1_horizontal_pod_autoscaler_list_t *v2beta1_horizontal_pod_autoscaler_list_local_var = NULL; - - // define the local list for v2beta1_horizontal_pod_autoscaler_list->items - list_t *itemsList = NULL; - - // define the local variable for v2beta1_horizontal_pod_autoscaler_list->metadata - v1_list_meta_t *metadata_local_nonprim = NULL; - - // v2beta1_horizontal_pod_autoscaler_list->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v2beta1_horizontal_pod_autoscaler_listJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version)) - { - goto end; //String - } - } - - // v2beta1_horizontal_pod_autoscaler_list->items - cJSON *items = cJSON_GetObjectItemCaseSensitive(v2beta1_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; - } - v2beta1_horizontal_pod_autoscaler_t *itemsItem = v2beta1_horizontal_pod_autoscaler_parseFromJSON(items_local_nonprimitive); - - list_addElement(itemsList, itemsItem); - } - - // v2beta1_horizontal_pod_autoscaler_list->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v2beta1_horizontal_pod_autoscaler_listJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind)) - { - goto end; //String - } - } - - // v2beta1_horizontal_pod_autoscaler_list->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v2beta1_horizontal_pod_autoscaler_listJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive - } - - - v2beta1_horizontal_pod_autoscaler_list_local_var = v2beta1_horizontal_pod_autoscaler_list_create ( - api_version ? strdup(api_version->valuestring) : NULL, - itemsList, - kind ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL - ); - - return v2beta1_horizontal_pod_autoscaler_list_local_var; -end: - if (itemsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, itemsList) { - v2beta1_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/v2beta1_horizontal_pod_autoscaler_list.h b/kubernetes/model/v2beta1_horizontal_pod_autoscaler_list.h deleted file mode 100644 index cb42e6e..0000000 --- a/kubernetes/model/v2beta1_horizontal_pod_autoscaler_list.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v2beta1_horizontal_pod_autoscaler_list.h - * - * HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. - */ - -#ifndef _v2beta1_horizontal_pod_autoscaler_list_H_ -#define _v2beta1_horizontal_pod_autoscaler_list_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta1_horizontal_pod_autoscaler_list_t v2beta1_horizontal_pod_autoscaler_list_t; - -#include "v1_list_meta.h" -#include "v2beta1_horizontal_pod_autoscaler.h" - - - -typedef struct v2beta1_horizontal_pod_autoscaler_list_t { - char *api_version; // string - list_t *items; //nonprimitive container - char *kind; // string - struct v1_list_meta_t *metadata; //model - -} v2beta1_horizontal_pod_autoscaler_list_t; - -v2beta1_horizontal_pod_autoscaler_list_t *v2beta1_horizontal_pod_autoscaler_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata -); - -void v2beta1_horizontal_pod_autoscaler_list_free(v2beta1_horizontal_pod_autoscaler_list_t *v2beta1_horizontal_pod_autoscaler_list); - -v2beta1_horizontal_pod_autoscaler_list_t *v2beta1_horizontal_pod_autoscaler_list_parseFromJSON(cJSON *v2beta1_horizontal_pod_autoscaler_listJSON); - -cJSON *v2beta1_horizontal_pod_autoscaler_list_convertToJSON(v2beta1_horizontal_pod_autoscaler_list_t *v2beta1_horizontal_pod_autoscaler_list); - -#endif /* _v2beta1_horizontal_pod_autoscaler_list_H_ */ - diff --git a/kubernetes/model/v2beta1_horizontal_pod_autoscaler_spec.c b/kubernetes/model/v2beta1_horizontal_pod_autoscaler_spec.c deleted file mode 100644 index fd2192c..0000000 --- a/kubernetes/model/v2beta1_horizontal_pod_autoscaler_spec.c +++ /dev/null @@ -1,193 +0,0 @@ -#include -#include -#include -#include "v2beta1_horizontal_pod_autoscaler_spec.h" - - - -v2beta1_horizontal_pod_autoscaler_spec_t *v2beta1_horizontal_pod_autoscaler_spec_create( - int max_replicas, - list_t *metrics, - int min_replicas, - v2beta1_cross_version_object_reference_t *scale_target_ref - ) { - v2beta1_horizontal_pod_autoscaler_spec_t *v2beta1_horizontal_pod_autoscaler_spec_local_var = malloc(sizeof(v2beta1_horizontal_pod_autoscaler_spec_t)); - if (!v2beta1_horizontal_pod_autoscaler_spec_local_var) { - return NULL; - } - v2beta1_horizontal_pod_autoscaler_spec_local_var->max_replicas = max_replicas; - v2beta1_horizontal_pod_autoscaler_spec_local_var->metrics = metrics; - v2beta1_horizontal_pod_autoscaler_spec_local_var->min_replicas = min_replicas; - v2beta1_horizontal_pod_autoscaler_spec_local_var->scale_target_ref = scale_target_ref; - - return v2beta1_horizontal_pod_autoscaler_spec_local_var; -} - - -void v2beta1_horizontal_pod_autoscaler_spec_free(v2beta1_horizontal_pod_autoscaler_spec_t *v2beta1_horizontal_pod_autoscaler_spec) { - if(NULL == v2beta1_horizontal_pod_autoscaler_spec){ - return ; - } - listEntry_t *listEntry; - if (v2beta1_horizontal_pod_autoscaler_spec->metrics) { - list_ForEach(listEntry, v2beta1_horizontal_pod_autoscaler_spec->metrics) { - v2beta1_metric_spec_free(listEntry->data); - } - list_freeList(v2beta1_horizontal_pod_autoscaler_spec->metrics); - v2beta1_horizontal_pod_autoscaler_spec->metrics = NULL; - } - if (v2beta1_horizontal_pod_autoscaler_spec->scale_target_ref) { - v2beta1_cross_version_object_reference_free(v2beta1_horizontal_pod_autoscaler_spec->scale_target_ref); - v2beta1_horizontal_pod_autoscaler_spec->scale_target_ref = NULL; - } - free(v2beta1_horizontal_pod_autoscaler_spec); -} - -cJSON *v2beta1_horizontal_pod_autoscaler_spec_convertToJSON(v2beta1_horizontal_pod_autoscaler_spec_t *v2beta1_horizontal_pod_autoscaler_spec) { - cJSON *item = cJSON_CreateObject(); - - // v2beta1_horizontal_pod_autoscaler_spec->max_replicas - if (!v2beta1_horizontal_pod_autoscaler_spec->max_replicas) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "maxReplicas", v2beta1_horizontal_pod_autoscaler_spec->max_replicas) == NULL) { - goto fail; //Numeric - } - - - // v2beta1_horizontal_pod_autoscaler_spec->metrics - if(v2beta1_horizontal_pod_autoscaler_spec->metrics) { - cJSON *metrics = cJSON_AddArrayToObject(item, "metrics"); - if(metrics == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *metricsListEntry; - if (v2beta1_horizontal_pod_autoscaler_spec->metrics) { - list_ForEach(metricsListEntry, v2beta1_horizontal_pod_autoscaler_spec->metrics) { - cJSON *itemLocal = v2beta1_metric_spec_convertToJSON(metricsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(metrics, itemLocal); - } - } - } - - - // v2beta1_horizontal_pod_autoscaler_spec->min_replicas - if(v2beta1_horizontal_pod_autoscaler_spec->min_replicas) { - if(cJSON_AddNumberToObject(item, "minReplicas", v2beta1_horizontal_pod_autoscaler_spec->min_replicas) == NULL) { - goto fail; //Numeric - } - } - - - // v2beta1_horizontal_pod_autoscaler_spec->scale_target_ref - if (!v2beta1_horizontal_pod_autoscaler_spec->scale_target_ref) { - goto fail; - } - cJSON *scale_target_ref_local_JSON = v2beta1_cross_version_object_reference_convertToJSON(v2beta1_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; -} - -v2beta1_horizontal_pod_autoscaler_spec_t *v2beta1_horizontal_pod_autoscaler_spec_parseFromJSON(cJSON *v2beta1_horizontal_pod_autoscaler_specJSON){ - - v2beta1_horizontal_pod_autoscaler_spec_t *v2beta1_horizontal_pod_autoscaler_spec_local_var = NULL; - - // define the local list for v2beta1_horizontal_pod_autoscaler_spec->metrics - list_t *metricsList = NULL; - - // define the local variable for v2beta1_horizontal_pod_autoscaler_spec->scale_target_ref - v2beta1_cross_version_object_reference_t *scale_target_ref_local_nonprim = NULL; - - // v2beta1_horizontal_pod_autoscaler_spec->max_replicas - cJSON *max_replicas = cJSON_GetObjectItemCaseSensitive(v2beta1_horizontal_pod_autoscaler_specJSON, "maxReplicas"); - if (!max_replicas) { - goto end; - } - - - if(!cJSON_IsNumber(max_replicas)) - { - goto end; //Numeric - } - - // v2beta1_horizontal_pod_autoscaler_spec->metrics - cJSON *metrics = cJSON_GetObjectItemCaseSensitive(v2beta1_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; - } - v2beta1_metric_spec_t *metricsItem = v2beta1_metric_spec_parseFromJSON(metrics_local_nonprimitive); - - list_addElement(metricsList, metricsItem); - } - } - - // v2beta1_horizontal_pod_autoscaler_spec->min_replicas - cJSON *min_replicas = cJSON_GetObjectItemCaseSensitive(v2beta1_horizontal_pod_autoscaler_specJSON, "minReplicas"); - if (min_replicas) { - if(!cJSON_IsNumber(min_replicas)) - { - goto end; //Numeric - } - } - - // v2beta1_horizontal_pod_autoscaler_spec->scale_target_ref - cJSON *scale_target_ref = cJSON_GetObjectItemCaseSensitive(v2beta1_horizontal_pod_autoscaler_specJSON, "scaleTargetRef"); - if (!scale_target_ref) { - goto end; - } - - - scale_target_ref_local_nonprim = v2beta1_cross_version_object_reference_parseFromJSON(scale_target_ref); //nonprimitive - - - v2beta1_horizontal_pod_autoscaler_spec_local_var = v2beta1_horizontal_pod_autoscaler_spec_create ( - max_replicas->valuedouble, - metrics ? metricsList : NULL, - min_replicas ? min_replicas->valuedouble : 0, - scale_target_ref_local_nonprim - ); - - return v2beta1_horizontal_pod_autoscaler_spec_local_var; -end: - if (metricsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, metricsList) { - v2beta1_metric_spec_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(metricsList); - metricsList = NULL; - } - if (scale_target_ref_local_nonprim) { - v2beta1_cross_version_object_reference_free(scale_target_ref_local_nonprim); - scale_target_ref_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta1_horizontal_pod_autoscaler_spec.h b/kubernetes/model/v2beta1_horizontal_pod_autoscaler_spec.h deleted file mode 100644 index 396e80d..0000000 --- a/kubernetes/model/v2beta1_horizontal_pod_autoscaler_spec.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v2beta1_horizontal_pod_autoscaler_spec.h - * - * HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. - */ - -#ifndef _v2beta1_horizontal_pod_autoscaler_spec_H_ -#define _v2beta1_horizontal_pod_autoscaler_spec_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta1_horizontal_pod_autoscaler_spec_t v2beta1_horizontal_pod_autoscaler_spec_t; - -#include "v2beta1_cross_version_object_reference.h" -#include "v2beta1_metric_spec.h" - - - -typedef struct v2beta1_horizontal_pod_autoscaler_spec_t { - int max_replicas; //numeric - list_t *metrics; //nonprimitive container - int min_replicas; //numeric - struct v2beta1_cross_version_object_reference_t *scale_target_ref; //model - -} v2beta1_horizontal_pod_autoscaler_spec_t; - -v2beta1_horizontal_pod_autoscaler_spec_t *v2beta1_horizontal_pod_autoscaler_spec_create( - int max_replicas, - list_t *metrics, - int min_replicas, - v2beta1_cross_version_object_reference_t *scale_target_ref -); - -void v2beta1_horizontal_pod_autoscaler_spec_free(v2beta1_horizontal_pod_autoscaler_spec_t *v2beta1_horizontal_pod_autoscaler_spec); - -v2beta1_horizontal_pod_autoscaler_spec_t *v2beta1_horizontal_pod_autoscaler_spec_parseFromJSON(cJSON *v2beta1_horizontal_pod_autoscaler_specJSON); - -cJSON *v2beta1_horizontal_pod_autoscaler_spec_convertToJSON(v2beta1_horizontal_pod_autoscaler_spec_t *v2beta1_horizontal_pod_autoscaler_spec); - -#endif /* _v2beta1_horizontal_pod_autoscaler_spec_H_ */ - diff --git a/kubernetes/model/v2beta1_horizontal_pod_autoscaler_status.c b/kubernetes/model/v2beta1_horizontal_pod_autoscaler_status.c deleted file mode 100644 index eb37096..0000000 --- a/kubernetes/model/v2beta1_horizontal_pod_autoscaler_status.c +++ /dev/null @@ -1,267 +0,0 @@ -#include -#include -#include -#include "v2beta1_horizontal_pod_autoscaler_status.h" - - - -v2beta1_horizontal_pod_autoscaler_status_t *v2beta1_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 - ) { - v2beta1_horizontal_pod_autoscaler_status_t *v2beta1_horizontal_pod_autoscaler_status_local_var = malloc(sizeof(v2beta1_horizontal_pod_autoscaler_status_t)); - if (!v2beta1_horizontal_pod_autoscaler_status_local_var) { - return NULL; - } - v2beta1_horizontal_pod_autoscaler_status_local_var->conditions = conditions; - v2beta1_horizontal_pod_autoscaler_status_local_var->current_metrics = current_metrics; - v2beta1_horizontal_pod_autoscaler_status_local_var->current_replicas = current_replicas; - v2beta1_horizontal_pod_autoscaler_status_local_var->desired_replicas = desired_replicas; - v2beta1_horizontal_pod_autoscaler_status_local_var->last_scale_time = last_scale_time; - v2beta1_horizontal_pod_autoscaler_status_local_var->observed_generation = observed_generation; - - return v2beta1_horizontal_pod_autoscaler_status_local_var; -} - - -void v2beta1_horizontal_pod_autoscaler_status_free(v2beta1_horizontal_pod_autoscaler_status_t *v2beta1_horizontal_pod_autoscaler_status) { - if(NULL == v2beta1_horizontal_pod_autoscaler_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta1_horizontal_pod_autoscaler_status->conditions) { - list_ForEach(listEntry, v2beta1_horizontal_pod_autoscaler_status->conditions) { - v2beta1_horizontal_pod_autoscaler_condition_free(listEntry->data); - } - list_freeList(v2beta1_horizontal_pod_autoscaler_status->conditions); - v2beta1_horizontal_pod_autoscaler_status->conditions = NULL; - } - if (v2beta1_horizontal_pod_autoscaler_status->current_metrics) { - list_ForEach(listEntry, v2beta1_horizontal_pod_autoscaler_status->current_metrics) { - v2beta1_metric_status_free(listEntry->data); - } - list_freeList(v2beta1_horizontal_pod_autoscaler_status->current_metrics); - v2beta1_horizontal_pod_autoscaler_status->current_metrics = NULL; - } - if (v2beta1_horizontal_pod_autoscaler_status->last_scale_time) { - free(v2beta1_horizontal_pod_autoscaler_status->last_scale_time); - v2beta1_horizontal_pod_autoscaler_status->last_scale_time = NULL; - } - free(v2beta1_horizontal_pod_autoscaler_status); -} - -cJSON *v2beta1_horizontal_pod_autoscaler_status_convertToJSON(v2beta1_horizontal_pod_autoscaler_status_t *v2beta1_horizontal_pod_autoscaler_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta1_horizontal_pod_autoscaler_status->conditions - if(v2beta1_horizontal_pod_autoscaler_status->conditions) { - cJSON *conditions = cJSON_AddArrayToObject(item, "conditions"); - if(conditions == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *conditionsListEntry; - if (v2beta1_horizontal_pod_autoscaler_status->conditions) { - list_ForEach(conditionsListEntry, v2beta1_horizontal_pod_autoscaler_status->conditions) { - cJSON *itemLocal = v2beta1_horizontal_pod_autoscaler_condition_convertToJSON(conditionsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(conditions, itemLocal); - } - } - } - - - // v2beta1_horizontal_pod_autoscaler_status->current_metrics - if(v2beta1_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 (v2beta1_horizontal_pod_autoscaler_status->current_metrics) { - list_ForEach(current_metricsListEntry, v2beta1_horizontal_pod_autoscaler_status->current_metrics) { - cJSON *itemLocal = v2beta1_metric_status_convertToJSON(current_metricsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(current_metrics, itemLocal); - } - } - } - - - // v2beta1_horizontal_pod_autoscaler_status->current_replicas - if (!v2beta1_horizontal_pod_autoscaler_status->current_replicas) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "currentReplicas", v2beta1_horizontal_pod_autoscaler_status->current_replicas) == NULL) { - goto fail; //Numeric - } - - - // v2beta1_horizontal_pod_autoscaler_status->desired_replicas - if (!v2beta1_horizontal_pod_autoscaler_status->desired_replicas) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "desiredReplicas", v2beta1_horizontal_pod_autoscaler_status->desired_replicas) == NULL) { - goto fail; //Numeric - } - - - // v2beta1_horizontal_pod_autoscaler_status->last_scale_time - if(v2beta1_horizontal_pod_autoscaler_status->last_scale_time) { - if(cJSON_AddStringToObject(item, "lastScaleTime", v2beta1_horizontal_pod_autoscaler_status->last_scale_time) == NULL) { - goto fail; //Date-Time - } - } - - - // v2beta1_horizontal_pod_autoscaler_status->observed_generation - if(v2beta1_horizontal_pod_autoscaler_status->observed_generation) { - if(cJSON_AddNumberToObject(item, "observedGeneration", v2beta1_horizontal_pod_autoscaler_status->observed_generation) == NULL) { - goto fail; //Numeric - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta1_horizontal_pod_autoscaler_status_t *v2beta1_horizontal_pod_autoscaler_status_parseFromJSON(cJSON *v2beta1_horizontal_pod_autoscaler_statusJSON){ - - v2beta1_horizontal_pod_autoscaler_status_t *v2beta1_horizontal_pod_autoscaler_status_local_var = NULL; - - // define the local list for v2beta1_horizontal_pod_autoscaler_status->conditions - list_t *conditionsList = NULL; - - // define the local list for v2beta1_horizontal_pod_autoscaler_status->current_metrics - list_t *current_metricsList = NULL; - - // v2beta1_horizontal_pod_autoscaler_status->conditions - cJSON *conditions = cJSON_GetObjectItemCaseSensitive(v2beta1_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; - } - v2beta1_horizontal_pod_autoscaler_condition_t *conditionsItem = v2beta1_horizontal_pod_autoscaler_condition_parseFromJSON(conditions_local_nonprimitive); - - list_addElement(conditionsList, conditionsItem); - } - } - - // v2beta1_horizontal_pod_autoscaler_status->current_metrics - cJSON *current_metrics = cJSON_GetObjectItemCaseSensitive(v2beta1_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; - } - v2beta1_metric_status_t *current_metricsItem = v2beta1_metric_status_parseFromJSON(current_metrics_local_nonprimitive); - - list_addElement(current_metricsList, current_metricsItem); - } - } - - // v2beta1_horizontal_pod_autoscaler_status->current_replicas - cJSON *current_replicas = cJSON_GetObjectItemCaseSensitive(v2beta1_horizontal_pod_autoscaler_statusJSON, "currentReplicas"); - if (!current_replicas) { - goto end; - } - - - if(!cJSON_IsNumber(current_replicas)) - { - goto end; //Numeric - } - - // v2beta1_horizontal_pod_autoscaler_status->desired_replicas - cJSON *desired_replicas = cJSON_GetObjectItemCaseSensitive(v2beta1_horizontal_pod_autoscaler_statusJSON, "desiredReplicas"); - if (!desired_replicas) { - goto end; - } - - - if(!cJSON_IsNumber(desired_replicas)) - { - goto end; //Numeric - } - - // v2beta1_horizontal_pod_autoscaler_status->last_scale_time - cJSON *last_scale_time = cJSON_GetObjectItemCaseSensitive(v2beta1_horizontal_pod_autoscaler_statusJSON, "lastScaleTime"); - if (last_scale_time) { - if(!cJSON_IsString(last_scale_time)) - { - goto end; //DateTime - } - } - - // v2beta1_horizontal_pod_autoscaler_status->observed_generation - cJSON *observed_generation = cJSON_GetObjectItemCaseSensitive(v2beta1_horizontal_pod_autoscaler_statusJSON, "observedGeneration"); - if (observed_generation) { - if(!cJSON_IsNumber(observed_generation)) - { - goto end; //Numeric - } - } - - - v2beta1_horizontal_pod_autoscaler_status_local_var = v2beta1_horizontal_pod_autoscaler_status_create ( - conditions ? conditionsList : NULL, - current_metrics ? current_metricsList : NULL, - current_replicas->valuedouble, - desired_replicas->valuedouble, - last_scale_time ? strdup(last_scale_time->valuestring) : NULL, - observed_generation ? observed_generation->valuedouble : 0 - ); - - return v2beta1_horizontal_pod_autoscaler_status_local_var; -end: - if (conditionsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, conditionsList) { - v2beta1_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) { - v2beta1_metric_status_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(current_metricsList); - current_metricsList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta1_horizontal_pod_autoscaler_status.h b/kubernetes/model/v2beta1_horizontal_pod_autoscaler_status.h deleted file mode 100644 index adbeeac..0000000 --- a/kubernetes/model/v2beta1_horizontal_pod_autoscaler_status.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * v2beta1_horizontal_pod_autoscaler_status.h - * - * HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. - */ - -#ifndef _v2beta1_horizontal_pod_autoscaler_status_H_ -#define _v2beta1_horizontal_pod_autoscaler_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta1_horizontal_pod_autoscaler_status_t v2beta1_horizontal_pod_autoscaler_status_t; - -#include "v2beta1_horizontal_pod_autoscaler_condition.h" -#include "v2beta1_metric_status.h" - - - -typedef struct v2beta1_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 - -} v2beta1_horizontal_pod_autoscaler_status_t; - -v2beta1_horizontal_pod_autoscaler_status_t *v2beta1_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 v2beta1_horizontal_pod_autoscaler_status_free(v2beta1_horizontal_pod_autoscaler_status_t *v2beta1_horizontal_pod_autoscaler_status); - -v2beta1_horizontal_pod_autoscaler_status_t *v2beta1_horizontal_pod_autoscaler_status_parseFromJSON(cJSON *v2beta1_horizontal_pod_autoscaler_statusJSON); - -cJSON *v2beta1_horizontal_pod_autoscaler_status_convertToJSON(v2beta1_horizontal_pod_autoscaler_status_t *v2beta1_horizontal_pod_autoscaler_status); - -#endif /* _v2beta1_horizontal_pod_autoscaler_status_H_ */ - diff --git a/kubernetes/model/v2beta1_metric_spec.c b/kubernetes/model/v2beta1_metric_spec.c deleted file mode 100644 index ff6191c..0000000 --- a/kubernetes/model/v2beta1_metric_spec.c +++ /dev/null @@ -1,242 +0,0 @@ -#include -#include -#include -#include "v2beta1_metric_spec.h" - - - -v2beta1_metric_spec_t *v2beta1_metric_spec_create( - v2beta1_container_resource_metric_source_t *container_resource, - v2beta1_external_metric_source_t *external, - v2beta1_object_metric_source_t *object, - v2beta1_pods_metric_source_t *pods, - v2beta1_resource_metric_source_t *resource, - char *type - ) { - v2beta1_metric_spec_t *v2beta1_metric_spec_local_var = malloc(sizeof(v2beta1_metric_spec_t)); - if (!v2beta1_metric_spec_local_var) { - return NULL; - } - v2beta1_metric_spec_local_var->container_resource = container_resource; - v2beta1_metric_spec_local_var->external = external; - v2beta1_metric_spec_local_var->object = object; - v2beta1_metric_spec_local_var->pods = pods; - v2beta1_metric_spec_local_var->resource = resource; - v2beta1_metric_spec_local_var->type = type; - - return v2beta1_metric_spec_local_var; -} - - -void v2beta1_metric_spec_free(v2beta1_metric_spec_t *v2beta1_metric_spec) { - if(NULL == v2beta1_metric_spec){ - return ; - } - listEntry_t *listEntry; - if (v2beta1_metric_spec->container_resource) { - v2beta1_container_resource_metric_source_free(v2beta1_metric_spec->container_resource); - v2beta1_metric_spec->container_resource = NULL; - } - if (v2beta1_metric_spec->external) { - v2beta1_external_metric_source_free(v2beta1_metric_spec->external); - v2beta1_metric_spec->external = NULL; - } - if (v2beta1_metric_spec->object) { - v2beta1_object_metric_source_free(v2beta1_metric_spec->object); - v2beta1_metric_spec->object = NULL; - } - if (v2beta1_metric_spec->pods) { - v2beta1_pods_metric_source_free(v2beta1_metric_spec->pods); - v2beta1_metric_spec->pods = NULL; - } - if (v2beta1_metric_spec->resource) { - v2beta1_resource_metric_source_free(v2beta1_metric_spec->resource); - v2beta1_metric_spec->resource = NULL; - } - if (v2beta1_metric_spec->type) { - free(v2beta1_metric_spec->type); - v2beta1_metric_spec->type = NULL; - } - free(v2beta1_metric_spec); -} - -cJSON *v2beta1_metric_spec_convertToJSON(v2beta1_metric_spec_t *v2beta1_metric_spec) { - cJSON *item = cJSON_CreateObject(); - - // v2beta1_metric_spec->container_resource - if(v2beta1_metric_spec->container_resource) { - cJSON *container_resource_local_JSON = v2beta1_container_resource_metric_source_convertToJSON(v2beta1_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; - } - } - - - // v2beta1_metric_spec->external - if(v2beta1_metric_spec->external) { - cJSON *external_local_JSON = v2beta1_external_metric_source_convertToJSON(v2beta1_metric_spec->external); - if(external_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "external", external_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta1_metric_spec->object - if(v2beta1_metric_spec->object) { - cJSON *object_local_JSON = v2beta1_object_metric_source_convertToJSON(v2beta1_metric_spec->object); - if(object_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "object", object_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta1_metric_spec->pods - if(v2beta1_metric_spec->pods) { - cJSON *pods_local_JSON = v2beta1_pods_metric_source_convertToJSON(v2beta1_metric_spec->pods); - if(pods_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "pods", pods_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta1_metric_spec->resource - if(v2beta1_metric_spec->resource) { - cJSON *resource_local_JSON = v2beta1_resource_metric_source_convertToJSON(v2beta1_metric_spec->resource); - if(resource_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "resource", resource_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta1_metric_spec->type - if (!v2beta1_metric_spec->type) { - goto fail; - } - if(cJSON_AddStringToObject(item, "type", v2beta1_metric_spec->type) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta1_metric_spec_t *v2beta1_metric_spec_parseFromJSON(cJSON *v2beta1_metric_specJSON){ - - v2beta1_metric_spec_t *v2beta1_metric_spec_local_var = NULL; - - // define the local variable for v2beta1_metric_spec->container_resource - v2beta1_container_resource_metric_source_t *container_resource_local_nonprim = NULL; - - // define the local variable for v2beta1_metric_spec->external - v2beta1_external_metric_source_t *external_local_nonprim = NULL; - - // define the local variable for v2beta1_metric_spec->object - v2beta1_object_metric_source_t *object_local_nonprim = NULL; - - // define the local variable for v2beta1_metric_spec->pods - v2beta1_pods_metric_source_t *pods_local_nonprim = NULL; - - // define the local variable for v2beta1_metric_spec->resource - v2beta1_resource_metric_source_t *resource_local_nonprim = NULL; - - // v2beta1_metric_spec->container_resource - cJSON *container_resource = cJSON_GetObjectItemCaseSensitive(v2beta1_metric_specJSON, "containerResource"); - if (container_resource) { - container_resource_local_nonprim = v2beta1_container_resource_metric_source_parseFromJSON(container_resource); //nonprimitive - } - - // v2beta1_metric_spec->external - cJSON *external = cJSON_GetObjectItemCaseSensitive(v2beta1_metric_specJSON, "external"); - if (external) { - external_local_nonprim = v2beta1_external_metric_source_parseFromJSON(external); //nonprimitive - } - - // v2beta1_metric_spec->object - cJSON *object = cJSON_GetObjectItemCaseSensitive(v2beta1_metric_specJSON, "object"); - if (object) { - object_local_nonprim = v2beta1_object_metric_source_parseFromJSON(object); //nonprimitive - } - - // v2beta1_metric_spec->pods - cJSON *pods = cJSON_GetObjectItemCaseSensitive(v2beta1_metric_specJSON, "pods"); - if (pods) { - pods_local_nonprim = v2beta1_pods_metric_source_parseFromJSON(pods); //nonprimitive - } - - // v2beta1_metric_spec->resource - cJSON *resource = cJSON_GetObjectItemCaseSensitive(v2beta1_metric_specJSON, "resource"); - if (resource) { - resource_local_nonprim = v2beta1_resource_metric_source_parseFromJSON(resource); //nonprimitive - } - - // v2beta1_metric_spec->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v2beta1_metric_specJSON, "type"); - if (!type) { - goto end; - } - - - if(!cJSON_IsString(type)) - { - goto end; //String - } - - - v2beta1_metric_spec_local_var = v2beta1_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 v2beta1_metric_spec_local_var; -end: - if (container_resource_local_nonprim) { - v2beta1_container_resource_metric_source_free(container_resource_local_nonprim); - container_resource_local_nonprim = NULL; - } - if (external_local_nonprim) { - v2beta1_external_metric_source_free(external_local_nonprim); - external_local_nonprim = NULL; - } - if (object_local_nonprim) { - v2beta1_object_metric_source_free(object_local_nonprim); - object_local_nonprim = NULL; - } - if (pods_local_nonprim) { - v2beta1_pods_metric_source_free(pods_local_nonprim); - pods_local_nonprim = NULL; - } - if (resource_local_nonprim) { - v2beta1_resource_metric_source_free(resource_local_nonprim); - resource_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta1_metric_spec.h b/kubernetes/model/v2beta1_metric_spec.h deleted file mode 100644 index 6eb200a..0000000 --- a/kubernetes/model/v2beta1_metric_spec.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * v2beta1_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 _v2beta1_metric_spec_H_ -#define _v2beta1_metric_spec_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta1_metric_spec_t v2beta1_metric_spec_t; - -#include "v2beta1_container_resource_metric_source.h" -#include "v2beta1_external_metric_source.h" -#include "v2beta1_object_metric_source.h" -#include "v2beta1_pods_metric_source.h" -#include "v2beta1_resource_metric_source.h" - - - -typedef struct v2beta1_metric_spec_t { - struct v2beta1_container_resource_metric_source_t *container_resource; //model - struct v2beta1_external_metric_source_t *external; //model - struct v2beta1_object_metric_source_t *object; //model - struct v2beta1_pods_metric_source_t *pods; //model - struct v2beta1_resource_metric_source_t *resource; //model - char *type; // string - -} v2beta1_metric_spec_t; - -v2beta1_metric_spec_t *v2beta1_metric_spec_create( - v2beta1_container_resource_metric_source_t *container_resource, - v2beta1_external_metric_source_t *external, - v2beta1_object_metric_source_t *object, - v2beta1_pods_metric_source_t *pods, - v2beta1_resource_metric_source_t *resource, - char *type -); - -void v2beta1_metric_spec_free(v2beta1_metric_spec_t *v2beta1_metric_spec); - -v2beta1_metric_spec_t *v2beta1_metric_spec_parseFromJSON(cJSON *v2beta1_metric_specJSON); - -cJSON *v2beta1_metric_spec_convertToJSON(v2beta1_metric_spec_t *v2beta1_metric_spec); - -#endif /* _v2beta1_metric_spec_H_ */ - diff --git a/kubernetes/model/v2beta1_metric_status.c b/kubernetes/model/v2beta1_metric_status.c deleted file mode 100644 index 8c5e934..0000000 --- a/kubernetes/model/v2beta1_metric_status.c +++ /dev/null @@ -1,242 +0,0 @@ -#include -#include -#include -#include "v2beta1_metric_status.h" - - - -v2beta1_metric_status_t *v2beta1_metric_status_create( - v2beta1_container_resource_metric_status_t *container_resource, - v2beta1_external_metric_status_t *external, - v2beta1_object_metric_status_t *object, - v2beta1_pods_metric_status_t *pods, - v2beta1_resource_metric_status_t *resource, - char *type - ) { - v2beta1_metric_status_t *v2beta1_metric_status_local_var = malloc(sizeof(v2beta1_metric_status_t)); - if (!v2beta1_metric_status_local_var) { - return NULL; - } - v2beta1_metric_status_local_var->container_resource = container_resource; - v2beta1_metric_status_local_var->external = external; - v2beta1_metric_status_local_var->object = object; - v2beta1_metric_status_local_var->pods = pods; - v2beta1_metric_status_local_var->resource = resource; - v2beta1_metric_status_local_var->type = type; - - return v2beta1_metric_status_local_var; -} - - -void v2beta1_metric_status_free(v2beta1_metric_status_t *v2beta1_metric_status) { - if(NULL == v2beta1_metric_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta1_metric_status->container_resource) { - v2beta1_container_resource_metric_status_free(v2beta1_metric_status->container_resource); - v2beta1_metric_status->container_resource = NULL; - } - if (v2beta1_metric_status->external) { - v2beta1_external_metric_status_free(v2beta1_metric_status->external); - v2beta1_metric_status->external = NULL; - } - if (v2beta1_metric_status->object) { - v2beta1_object_metric_status_free(v2beta1_metric_status->object); - v2beta1_metric_status->object = NULL; - } - if (v2beta1_metric_status->pods) { - v2beta1_pods_metric_status_free(v2beta1_metric_status->pods); - v2beta1_metric_status->pods = NULL; - } - if (v2beta1_metric_status->resource) { - v2beta1_resource_metric_status_free(v2beta1_metric_status->resource); - v2beta1_metric_status->resource = NULL; - } - if (v2beta1_metric_status->type) { - free(v2beta1_metric_status->type); - v2beta1_metric_status->type = NULL; - } - free(v2beta1_metric_status); -} - -cJSON *v2beta1_metric_status_convertToJSON(v2beta1_metric_status_t *v2beta1_metric_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta1_metric_status->container_resource - if(v2beta1_metric_status->container_resource) { - cJSON *container_resource_local_JSON = v2beta1_container_resource_metric_status_convertToJSON(v2beta1_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; - } - } - - - // v2beta1_metric_status->external - if(v2beta1_metric_status->external) { - cJSON *external_local_JSON = v2beta1_external_metric_status_convertToJSON(v2beta1_metric_status->external); - if(external_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "external", external_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta1_metric_status->object - if(v2beta1_metric_status->object) { - cJSON *object_local_JSON = v2beta1_object_metric_status_convertToJSON(v2beta1_metric_status->object); - if(object_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "object", object_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta1_metric_status->pods - if(v2beta1_metric_status->pods) { - cJSON *pods_local_JSON = v2beta1_pods_metric_status_convertToJSON(v2beta1_metric_status->pods); - if(pods_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "pods", pods_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta1_metric_status->resource - if(v2beta1_metric_status->resource) { - cJSON *resource_local_JSON = v2beta1_resource_metric_status_convertToJSON(v2beta1_metric_status->resource); - if(resource_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "resource", resource_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta1_metric_status->type - if (!v2beta1_metric_status->type) { - goto fail; - } - if(cJSON_AddStringToObject(item, "type", v2beta1_metric_status->type) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta1_metric_status_t *v2beta1_metric_status_parseFromJSON(cJSON *v2beta1_metric_statusJSON){ - - v2beta1_metric_status_t *v2beta1_metric_status_local_var = NULL; - - // define the local variable for v2beta1_metric_status->container_resource - v2beta1_container_resource_metric_status_t *container_resource_local_nonprim = NULL; - - // define the local variable for v2beta1_metric_status->external - v2beta1_external_metric_status_t *external_local_nonprim = NULL; - - // define the local variable for v2beta1_metric_status->object - v2beta1_object_metric_status_t *object_local_nonprim = NULL; - - // define the local variable for v2beta1_metric_status->pods - v2beta1_pods_metric_status_t *pods_local_nonprim = NULL; - - // define the local variable for v2beta1_metric_status->resource - v2beta1_resource_metric_status_t *resource_local_nonprim = NULL; - - // v2beta1_metric_status->container_resource - cJSON *container_resource = cJSON_GetObjectItemCaseSensitive(v2beta1_metric_statusJSON, "containerResource"); - if (container_resource) { - container_resource_local_nonprim = v2beta1_container_resource_metric_status_parseFromJSON(container_resource); //nonprimitive - } - - // v2beta1_metric_status->external - cJSON *external = cJSON_GetObjectItemCaseSensitive(v2beta1_metric_statusJSON, "external"); - if (external) { - external_local_nonprim = v2beta1_external_metric_status_parseFromJSON(external); //nonprimitive - } - - // v2beta1_metric_status->object - cJSON *object = cJSON_GetObjectItemCaseSensitive(v2beta1_metric_statusJSON, "object"); - if (object) { - object_local_nonprim = v2beta1_object_metric_status_parseFromJSON(object); //nonprimitive - } - - // v2beta1_metric_status->pods - cJSON *pods = cJSON_GetObjectItemCaseSensitive(v2beta1_metric_statusJSON, "pods"); - if (pods) { - pods_local_nonprim = v2beta1_pods_metric_status_parseFromJSON(pods); //nonprimitive - } - - // v2beta1_metric_status->resource - cJSON *resource = cJSON_GetObjectItemCaseSensitive(v2beta1_metric_statusJSON, "resource"); - if (resource) { - resource_local_nonprim = v2beta1_resource_metric_status_parseFromJSON(resource); //nonprimitive - } - - // v2beta1_metric_status->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v2beta1_metric_statusJSON, "type"); - if (!type) { - goto end; - } - - - if(!cJSON_IsString(type)) - { - goto end; //String - } - - - v2beta1_metric_status_local_var = v2beta1_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 v2beta1_metric_status_local_var; -end: - if (container_resource_local_nonprim) { - v2beta1_container_resource_metric_status_free(container_resource_local_nonprim); - container_resource_local_nonprim = NULL; - } - if (external_local_nonprim) { - v2beta1_external_metric_status_free(external_local_nonprim); - external_local_nonprim = NULL; - } - if (object_local_nonprim) { - v2beta1_object_metric_status_free(object_local_nonprim); - object_local_nonprim = NULL; - } - if (pods_local_nonprim) { - v2beta1_pods_metric_status_free(pods_local_nonprim); - pods_local_nonprim = NULL; - } - if (resource_local_nonprim) { - v2beta1_resource_metric_status_free(resource_local_nonprim); - resource_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta1_metric_status.h b/kubernetes/model/v2beta1_metric_status.h deleted file mode 100644 index 22cfd76..0000000 --- a/kubernetes/model/v2beta1_metric_status.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * v2beta1_metric_status.h - * - * MetricStatus describes the last-read state of a single metric. - */ - -#ifndef _v2beta1_metric_status_H_ -#define _v2beta1_metric_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta1_metric_status_t v2beta1_metric_status_t; - -#include "v2beta1_container_resource_metric_status.h" -#include "v2beta1_external_metric_status.h" -#include "v2beta1_object_metric_status.h" -#include "v2beta1_pods_metric_status.h" -#include "v2beta1_resource_metric_status.h" - - - -typedef struct v2beta1_metric_status_t { - struct v2beta1_container_resource_metric_status_t *container_resource; //model - struct v2beta1_external_metric_status_t *external; //model - struct v2beta1_object_metric_status_t *object; //model - struct v2beta1_pods_metric_status_t *pods; //model - struct v2beta1_resource_metric_status_t *resource; //model - char *type; // string - -} v2beta1_metric_status_t; - -v2beta1_metric_status_t *v2beta1_metric_status_create( - v2beta1_container_resource_metric_status_t *container_resource, - v2beta1_external_metric_status_t *external, - v2beta1_object_metric_status_t *object, - v2beta1_pods_metric_status_t *pods, - v2beta1_resource_metric_status_t *resource, - char *type -); - -void v2beta1_metric_status_free(v2beta1_metric_status_t *v2beta1_metric_status); - -v2beta1_metric_status_t *v2beta1_metric_status_parseFromJSON(cJSON *v2beta1_metric_statusJSON); - -cJSON *v2beta1_metric_status_convertToJSON(v2beta1_metric_status_t *v2beta1_metric_status); - -#endif /* _v2beta1_metric_status_H_ */ - diff --git a/kubernetes/model/v2beta1_object_metric_source.c b/kubernetes/model/v2beta1_object_metric_source.c deleted file mode 100644 index 6d2d0ff..0000000 --- a/kubernetes/model/v2beta1_object_metric_source.c +++ /dev/null @@ -1,199 +0,0 @@ -#include -#include -#include -#include "v2beta1_object_metric_source.h" - - - -v2beta1_object_metric_source_t *v2beta1_object_metric_source_create( - char *average_value, - char *metric_name, - v1_label_selector_t *selector, - v2beta1_cross_version_object_reference_t *target, - char *target_value - ) { - v2beta1_object_metric_source_t *v2beta1_object_metric_source_local_var = malloc(sizeof(v2beta1_object_metric_source_t)); - if (!v2beta1_object_metric_source_local_var) { - return NULL; - } - v2beta1_object_metric_source_local_var->average_value = average_value; - v2beta1_object_metric_source_local_var->metric_name = metric_name; - v2beta1_object_metric_source_local_var->selector = selector; - v2beta1_object_metric_source_local_var->target = target; - v2beta1_object_metric_source_local_var->target_value = target_value; - - return v2beta1_object_metric_source_local_var; -} - - -void v2beta1_object_metric_source_free(v2beta1_object_metric_source_t *v2beta1_object_metric_source) { - if(NULL == v2beta1_object_metric_source){ - return ; - } - listEntry_t *listEntry; - if (v2beta1_object_metric_source->average_value) { - free(v2beta1_object_metric_source->average_value); - v2beta1_object_metric_source->average_value = NULL; - } - if (v2beta1_object_metric_source->metric_name) { - free(v2beta1_object_metric_source->metric_name); - v2beta1_object_metric_source->metric_name = NULL; - } - if (v2beta1_object_metric_source->selector) { - v1_label_selector_free(v2beta1_object_metric_source->selector); - v2beta1_object_metric_source->selector = NULL; - } - if (v2beta1_object_metric_source->target) { - v2beta1_cross_version_object_reference_free(v2beta1_object_metric_source->target); - v2beta1_object_metric_source->target = NULL; - } - if (v2beta1_object_metric_source->target_value) { - free(v2beta1_object_metric_source->target_value); - v2beta1_object_metric_source->target_value = NULL; - } - free(v2beta1_object_metric_source); -} - -cJSON *v2beta1_object_metric_source_convertToJSON(v2beta1_object_metric_source_t *v2beta1_object_metric_source) { - cJSON *item = cJSON_CreateObject(); - - // v2beta1_object_metric_source->average_value - if(v2beta1_object_metric_source->average_value) { - if(cJSON_AddStringToObject(item, "averageValue", v2beta1_object_metric_source->average_value) == NULL) { - goto fail; //String - } - } - - - // v2beta1_object_metric_source->metric_name - if (!v2beta1_object_metric_source->metric_name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "metricName", v2beta1_object_metric_source->metric_name) == NULL) { - goto fail; //String - } - - - // v2beta1_object_metric_source->selector - if(v2beta1_object_metric_source->selector) { - cJSON *selector_local_JSON = v1_label_selector_convertToJSON(v2beta1_object_metric_source->selector); - if(selector_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "selector", selector_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta1_object_metric_source->target - if (!v2beta1_object_metric_source->target) { - goto fail; - } - cJSON *target_local_JSON = v2beta1_cross_version_object_reference_convertToJSON(v2beta1_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; - } - - - // v2beta1_object_metric_source->target_value - if (!v2beta1_object_metric_source->target_value) { - goto fail; - } - if(cJSON_AddStringToObject(item, "targetValue", v2beta1_object_metric_source->target_value) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta1_object_metric_source_t *v2beta1_object_metric_source_parseFromJSON(cJSON *v2beta1_object_metric_sourceJSON){ - - v2beta1_object_metric_source_t *v2beta1_object_metric_source_local_var = NULL; - - // define the local variable for v2beta1_object_metric_source->selector - v1_label_selector_t *selector_local_nonprim = NULL; - - // define the local variable for v2beta1_object_metric_source->target - v2beta1_cross_version_object_reference_t *target_local_nonprim = NULL; - - // v2beta1_object_metric_source->average_value - cJSON *average_value = cJSON_GetObjectItemCaseSensitive(v2beta1_object_metric_sourceJSON, "averageValue"); - if (average_value) { - if(!cJSON_IsString(average_value)) - { - goto end; //String - } - } - - // v2beta1_object_metric_source->metric_name - cJSON *metric_name = cJSON_GetObjectItemCaseSensitive(v2beta1_object_metric_sourceJSON, "metricName"); - if (!metric_name) { - goto end; - } - - - if(!cJSON_IsString(metric_name)) - { - goto end; //String - } - - // v2beta1_object_metric_source->selector - cJSON *selector = cJSON_GetObjectItemCaseSensitive(v2beta1_object_metric_sourceJSON, "selector"); - if (selector) { - selector_local_nonprim = v1_label_selector_parseFromJSON(selector); //nonprimitive - } - - // v2beta1_object_metric_source->target - cJSON *target = cJSON_GetObjectItemCaseSensitive(v2beta1_object_metric_sourceJSON, "target"); - if (!target) { - goto end; - } - - - target_local_nonprim = v2beta1_cross_version_object_reference_parseFromJSON(target); //nonprimitive - - // v2beta1_object_metric_source->target_value - cJSON *target_value = cJSON_GetObjectItemCaseSensitive(v2beta1_object_metric_sourceJSON, "targetValue"); - if (!target_value) { - goto end; - } - - - if(!cJSON_IsString(target_value)) - { - goto end; //String - } - - - v2beta1_object_metric_source_local_var = v2beta1_object_metric_source_create ( - average_value ? strdup(average_value->valuestring) : NULL, - strdup(metric_name->valuestring), - selector ? selector_local_nonprim : NULL, - target_local_nonprim, - strdup(target_value->valuestring) - ); - - return v2beta1_object_metric_source_local_var; -end: - if (selector_local_nonprim) { - v1_label_selector_free(selector_local_nonprim); - selector_local_nonprim = NULL; - } - if (target_local_nonprim) { - v2beta1_cross_version_object_reference_free(target_local_nonprim); - target_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta1_object_metric_source.h b/kubernetes/model/v2beta1_object_metric_source.h deleted file mode 100644 index 4222af8..0000000 --- a/kubernetes/model/v2beta1_object_metric_source.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * v2beta1_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 _v2beta1_object_metric_source_H_ -#define _v2beta1_object_metric_source_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta1_object_metric_source_t v2beta1_object_metric_source_t; - -#include "v1_label_selector.h" -#include "v2beta1_cross_version_object_reference.h" - - - -typedef struct v2beta1_object_metric_source_t { - char *average_value; // string - char *metric_name; // string - struct v1_label_selector_t *selector; //model - struct v2beta1_cross_version_object_reference_t *target; //model - char *target_value; // string - -} v2beta1_object_metric_source_t; - -v2beta1_object_metric_source_t *v2beta1_object_metric_source_create( - char *average_value, - char *metric_name, - v1_label_selector_t *selector, - v2beta1_cross_version_object_reference_t *target, - char *target_value -); - -void v2beta1_object_metric_source_free(v2beta1_object_metric_source_t *v2beta1_object_metric_source); - -v2beta1_object_metric_source_t *v2beta1_object_metric_source_parseFromJSON(cJSON *v2beta1_object_metric_sourceJSON); - -cJSON *v2beta1_object_metric_source_convertToJSON(v2beta1_object_metric_source_t *v2beta1_object_metric_source); - -#endif /* _v2beta1_object_metric_source_H_ */ - diff --git a/kubernetes/model/v2beta1_object_metric_status.c b/kubernetes/model/v2beta1_object_metric_status.c deleted file mode 100644 index 9fe5819..0000000 --- a/kubernetes/model/v2beta1_object_metric_status.c +++ /dev/null @@ -1,199 +0,0 @@ -#include -#include -#include -#include "v2beta1_object_metric_status.h" - - - -v2beta1_object_metric_status_t *v2beta1_object_metric_status_create( - char *average_value, - char *current_value, - char *metric_name, - v1_label_selector_t *selector, - v2beta1_cross_version_object_reference_t *target - ) { - v2beta1_object_metric_status_t *v2beta1_object_metric_status_local_var = malloc(sizeof(v2beta1_object_metric_status_t)); - if (!v2beta1_object_metric_status_local_var) { - return NULL; - } - v2beta1_object_metric_status_local_var->average_value = average_value; - v2beta1_object_metric_status_local_var->current_value = current_value; - v2beta1_object_metric_status_local_var->metric_name = metric_name; - v2beta1_object_metric_status_local_var->selector = selector; - v2beta1_object_metric_status_local_var->target = target; - - return v2beta1_object_metric_status_local_var; -} - - -void v2beta1_object_metric_status_free(v2beta1_object_metric_status_t *v2beta1_object_metric_status) { - if(NULL == v2beta1_object_metric_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta1_object_metric_status->average_value) { - free(v2beta1_object_metric_status->average_value); - v2beta1_object_metric_status->average_value = NULL; - } - if (v2beta1_object_metric_status->current_value) { - free(v2beta1_object_metric_status->current_value); - v2beta1_object_metric_status->current_value = NULL; - } - if (v2beta1_object_metric_status->metric_name) { - free(v2beta1_object_metric_status->metric_name); - v2beta1_object_metric_status->metric_name = NULL; - } - if (v2beta1_object_metric_status->selector) { - v1_label_selector_free(v2beta1_object_metric_status->selector); - v2beta1_object_metric_status->selector = NULL; - } - if (v2beta1_object_metric_status->target) { - v2beta1_cross_version_object_reference_free(v2beta1_object_metric_status->target); - v2beta1_object_metric_status->target = NULL; - } - free(v2beta1_object_metric_status); -} - -cJSON *v2beta1_object_metric_status_convertToJSON(v2beta1_object_metric_status_t *v2beta1_object_metric_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta1_object_metric_status->average_value - if(v2beta1_object_metric_status->average_value) { - if(cJSON_AddStringToObject(item, "averageValue", v2beta1_object_metric_status->average_value) == NULL) { - goto fail; //String - } - } - - - // v2beta1_object_metric_status->current_value - if (!v2beta1_object_metric_status->current_value) { - goto fail; - } - if(cJSON_AddStringToObject(item, "currentValue", v2beta1_object_metric_status->current_value) == NULL) { - goto fail; //String - } - - - // v2beta1_object_metric_status->metric_name - if (!v2beta1_object_metric_status->metric_name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "metricName", v2beta1_object_metric_status->metric_name) == NULL) { - goto fail; //String - } - - - // v2beta1_object_metric_status->selector - if(v2beta1_object_metric_status->selector) { - cJSON *selector_local_JSON = v1_label_selector_convertToJSON(v2beta1_object_metric_status->selector); - if(selector_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "selector", selector_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta1_object_metric_status->target - if (!v2beta1_object_metric_status->target) { - goto fail; - } - cJSON *target_local_JSON = v2beta1_cross_version_object_reference_convertToJSON(v2beta1_object_metric_status->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; -} - -v2beta1_object_metric_status_t *v2beta1_object_metric_status_parseFromJSON(cJSON *v2beta1_object_metric_statusJSON){ - - v2beta1_object_metric_status_t *v2beta1_object_metric_status_local_var = NULL; - - // define the local variable for v2beta1_object_metric_status->selector - v1_label_selector_t *selector_local_nonprim = NULL; - - // define the local variable for v2beta1_object_metric_status->target - v2beta1_cross_version_object_reference_t *target_local_nonprim = NULL; - - // v2beta1_object_metric_status->average_value - cJSON *average_value = cJSON_GetObjectItemCaseSensitive(v2beta1_object_metric_statusJSON, "averageValue"); - if (average_value) { - if(!cJSON_IsString(average_value)) - { - goto end; //String - } - } - - // v2beta1_object_metric_status->current_value - cJSON *current_value = cJSON_GetObjectItemCaseSensitive(v2beta1_object_metric_statusJSON, "currentValue"); - if (!current_value) { - goto end; - } - - - if(!cJSON_IsString(current_value)) - { - goto end; //String - } - - // v2beta1_object_metric_status->metric_name - cJSON *metric_name = cJSON_GetObjectItemCaseSensitive(v2beta1_object_metric_statusJSON, "metricName"); - if (!metric_name) { - goto end; - } - - - if(!cJSON_IsString(metric_name)) - { - goto end; //String - } - - // v2beta1_object_metric_status->selector - cJSON *selector = cJSON_GetObjectItemCaseSensitive(v2beta1_object_metric_statusJSON, "selector"); - if (selector) { - selector_local_nonprim = v1_label_selector_parseFromJSON(selector); //nonprimitive - } - - // v2beta1_object_metric_status->target - cJSON *target = cJSON_GetObjectItemCaseSensitive(v2beta1_object_metric_statusJSON, "target"); - if (!target) { - goto end; - } - - - target_local_nonprim = v2beta1_cross_version_object_reference_parseFromJSON(target); //nonprimitive - - - v2beta1_object_metric_status_local_var = v2beta1_object_metric_status_create ( - average_value ? strdup(average_value->valuestring) : NULL, - strdup(current_value->valuestring), - strdup(metric_name->valuestring), - selector ? selector_local_nonprim : NULL, - target_local_nonprim - ); - - return v2beta1_object_metric_status_local_var; -end: - if (selector_local_nonprim) { - v1_label_selector_free(selector_local_nonprim); - selector_local_nonprim = NULL; - } - if (target_local_nonprim) { - v2beta1_cross_version_object_reference_free(target_local_nonprim); - target_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta1_object_metric_status.h b/kubernetes/model/v2beta1_object_metric_status.h deleted file mode 100644 index 720af94..0000000 --- a/kubernetes/model/v2beta1_object_metric_status.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * v2beta1_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 _v2beta1_object_metric_status_H_ -#define _v2beta1_object_metric_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta1_object_metric_status_t v2beta1_object_metric_status_t; - -#include "v1_label_selector.h" -#include "v2beta1_cross_version_object_reference.h" - - - -typedef struct v2beta1_object_metric_status_t { - char *average_value; // string - char *current_value; // string - char *metric_name; // string - struct v1_label_selector_t *selector; //model - struct v2beta1_cross_version_object_reference_t *target; //model - -} v2beta1_object_metric_status_t; - -v2beta1_object_metric_status_t *v2beta1_object_metric_status_create( - char *average_value, - char *current_value, - char *metric_name, - v1_label_selector_t *selector, - v2beta1_cross_version_object_reference_t *target -); - -void v2beta1_object_metric_status_free(v2beta1_object_metric_status_t *v2beta1_object_metric_status); - -v2beta1_object_metric_status_t *v2beta1_object_metric_status_parseFromJSON(cJSON *v2beta1_object_metric_statusJSON); - -cJSON *v2beta1_object_metric_status_convertToJSON(v2beta1_object_metric_status_t *v2beta1_object_metric_status); - -#endif /* _v2beta1_object_metric_status_H_ */ - diff --git a/kubernetes/model/v2beta1_pods_metric_source.c b/kubernetes/model/v2beta1_pods_metric_source.c deleted file mode 100644 index 782e036..0000000 --- a/kubernetes/model/v2beta1_pods_metric_source.c +++ /dev/null @@ -1,138 +0,0 @@ -#include -#include -#include -#include "v2beta1_pods_metric_source.h" - - - -v2beta1_pods_metric_source_t *v2beta1_pods_metric_source_create( - char *metric_name, - v1_label_selector_t *selector, - char *target_average_value - ) { - v2beta1_pods_metric_source_t *v2beta1_pods_metric_source_local_var = malloc(sizeof(v2beta1_pods_metric_source_t)); - if (!v2beta1_pods_metric_source_local_var) { - return NULL; - } - v2beta1_pods_metric_source_local_var->metric_name = metric_name; - v2beta1_pods_metric_source_local_var->selector = selector; - v2beta1_pods_metric_source_local_var->target_average_value = target_average_value; - - return v2beta1_pods_metric_source_local_var; -} - - -void v2beta1_pods_metric_source_free(v2beta1_pods_metric_source_t *v2beta1_pods_metric_source) { - if(NULL == v2beta1_pods_metric_source){ - return ; - } - listEntry_t *listEntry; - if (v2beta1_pods_metric_source->metric_name) { - free(v2beta1_pods_metric_source->metric_name); - v2beta1_pods_metric_source->metric_name = NULL; - } - if (v2beta1_pods_metric_source->selector) { - v1_label_selector_free(v2beta1_pods_metric_source->selector); - v2beta1_pods_metric_source->selector = NULL; - } - if (v2beta1_pods_metric_source->target_average_value) { - free(v2beta1_pods_metric_source->target_average_value); - v2beta1_pods_metric_source->target_average_value = NULL; - } - free(v2beta1_pods_metric_source); -} - -cJSON *v2beta1_pods_metric_source_convertToJSON(v2beta1_pods_metric_source_t *v2beta1_pods_metric_source) { - cJSON *item = cJSON_CreateObject(); - - // v2beta1_pods_metric_source->metric_name - if (!v2beta1_pods_metric_source->metric_name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "metricName", v2beta1_pods_metric_source->metric_name) == NULL) { - goto fail; //String - } - - - // v2beta1_pods_metric_source->selector - if(v2beta1_pods_metric_source->selector) { - cJSON *selector_local_JSON = v1_label_selector_convertToJSON(v2beta1_pods_metric_source->selector); - if(selector_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "selector", selector_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta1_pods_metric_source->target_average_value - if (!v2beta1_pods_metric_source->target_average_value) { - goto fail; - } - if(cJSON_AddStringToObject(item, "targetAverageValue", v2beta1_pods_metric_source->target_average_value) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta1_pods_metric_source_t *v2beta1_pods_metric_source_parseFromJSON(cJSON *v2beta1_pods_metric_sourceJSON){ - - v2beta1_pods_metric_source_t *v2beta1_pods_metric_source_local_var = NULL; - - // define the local variable for v2beta1_pods_metric_source->selector - v1_label_selector_t *selector_local_nonprim = NULL; - - // v2beta1_pods_metric_source->metric_name - cJSON *metric_name = cJSON_GetObjectItemCaseSensitive(v2beta1_pods_metric_sourceJSON, "metricName"); - if (!metric_name) { - goto end; - } - - - if(!cJSON_IsString(metric_name)) - { - goto end; //String - } - - // v2beta1_pods_metric_source->selector - cJSON *selector = cJSON_GetObjectItemCaseSensitive(v2beta1_pods_metric_sourceJSON, "selector"); - if (selector) { - selector_local_nonprim = v1_label_selector_parseFromJSON(selector); //nonprimitive - } - - // v2beta1_pods_metric_source->target_average_value - cJSON *target_average_value = cJSON_GetObjectItemCaseSensitive(v2beta1_pods_metric_sourceJSON, "targetAverageValue"); - if (!target_average_value) { - goto end; - } - - - if(!cJSON_IsString(target_average_value)) - { - goto end; //String - } - - - v2beta1_pods_metric_source_local_var = v2beta1_pods_metric_source_create ( - strdup(metric_name->valuestring), - selector ? selector_local_nonprim : NULL, - strdup(target_average_value->valuestring) - ); - - return v2beta1_pods_metric_source_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/v2beta1_pods_metric_source.h b/kubernetes/model/v2beta1_pods_metric_source.h deleted file mode 100644 index c7eb870..0000000 --- a/kubernetes/model/v2beta1_pods_metric_source.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * v2beta1_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 _v2beta1_pods_metric_source_H_ -#define _v2beta1_pods_metric_source_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta1_pods_metric_source_t v2beta1_pods_metric_source_t; - -#include "v1_label_selector.h" - - - -typedef struct v2beta1_pods_metric_source_t { - char *metric_name; // string - struct v1_label_selector_t *selector; //model - char *target_average_value; // string - -} v2beta1_pods_metric_source_t; - -v2beta1_pods_metric_source_t *v2beta1_pods_metric_source_create( - char *metric_name, - v1_label_selector_t *selector, - char *target_average_value -); - -void v2beta1_pods_metric_source_free(v2beta1_pods_metric_source_t *v2beta1_pods_metric_source); - -v2beta1_pods_metric_source_t *v2beta1_pods_metric_source_parseFromJSON(cJSON *v2beta1_pods_metric_sourceJSON); - -cJSON *v2beta1_pods_metric_source_convertToJSON(v2beta1_pods_metric_source_t *v2beta1_pods_metric_source); - -#endif /* _v2beta1_pods_metric_source_H_ */ - diff --git a/kubernetes/model/v2beta1_pods_metric_status.c b/kubernetes/model/v2beta1_pods_metric_status.c deleted file mode 100644 index de0e000..0000000 --- a/kubernetes/model/v2beta1_pods_metric_status.c +++ /dev/null @@ -1,138 +0,0 @@ -#include -#include -#include -#include "v2beta1_pods_metric_status.h" - - - -v2beta1_pods_metric_status_t *v2beta1_pods_metric_status_create( - char *current_average_value, - char *metric_name, - v1_label_selector_t *selector - ) { - v2beta1_pods_metric_status_t *v2beta1_pods_metric_status_local_var = malloc(sizeof(v2beta1_pods_metric_status_t)); - if (!v2beta1_pods_metric_status_local_var) { - return NULL; - } - v2beta1_pods_metric_status_local_var->current_average_value = current_average_value; - v2beta1_pods_metric_status_local_var->metric_name = metric_name; - v2beta1_pods_metric_status_local_var->selector = selector; - - return v2beta1_pods_metric_status_local_var; -} - - -void v2beta1_pods_metric_status_free(v2beta1_pods_metric_status_t *v2beta1_pods_metric_status) { - if(NULL == v2beta1_pods_metric_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta1_pods_metric_status->current_average_value) { - free(v2beta1_pods_metric_status->current_average_value); - v2beta1_pods_metric_status->current_average_value = NULL; - } - if (v2beta1_pods_metric_status->metric_name) { - free(v2beta1_pods_metric_status->metric_name); - v2beta1_pods_metric_status->metric_name = NULL; - } - if (v2beta1_pods_metric_status->selector) { - v1_label_selector_free(v2beta1_pods_metric_status->selector); - v2beta1_pods_metric_status->selector = NULL; - } - free(v2beta1_pods_metric_status); -} - -cJSON *v2beta1_pods_metric_status_convertToJSON(v2beta1_pods_metric_status_t *v2beta1_pods_metric_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta1_pods_metric_status->current_average_value - if (!v2beta1_pods_metric_status->current_average_value) { - goto fail; - } - if(cJSON_AddStringToObject(item, "currentAverageValue", v2beta1_pods_metric_status->current_average_value) == NULL) { - goto fail; //String - } - - - // v2beta1_pods_metric_status->metric_name - if (!v2beta1_pods_metric_status->metric_name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "metricName", v2beta1_pods_metric_status->metric_name) == NULL) { - goto fail; //String - } - - - // v2beta1_pods_metric_status->selector - if(v2beta1_pods_metric_status->selector) { - cJSON *selector_local_JSON = v1_label_selector_convertToJSON(v2beta1_pods_metric_status->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; -} - -v2beta1_pods_metric_status_t *v2beta1_pods_metric_status_parseFromJSON(cJSON *v2beta1_pods_metric_statusJSON){ - - v2beta1_pods_metric_status_t *v2beta1_pods_metric_status_local_var = NULL; - - // define the local variable for v2beta1_pods_metric_status->selector - v1_label_selector_t *selector_local_nonprim = NULL; - - // v2beta1_pods_metric_status->current_average_value - cJSON *current_average_value = cJSON_GetObjectItemCaseSensitive(v2beta1_pods_metric_statusJSON, "currentAverageValue"); - if (!current_average_value) { - goto end; - } - - - if(!cJSON_IsString(current_average_value)) - { - goto end; //String - } - - // v2beta1_pods_metric_status->metric_name - cJSON *metric_name = cJSON_GetObjectItemCaseSensitive(v2beta1_pods_metric_statusJSON, "metricName"); - if (!metric_name) { - goto end; - } - - - if(!cJSON_IsString(metric_name)) - { - goto end; //String - } - - // v2beta1_pods_metric_status->selector - cJSON *selector = cJSON_GetObjectItemCaseSensitive(v2beta1_pods_metric_statusJSON, "selector"); - if (selector) { - selector_local_nonprim = v1_label_selector_parseFromJSON(selector); //nonprimitive - } - - - v2beta1_pods_metric_status_local_var = v2beta1_pods_metric_status_create ( - strdup(current_average_value->valuestring), - strdup(metric_name->valuestring), - selector ? selector_local_nonprim : NULL - ); - - return v2beta1_pods_metric_status_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/v2beta1_pods_metric_status.h b/kubernetes/model/v2beta1_pods_metric_status.h deleted file mode 100644 index a411e65..0000000 --- a/kubernetes/model/v2beta1_pods_metric_status.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * v2beta1_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 _v2beta1_pods_metric_status_H_ -#define _v2beta1_pods_metric_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta1_pods_metric_status_t v2beta1_pods_metric_status_t; - -#include "v1_label_selector.h" - - - -typedef struct v2beta1_pods_metric_status_t { - char *current_average_value; // string - char *metric_name; // string - struct v1_label_selector_t *selector; //model - -} v2beta1_pods_metric_status_t; - -v2beta1_pods_metric_status_t *v2beta1_pods_metric_status_create( - char *current_average_value, - char *metric_name, - v1_label_selector_t *selector -); - -void v2beta1_pods_metric_status_free(v2beta1_pods_metric_status_t *v2beta1_pods_metric_status); - -v2beta1_pods_metric_status_t *v2beta1_pods_metric_status_parseFromJSON(cJSON *v2beta1_pods_metric_statusJSON); - -cJSON *v2beta1_pods_metric_status_convertToJSON(v2beta1_pods_metric_status_t *v2beta1_pods_metric_status); - -#endif /* _v2beta1_pods_metric_status_H_ */ - diff --git a/kubernetes/model/v2beta1_resource_metric_source.c b/kubernetes/model/v2beta1_resource_metric_source.c deleted file mode 100644 index ad2467e..0000000 --- a/kubernetes/model/v2beta1_resource_metric_source.c +++ /dev/null @@ -1,121 +0,0 @@ -#include -#include -#include -#include "v2beta1_resource_metric_source.h" - - - -v2beta1_resource_metric_source_t *v2beta1_resource_metric_source_create( - char *name, - int target_average_utilization, - char *target_average_value - ) { - v2beta1_resource_metric_source_t *v2beta1_resource_metric_source_local_var = malloc(sizeof(v2beta1_resource_metric_source_t)); - if (!v2beta1_resource_metric_source_local_var) { - return NULL; - } - v2beta1_resource_metric_source_local_var->name = name; - v2beta1_resource_metric_source_local_var->target_average_utilization = target_average_utilization; - v2beta1_resource_metric_source_local_var->target_average_value = target_average_value; - - return v2beta1_resource_metric_source_local_var; -} - - -void v2beta1_resource_metric_source_free(v2beta1_resource_metric_source_t *v2beta1_resource_metric_source) { - if(NULL == v2beta1_resource_metric_source){ - return ; - } - listEntry_t *listEntry; - if (v2beta1_resource_metric_source->name) { - free(v2beta1_resource_metric_source->name); - v2beta1_resource_metric_source->name = NULL; - } - if (v2beta1_resource_metric_source->target_average_value) { - free(v2beta1_resource_metric_source->target_average_value); - v2beta1_resource_metric_source->target_average_value = NULL; - } - free(v2beta1_resource_metric_source); -} - -cJSON *v2beta1_resource_metric_source_convertToJSON(v2beta1_resource_metric_source_t *v2beta1_resource_metric_source) { - cJSON *item = cJSON_CreateObject(); - - // v2beta1_resource_metric_source->name - if (!v2beta1_resource_metric_source->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v2beta1_resource_metric_source->name) == NULL) { - goto fail; //String - } - - - // v2beta1_resource_metric_source->target_average_utilization - if(v2beta1_resource_metric_source->target_average_utilization) { - if(cJSON_AddNumberToObject(item, "targetAverageUtilization", v2beta1_resource_metric_source->target_average_utilization) == NULL) { - goto fail; //Numeric - } - } - - - // v2beta1_resource_metric_source->target_average_value - if(v2beta1_resource_metric_source->target_average_value) { - if(cJSON_AddStringToObject(item, "targetAverageValue", v2beta1_resource_metric_source->target_average_value) == NULL) { - goto fail; //String - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta1_resource_metric_source_t *v2beta1_resource_metric_source_parseFromJSON(cJSON *v2beta1_resource_metric_sourceJSON){ - - v2beta1_resource_metric_source_t *v2beta1_resource_metric_source_local_var = NULL; - - // v2beta1_resource_metric_source->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v2beta1_resource_metric_sourceJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - // v2beta1_resource_metric_source->target_average_utilization - cJSON *target_average_utilization = cJSON_GetObjectItemCaseSensitive(v2beta1_resource_metric_sourceJSON, "targetAverageUtilization"); - if (target_average_utilization) { - if(!cJSON_IsNumber(target_average_utilization)) - { - goto end; //Numeric - } - } - - // v2beta1_resource_metric_source->target_average_value - cJSON *target_average_value = cJSON_GetObjectItemCaseSensitive(v2beta1_resource_metric_sourceJSON, "targetAverageValue"); - if (target_average_value) { - if(!cJSON_IsString(target_average_value)) - { - goto end; //String - } - } - - - v2beta1_resource_metric_source_local_var = v2beta1_resource_metric_source_create ( - strdup(name->valuestring), - target_average_utilization ? target_average_utilization->valuedouble : 0, - target_average_value ? strdup(target_average_value->valuestring) : NULL - ); - - return v2beta1_resource_metric_source_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v2beta1_resource_metric_source.h b/kubernetes/model/v2beta1_resource_metric_source.h deleted file mode 100644 index 47f7707..0000000 --- a/kubernetes/model/v2beta1_resource_metric_source.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v2beta1_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 _v2beta1_resource_metric_source_H_ -#define _v2beta1_resource_metric_source_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta1_resource_metric_source_t v2beta1_resource_metric_source_t; - - - - -typedef struct v2beta1_resource_metric_source_t { - char *name; // string - int target_average_utilization; //numeric - char *target_average_value; // string - -} v2beta1_resource_metric_source_t; - -v2beta1_resource_metric_source_t *v2beta1_resource_metric_source_create( - char *name, - int target_average_utilization, - char *target_average_value -); - -void v2beta1_resource_metric_source_free(v2beta1_resource_metric_source_t *v2beta1_resource_metric_source); - -v2beta1_resource_metric_source_t *v2beta1_resource_metric_source_parseFromJSON(cJSON *v2beta1_resource_metric_sourceJSON); - -cJSON *v2beta1_resource_metric_source_convertToJSON(v2beta1_resource_metric_source_t *v2beta1_resource_metric_source); - -#endif /* _v2beta1_resource_metric_source_H_ */ - diff --git a/kubernetes/model/v2beta1_resource_metric_status.c b/kubernetes/model/v2beta1_resource_metric_status.c deleted file mode 100644 index f357116..0000000 --- a/kubernetes/model/v2beta1_resource_metric_status.c +++ /dev/null @@ -1,125 +0,0 @@ -#include -#include -#include -#include "v2beta1_resource_metric_status.h" - - - -v2beta1_resource_metric_status_t *v2beta1_resource_metric_status_create( - int current_average_utilization, - char *current_average_value, - char *name - ) { - v2beta1_resource_metric_status_t *v2beta1_resource_metric_status_local_var = malloc(sizeof(v2beta1_resource_metric_status_t)); - if (!v2beta1_resource_metric_status_local_var) { - return NULL; - } - v2beta1_resource_metric_status_local_var->current_average_utilization = current_average_utilization; - v2beta1_resource_metric_status_local_var->current_average_value = current_average_value; - v2beta1_resource_metric_status_local_var->name = name; - - return v2beta1_resource_metric_status_local_var; -} - - -void v2beta1_resource_metric_status_free(v2beta1_resource_metric_status_t *v2beta1_resource_metric_status) { - if(NULL == v2beta1_resource_metric_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta1_resource_metric_status->current_average_value) { - free(v2beta1_resource_metric_status->current_average_value); - v2beta1_resource_metric_status->current_average_value = NULL; - } - if (v2beta1_resource_metric_status->name) { - free(v2beta1_resource_metric_status->name); - v2beta1_resource_metric_status->name = NULL; - } - free(v2beta1_resource_metric_status); -} - -cJSON *v2beta1_resource_metric_status_convertToJSON(v2beta1_resource_metric_status_t *v2beta1_resource_metric_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta1_resource_metric_status->current_average_utilization - if(v2beta1_resource_metric_status->current_average_utilization) { - if(cJSON_AddNumberToObject(item, "currentAverageUtilization", v2beta1_resource_metric_status->current_average_utilization) == NULL) { - goto fail; //Numeric - } - } - - - // v2beta1_resource_metric_status->current_average_value - if (!v2beta1_resource_metric_status->current_average_value) { - goto fail; - } - if(cJSON_AddStringToObject(item, "currentAverageValue", v2beta1_resource_metric_status->current_average_value) == NULL) { - goto fail; //String - } - - - // v2beta1_resource_metric_status->name - if (!v2beta1_resource_metric_status->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v2beta1_resource_metric_status->name) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta1_resource_metric_status_t *v2beta1_resource_metric_status_parseFromJSON(cJSON *v2beta1_resource_metric_statusJSON){ - - v2beta1_resource_metric_status_t *v2beta1_resource_metric_status_local_var = NULL; - - // v2beta1_resource_metric_status->current_average_utilization - cJSON *current_average_utilization = cJSON_GetObjectItemCaseSensitive(v2beta1_resource_metric_statusJSON, "currentAverageUtilization"); - if (current_average_utilization) { - if(!cJSON_IsNumber(current_average_utilization)) - { - goto end; //Numeric - } - } - - // v2beta1_resource_metric_status->current_average_value - cJSON *current_average_value = cJSON_GetObjectItemCaseSensitive(v2beta1_resource_metric_statusJSON, "currentAverageValue"); - if (!current_average_value) { - goto end; - } - - - if(!cJSON_IsString(current_average_value)) - { - goto end; //String - } - - // v2beta1_resource_metric_status->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v2beta1_resource_metric_statusJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - - v2beta1_resource_metric_status_local_var = v2beta1_resource_metric_status_create ( - current_average_utilization ? current_average_utilization->valuedouble : 0, - strdup(current_average_value->valuestring), - strdup(name->valuestring) - ); - - return v2beta1_resource_metric_status_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v2beta1_resource_metric_status.h b/kubernetes/model/v2beta1_resource_metric_status.h deleted file mode 100644 index 4056fcd..0000000 --- a/kubernetes/model/v2beta1_resource_metric_status.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v2beta1_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 _v2beta1_resource_metric_status_H_ -#define _v2beta1_resource_metric_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta1_resource_metric_status_t v2beta1_resource_metric_status_t; - - - - -typedef struct v2beta1_resource_metric_status_t { - int current_average_utilization; //numeric - char *current_average_value; // string - char *name; // string - -} v2beta1_resource_metric_status_t; - -v2beta1_resource_metric_status_t *v2beta1_resource_metric_status_create( - int current_average_utilization, - char *current_average_value, - char *name -); - -void v2beta1_resource_metric_status_free(v2beta1_resource_metric_status_t *v2beta1_resource_metric_status); - -v2beta1_resource_metric_status_t *v2beta1_resource_metric_status_parseFromJSON(cJSON *v2beta1_resource_metric_statusJSON); - -cJSON *v2beta1_resource_metric_status_convertToJSON(v2beta1_resource_metric_status_t *v2beta1_resource_metric_status); - -#endif /* _v2beta1_resource_metric_status_H_ */ - diff --git a/kubernetes/swagger.json b/kubernetes/swagger.json index 8d1c534..427278a 100644 --- a/kubernetes/swagger.json +++ b/kubernetes/swagger.json @@ -1179,7 +1179,7 @@ "properties": { "maxSurge": { "$ref": "#/definitions/intstr.IntOrString", - "description": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate." + "description": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption." }, "maxUnavailable": { "$ref": "#/definitions/intstr.IntOrString", @@ -1218,7 +1218,7 @@ "type": "object" }, "v1.StatefulSet": { - "description": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", + "description": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\n\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", "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", @@ -1334,7 +1334,7 @@ "description": "A StatefulSetSpec is the specification of a StatefulSet.", "properties": { "minReadySeconds": { - "description": "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) This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate.", + "description": "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)", "format": "int32", "type": "integer" }, @@ -1391,7 +1391,7 @@ "description": "StatefulSetStatus represents the current state of a StatefulSet.", "properties": { "availableReplicas": { - "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.", + "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.", "format": "int32", "type": "integer" }, @@ -1524,7 +1524,7 @@ "description": "TokenRequestSpec contains client provided parameters of a token request.", "properties": { "audiences": { - "description": "Audiences are the intendend audiences of the token. A recipient of a token must identitfy themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.", + "description": "Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.", "items": { "type": "string" }, @@ -2860,525 +2860,6 @@ ], "type": "object" }, - "v2beta1.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.", - "properties": { - "container": { - "description": "container is the name of the container in the pods of the scaling target", - "type": "string" - }, - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - }, - "targetAverageUtilization": { - "description": "targetAverageUtilization 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.", - "format": "int32", - "type": "integer" - }, - "targetAverageValue": { - "description": "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type.", - "type": "string" - } - }, - "required": [ - "name", - "container" - ], - "type": "object" - }, - "v2beta1.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" - }, - "currentAverageUtilization": { - "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. It will only be present if `targetAverageValue` was set in the corresponding metric specification.", - "format": "int32", - "type": "integer" - }, - "currentAverageValue": { - "description": "currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification.", - "type": "string" - }, - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - } - }, - "required": [ - "name", - "currentAverageValue", - "container" - ], - "type": "object" - }, - "v2beta1.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", - "properties": { - "apiVersion": { - "description": "API version of the referent", - "type": "string" - }, - "kind": { - "description": "Kind of the referent; 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" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "v2beta1.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). Exactly one \"target\" type should be set.", - "properties": { - "metricName": { - "description": "metricName is the name of the metric in question.", - "type": "string" - }, - "metricSelector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "metricSelector is used to identify a specific time series within a given metric." - }, - "targetAverageValue": { - "description": "targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue.", - "type": "string" - }, - "targetValue": { - "description": "targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue.", - "type": "string" - } - }, - "required": [ - "metricName" - ], - "type": "object" - }, - "v2beta1.ExternalMetricStatus": { - "description": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.", - "properties": { - "currentAverageValue": { - "description": "currentAverageValue is the current value of metric averaged over autoscaled pods.", - "type": "string" - }, - "currentValue": { - "description": "currentValue is the current value of the metric (as a quantity)", - "type": "string" - }, - "metricName": { - "description": "metricName is the name of a metric used for autoscaling in metric system.", - "type": "string" - }, - "metricSelector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "metricSelector is used to identify a specific time series within a given metric." - } - }, - "required": [ - "metricName", - "currentValue" - ], - "type": "object" - }, - "v2beta1.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.", - "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 is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v2beta1.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." - }, - "status": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscalerStatus", - "description": "status is the current information about the autoscaler." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - ] - }, - "v2beta1.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", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "message is a human-readable explanation containing details about the transition", - "type": "string" - }, - "reason": { - "description": "reason is the reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "status is the status of the condition (True, False, Unknown)", - "type": "string" - }, - "type": { - "description": "type describes the current condition", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "v2beta1.HorizontalPodAutoscalerList": { - "description": "HorizontalPodAutoscaler is a list of horizontal pod autoscaler 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 horizontal pod autoscaler objects.", - "items": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" - }, - "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": "metadata is the standard list metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscalerList", - "version": "v2beta1" - } - ] - }, - "v2beta1.HorizontalPodAutoscalerSpec": { - "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", - "properties": { - "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.", - "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.", - "items": { - "$ref": "#/definitions/v2beta1.MetricSpec" - }, - "type": "array" - }, - "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.", - "format": "int32", - "type": "integer" - }, - "scaleTargetRef": { - "$ref": "#/definitions/v2beta1.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." - } - }, - "required": [ - "scaleTargetRef", - "maxReplicas" - ], - "type": "object" - }, - "v2beta1.HorizontalPodAutoscalerStatus": { - "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", - "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/v2beta1.HorizontalPodAutoscalerCondition" - }, - "type": "array" - }, - "currentMetrics": { - "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", - "items": { - "$ref": "#/definitions/v2beta1.MetricStatus" - }, - "type": "array" - }, - "currentReplicas": { - "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", - "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.", - "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.", - "format": "date-time", - "type": "string" - }, - "observedGeneration": { - "description": "observedGeneration is the most recent generation observed by this autoscaler.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "currentReplicas", - "desiredReplicas" - ], - "type": "object" - }, - "v2beta1.MetricSpec": { - "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", - "properties": { - "containerResource": { - "$ref": "#/definitions/v2beta1.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/v2beta1.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/v2beta1.ObjectMetricSource", - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." - }, - "pods": { - "$ref": "#/definitions/v2beta1.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/v2beta1.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" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "v2beta1.MetricStatus": { - "description": "MetricStatus describes the last-read state of a single metric.", - "properties": { - "containerResource": { - "$ref": "#/definitions/v2beta1.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/v2beta1.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/v2beta1.ObjectMetricStatus", - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." - }, - "pods": { - "$ref": "#/definitions/v2beta1.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/v2beta1.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." - }, - "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", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "v2beta1.ObjectMetricSource": { - "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "properties": { - "averageValue": { - "description": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)", - "type": "string" - }, - "metricName": { - "description": "metricName is the name of the metric in question.", - "type": "string" - }, - "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." - }, - "target": { - "$ref": "#/definitions/v2beta1.CrossVersionObjectReference", - "description": "target is the described Kubernetes object." - }, - "targetValue": { - "description": "targetValue is the target value of the metric (as a quantity).", - "type": "string" - } - }, - "required": [ - "target", - "metricName", - "targetValue" - ], - "type": "object" - }, - "v2beta1.ObjectMetricStatus": { - "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "properties": { - "averageValue": { - "description": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)", - "type": "string" - }, - "currentValue": { - "description": "currentValue is the current value of the metric (as a quantity).", - "type": "string" - }, - "metricName": { - "description": "metricName is the name of the metric in question.", - "type": "string" - }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, 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." - }, - "target": { - "$ref": "#/definitions/v2beta1.CrossVersionObjectReference", - "description": "target is the described Kubernetes object." - } - }, - "required": [ - "target", - "metricName", - "currentValue" - ], - "type": "object" - }, - "v2beta1.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.", - "properties": { - "metricName": { - "description": "metricName is the name of the metric in question", - "type": "string" - }, - "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." - }, - "targetAverageValue": { - "description": "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)", - "type": "string" - } - }, - "required": [ - "metricName", - "targetAverageValue" - ], - "type": "object" - }, - "v2beta1.PodsMetricStatus": { - "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", - "properties": { - "currentAverageValue": { - "description": "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)", - "type": "string" - }, - "metricName": { - "description": "metricName is the name of the metric in question", - "type": "string" - }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, 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." - } - }, - "required": [ - "metricName", - "currentAverageValue" - ], - "type": "object" - }, - "v2beta1.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.", - "properties": { - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - }, - "targetAverageUtilization": { - "description": "targetAverageUtilization 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.", - "format": "int32", - "type": "integer" - }, - "targetAverageValue": { - "description": "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "v2beta1.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.", - "properties": { - "currentAverageUtilization": { - "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. It will only be present if `targetAverageValue` was set in the corresponding metric specification.", - "format": "int32", - "type": "integer" - }, - "currentAverageValue": { - "description": "currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification.", - "type": "string" - }, - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - } - }, - "required": [ - "name", - "currentAverageValue" - ], - "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.", "properties": { @@ -4069,7 +3550,7 @@ "type": "boolean" }, "timeZone": { - "description": "The time zone for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will rely on the time zone of the kube-controller-manager process. ALPHA: This field is in alpha and must be enabled via the `CronJobTimeZone` feature gate.", + "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" } }, @@ -4238,6 +3719,10 @@ "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" @@ -4329,6 +3814,94 @@ }, "type": "object" }, + "v1.PodFailurePolicy": { + "description": "PodFailurePolicy describes how failed pods influence the backoffLimit.", + "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.", + "items": { + "$ref": "#/definitions/v1.PodFailurePolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "rules" + ], + "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.", + "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.", + "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", + "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": [ + "operator", + "values" + ], + "type": "object" + }, + "v1.PodFailurePolicyOnPodConditionsPattern": { + "description": "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.", + "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.", + "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.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "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.", + "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", + "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" + }, "v1.UncountedTerminatedPods": { "description": "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.", "properties": { @@ -4351,157 +3924,6 @@ }, "type": "object" }, - "v1beta1.CronJob": { - "description": "CronJob represents the configuration of a single cron 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", - "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/v1beta1.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/v1beta1.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" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - ] - }, - "v1beta1.CronJobList": { - "description": "CronJobList is a collection of cron 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 CronJobs.", - "items": { - "$ref": "#/definitions/v1beta1.CronJob" - }, - "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": "batch", - "kind": "CronJobList", - "version": "v1beta1" - } - ] - }, - "v1beta1.CronJobSpec": { - "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", - "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", - "type": "string" - }, - "failedJobsHistoryLimit": { - "description": "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", - "format": "int32", - "type": "integer" - }, - "jobTemplate": { - "$ref": "#/definitions/v1beta1.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" - }, - "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. This is a pointer to distinguish between explicit zero and not specified. 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 for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will rely on the time zone of the kube-controller-manager process. ALPHA: This field is in alpha and must be enabled via the `CronJobTimeZone` feature gate.", - "type": "string" - } - }, - "required": [ - "schedule", - "jobTemplate" - ], - "type": "object" - }, - "v1beta1.CronJobStatus": { - "description": "CronJobStatus represents the current state of a cron job.", - "properties": { - "active": { - "description": "A list of pointers to currently running jobs.", - "items": { - "$ref": "#/definitions/v1.ObjectReference" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "lastScheduleTime": { - "description": "Information when was the last time the job was successfully scheduled.", - "format": "date-time", - "type": "string" - }, - "lastSuccessfulTime": { - "description": "Information when was the last time the job successfully completed.", - "format": "date-time", - "type": "string" - } - }, - "type": "object" - }, - "v1beta1.JobTemplateSpec": { - "description": "JobTemplateSpec describes the data a Job should have when created from a template", - "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" - }, - "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" - } - }, - "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.", "properties": { @@ -4964,7 +4386,7 @@ "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 alpha 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." + "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", @@ -4978,6 +4400,10 @@ "description": "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", "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." + }, "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." @@ -5535,7 +4961,7 @@ "type": "string" }, "ports": { - "description": "List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. 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. Cannot be updated.", + "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" }, @@ -5616,7 +5042,7 @@ "description": "Describe a container image", "properties": { "names": { - "description": "Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]", + "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" }, @@ -5934,7 +5360,7 @@ "x-kubernetes-map-type": "atomic" }, "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 Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n }\nThe resulting set of endpoints can be viewed as:\n a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n b: [ 10.10.1.1:309, 10.10.2.2:309 ]", + "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": { "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.", @@ -5961,7 +5387,7 @@ "type": "object" }, "v1.Endpoints": { - "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n Name: \"mysvc\",\n Subsets: [\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n },\n {\n Addresses: [{\"ip\": \"10.10.3.3\"}],\n Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n },\n ]", + "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", @@ -6089,7 +5515,7 @@ "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.\n\nThis is a beta feature available on clusters that haven't disabled the EphemeralContainers feature gate.", + "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 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", @@ -6914,7 +6340,7 @@ "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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", + "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.", @@ -6922,7 +6348,7 @@ }, "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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", + "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.", @@ -6930,7 +6356,7 @@ }, "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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", + "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.", @@ -6938,7 +6364,7 @@ }, "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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", + "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.", @@ -6946,7 +6372,7 @@ }, "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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", + "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.", @@ -7526,7 +6952,7 @@ }, "allocatable": { "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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", + "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": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", @@ -7534,7 +6960,7 @@ }, "capacity": { "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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", + "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": "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", @@ -7888,7 +7314,7 @@ }, "allocatedResources": { "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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", + "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": "allocatedResources is the storage resource within AllocatedResources tracks the capacity allocated to a PVC. It may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", @@ -7896,7 +7322,7 @@ }, "capacity": { "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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", + "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": "capacity represents the actual resources of the underlying volume.", @@ -8015,7 +7441,7 @@ }, "capacity": { "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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", + "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": "capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", @@ -8031,7 +7457,8 @@ }, "claimRef": { "$ref": "#/definitions/v1.ObjectReference", - "description": "claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding" + "description": "claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding", + "x-kubernetes-map-type": "granular" }, "csi": { "$ref": "#/definitions/v1.CSIPersistentVolumeSource", @@ -8340,7 +7767,7 @@ "type": "object" }, "v1.PodIP": { - "description": "IP address information for entries in the (plural) PodIPs field. Each entry includes:\n IP: An IP address allocated to the pod. Routable at least within the cluster.", + "description": "IP address information for entries in the (plural) PodIPs field. Each entry includes:\n\n\tIP: An IP address allocated to the pod. Routable at least within the cluster.", "properties": { "ip": { "description": "ip is an IP address (IPv4 or IPv6) assigned to the pod", @@ -8504,7 +7931,7 @@ "type": "boolean" }, "ephemeralContainers": { - "description": "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.", + "description": "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.", "items": { "$ref": "#/definitions/v1.EphemeralContainer" }, @@ -8533,6 +7960,10 @@ "description": "Use the host's pid namespace. Optional: Default to false.", "type": "boolean" }, + "hostUsers": { + "description": "Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.", + "type": "boolean" + }, "hostname": { "description": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", "type": "string" @@ -8569,11 +8000,11 @@ }, "os": { "$ref": "#/definitions/v1.PodOS", - "description": "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup This is a beta field and requires the IdentifyPodOS feature" + "description": "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup" }, "overhead": { "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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", + "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": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md", @@ -8696,7 +8127,7 @@ "type": "array" }, "ephemeralContainerStatuses": { - "description": "Status for any ephemeral containers that have run in this pod. This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.", + "description": "Status for any ephemeral containers that have run in this pod.", "items": { "$ref": "#/definitions/v1.ContainerStatus" }, @@ -9353,7 +8784,7 @@ "properties": { "hard": { "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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", + "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": "hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", @@ -9378,7 +8809,7 @@ "properties": { "hard": { "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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", + "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": "Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", @@ -9386,7 +8817,7 @@ }, "used": { "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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", + "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": "Used is the current observed total usage of the resource in the namespace.", @@ -9400,7 +8831,7 @@ "properties": { "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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", + "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": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", @@ -9408,7 +8839,7 @@ }, "requests": { "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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", + "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": "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/", @@ -10074,16 +9505,16 @@ "type": "string" }, "externalTrafficPolicy": { - "description": "externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. \"Local\" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. \"Cluster\" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading.\n\n", + "description": "externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node.\n\n", "type": "string" }, "healthCheckNodePort": { - "description": "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type).", + "description": "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set.", "format": "int32", "type": "integer" }, "internalTrafficPolicy": { - "description": "InternalTrafficPolicy specifies if the cluster internal traffic should be routed to all endpoints or node-local endpoints only. \"Cluster\" routes internal traffic to a Service to all endpoints. \"Local\" routes traffic to node-local endpoints only, traffic is dropped if no node-local endpoints are ready. The default value is \"Cluster\".", + "description": "InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features).", "type": "string" }, "ipFamilies": { @@ -10370,18 +9801,34 @@ "$ref": "#/definitions/v1.LabelSelector", "description": "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain." }, + "matchLabelKeys": { + "description": "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.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "maxSkew": { "description": "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.", "format": "int32", "type": "integer" }, "minDomains": { - "description": "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.\n\nFor 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.\n\nThis is an alpha field and requires enabling MinDomainsInPodTopologySpread feature gate.", + "description": "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.\n\nFor 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.\n\nThis is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default).", "format": "int32", "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.", + "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.", + "type": "string" + }, "topologyKey": { - "description": "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 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 match the node selector. 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.", + "description": "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 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.", "type": "string" }, "whenUnsatisfiable": { @@ -10729,7 +10176,7 @@ "type": "string" }, "nodeName": { - "description": "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate.", + "description": "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node.", "type": "string" }, "targetRef": { @@ -10899,202 +10346,6 @@ ], "type": "object" }, - "v1beta1.Endpoint": { - "description": "Endpoint represents a single logical \"backend\" implementing a service.", - "properties": { - "addresses": { - "description": "addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "conditions": { - "$ref": "#/definitions/v1beta1.EndpointConditions", - "description": "conditions contains information about the current status of the endpoint." - }, - "hints": { - "$ref": "#/definitions/v1beta1.EndpointHints", - "description": "hints contains information associated with how an endpoint should be consumed." - }, - "hostname": { - "description": "hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation.", - "type": "string" - }, - "nodeName": { - "description": "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate.", - "type": "string" - }, - "targetRef": { - "$ref": "#/definitions/v1.ObjectReference", - "description": "targetRef is a reference to a Kubernetes object that represents this endpoint." - }, - "topology": { - "additionalProperties": { - "type": "string" - }, - "description": "topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node\n where the endpoint is located. This should match the corresponding\n node label.\n* topology.kubernetes.io/zone: the value indicates the zone where the\n endpoint is located. This should match the corresponding node label.\n* topology.kubernetes.io/region: the value indicates the region where the\n endpoint is located. This should match the corresponding node label.\nThis field is deprecated and will be removed in future api versions.", - "type": "object" - } - }, - "required": [ - "addresses" - ], - "type": "object" - }, - "v1beta1.EndpointConditions": { - "description": "EndpointConditions represents the current condition of an endpoint.", - "properties": { - "ready": { - "description": "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.", - "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.", - "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.", - "type": "boolean" - } - }, - "type": "object" - }, - "v1beta1.EndpointHints": { - "description": "EndpointHints provides hints describing how an endpoint should be consumed.", - "properties": { - "forZones": { - "description": "forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. May contain a maximum of 8 entries.", - "items": { - "$ref": "#/definitions/v1beta1.ForZone" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "v1beta1.EndpointPort": { - "description": "EndpointPort represents a Port used by an EndpointSlice", - "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. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.", - "type": "string" - }, - "port": { - "description": "The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.", - "format": "int32", - "type": "integer" - }, - "protocol": { - "description": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", - "type": "string" - } - }, - "type": "object" - }, - "v1beta1.EndpointSlice": { - "description": "EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.", - "properties": { - "addressType": { - "description": "addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.", - "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" - }, - "endpoints": { - "description": "endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.", - "items": { - "$ref": "#/definitions/v1beta1.Endpoint" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "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." - }, - "ports": { - "description": "ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates \"all ports\". Each slice may include a maximum of 100 ports.", - "items": { - "$ref": "#/definitions/v1beta1.EndpointPort" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "addressType", - "endpoints" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - ] - }, - "v1beta1.EndpointSliceList": { - "description": "EndpointSliceList represents a list of endpoint slices", - "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 endpoint slices", - "items": { - "$ref": "#/definitions/v1beta1.EndpointSlice" - }, - "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": "discovery.k8s.io", - "kind": "EndpointSliceList", - "version": "v1beta1" - } - ] - }, - "v1beta1.ForZone": { - "description": "ForZone provides information about which zones should consume this endpoint.", - "properties": { - "name": { - "description": "name represents the name of the zone.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, "events.v1.Event": { "description": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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": { @@ -11238,149 +10489,6 @@ ], "type": "object" }, - "v1beta1.Event": { - "description": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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": { - "action": { - "description": "action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field can have at most 128 characters.", - "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" - }, - "deprecatedCount": { - "description": "deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.", - "format": "int32", - "type": "integer" - }, - "deprecatedFirstTimestamp": { - "description": "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.", - "format": "date-time", - "type": "string" - }, - "deprecatedLastTimestamp": { - "description": "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.", - "format": "date-time", - "type": "string" - }, - "deprecatedSource": { - "$ref": "#/definitions/v1.EventSource", - "description": "deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type." - }, - "eventTime": { - "description": "eventTime is the time when this Event was first observed. It is required.", - "format": "date-time", - "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" - }, - "note": { - "description": "note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.", - "type": "string" - }, - "reason": { - "description": "reason is why the action was taken. It is human-readable. This field can have at most 128 characters.", - "type": "string" - }, - "regarding": { - "$ref": "#/definitions/v1.ObjectReference", - "description": "regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object." - }, - "related": { - "$ref": "#/definitions/v1.ObjectReference", - "description": "related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object." - }, - "reportingController": { - "description": "reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.", - "type": "string" - }, - "reportingInstance": { - "description": "reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.", - "type": "string" - }, - "series": { - "$ref": "#/definitions/v1beta1.EventSeries", - "description": "series is data about the Event series this event represents or nil if it's a singleton Event." - }, - "type": { - "description": "type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable.", - "type": "string" - } - }, - "required": [ - "eventTime" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - ] - }, - "v1beta1.EventList": { - "description": "EventList is a list of Event 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.", - "items": { - "$ref": "#/definitions/v1beta1.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#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "events.k8s.io", - "kind": "EventList", - "version": "v1beta1" - } - ] - }, - "v1beta1.EventSeries": { - "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", - "properties": { - "count": { - "description": "count is the number of occurrences in this series up to the last heartbeat time.", - "format": "int32", - "type": "integer" - }, - "lastObservedTime": { - "description": "lastObservedTime is the time when last Event from the series was seen before last heartbeat.", - "format": "date-time", - "type": "string" - } - }, - "required": [ - "count", - "lastObservedTime" - ], - "type": "object" - }, "v1beta1.FlowDistinguisherMethod": { "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", "properties": { @@ -11575,7 +10683,7 @@ ] }, "v1beta1.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?", + "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.", @@ -12126,7 +11234,7 @@ ] }, "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?", + "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.", @@ -12770,7 +11878,7 @@ "description": "DefaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller." }, "ingressClassName": { - "description": "IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation.", + "description": "IngressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.", "type": "string" }, "rules": { @@ -12950,7 +12058,7 @@ "description": "NetworkPolicyPort describes a port to allow traffic on", "properties": { "endPort": { - "description": "If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. This feature is in Beta state and is enabled by default. It can be disabled using the Feature Gate \"NetworkPolicyEndPort\".", + "description": "If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.", "format": "int32", "type": "integer" }, @@ -13033,12 +12141,102 @@ }, "type": "object" }, + "v1alpha1.ClusterCIDR": { + "description": "ClusterCIDR represents a single configuration for per-Node Pod CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config for kube-controller-manager). A cluster may have any number of ClusterCIDR resources, all of which will be considered when allocating a CIDR for a Node. A ClusterCIDR is eligible to be used for a given Node when the node selector matches the node in question and has free CIDRs to allocate. In case of multiple matching ClusterCIDR resources, the allocator will attempt to break ties using internal heuristics, but any ClusterCIDR whose node selector matches the Node may be used.", + "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/v1alpha1.ClusterCIDRSpec", + "description": "Spec is the desired state of the ClusterCIDR. 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": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.ClusterCIDRList": { + "description": "ClusterCIDRList contains a list of ClusterCIDR.", + "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 ClusterCIDRs.", + "items": { + "$ref": "#/definitions/v1alpha1.ClusterCIDR" + }, + "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 object's 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": "networking.k8s.io", + "kind": "ClusterCIDRList", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.ClusterCIDRSpec": { + "description": "ClusterCIDRSpec defines the desired state of ClusterCIDR.", + "properties": { + "ipv4": { + "description": "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.", + "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.", + "type": "string" + }, + "nodeSelector": { + "$ref": "#/definitions/v1.NodeSelector", + "description": "NodeSelector defines which nodes the config is applicable to. An empty or nil NodeSelector selects all nodes. This field is immutable." + }, + "perNodeHostBits": { + "description": "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.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "perNodeHostBits" + ], + "type": "object" + }, "v1.Overhead": { "description": "Overhead structure represents the resource overhead associated with running a pod.", "properties": { "podFixed": { "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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", + "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": "PodFixed represents the fixed resource overhead associated with running a pod.", @@ -13144,117 +12342,6 @@ }, "type": "object" }, - "v1beta1.Overhead": { - "description": "Overhead structure represents the resource overhead associated with running a pod.", - "properties": { - "podFixed": { - "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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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": "PodFixed represents the fixed resource overhead associated with running a pod.", - "type": "object" - } - }, - "type": "object" - }, - "v1beta1.RuntimeClass": { - "description": "RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class", - "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" - }, - "handler": { - "description": "Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.", - "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": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "overhead": { - "$ref": "#/definitions/v1beta1.Overhead", - "description": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md" - }, - "scheduling": { - "$ref": "#/definitions/v1beta1.Scheduling", - "description": "Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes." - } - }, - "required": [ - "handler" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - ] - }, - "v1beta1.RuntimeClassList": { - "description": "RuntimeClassList is a list of RuntimeClass 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.", - "items": { - "$ref": "#/definitions/v1beta1.RuntimeClass" - }, - "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": "node.k8s.io", - "kind": "RuntimeClassList", - "version": "v1beta1" - } - ] - }, - "v1beta1.Scheduling": { - "description": "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.", - "properties": { - "nodeSelector": { - "additionalProperties": { - "type": "string" - }, - "description": "nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "tolerations": { - "description": "tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.", - "items": { - "$ref": "#/definitions/v1.Toleration" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, "v1.Eviction": { "description": "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.", "properties": { @@ -13430,547 +12517,6 @@ ], "type": "object" }, - "v1beta1.AllowedCSIDriver": { - "description": "AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used.", - "properties": { - "name": { - "description": "Name is the registered name of the CSI driver", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "v1beta1.AllowedFlexVolume": { - "description": "AllowedFlexVolume represents a single Flexvolume that is allowed to be used.", - "properties": { - "driver": { - "description": "driver is the name of the Flexvolume driver.", - "type": "string" - } - }, - "required": [ - "driver" - ], - "type": "object" - }, - "v1beta1.AllowedHostPath": { - "description": "AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined.", - "properties": { - "pathPrefix": { - "description": "pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path.\n\nExamples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`", - "type": "string" - }, - "readOnly": { - "description": "when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.", - "type": "boolean" - } - }, - "type": "object" - }, - "v1beta1.FSGroupStrategyOptions": { - "description": "FSGroupStrategyOptions defines the strategy type and options used to create the strategy.", - "properties": { - "ranges": { - "description": "ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs.", - "items": { - "$ref": "#/definitions/v1beta1.IDRange" - }, - "type": "array" - }, - "rule": { - "description": "rule is the strategy that will dictate what FSGroup is used in the SecurityContext.", - "type": "string" - } - }, - "type": "object" - }, - "v1beta1.HostPortRange": { - "description": "HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined.", - "properties": { - "max": { - "description": "max is the end of the range, inclusive.", - "format": "int32", - "type": "integer" - }, - "min": { - "description": "min is the start of the range, inclusive.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "min", - "max" - ], - "type": "object" - }, - "v1beta1.IDRange": { - "description": "IDRange provides a min/max of an allowed range of IDs.", - "properties": { - "max": { - "description": "max is the end of the range, inclusive.", - "format": "int64", - "type": "integer" - }, - "min": { - "description": "min is the start of the range, inclusive.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "min", - "max" - ], - "type": "object" - }, - "v1beta1.PodDisruptionBudget": { - "description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", - "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/v1beta1.PodDisruptionBudgetSpec", - "description": "Specification of the desired behavior of the PodDisruptionBudget." - }, - "status": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetStatus", - "description": "Most recently observed status of the PodDisruptionBudget." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - ] - }, - "v1beta1.PodDisruptionBudgetList": { - "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", - "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 list individual PodDisruptionBudget objects", - "items": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - }, - "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 object's 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": "policy", - "kind": "PodDisruptionBudgetList", - "version": "v1beta1" - } - ] - }, - "v1beta1.PodDisruptionBudgetSpec": { - "description": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", - "properties": { - "maxUnavailable": { - "$ref": "#/definitions/intstr.IntOrString", - "description": "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\"." - }, - "minAvailable": { - "$ref": "#/definitions/intstr.IntOrString", - "description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\"." - }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "Label query over pods whose evictions are managed by the disruption budget. A null selector selects no pods. An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods. In policy/v1, an empty selector will select all pods in the namespace." - } - }, - "type": "object" - }, - "v1beta1.PodDisruptionBudgetStatus": { - "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", - "properties": { - "conditions": { - "description": "Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute\n the number of allowed disruptions. Therefore no disruptions are\n allowed and the status of the condition will be False.\n- InsufficientPods: The number of pods are either at or below the number\n required by the PodDisruptionBudget. No disruptions are\n allowed and the status of the condition will be False.\n- SufficientPods: There are more pods than required by the PodDisruptionBudget.\n The condition will be True, and the number of allowed\n disruptions are provided by the disruptionsAllowed property.", - "items": { - "$ref": "#/definitions/v1.Condition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "currentHealthy": { - "description": "current number of healthy pods", - "format": "int32", - "type": "integer" - }, - "desiredHealthy": { - "description": "minimum desired number of healthy pods", - "format": "int32", - "type": "integer" - }, - "disruptedPods": { - "additionalProperties": { - "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" - }, - "description": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.", - "type": "object" - }, - "disruptionsAllowed": { - "description": "Number of pod disruptions that are currently allowed.", - "format": "int32", - "type": "integer" - }, - "expectedPods": { - "description": "total number of pods counted by this disruption budget", - "format": "int32", - "type": "integer" - }, - "observedGeneration": { - "description": "Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "disruptionsAllowed", - "currentHealthy", - "desiredHealthy", - "expectedPods" - ], - "type": "object" - }, - "v1beta1.PodSecurityPolicy": { - "description": "PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated in 1.21.", - "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/v1beta1.PodSecurityPolicySpec", - "description": "spec defines the policy enforced." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - ] - }, - "v1beta1.PodSecurityPolicyList": { - "description": "PodSecurityPolicyList is a list of PodSecurityPolicy 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.", - "items": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - }, - "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": "policy", - "kind": "PodSecurityPolicyList", - "version": "v1beta1" - } - ] - }, - "v1beta1.PodSecurityPolicySpec": { - "description": "PodSecurityPolicySpec defines the policy enforced.", - "properties": { - "allowPrivilegeEscalation": { - "description": "allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true.", - "type": "boolean" - }, - "allowedCSIDrivers": { - "description": "AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.", - "items": { - "$ref": "#/definitions/v1beta1.AllowedCSIDriver" - }, - "type": "array" - }, - "allowedCapabilities": { - "description": "allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities.", - "items": { - "type": "string" - }, - "type": "array" - }, - "allowedFlexVolumes": { - "description": "allowedFlexVolumes is an allowlist of Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field.", - "items": { - "$ref": "#/definitions/v1beta1.AllowedFlexVolume" - }, - "type": "array" - }, - "allowedHostPaths": { - "description": "allowedHostPaths is an allowlist of host paths. Empty indicates that all host paths may be used.", - "items": { - "$ref": "#/definitions/v1beta1.AllowedHostPath" - }, - "type": "array" - }, - "allowedProcMountTypes": { - "description": "AllowedProcMountTypes is an allowlist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled.", - "items": { - "type": "string" - }, - "type": "array" - }, - "allowedUnsafeSysctls": { - "description": "allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.\n\nExamples: e.g. \"foo/*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc.", - "items": { - "type": "string" - }, - "type": "array" - }, - "defaultAddCapabilities": { - "description": "defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list.", - "items": { - "type": "string" - }, - "type": "array" - }, - "defaultAllowPrivilegeEscalation": { - "description": "defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process.", - "type": "boolean" - }, - "forbiddenSysctls": { - "description": "forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.\n\nExamples: e.g. \"foo/*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc.", - "items": { - "type": "string" - }, - "type": "array" - }, - "fsGroup": { - "$ref": "#/definitions/v1beta1.FSGroupStrategyOptions", - "description": "fsGroup is the strategy that will dictate what fs group is used by the SecurityContext." - }, - "hostIPC": { - "description": "hostIPC determines if the policy allows the use of HostIPC in the pod spec.", - "type": "boolean" - }, - "hostNetwork": { - "description": "hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.", - "type": "boolean" - }, - "hostPID": { - "description": "hostPID determines if the policy allows the use of HostPID in the pod spec.", - "type": "boolean" - }, - "hostPorts": { - "description": "hostPorts determines which host port ranges are allowed to be exposed.", - "items": { - "$ref": "#/definitions/v1beta1.HostPortRange" - }, - "type": "array" - }, - "privileged": { - "description": "privileged determines if a pod can request to be run as privileged.", - "type": "boolean" - }, - "readOnlyRootFilesystem": { - "description": "readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to.", - "type": "boolean" - }, - "requiredDropCapabilities": { - "description": "requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added.", - "items": { - "type": "string" - }, - "type": "array" - }, - "runAsGroup": { - "$ref": "#/definitions/v1beta1.RunAsGroupStrategyOptions", - "description": "RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled." - }, - "runAsUser": { - "$ref": "#/definitions/v1beta1.RunAsUserStrategyOptions", - "description": "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set." - }, - "runtimeClass": { - "$ref": "#/definitions/v1beta1.RuntimeClassStrategyOptions", - "description": "runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled." - }, - "seLinux": { - "$ref": "#/definitions/v1beta1.SELinuxStrategyOptions", - "description": "seLinux is the strategy that will dictate the allowable labels that may be set." - }, - "supplementalGroups": { - "$ref": "#/definitions/v1beta1.SupplementalGroupsStrategyOptions", - "description": "supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext." - }, - "volumes": { - "description": "volumes is an allowlist of volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "seLinux", - "runAsUser", - "supplementalGroups", - "fsGroup" - ], - "type": "object" - }, - "v1beta1.RunAsGroupStrategyOptions": { - "description": "RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy.", - "properties": { - "ranges": { - "description": "ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.", - "items": { - "$ref": "#/definitions/v1beta1.IDRange" - }, - "type": "array" - }, - "rule": { - "description": "rule is the strategy that will dictate the allowable RunAsGroup values that may be set.", - "type": "string" - } - }, - "required": [ - "rule" - ], - "type": "object" - }, - "v1beta1.RunAsUserStrategyOptions": { - "description": "RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy.", - "properties": { - "ranges": { - "description": "ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs.", - "items": { - "$ref": "#/definitions/v1beta1.IDRange" - }, - "type": "array" - }, - "rule": { - "description": "rule is the strategy that will dictate the allowable RunAsUser values that may be set.", - "type": "string" - } - }, - "required": [ - "rule" - ], - "type": "object" - }, - "v1beta1.RuntimeClassStrategyOptions": { - "description": "RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.", - "properties": { - "allowedRuntimeClassNames": { - "description": "allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.", - "items": { - "type": "string" - }, - "type": "array" - }, - "defaultRuntimeClassName": { - "description": "defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.", - "type": "string" - } - }, - "required": [ - "allowedRuntimeClassNames" - ], - "type": "object" - }, - "v1beta1.SELinuxStrategyOptions": { - "description": "SELinuxStrategyOptions defines the strategy type and any options used to create the strategy.", - "properties": { - "rule": { - "description": "rule is the strategy that will dictate the allowable labels that may be set.", - "type": "string" - }, - "seLinuxOptions": { - "$ref": "#/definitions/v1.SELinuxOptions", - "description": "seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/" - } - }, - "required": [ - "rule" - ], - "type": "object" - }, - "v1beta1.SupplementalGroupsStrategyOptions": { - "description": "SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy.", - "properties": { - "ranges": { - "description": "ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs.", - "items": { - "$ref": "#/definitions/v1beta1.IDRange" - }, - "type": "array" - }, - "rule": { - "description": "rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.", - "type": "string" - } - }, - "type": "object" - }, "v1.AggregationRule": { "description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", "properties": { @@ -14133,7 +12679,7 @@ "description": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", "properties": { "apiGroups": { - "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.", + "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups.", "items": { "type": "string" }, @@ -14531,6 +13077,10 @@ "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" @@ -16242,6 +14792,11 @@ "kind": "DeleteOptions", "version": "v1" }, + { + "group": "networking.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, { "group": "networking.k8s.io", "kind": "DeleteOptions", @@ -16453,10 +15008,6 @@ "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", "type": "object" }, - "clusterName": { - "description": "Deprecated: ClusterName is a legacy field that was always cleared by the system and never used; it will be removed completely in 1.25.\n\nThe name in the go struct is changed to help clients detect accidental use.", - "type": "string" - }, "creationTimestamp": { "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "format": "date-time", @@ -16904,6 +15455,11 @@ "kind": "WatchEvent", "version": "v1" }, + { + "group": "networking.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, { "group": "networking.k8s.io", "kind": "WatchEvent", @@ -17212,7 +15768,7 @@ }, "info": { "title": "Kubernetes", - "version": "release-1.24" + "version": "release-1.25" }, "paths": { "/.well-known/openid-configuration/": { @@ -49303,1235 +47859,6 @@ } ] }, - "/apis/autoscaling/v2beta1/": { - "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_v2beta1" - ] - } - }, - "/apis/autoscaling/v2beta1/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/v2beta1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "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/v2beta1/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" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - }, - "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/v2beta1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "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 HorizontalPodAutoscaler", - "operationId": "createNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2beta1.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/v2beta1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/autoscaling/v2beta1/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" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - }, - "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/v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "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 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/v2beta1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - }, - "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/v2beta1.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/v2beta1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/autoscaling/v2beta1/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/v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "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" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - }, - "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/v2beta1.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/v2beta1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/autoscaling/v2beta1/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/v2beta1/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/v2beta1/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/v2beta2/": { "get": { "consumes": [ @@ -54219,1235 +51546,6 @@ } ] }, - "/apis/batch/v1beta1/": { - "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": [ - "batch_v1beta1" - ] - } - }, - "/apis/batch/v1beta1/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/v1beta1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "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/v1beta1/namespaces/{namespace}/cronjobs": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of CronJob", - "operationId": "deleteCollectionNamespacedCronJob", - "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": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "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.", - "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/v1beta1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "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 CronJob", - "operationId": "createNamespacedCronJob", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.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 - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.CronJob" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a CronJob", - "operationId": "deleteNamespacedCronJob", - "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_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified CronJob", - "operationId": "readNamespacedCronJob", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "parameters": [ - { - "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 - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified CronJob", - "operationId": "patchNamespacedCronJob", - "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/v1beta1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified CronJob", - "operationId": "replaceNamespacedCronJob", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.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 - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/batch/v1beta1/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/v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "parameters": [ - { - "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 - } - ], - "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 CronJob", - "operationId": "patchNamespacedCronJobStatus", - "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/v1beta1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified CronJob", - "operationId": "replaceNamespacedCronJobStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.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 - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/batch/v1beta1/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/v1beta1/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/v1beta1/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/certificates.k8s.io/": { "get": { "consumes": [ @@ -58782,1016 +54880,6 @@ } ] }, - "/apis/discovery.k8s.io/v1beta1/": { - "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_v1beta1" - ] - } - }, - "/apis/discovery.k8s.io/v1beta1/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/v1beta1.EndpointSliceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "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/v1beta1/namespaces/{namespace}/endpointslices": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of EndpointSlice", - "operationId": "deleteCollectionNamespacedEndpointSlice", - "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": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "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.", - "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/v1beta1.EndpointSliceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "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 an EndpointSlice", - "operationId": "createNamespacedEndpointSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.EndpointSlice" - } - }, - { - "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/v1beta1.EndpointSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.EndpointSlice" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta1.EndpointSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete an EndpointSlice", - "operationId": "deleteNamespacedEndpointSlice", - "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": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified EndpointSlice", - "operationId": "readNamespacedEndpointSlice", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.EndpointSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the EndpointSlice", - "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 EndpointSlice", - "operationId": "patchNamespacedEndpointSlice", - "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/v1beta1.EndpointSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.EndpointSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified EndpointSlice", - "operationId": "replaceNamespacedEndpointSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.EndpointSlice" - } - }, - { - "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/v1beta1.EndpointSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.EndpointSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/discovery.k8s.io/v1beta1/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 - }, - { - "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/v1beta1/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.", - "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/discovery.k8s.io/v1beta1/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.", - "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 EndpointSlice", - "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/events.k8s.io/": { "get": { "consumes": [ @@ -60835,1016 +55923,6 @@ } ] }, - "/apis/events.k8s.io/v1beta1/": { - "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": [ - "events_v1beta1" - ] - } - }, - "/apis/events.k8s.io/v1beta1/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/v1beta1.EventList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "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/v1beta1/namespaces/{namespace}/events": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of Event", - "operationId": "deleteCollectionNamespacedEvent", - "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": [ - "events_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "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.", - "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/v1beta1.EventList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "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 an Event", - "operationId": "createNamespacedEvent", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.Event" - } - }, - { - "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/v1beta1.Event" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.Event" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete an Event", - "operationId": "deleteNamespacedEvent", - "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": [ - "events_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Event", - "operationId": "readNamespacedEvent", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "parameters": [ - { - "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", - "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 Event", - "operationId": "patchNamespacedEvent", - "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/v1beta1.Event" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Event", - "operationId": "replaceNamespacedEvent", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.Event" - } - }, - { - "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/v1beta1.Event" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/events.k8s.io/v1beta1/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/v1beta1/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 - }, - { - "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/v1beta1/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", - "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": { "consumes": [ @@ -70083,6 +64161,799 @@ } ] }, + "/apis/networking.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": [ + "networking_v1alpha1" + ] + } + }, + "/apis/networking.k8s.io/v1alpha1/clustercidrs": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ClusterCIDR", + "operationId": "deleteCollectionClusterCIDR", + "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": [ + "networking_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "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.", + "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/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": "createClusterCIDR", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/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/v1alpha1.ClusterCIDR" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ClusterCIDR" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/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" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ClusterCIDR", + "operationId": "deleteClusterCIDR", + "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_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ClusterCIDR", + "operationId": "readClusterCIDR", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/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": "patchClusterCIDR", + "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.ClusterCIDR" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/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" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ClusterCIDR", + "operationId": "replaceClusterCIDR", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/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/v1alpha1.ClusterCIDR" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/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" + }, + "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": [ @@ -70909,799 +65780,6 @@ } ] }, - "/apis/node.k8s.io/v1beta1/": { - "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_v1beta1" - ] - } - }, - "/apis/node.k8s.io/v1beta1/runtimeclasses": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of RuntimeClass", - "operationId": "deleteCollectionRuntimeClass", - "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": [ - "node_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "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.", - "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/v1beta1.RuntimeClassList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - }, - "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": "createRuntimeClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.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/v1beta1.RuntimeClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.RuntimeClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/node.k8s.io/v1beta1/runtimeclasses/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a RuntimeClass", - "operationId": "deleteRuntimeClass", - "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": [ - "node_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified RuntimeClass", - "operationId": "readRuntimeClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - }, - "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": "patchRuntimeClass", - "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/v1beta1.RuntimeClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified RuntimeClass", - "operationId": "replaceRuntimeClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.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/v1beta1.RuntimeClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/node.k8s.io/v1beta1/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/v1beta1/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": [ @@ -72964,1995 +67042,6 @@ } ] }, - "/apis/policy/v1beta1/": { - "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_v1beta1" - ] - } - }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of PodDisruptionBudget", - "operationId": "deleteCollectionNamespacedPodDisruptionBudget", - "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": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "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.", - "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/v1beta1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "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": "createNamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.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/v1beta1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a PodDisruptionBudget", - "operationId": "deleteNamespacedPodDisruptionBudget", - "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": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified PodDisruptionBudget", - "operationId": "readNamespacedPodDisruptionBudget", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "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": "patchNamespacedPodDisruptionBudget", - "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/v1beta1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified PodDisruptionBudget", - "operationId": "replaceNamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.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/v1beta1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/policy/v1beta1/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/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "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": "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/v1beta1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - }, - "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/v1beta1.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/v1beta1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/policy/v1beta1/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/v1beta1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "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/v1beta1/podsecuritypolicies": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of PodSecurityPolicy", - "operationId": "deleteCollectionPodSecurityPolicy", - "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": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PodSecurityPolicy", - "operationId": "listPodSecurityPolicy", - "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/v1beta1.PodSecurityPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a PodSecurityPolicy", - "operationId": "createPodSecurityPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - { - "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/v1beta1.PodSecurityPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/policy/v1beta1/podsecuritypolicies/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a PodSecurityPolicy", - "operationId": "deletePodSecurityPolicy", - "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/v1beta1.PodSecurityPolicy" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified PodSecurityPolicy", - "operationId": "readPodSecurityPolicy", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the PodSecurityPolicy", - "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 PodSecurityPolicy", - "operationId": "patchPodSecurityPolicy", - "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/v1beta1.PodSecurityPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified PodSecurityPolicy", - "operationId": "replacePodSecurityPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - { - "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/v1beta1.PodSecurityPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/policy/v1beta1/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.", - "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/v1beta1/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.", - "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/v1beta1/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.", - "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/v1beta1/watch/podsecuritypolicies": { - "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/v1beta1/watch/podsecuritypolicies/{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 PodSecurityPolicy", - "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/": { "get": { "consumes": [ diff --git a/kubernetes/swagger.json.unprocessed b/kubernetes/swagger.json.unprocessed index c1a87c9..496b7ea 100644 --- a/kubernetes/swagger.json.unprocessed +++ b/kubernetes/swagger.json.unprocessed @@ -1178,7 +1178,7 @@ "properties": { "maxSurge": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", - "description": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate." + "description": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption." }, "maxUnavailable": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", @@ -1217,7 +1217,7 @@ "type": "object" }, "io.k8s.api.apps.v1.StatefulSet": { - "description": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", + "description": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\n\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", "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", @@ -1332,7 +1332,7 @@ "description": "A StatefulSetSpec is the specification of a StatefulSet.", "properties": { "minReadySeconds": { - "description": "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) This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate.", + "description": "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)", "format": "int32", "type": "integer" }, @@ -1389,7 +1389,7 @@ "description": "StatefulSetStatus represents the current state of a StatefulSet.", "properties": { "availableReplicas": { - "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.", + "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.", "format": "int32", "type": "integer" }, @@ -1522,7 +1522,7 @@ "description": "TokenRequestSpec contains client provided parameters of a token request.", "properties": { "audiences": { - "description": "Audiences are the intendend audiences of the token. A recipient of a token must identitfy themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.", + "description": "Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.", "items": { "type": "string" }, @@ -2854,523 +2854,6 @@ ], "type": "object" }, - "io.k8s.api.autoscaling.v2beta1.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.", - "properties": { - "container": { - "description": "container is the name of the container in the pods of the scaling target", - "type": "string" - }, - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - }, - "targetAverageUtilization": { - "description": "targetAverageUtilization 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.", - "format": "int32", - "type": "integer" - }, - "targetAverageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type." - } - }, - "required": [ - "name", - "container" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.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" - }, - "currentAverageUtilization": { - "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. It will only be present if `targetAverageValue` was set in the corresponding metric specification.", - "format": "int32", - "type": "integer" - }, - "currentAverageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification." - }, - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - } - }, - "required": [ - "name", - "currentAverageValue", - "container" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", - "properties": { - "apiVersion": { - "description": "API version of the referent", - "type": "string" - }, - "kind": { - "description": "Kind of the referent; 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" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.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). Exactly one \"target\" type should be set.", - "properties": { - "metricName": { - "description": "metricName is the name of the metric in question.", - "type": "string" - }, - "metricSelector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "metricSelector is used to identify a specific time series within a given metric." - }, - "targetAverageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue." - }, - "targetValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue." - } - }, - "required": [ - "metricName" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.ExternalMetricStatus": { - "description": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.", - "properties": { - "currentAverageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "currentAverageValue is the current value of metric averaged over autoscaled pods." - }, - "currentValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "currentValue is the current value of the metric (as a quantity)" - }, - "metricName": { - "description": "metricName is the name of a metric used for autoscaling in metric system.", - "type": "string" - }, - "metricSelector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "metricSelector is used to identify a specific time series within a given metric." - } - }, - "required": [ - "metricName", - "currentValue" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.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.", - "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 is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.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." - }, - "status": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerStatus", - "description": "status is the current information about the autoscaler." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - ] - }, - "io.k8s.api.autoscaling.v2beta1.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" - }, - "message": { - "description": "message is a human-readable explanation containing details about the transition", - "type": "string" - }, - "reason": { - "description": "reason is the reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "status is the status of the condition (True, False, Unknown)", - "type": "string" - }, - "type": { - "description": "type describes the current condition", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerList": { - "description": "HorizontalPodAutoscaler is a list of horizontal pod autoscaler 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 horizontal pod autoscaler objects.", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - }, - "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": "metadata is the standard list metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscalerList", - "version": "v2beta1" - } - ] - }, - "io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerSpec": { - "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", - "properties": { - "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.", - "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.", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.MetricSpec" - }, - "type": "array" - }, - "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.", - "format": "int32", - "type": "integer" - }, - "scaleTargetRef": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.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." - } - }, - "required": [ - "scaleTargetRef", - "maxReplicas" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerStatus": { - "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", - "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.v2beta1.HorizontalPodAutoscalerCondition" - }, - "type": "array" - }, - "currentMetrics": { - "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.MetricStatus" - }, - "type": "array" - }, - "currentReplicas": { - "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", - "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.", - "format": "int32", - "type": "integer" - }, - "lastScaleTime": { - "$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." - }, - "observedGeneration": { - "description": "observedGeneration is the most recent generation observed by this autoscaler.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "currentReplicas", - "desiredReplicas" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.MetricSpec": { - "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", - "properties": { - "containerResource": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.MetricStatus": { - "description": "MetricStatus describes the last-read state of a single metric.", - "properties": { - "containerResource": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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." - }, - "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", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.ObjectMetricSource": { - "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "properties": { - "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)" - }, - "metricName": { - "description": "metricName is the name of the metric in question.", - "type": "string" - }, - "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." - }, - "target": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.CrossVersionObjectReference", - "description": "target is the described Kubernetes object." - }, - "targetValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "targetValue is the target value of the metric (as a quantity)." - } - }, - "required": [ - "target", - "metricName", - "targetValue" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.ObjectMetricStatus": { - "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "properties": { - "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)" - }, - "currentValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "currentValue is the current value of the metric (as a quantity)." - }, - "metricName": { - "description": "metricName is the name of the metric in question.", - "type": "string" - }, - "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 in the ObjectMetricSource, 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." - }, - "target": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.CrossVersionObjectReference", - "description": "target is the described Kubernetes object." - } - }, - "required": [ - "target", - "metricName", - "currentValue" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.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.", - "properties": { - "metricName": { - "description": "metricName is the name of the metric in question", - "type": "string" - }, - "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." - }, - "targetAverageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)" - } - }, - "required": [ - "metricName", - "targetAverageValue" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.PodsMetricStatus": { - "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", - "properties": { - "currentAverageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)" - }, - "metricName": { - "description": "metricName is the name of the metric in question", - "type": "string" - }, - "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 in the PodsMetricSource, 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." - } - }, - "required": [ - "metricName", - "currentAverageValue" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.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.", - "properties": { - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - }, - "targetAverageUtilization": { - "description": "targetAverageUtilization 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.", - "format": "int32", - "type": "integer" - }, - "targetAverageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type." - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.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.", - "properties": { - "currentAverageUtilization": { - "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. It will only be present if `targetAverageValue` was set in the corresponding metric specification.", - "format": "int32", - "type": "integer" - }, - "currentAverageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification." - }, - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - } - }, - "required": [ - "name", - "currentAverageValue" - ], - "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.", "properties": { @@ -4059,7 +3542,7 @@ "type": "boolean" }, "timeZone": { - "description": "The time zone for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will rely on the time zone of the kube-controller-manager process. ALPHA: This field is in alpha and must be enabled via the `CronJobTimeZone` feature gate.", + "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" } }, @@ -4224,6 +3707,10 @@ "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" @@ -4313,6 +3800,94 @@ }, "type": "object" }, + "io.k8s.api.batch.v1.PodFailurePolicy": { + "description": "PodFailurePolicy describes how failed pods influence the backoffLimit.", + "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.", + "items": { + "$ref": "#/definitions/io.k8s.api.batch.v1.PodFailurePolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "rules" + ], + "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.", + "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.", + "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", + "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": [ + "operator", + "values" + ], + "type": "object" + }, + "io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern": { + "description": "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.", + "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.", + "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.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "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.", + "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", + "type": "string" + }, + "onExitCodes": { + "$ref": "#/definitions/io.k8s.api.batch.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/io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "action", + "onPodConditions" + ], + "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.", "properties": { @@ -4335,155 +3910,6 @@ }, "type": "object" }, - "io.k8s.api.batch.v1beta1.CronJob": { - "description": "CronJob represents the configuration of a single cron 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", - "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.batch.v1beta1.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.v1beta1.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" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.batch.v1beta1.CronJobList": { - "description": "CronJobList is a collection of cron 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 CronJobs.", - "items": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - }, - "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": "batch", - "kind": "CronJobList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.batch.v1beta1.CronJobSpec": { - "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", - "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", - "type": "string" - }, - "failedJobsHistoryLimit": { - "description": "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", - "format": "int32", - "type": "integer" - }, - "jobTemplate": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.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" - }, - "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. This is a pointer to distinguish between explicit zero and not specified. 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 for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will rely on the time zone of the kube-controller-manager process. ALPHA: This field is in alpha and must be enabled via the `CronJobTimeZone` feature gate.", - "type": "string" - } - }, - "required": [ - "schedule", - "jobTemplate" - ], - "type": "object" - }, - "io.k8s.api.batch.v1beta1.CronJobStatus": { - "description": "CronJobStatus represents the current state of a cron job.", - "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" - }, - "lastScheduleTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Information when was the last time the job was successfully scheduled." - }, - "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.batch.v1beta1.JobTemplateSpec": { - "description": "JobTemplateSpec describes the data a Job should have when created from a template", - "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" - }, - "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" - } - }, - "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.", "properties": { @@ -4942,7 +4368,7 @@ "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 alpha 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." + "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", @@ -4956,6 +4382,10 @@ "description": "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", "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." + }, "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." @@ -5513,7 +4943,7 @@ "type": "string" }, "ports": { - "description": "List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. 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. Cannot be updated.", + "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" }, @@ -5594,7 +5024,7 @@ "description": "Describe a container image", "properties": { "names": { - "description": "Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]", + "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" }, @@ -5909,7 +5339,7 @@ "x-kubernetes-map-type": "atomic" }, "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 Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n }\nThe resulting set of endpoints can be viewed as:\n a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n b: [ 10.10.1.1:309, 10.10.2.2:309 ]", + "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": { "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.", @@ -5936,7 +5366,7 @@ "type": "object" }, "io.k8s.api.core.v1.Endpoints": { - "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n Name: \"mysvc\",\n Subsets: [\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n },\n {\n Addresses: [{\"ip\": \"10.10.3.3\"}],\n Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n },\n ]", + "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", @@ -6064,7 +5494,7 @@ "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.\n\nThis is a beta feature available on clusters that haven't disabled the EphemeralContainers feature gate.", + "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 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", @@ -7986,7 +7416,8 @@ }, "claimRef": { "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", - "description": "claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding" + "description": "claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding", + "x-kubernetes-map-type": "granular" }, "csi": { "$ref": "#/definitions/io.k8s.api.core.v1.CSIPersistentVolumeSource", @@ -8293,7 +7724,7 @@ "type": "object" }, "io.k8s.api.core.v1.PodIP": { - "description": "IP address information for entries in the (plural) PodIPs field. Each entry includes:\n IP: An IP address allocated to the pod. Routable at least within the cluster.", + "description": "IP address information for entries in the (plural) PodIPs field. Each entry includes:\n\n\tIP: An IP address allocated to the pod. Routable at least within the cluster.", "properties": { "ip": { "description": "ip is an IP address (IPv4 or IPv6) assigned to the pod", @@ -8457,7 +7888,7 @@ "type": "boolean" }, "ephemeralContainers": { - "description": "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.", + "description": "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.", "items": { "$ref": "#/definitions/io.k8s.api.core.v1.EphemeralContainer" }, @@ -8486,6 +7917,10 @@ "description": "Use the host's pid namespace. Optional: Default to false.", "type": "boolean" }, + "hostUsers": { + "description": "Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.", + "type": "boolean" + }, "hostname": { "description": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", "type": "string" @@ -8522,7 +7957,7 @@ }, "os": { "$ref": "#/definitions/io.k8s.api.core.v1.PodOS", - "description": "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup This is a beta field and requires the IdentifyPodOS feature" + "description": "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup" }, "overhead": { "additionalProperties": { @@ -8648,7 +8083,7 @@ "type": "array" }, "ephemeralContainerStatuses": { - "description": "Status for any ephemeral containers that have run in this pod. This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.", + "description": "Status for any ephemeral containers that have run in this pod.", "items": { "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStatus" }, @@ -10019,16 +9454,16 @@ "type": "string" }, "externalTrafficPolicy": { - "description": "externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. \"Local\" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. \"Cluster\" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading.\n\n", + "description": "externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node.\n\n", "type": "string" }, "healthCheckNodePort": { - "description": "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type).", + "description": "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set.", "format": "int32", "type": "integer" }, "internalTrafficPolicy": { - "description": "InternalTrafficPolicy specifies if the cluster internal traffic should be routed to all endpoints or node-local endpoints only. \"Cluster\" routes internal traffic to a Service to all endpoints. \"Local\" routes traffic to node-local endpoints only, traffic is dropped if no node-local endpoints are ready. The default value is \"Cluster\".", + "description": "InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features).", "type": "string" }, "ipFamilies": { @@ -10314,18 +9749,34 @@ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", "description": "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain." }, + "matchLabelKeys": { + "description": "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.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "maxSkew": { "description": "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.", "format": "int32", "type": "integer" }, "minDomains": { - "description": "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.\n\nFor 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.\n\nThis is an alpha field and requires enabling MinDomainsInPodTopologySpread feature gate.", + "description": "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.\n\nFor 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.\n\nThis is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default).", "format": "int32", "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.", + "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.", + "type": "string" + }, "topologyKey": { - "description": "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 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 match the node selector. 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.", + "description": "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 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.", "type": "string" }, "whenUnsatisfiable": { @@ -10673,7 +10124,7 @@ "type": "string" }, "nodeName": { - "description": "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate.", + "description": "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node.", "type": "string" }, "targetRef": { @@ -10843,202 +10294,6 @@ ], "type": "object" }, - "io.k8s.api.discovery.v1beta1.Endpoint": { - "description": "Endpoint represents a single logical \"backend\" implementing a service.", - "properties": { - "addresses": { - "description": "addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "conditions": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointConditions", - "description": "conditions contains information about the current status of the endpoint." - }, - "hints": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointHints", - "description": "hints contains information associated with how an endpoint should be consumed." - }, - "hostname": { - "description": "hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation.", - "type": "string" - }, - "nodeName": { - "description": "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate.", - "type": "string" - }, - "targetRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", - "description": "targetRef is a reference to a Kubernetes object that represents this endpoint." - }, - "topology": { - "additionalProperties": { - "type": "string" - }, - "description": "topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node\n where the endpoint is located. This should match the corresponding\n node label.\n* topology.kubernetes.io/zone: the value indicates the zone where the\n endpoint is located. This should match the corresponding node label.\n* topology.kubernetes.io/region: the value indicates the region where the\n endpoint is located. This should match the corresponding node label.\nThis field is deprecated and will be removed in future api versions.", - "type": "object" - } - }, - "required": [ - "addresses" - ], - "type": "object" - }, - "io.k8s.api.discovery.v1beta1.EndpointConditions": { - "description": "EndpointConditions represents the current condition of an endpoint.", - "properties": { - "ready": { - "description": "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.", - "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.", - "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.", - "type": "boolean" - } - }, - "type": "object" - }, - "io.k8s.api.discovery.v1beta1.EndpointHints": { - "description": "EndpointHints provides hints describing how an endpoint should be consumed.", - "properties": { - "forZones": { - "description": "forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. May contain a maximum of 8 entries.", - "items": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.ForZone" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "io.k8s.api.discovery.v1beta1.EndpointPort": { - "description": "EndpointPort represents a Port used by an EndpointSlice", - "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. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.", - "type": "string" - }, - "port": { - "description": "The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.", - "format": "int32", - "type": "integer" - }, - "protocol": { - "description": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.discovery.v1beta1.EndpointSlice": { - "description": "EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.", - "properties": { - "addressType": { - "description": "addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.", - "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" - }, - "endpoints": { - "description": "endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.", - "items": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.Endpoint" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "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." - }, - "ports": { - "description": "ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates \"all ports\". Each slice may include a maximum of 100 ports.", - "items": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointPort" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "addressType", - "endpoints" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.discovery.v1beta1.EndpointSliceList": { - "description": "EndpointSliceList represents a list of endpoint slices", - "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 endpoint slices", - "items": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSlice" - }, - "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": "discovery.k8s.io", - "kind": "EndpointSliceList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.discovery.v1beta1.ForZone": { - "description": "ForZone provides information about which zones should consume this endpoint.", - "properties": { - "name": { - "description": "name represents the name of the zone.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, "io.k8s.api.events.v1.Event": { "description": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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": { @@ -11178,145 +10433,6 @@ ], "type": "object" }, - "io.k8s.api.events.v1beta1.Event": { - "description": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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": { - "action": { - "description": "action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field can have at most 128 characters.", - "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" - }, - "deprecatedCount": { - "description": "deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.", - "format": "int32", - "type": "integer" - }, - "deprecatedFirstTimestamp": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type." - }, - "deprecatedLastTimestamp": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type." - }, - "deprecatedSource": { - "$ref": "#/definitions/io.k8s.api.core.v1.EventSource", - "description": "deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type." - }, - "eventTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "eventTime is the time when this Event was first observed. It is required." - }, - "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" - }, - "note": { - "description": "note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.", - "type": "string" - }, - "reason": { - "description": "reason is why the action was taken. It is human-readable. This field can have at most 128 characters.", - "type": "string" - }, - "regarding": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", - "description": "regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object." - }, - "related": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", - "description": "related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object." - }, - "reportingController": { - "description": "reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.", - "type": "string" - }, - "reportingInstance": { - "description": "reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.", - "type": "string" - }, - "series": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.EventSeries", - "description": "series is data about the Event series this event represents or nil if it's a singleton Event." - }, - "type": { - "description": "type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable.", - "type": "string" - } - }, - "required": [ - "eventTime" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.events.v1beta1.EventList": { - "description": "EventList is a list of Event 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.", - "items": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.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#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "events.k8s.io", - "kind": "EventList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.events.v1beta1.EventSeries": { - "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", - "properties": { - "count": { - "description": "count is the 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": "lastObservedTime is the time when last Event from the series was seen before last heartbeat." - } - }, - "required": [ - "count", - "lastObservedTime" - ], - "type": "object" - }, "io.k8s.api.flowcontrol.v1beta1.FlowDistinguisherMethod": { "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", "properties": { @@ -11510,7 +10626,7 @@ ] }, "io.k8s.api.flowcontrol.v1beta1.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?", + "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.", @@ -12059,7 +11175,7 @@ ] }, "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?", + "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.", @@ -12702,7 +11818,7 @@ "description": "DefaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller." }, "ingressClassName": { - "description": "IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation.", + "description": "IngressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.", "type": "string" }, "rules": { @@ -12882,7 +11998,7 @@ "description": "NetworkPolicyPort describes a port to allow traffic on", "properties": { "endPort": { - "description": "If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. This feature is in Beta state and is enabled by default. It can be disabled using the Feature Gate \"NetworkPolicyEndPort\".", + "description": "If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.", "format": "int32", "type": "integer" }, @@ -12965,6 +12081,96 @@ }, "type": "object" }, + "io.k8s.api.networking.v1alpha1.ClusterCIDR": { + "description": "ClusterCIDR represents a single configuration for per-Node Pod CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config for kube-controller-manager). A cluster may have any number of ClusterCIDR resources, all of which will be considered when allocating a CIDR for a Node. A ClusterCIDR is eligible to be used for a given Node when the node selector matches the node in question and has free CIDRs to allocate. In case of multiple matching ClusterCIDR resources, the allocator will attempt to break ties using internal heuristics, but any ClusterCIDR whose node selector matches the Node may be used.", + "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.networking.v1alpha1.ClusterCIDRSpec", + "description": "Spec is the desired state of the ClusterCIDR. 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": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.networking.v1alpha1.ClusterCIDRList": { + "description": "ClusterCIDRList contains a list of ClusterCIDR.", + "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 ClusterCIDRs.", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1alpha1.ClusterCIDR" + }, + "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 object's 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": "networking.k8s.io", + "kind": "ClusterCIDRList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.networking.v1alpha1.ClusterCIDRSpec": { + "description": "ClusterCIDRSpec defines the desired state of ClusterCIDR.", + "properties": { + "ipv4": { + "description": "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.", + "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.", + "type": "string" + }, + "nodeSelector": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector", + "description": "NodeSelector defines which nodes the config is applicable to. An empty or nil NodeSelector selects all nodes. This field is immutable." + }, + "perNodeHostBits": { + "description": "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.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "perNodeHostBits" + ], + "type": "object" + }, "io.k8s.api.node.v1.Overhead": { "description": "Overhead structure represents the resource overhead associated with running a pod.", "properties": { @@ -13075,116 +12281,6 @@ }, "type": "object" }, - "io.k8s.api.node.v1beta1.Overhead": { - "description": "Overhead structure represents the resource overhead associated with running a pod.", - "properties": { - "podFixed": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "description": "PodFixed represents the fixed resource overhead associated with running a pod.", - "type": "object" - } - }, - "type": "object" - }, - "io.k8s.api.node.v1beta1.RuntimeClass": { - "description": "RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class", - "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" - }, - "handler": { - "description": "Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.", - "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": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "overhead": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.Overhead", - "description": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md" - }, - "scheduling": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.Scheduling", - "description": "Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes." - } - }, - "required": [ - "handler" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.node.v1beta1.RuntimeClassList": { - "description": "RuntimeClassList is a list of RuntimeClass 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.", - "items": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.RuntimeClass" - }, - "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": "node.k8s.io", - "kind": "RuntimeClassList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.node.v1beta1.Scheduling": { - "description": "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.", - "properties": { - "nodeSelector": { - "additionalProperties": { - "type": "string" - }, - "description": "nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "tolerations": { - "description": "tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Toleration" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, "io.k8s.api.policy.v1.Eviction": { "description": "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.", "properties": { @@ -13358,545 +12454,6 @@ ], "type": "object" }, - "io.k8s.api.policy.v1beta1.AllowedCSIDriver": { - "description": "AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used.", - "properties": { - "name": { - "description": "Name is the registered name of the CSI driver", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.AllowedFlexVolume": { - "description": "AllowedFlexVolume represents a single Flexvolume that is allowed to be used.", - "properties": { - "driver": { - "description": "driver is the name of the Flexvolume driver.", - "type": "string" - } - }, - "required": [ - "driver" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.AllowedHostPath": { - "description": "AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined.", - "properties": { - "pathPrefix": { - "description": "pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path.\n\nExamples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`", - "type": "string" - }, - "readOnly": { - "description": "when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.", - "type": "boolean" - } - }, - "type": "object" - }, - "io.k8s.api.policy.v1beta1.FSGroupStrategyOptions": { - "description": "FSGroupStrategyOptions defines the strategy type and options used to create the strategy.", - "properties": { - "ranges": { - "description": "ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs.", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.IDRange" - }, - "type": "array" - }, - "rule": { - "description": "rule is the strategy that will dictate what FSGroup is used in the SecurityContext.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.policy.v1beta1.HostPortRange": { - "description": "HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined.", - "properties": { - "max": { - "description": "max is the end of the range, inclusive.", - "format": "int32", - "type": "integer" - }, - "min": { - "description": "min is the start of the range, inclusive.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "min", - "max" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.IDRange": { - "description": "IDRange provides a min/max of an allowed range of IDs.", - "properties": { - "max": { - "description": "max is the end of the range, inclusive.", - "format": "int64", - "type": "integer" - }, - "min": { - "description": "min is the start of the range, inclusive.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "min", - "max" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.PodDisruptionBudget": { - "description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", - "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.policy.v1beta1.PodDisruptionBudgetSpec", - "description": "Specification of the desired behavior of the PodDisruptionBudget." - }, - "status": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudgetStatus", - "description": "Most recently observed status of the PodDisruptionBudget." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.policy.v1beta1.PodDisruptionBudgetList": { - "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", - "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 list individual PodDisruptionBudget objects", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - }, - "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 object's 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": "policy", - "kind": "PodDisruptionBudgetList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.policy.v1beta1.PodDisruptionBudgetSpec": { - "description": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", - "properties": { - "maxUnavailable": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", - "description": "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\"." - }, - "minAvailable": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", - "description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\"." - }, - "selector": { - "$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 selects no pods. An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods. In policy/v1, an empty selector will select all pods in the namespace." - } - }, - "type": "object" - }, - "io.k8s.api.policy.v1beta1.PodDisruptionBudgetStatus": { - "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", - "properties": { - "conditions": { - "description": "Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute\n the number of allowed disruptions. Therefore no disruptions are\n allowed and the status of the condition will be False.\n- InsufficientPods: The number of pods are either at or below the number\n required by the PodDisruptionBudget. No disruptions are\n allowed and the status of the condition will be False.\n- SufficientPods: There are more pods than required by the PodDisruptionBudget.\n The condition will be True, and the number of allowed\n disruptions are provided by the disruptionsAllowed property.", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "currentHealthy": { - "description": "current number of healthy pods", - "format": "int32", - "type": "integer" - }, - "desiredHealthy": { - "description": "minimum desired number of healthy pods", - "format": "int32", - "type": "integer" - }, - "disruptedPods": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "description": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.", - "type": "object" - }, - "disruptionsAllowed": { - "description": "Number of pod disruptions that are currently allowed.", - "format": "int32", - "type": "integer" - }, - "expectedPods": { - "description": "total number of pods counted by this disruption budget", - "format": "int32", - "type": "integer" - }, - "observedGeneration": { - "description": "Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "disruptionsAllowed", - "currentHealthy", - "desiredHealthy", - "expectedPods" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.PodSecurityPolicy": { - "description": "PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated in 1.21.", - "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.policy.v1beta1.PodSecurityPolicySpec", - "description": "spec defines the policy enforced." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.policy.v1beta1.PodSecurityPolicyList": { - "description": "PodSecurityPolicyList is a list of PodSecurityPolicy 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.", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - }, - "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": "policy", - "kind": "PodSecurityPolicyList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.policy.v1beta1.PodSecurityPolicySpec": { - "description": "PodSecurityPolicySpec defines the policy enforced.", - "properties": { - "allowPrivilegeEscalation": { - "description": "allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true.", - "type": "boolean" - }, - "allowedCSIDrivers": { - "description": "AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.AllowedCSIDriver" - }, - "type": "array" - }, - "allowedCapabilities": { - "description": "allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities.", - "items": { - "type": "string" - }, - "type": "array" - }, - "allowedFlexVolumes": { - "description": "allowedFlexVolumes is an allowlist of Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field.", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.AllowedFlexVolume" - }, - "type": "array" - }, - "allowedHostPaths": { - "description": "allowedHostPaths is an allowlist of host paths. Empty indicates that all host paths may be used.", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.AllowedHostPath" - }, - "type": "array" - }, - "allowedProcMountTypes": { - "description": "AllowedProcMountTypes is an allowlist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled.", - "items": { - "type": "string" - }, - "type": "array" - }, - "allowedUnsafeSysctls": { - "description": "allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.\n\nExamples: e.g. \"foo/*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc.", - "items": { - "type": "string" - }, - "type": "array" - }, - "defaultAddCapabilities": { - "description": "defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list.", - "items": { - "type": "string" - }, - "type": "array" - }, - "defaultAllowPrivilegeEscalation": { - "description": "defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process.", - "type": "boolean" - }, - "forbiddenSysctls": { - "description": "forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.\n\nExamples: e.g. \"foo/*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc.", - "items": { - "type": "string" - }, - "type": "array" - }, - "fsGroup": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.FSGroupStrategyOptions", - "description": "fsGroup is the strategy that will dictate what fs group is used by the SecurityContext." - }, - "hostIPC": { - "description": "hostIPC determines if the policy allows the use of HostIPC in the pod spec.", - "type": "boolean" - }, - "hostNetwork": { - "description": "hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.", - "type": "boolean" - }, - "hostPID": { - "description": "hostPID determines if the policy allows the use of HostPID in the pod spec.", - "type": "boolean" - }, - "hostPorts": { - "description": "hostPorts determines which host port ranges are allowed to be exposed.", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.HostPortRange" - }, - "type": "array" - }, - "privileged": { - "description": "privileged determines if a pod can request to be run as privileged.", - "type": "boolean" - }, - "readOnlyRootFilesystem": { - "description": "readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to.", - "type": "boolean" - }, - "requiredDropCapabilities": { - "description": "requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added.", - "items": { - "type": "string" - }, - "type": "array" - }, - "runAsGroup": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.RunAsGroupStrategyOptions", - "description": "RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled." - }, - "runAsUser": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.RunAsUserStrategyOptions", - "description": "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set." - }, - "runtimeClass": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.RuntimeClassStrategyOptions", - "description": "runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled." - }, - "seLinux": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.SELinuxStrategyOptions", - "description": "seLinux is the strategy that will dictate the allowable labels that may be set." - }, - "supplementalGroups": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.SupplementalGroupsStrategyOptions", - "description": "supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext." - }, - "volumes": { - "description": "volumes is an allowlist of volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "seLinux", - "runAsUser", - "supplementalGroups", - "fsGroup" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.RunAsGroupStrategyOptions": { - "description": "RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy.", - "properties": { - "ranges": { - "description": "ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.IDRange" - }, - "type": "array" - }, - "rule": { - "description": "rule is the strategy that will dictate the allowable RunAsGroup values that may be set.", - "type": "string" - } - }, - "required": [ - "rule" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.RunAsUserStrategyOptions": { - "description": "RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy.", - "properties": { - "ranges": { - "description": "ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs.", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.IDRange" - }, - "type": "array" - }, - "rule": { - "description": "rule is the strategy that will dictate the allowable RunAsUser values that may be set.", - "type": "string" - } - }, - "required": [ - "rule" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.RuntimeClassStrategyOptions": { - "description": "RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.", - "properties": { - "allowedRuntimeClassNames": { - "description": "allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.", - "items": { - "type": "string" - }, - "type": "array" - }, - "defaultRuntimeClassName": { - "description": "defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.", - "type": "string" - } - }, - "required": [ - "allowedRuntimeClassNames" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.SELinuxStrategyOptions": { - "description": "SELinuxStrategyOptions defines the strategy type and any options used to create the strategy.", - "properties": { - "rule": { - "description": "rule is the strategy that will dictate the allowable labels that may be set.", - "type": "string" - }, - "seLinuxOptions": { - "$ref": "#/definitions/io.k8s.api.core.v1.SELinuxOptions", - "description": "seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/" - } - }, - "required": [ - "rule" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.SupplementalGroupsStrategyOptions": { - "description": "SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy.", - "properties": { - "ranges": { - "description": "ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs.", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.IDRange" - }, - "type": "array" - }, - "rule": { - "description": "rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.", - "type": "string" - } - }, - "type": "object" - }, "io.k8s.api.rbac.v1.AggregationRule": { "description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", "properties": { @@ -14059,7 +12616,7 @@ "description": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", "properties": { "apiGroups": { - "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.", + "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups.", "items": { "type": "string" }, @@ -14457,6 +13014,10 @@ "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" @@ -15700,7 +14261,7 @@ "type": "object" }, "io.k8s.apimachinery.pkg.api.resource.Quantity": { - "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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", + "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" }, "io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup": { @@ -16179,6 +14740,11 @@ "kind": "DeleteOptions", "version": "v1" }, + { + "group": "networking.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, { "group": "networking.k8s.io", "kind": "DeleteOptions", @@ -16398,10 +14964,6 @@ "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", "type": "object" }, - "clusterName": { - "description": "Deprecated: ClusterName is a legacy field that was always cleared by the system and never used; it will be removed completely in 1.25.\n\nThe name in the go struct is changed to help clients detect accidental use.", - "type": "string" - }, "creationTimestamp": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" @@ -16856,6 +15418,11 @@ "kind": "WatchEvent", "version": "v1" }, + { + "group": "networking.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, { "group": "networking.k8s.io", "kind": "WatchEvent", @@ -16934,7 +15501,7 @@ ] }, "io.k8s.apimachinery.pkg.runtime.RawExtension": { - "description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package: type MyAPIObject struct {\n\truntime.TypeMeta `json:\",inline\"`\n\tMyPlugin runtime.Object `json:\"myPlugin\"`\n} type PluginA struct {\n\tAOption string `json:\"aOption\"`\n}\n\n// External package: type MyAPIObject struct {\n\truntime.TypeMeta `json:\",inline\"`\n\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n} type PluginA struct {\n\tAOption string `json:\"aOption\"`\n}\n\n// On the wire, the JSON will look something like this: {\n\t\"kind\":\"MyAPIObject\",\n\t\"apiVersion\":\"v1\",\n\t\"myPlugin\": {\n\t\t\"kind\":\"PluginA\",\n\t\t\"aOption\":\"foo\",\n\t},\n}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", + "description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.Object `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// External package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// On the wire, the JSON will look something like this:\n\n\t{\n\t\t\"kind\":\"MyAPIObject\",\n\t\t\"apiVersion\":\"v1\",\n\t\t\"myPlugin\": {\n\t\t\t\"kind\":\"PluginA\",\n\t\t\t\"aOption\":\"foo\",\n\t\t},\n\t}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", "type": "object" }, "io.k8s.apimachinery.pkg.util.intstr.IntOrString": { @@ -51657,1337 +50224,6 @@ } ] }, - "/apis/autoscaling/v2beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAutoscalingV2beta1APIResources", - "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_v2beta1" - ] - } - }, - "/apis/autoscaling/v2beta1/horizontalpodautoscalers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespaces", - "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.v2beta1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "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/v2beta1/namespaces/{namespace}/horizontalpodautoscalers": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of HorizontalPodAutoscaler", - "operationId": "deleteAutoscalingV2beta1CollectionNamespacedHorizontalPodAutoscaler", - "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": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "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.autoscaling.v2beta1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "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 HorizontalPodAutoscaler", - "operationId": "createAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.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/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - } - }, - "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a HorizontalPodAutoscaler", - "operationId": "deleteAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "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_v2beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified HorizontalPodAutoscaler", - "operationId": "readAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "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 the specified HorizontalPodAutoscaler", - "operationId": "patchAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "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.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified HorizontalPodAutoscaler", - "operationId": "replaceAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.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/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - } - }, - "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified HorizontalPodAutoscaler", - "operationId": "readAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "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": "patchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatus", - "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.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified HorizontalPodAutoscaler", - "operationId": "replaceAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.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/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - } - }, - "/apis/autoscaling/v2beta1/watch/horizontalpodautoscalers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNamespaces", - "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_v2beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "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/v2beta1/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": "watchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerList", - "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_v2beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "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/v2beta1/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": "watchAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "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_v2beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "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/v2beta2/": { "get": { "consumes": [ @@ -56981,1337 +54217,6 @@ } ] }, - "/apis/batch/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getBatchV1beta1APIResources", - "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": [ - "batch_v1beta1" - ] - } - }, - "/apis/batch/v1beta1/cronjobs": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind CronJob", - "operationId": "listBatchV1beta1CronJobForAllNamespaces", - "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.batch.v1beta1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "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/v1beta1/namespaces/{namespace}/cronjobs": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of CronJob", - "operationId": "deleteBatchV1beta1CollectionNamespacedCronJob", - "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": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind CronJob", - "operationId": "listBatchV1beta1NamespacedCronJob", - "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.batch.v1beta1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "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 CronJob", - "operationId": "createBatchV1beta1NamespacedCronJob", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.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 - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - } - }, - "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a CronJob", - "operationId": "deleteBatchV1beta1NamespacedCronJob", - "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": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified CronJob", - "operationId": "readBatchV1beta1NamespacedCronJob", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "parameters": [ - { - "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 - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified CronJob", - "operationId": "patchBatchV1beta1NamespacedCronJob", - "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.batch.v1beta1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified CronJob", - "operationId": "replaceBatchV1beta1NamespacedCronJob", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.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 - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - } - }, - "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified CronJob", - "operationId": "readBatchV1beta1NamespacedCronJobStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "parameters": [ - { - "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 - } - ], - "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 CronJob", - "operationId": "patchBatchV1beta1NamespacedCronJobStatus", - "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.batch.v1beta1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified CronJob", - "operationId": "replaceBatchV1beta1NamespacedCronJobStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.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 - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - } - }, - "/apis/batch/v1beta1/watch/cronjobs": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of CronJob. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchBatchV1beta1CronJobListForAllNamespaces", - "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": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "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/v1beta1/watch/namespaces/{namespace}/cronjobs": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of CronJob. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchBatchV1beta1NamespacedCronJobList", - "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": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "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/v1beta1/watch/namespaces/{namespace}/cronjobs/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind CronJob. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchBatchV1beta1NamespacedCronJob", - "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": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "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/certificates.k8s.io/": { "get": { "consumes": [ @@ -61918,1121 +57823,6 @@ } ] }, - "/apis/discovery.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getDiscoveryV1beta1APIResources", - "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": [ - "discovery_v1beta1" - ] - } - }, - "/apis/discovery.k8s.io/v1beta1/endpointslices": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind EndpointSlice", - "operationId": "listDiscoveryV1beta1EndpointSliceForAllNamespaces", - "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.discovery.v1beta1.EndpointSliceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "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/v1beta1/namespaces/{namespace}/endpointslices": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of EndpointSlice", - "operationId": "deleteDiscoveryV1beta1CollectionNamespacedEndpointSlice", - "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": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind EndpointSlice", - "operationId": "listDiscoveryV1beta1NamespacedEndpointSlice", - "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.discovery.v1beta1.EndpointSliceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "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 an EndpointSlice", - "operationId": "createDiscoveryV1beta1NamespacedEndpointSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSlice" - } - }, - { - "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.discovery.v1beta1.EndpointSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSlice" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - } - }, - "/apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete an EndpointSlice", - "operationId": "deleteDiscoveryV1beta1NamespacedEndpointSlice", - "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": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified EndpointSlice", - "operationId": "readDiscoveryV1beta1NamespacedEndpointSlice", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the EndpointSlice", - "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 EndpointSlice", - "operationId": "patchDiscoveryV1beta1NamespacedEndpointSlice", - "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.discovery.v1beta1.EndpointSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified EndpointSlice", - "operationId": "replaceDiscoveryV1beta1NamespacedEndpointSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSlice" - } - }, - { - "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.discovery.v1beta1.EndpointSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - } - }, - "/apis/discovery.k8s.io/v1beta1/watch/endpointslices": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchDiscoveryV1beta1EndpointSliceListForAllNamespaces", - "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": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "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/v1beta1/watch/namespaces/{namespace}/endpointslices": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchDiscoveryV1beta1NamespacedEndpointSliceList", - "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": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "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/discovery.k8s.io/v1beta1/watch/namespaces/{namespace}/endpointslices/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchDiscoveryV1beta1NamespacedEndpointSlice", - "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": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "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 EndpointSlice", - "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/events.k8s.io/": { "get": { "consumes": [ @@ -64181,1121 +58971,6 @@ } ] }, - "/apis/events.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getEventsV1beta1APIResources", - "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": [ - "events_v1beta1" - ] - } - }, - "/apis/events.k8s.io/v1beta1/events": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Event", - "operationId": "listEventsV1beta1EventForAllNamespaces", - "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.events.v1beta1.EventList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "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/v1beta1/namespaces/{namespace}/events": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of Event", - "operationId": "deleteEventsV1beta1CollectionNamespacedEvent", - "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": [ - "events_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Event", - "operationId": "listEventsV1beta1NamespacedEvent", - "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.events.v1beta1.EventList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "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 an Event", - "operationId": "createEventsV1beta1NamespacedEvent", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.Event" - } - }, - { - "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.events.v1beta1.Event" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.Event" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - } - }, - "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete an Event", - "operationId": "deleteEventsV1beta1NamespacedEvent", - "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": [ - "events_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Event", - "operationId": "readEventsV1beta1NamespacedEvent", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "parameters": [ - { - "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", - "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 Event", - "operationId": "patchEventsV1beta1NamespacedEvent", - "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.events.v1beta1.Event" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Event", - "operationId": "replaceEventsV1beta1NamespacedEvent", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.Event" - } - }, - { - "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.events.v1beta1.Event" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - } - }, - "/apis/events.k8s.io/v1beta1/watch/events": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchEventsV1beta1EventListForAllNamespaces", - "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": [ - "events_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "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/v1beta1/watch/namespaces/{namespace}/events": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchEventsV1beta1NamespacedEventList", - "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": [ - "events_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "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/events.k8s.io/v1beta1/watch/namespaces/{namespace}/events/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind Event. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchEventsV1beta1NamespacedEvent", - "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": [ - "events_v1beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "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", - "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": { "consumes": [ @@ -74131,6 +67806,867 @@ } ] }, + "/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": [ @@ -75025,867 +69561,6 @@ } ] }, - "/apis/node.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getNodeV1beta1APIResources", - "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_v1beta1" - ] - } - }, - "/apis/node.k8s.io/v1beta1/runtimeclasses": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of RuntimeClass", - "operationId": "deleteNodeV1beta1CollectionRuntimeClass", - "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_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind RuntimeClass", - "operationId": "listNodeV1beta1RuntimeClass", - "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.v1beta1.RuntimeClassList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - }, - "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": "createNodeV1beta1RuntimeClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.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.v1beta1.RuntimeClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.RuntimeClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - } - }, - "/apis/node.k8s.io/v1beta1/runtimeclasses/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a RuntimeClass", - "operationId": "deleteNodeV1beta1RuntimeClass", - "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_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified RuntimeClass", - "operationId": "readNodeV1beta1RuntimeClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - }, - "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": "patchNodeV1beta1RuntimeClass", - "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.v1beta1.RuntimeClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified RuntimeClass", - "operationId": "replaceNodeV1beta1RuntimeClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.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.v1beta1.RuntimeClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - } - }, - "/apis/node.k8s.io/v1beta1/watch/runtimeclasses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNodeV1beta1RuntimeClassList", - "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_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - }, - "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/v1beta1/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": "watchNodeV1beta1RuntimeClass", - "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_v1beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - }, - "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": [ @@ -77250,2165 +70925,6 @@ } ] }, - "/apis/policy/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getPolicyV1beta1APIResources", - "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_v1beta1" - ] - } - }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of PodDisruptionBudget", - "operationId": "deletePolicyV1beta1CollectionNamespacedPodDisruptionBudget", - "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_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listPolicyV1beta1NamespacedPodDisruptionBudget", - "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.v1beta1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "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": "createPolicyV1beta1NamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.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.v1beta1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - } - }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a PodDisruptionBudget", - "operationId": "deletePolicyV1beta1NamespacedPodDisruptionBudget", - "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_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified PodDisruptionBudget", - "operationId": "readPolicyV1beta1NamespacedPodDisruptionBudget", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "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": "patchPolicyV1beta1NamespacedPodDisruptionBudget", - "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.v1beta1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified PodDisruptionBudget", - "operationId": "replacePolicyV1beta1NamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.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.v1beta1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - } - }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified PodDisruptionBudget", - "operationId": "readPolicyV1beta1NamespacedPodDisruptionBudgetStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "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": "patchPolicyV1beta1NamespacedPodDisruptionBudgetStatus", - "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.v1beta1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified PodDisruptionBudget", - "operationId": "replacePolicyV1beta1NamespacedPodDisruptionBudgetStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.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.v1beta1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - } - }, - "/apis/policy/v1beta1/poddisruptionbudgets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listPolicyV1beta1PodDisruptionBudgetForAllNamespaces", - "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.v1beta1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "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/v1beta1/podsecuritypolicies": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of PodSecurityPolicy", - "operationId": "deletePolicyV1beta1CollectionPodSecurityPolicy", - "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_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PodSecurityPolicy", - "operationId": "listPolicyV1beta1PodSecurityPolicy", - "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.v1beta1.PodSecurityPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a PodSecurityPolicy", - "operationId": "createPolicyV1beta1PodSecurityPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - } - }, - { - "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.v1beta1.PodSecurityPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - } - }, - "/apis/policy/v1beta1/podsecuritypolicies/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a PodSecurityPolicy", - "operationId": "deletePolicyV1beta1PodSecurityPolicy", - "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.api.policy.v1beta1.PodSecurityPolicy" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified PodSecurityPolicy", - "operationId": "readPolicyV1beta1PodSecurityPolicy", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the PodSecurityPolicy", - "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 PodSecurityPolicy", - "operationId": "patchPolicyV1beta1PodSecurityPolicy", - "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.v1beta1.PodSecurityPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified PodSecurityPolicy", - "operationId": "replacePolicyV1beta1PodSecurityPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - } - }, - { - "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.v1beta1.PodSecurityPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - } - }, - "/apis/policy/v1beta1/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": "watchPolicyV1beta1NamespacedPodDisruptionBudgetList", - "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_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "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/v1beta1/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": "watchPolicyV1beta1NamespacedPodDisruptionBudget", - "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_v1beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "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/v1beta1/watch/poddisruptionbudgets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchPolicyV1beta1PodDisruptionBudgetListForAllNamespaces", - "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_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "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/v1beta1/watch/podsecuritypolicies": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of PodSecurityPolicy. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchPolicyV1beta1PodSecurityPolicyList", - "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_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "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/v1beta1/watch/podsecuritypolicies/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind PodSecurityPolicy. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchPolicyV1beta1PodSecurityPolicy", - "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_v1beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "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 PodSecurityPolicy", - "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/": { "get": { "consumes": [ diff --git a/kubernetes/unit-test/test_v1_csi_driver_spec.c b/kubernetes/unit-test/test_v1_csi_driver_spec.c index fde4565..b21ee17 100644 --- a/kubernetes/unit-test/test_v1_csi_driver_spec.c +++ b/kubernetes/unit-test/test_v1_csi_driver_spec.c @@ -27,6 +27,7 @@ v1_csi_driver_spec_t* instantiate_v1_csi_driver_spec(int include_optional) { 1, 1, 1, + 1, list_createList(), list_createList() ); @@ -37,6 +38,7 @@ v1_csi_driver_spec_t* instantiate_v1_csi_driver_spec(int include_optional) { 1, 1, 1, + 1, list_createList(), list_createList() ); diff --git a/kubernetes/unit-test/test_v1_csi_persistent_volume_source.c b/kubernetes/unit-test/test_v1_csi_persistent_volume_source.c index 07c524e..6e9ca6d 100644 --- a/kubernetes/unit-test/test_v1_csi_persistent_volume_source.c +++ b/kubernetes/unit-test/test_v1_csi_persistent_volume_source.c @@ -20,6 +20,7 @@ v1_csi_persistent_volume_source_t* instantiate_v1_csi_persistent_volume_source(i #include "test_v1_secret_reference.c" #include "test_v1_secret_reference.c" #include "test_v1_secret_reference.c" +#include "test_v1_secret_reference.c" v1_csi_persistent_volume_source_t* instantiate_v1_csi_persistent_volume_source(int include_optional) { @@ -35,6 +36,8 @@ v1_csi_persistent_volume_source_t* instantiate_v1_csi_persistent_volume_source(i // false, not to have infinite recursion instantiate_v1_secret_reference(0), // false, not to have infinite recursion + instantiate_v1_secret_reference(0), + // false, not to have infinite recursion instantiate_v1_secret_reference(0), 1, list_createList(), @@ -48,6 +51,7 @@ v1_csi_persistent_volume_source_t* instantiate_v1_csi_persistent_volume_source(i "0", NULL, NULL, + NULL, 1, list_createList(), "0" diff --git a/kubernetes/unit-test/test_v1_job_spec.c b/kubernetes/unit-test/test_v1_job_spec.c index 10843e4..362a8c7 100644 --- a/kubernetes/unit-test/test_v1_job_spec.c +++ b/kubernetes/unit-test/test_v1_job_spec.c @@ -16,6 +16,7 @@ #include "../model/v1_job_spec.h" v1_job_spec_t* instantiate_v1_job_spec(int include_optional); +#include "test_v1_pod_failure_policy.c" #include "test_v1_label_selector.c" #include "test_v1_pod_template_spec.c" @@ -31,6 +32,8 @@ v1_job_spec_t* instantiate_v1_job_spec(int include_optional) { 1, 56, // false, not to have infinite recursion + instantiate_v1_pod_failure_policy(0), + // false, not to have infinite recursion instantiate_v1_label_selector(0), 1, // false, not to have infinite recursion @@ -46,6 +49,7 @@ v1_job_spec_t* instantiate_v1_job_spec(int include_optional) { 1, 56, NULL, + NULL, 1, NULL, 56 diff --git a/kubernetes/unit-test/test_v1_object_meta.c b/kubernetes/unit-test/test_v1_object_meta.c index 38c5f1e..54eeecf 100644 --- a/kubernetes/unit-test/test_v1_object_meta.c +++ b/kubernetes/unit-test/test_v1_object_meta.c @@ -23,7 +23,6 @@ v1_object_meta_t* instantiate_v1_object_meta(int include_optional) { if (include_optional) { v1_object_meta = v1_object_meta_create( list_createList(), - "0", "2013-10-20T19:20:30+01:00", 56, "2013-10-20T19:20:30+01:00", @@ -42,7 +41,6 @@ v1_object_meta_t* instantiate_v1_object_meta(int include_optional) { } else { v1_object_meta = v1_object_meta_create( list_createList(), - "0", "2013-10-20T19:20:30+01:00", 56, "2013-10-20T19:20:30+01:00", diff --git a/kubernetes/unit-test/test_v1_pod_failure_policy.c b/kubernetes/unit-test/test_v1_pod_failure_policy.c new file mode 100644 index 0000000..fb4c63f --- /dev/null +++ b/kubernetes/unit-test/test_v1_pod_failure_policy.c @@ -0,0 +1,58 @@ +#ifndef v1_pod_failure_policy_TEST +#define v1_pod_failure_policy_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_pod_failure_policy_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_pod_failure_policy.h" +v1_pod_failure_policy_t* instantiate_v1_pod_failure_policy(int include_optional); + + + +v1_pod_failure_policy_t* instantiate_v1_pod_failure_policy(int include_optional) { + v1_pod_failure_policy_t* v1_pod_failure_policy = NULL; + if (include_optional) { + v1_pod_failure_policy = v1_pod_failure_policy_create( + list_createList() + ); + } else { + v1_pod_failure_policy = v1_pod_failure_policy_create( + list_createList() + ); + } + + return v1_pod_failure_policy; +} + + +#ifdef v1_pod_failure_policy_MAIN + +void test_v1_pod_failure_policy(int include_optional) { + v1_pod_failure_policy_t* v1_pod_failure_policy_1 = instantiate_v1_pod_failure_policy(include_optional); + + cJSON* jsonv1_pod_failure_policy_1 = v1_pod_failure_policy_convertToJSON(v1_pod_failure_policy_1); + printf("v1_pod_failure_policy :\n%s\n", cJSON_Print(jsonv1_pod_failure_policy_1)); + v1_pod_failure_policy_t* v1_pod_failure_policy_2 = v1_pod_failure_policy_parseFromJSON(jsonv1_pod_failure_policy_1); + cJSON* jsonv1_pod_failure_policy_2 = v1_pod_failure_policy_convertToJSON(v1_pod_failure_policy_2); + printf("repeating v1_pod_failure_policy:\n%s\n", cJSON_Print(jsonv1_pod_failure_policy_2)); +} + +int main() { + test_v1_pod_failure_policy(1); + test_v1_pod_failure_policy(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_pod_failure_policy_MAIN +#endif // v1_pod_failure_policy_TEST diff --git a/kubernetes/unit-test/test_v1_pod_failure_policy_on_exit_codes_requirement.c b/kubernetes/unit-test/test_v1_pod_failure_policy_on_exit_codes_requirement.c new file mode 100644 index 0000000..cc68963 --- /dev/null +++ b/kubernetes/unit-test/test_v1_pod_failure_policy_on_exit_codes_requirement.c @@ -0,0 +1,62 @@ +#ifndef v1_pod_failure_policy_on_exit_codes_requirement_TEST +#define v1_pod_failure_policy_on_exit_codes_requirement_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_pod_failure_policy_on_exit_codes_requirement_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_pod_failure_policy_on_exit_codes_requirement.h" +v1_pod_failure_policy_on_exit_codes_requirement_t* instantiate_v1_pod_failure_policy_on_exit_codes_requirement(int include_optional); + + + +v1_pod_failure_policy_on_exit_codes_requirement_t* instantiate_v1_pod_failure_policy_on_exit_codes_requirement(int include_optional) { + v1_pod_failure_policy_on_exit_codes_requirement_t* v1_pod_failure_policy_on_exit_codes_requirement = NULL; + if (include_optional) { + v1_pod_failure_policy_on_exit_codes_requirement = v1_pod_failure_policy_on_exit_codes_requirement_create( + "0", + "0", + list_createList() + ); + } else { + v1_pod_failure_policy_on_exit_codes_requirement = v1_pod_failure_policy_on_exit_codes_requirement_create( + "0", + "0", + list_createList() + ); + } + + return v1_pod_failure_policy_on_exit_codes_requirement; +} + + +#ifdef v1_pod_failure_policy_on_exit_codes_requirement_MAIN + +void test_v1_pod_failure_policy_on_exit_codes_requirement(int include_optional) { + v1_pod_failure_policy_on_exit_codes_requirement_t* v1_pod_failure_policy_on_exit_codes_requirement_1 = instantiate_v1_pod_failure_policy_on_exit_codes_requirement(include_optional); + + cJSON* jsonv1_pod_failure_policy_on_exit_codes_requirement_1 = v1_pod_failure_policy_on_exit_codes_requirement_convertToJSON(v1_pod_failure_policy_on_exit_codes_requirement_1); + printf("v1_pod_failure_policy_on_exit_codes_requirement :\n%s\n", cJSON_Print(jsonv1_pod_failure_policy_on_exit_codes_requirement_1)); + v1_pod_failure_policy_on_exit_codes_requirement_t* v1_pod_failure_policy_on_exit_codes_requirement_2 = v1_pod_failure_policy_on_exit_codes_requirement_parseFromJSON(jsonv1_pod_failure_policy_on_exit_codes_requirement_1); + cJSON* jsonv1_pod_failure_policy_on_exit_codes_requirement_2 = v1_pod_failure_policy_on_exit_codes_requirement_convertToJSON(v1_pod_failure_policy_on_exit_codes_requirement_2); + printf("repeating v1_pod_failure_policy_on_exit_codes_requirement:\n%s\n", cJSON_Print(jsonv1_pod_failure_policy_on_exit_codes_requirement_2)); +} + +int main() { + test_v1_pod_failure_policy_on_exit_codes_requirement(1); + test_v1_pod_failure_policy_on_exit_codes_requirement(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_pod_failure_policy_on_exit_codes_requirement_MAIN +#endif // v1_pod_failure_policy_on_exit_codes_requirement_TEST diff --git a/kubernetes/unit-test/test_v1_pod_failure_policy_on_pod_conditions_pattern.c b/kubernetes/unit-test/test_v1_pod_failure_policy_on_pod_conditions_pattern.c new file mode 100644 index 0000000..2196523 --- /dev/null +++ b/kubernetes/unit-test/test_v1_pod_failure_policy_on_pod_conditions_pattern.c @@ -0,0 +1,60 @@ +#ifndef v1_pod_failure_policy_on_pod_conditions_pattern_TEST +#define v1_pod_failure_policy_on_pod_conditions_pattern_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_pod_failure_policy_on_pod_conditions_pattern_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_pod_failure_policy_on_pod_conditions_pattern.h" +v1_pod_failure_policy_on_pod_conditions_pattern_t* instantiate_v1_pod_failure_policy_on_pod_conditions_pattern(int include_optional); + + + +v1_pod_failure_policy_on_pod_conditions_pattern_t* instantiate_v1_pod_failure_policy_on_pod_conditions_pattern(int include_optional) { + v1_pod_failure_policy_on_pod_conditions_pattern_t* v1_pod_failure_policy_on_pod_conditions_pattern = NULL; + if (include_optional) { + v1_pod_failure_policy_on_pod_conditions_pattern = v1_pod_failure_policy_on_pod_conditions_pattern_create( + "0", + "0" + ); + } else { + v1_pod_failure_policy_on_pod_conditions_pattern = v1_pod_failure_policy_on_pod_conditions_pattern_create( + "0", + "0" + ); + } + + return v1_pod_failure_policy_on_pod_conditions_pattern; +} + + +#ifdef v1_pod_failure_policy_on_pod_conditions_pattern_MAIN + +void test_v1_pod_failure_policy_on_pod_conditions_pattern(int include_optional) { + v1_pod_failure_policy_on_pod_conditions_pattern_t* v1_pod_failure_policy_on_pod_conditions_pattern_1 = instantiate_v1_pod_failure_policy_on_pod_conditions_pattern(include_optional); + + cJSON* jsonv1_pod_failure_policy_on_pod_conditions_pattern_1 = v1_pod_failure_policy_on_pod_conditions_pattern_convertToJSON(v1_pod_failure_policy_on_pod_conditions_pattern_1); + printf("v1_pod_failure_policy_on_pod_conditions_pattern :\n%s\n", cJSON_Print(jsonv1_pod_failure_policy_on_pod_conditions_pattern_1)); + v1_pod_failure_policy_on_pod_conditions_pattern_t* v1_pod_failure_policy_on_pod_conditions_pattern_2 = v1_pod_failure_policy_on_pod_conditions_pattern_parseFromJSON(jsonv1_pod_failure_policy_on_pod_conditions_pattern_1); + cJSON* jsonv1_pod_failure_policy_on_pod_conditions_pattern_2 = v1_pod_failure_policy_on_pod_conditions_pattern_convertToJSON(v1_pod_failure_policy_on_pod_conditions_pattern_2); + printf("repeating v1_pod_failure_policy_on_pod_conditions_pattern:\n%s\n", cJSON_Print(jsonv1_pod_failure_policy_on_pod_conditions_pattern_2)); +} + +int main() { + test_v1_pod_failure_policy_on_pod_conditions_pattern(1); + test_v1_pod_failure_policy_on_pod_conditions_pattern(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_pod_failure_policy_on_pod_conditions_pattern_MAIN +#endif // v1_pod_failure_policy_on_pod_conditions_pattern_TEST diff --git a/kubernetes/unit-test/test_v1_pod_failure_policy_rule.c b/kubernetes/unit-test/test_v1_pod_failure_policy_rule.c new file mode 100644 index 0000000..1ef150d --- /dev/null +++ b/kubernetes/unit-test/test_v1_pod_failure_policy_rule.c @@ -0,0 +1,64 @@ +#ifndef v1_pod_failure_policy_rule_TEST +#define v1_pod_failure_policy_rule_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_pod_failure_policy_rule_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_pod_failure_policy_rule.h" +v1_pod_failure_policy_rule_t* instantiate_v1_pod_failure_policy_rule(int include_optional); + +#include "test_v1_pod_failure_policy_on_exit_codes_requirement.c" + + +v1_pod_failure_policy_rule_t* instantiate_v1_pod_failure_policy_rule(int include_optional) { + v1_pod_failure_policy_rule_t* v1_pod_failure_policy_rule = NULL; + if (include_optional) { + v1_pod_failure_policy_rule = v1_pod_failure_policy_rule_create( + "0", + // false, not to have infinite recursion + instantiate_v1_pod_failure_policy_on_exit_codes_requirement(0), + list_createList() + ); + } else { + v1_pod_failure_policy_rule = v1_pod_failure_policy_rule_create( + "0", + NULL, + list_createList() + ); + } + + return v1_pod_failure_policy_rule; +} + + +#ifdef v1_pod_failure_policy_rule_MAIN + +void test_v1_pod_failure_policy_rule(int include_optional) { + v1_pod_failure_policy_rule_t* v1_pod_failure_policy_rule_1 = instantiate_v1_pod_failure_policy_rule(include_optional); + + cJSON* jsonv1_pod_failure_policy_rule_1 = v1_pod_failure_policy_rule_convertToJSON(v1_pod_failure_policy_rule_1); + printf("v1_pod_failure_policy_rule :\n%s\n", cJSON_Print(jsonv1_pod_failure_policy_rule_1)); + v1_pod_failure_policy_rule_t* v1_pod_failure_policy_rule_2 = v1_pod_failure_policy_rule_parseFromJSON(jsonv1_pod_failure_policy_rule_1); + cJSON* jsonv1_pod_failure_policy_rule_2 = v1_pod_failure_policy_rule_convertToJSON(v1_pod_failure_policy_rule_2); + printf("repeating v1_pod_failure_policy_rule:\n%s\n", cJSON_Print(jsonv1_pod_failure_policy_rule_2)); +} + +int main() { + test_v1_pod_failure_policy_rule(1); + test_v1_pod_failure_policy_rule(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_pod_failure_policy_rule_MAIN +#endif // v1_pod_failure_policy_rule_TEST diff --git a/kubernetes/unit-test/test_v1_pod_spec.c b/kubernetes/unit-test/test_v1_pod_spec.c index 8854ca1..4ad97f6 100644 --- a/kubernetes/unit-test/test_v1_pod_spec.c +++ b/kubernetes/unit-test/test_v1_pod_spec.c @@ -40,6 +40,7 @@ v1_pod_spec_t* instantiate_v1_pod_spec(int include_optional) { 1, 1, 1, + 1, "0", list_createList(), list_createList(), @@ -81,6 +82,7 @@ v1_pod_spec_t* instantiate_v1_pod_spec(int include_optional) { 1, 1, 1, + 1, "0", list_createList(), list_createList(), diff --git a/kubernetes/unit-test/test_v1_topology_spread_constraint.c b/kubernetes/unit-test/test_v1_topology_spread_constraint.c index 1e2aed0..4819fce 100644 --- a/kubernetes/unit-test/test_v1_topology_spread_constraint.c +++ b/kubernetes/unit-test/test_v1_topology_spread_constraint.c @@ -25,17 +25,23 @@ v1_topology_spread_constraint_t* instantiate_v1_topology_spread_constraint(int i v1_topology_spread_constraint = v1_topology_spread_constraint_create( // false, not to have infinite recursion instantiate_v1_label_selector(0), + list_createList(), 56, 56, "0", + "0", + "0", "0" ); } else { v1_topology_spread_constraint = v1_topology_spread_constraint_create( NULL, + list_createList(), 56, 56, "0", + "0", + "0", "0" ); } diff --git a/kubernetes/unit-test/test_v1alpha1_cluster_cidr.c b/kubernetes/unit-test/test_v1alpha1_cluster_cidr.c new file mode 100644 index 0000000..b3b26c0 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_cluster_cidr.c @@ -0,0 +1,68 @@ +#ifndef v1alpha1_cluster_cidr_TEST +#define v1alpha1_cluster_cidr_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_cluster_cidr_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_cluster_cidr.h" +v1alpha1_cluster_cidr_t* instantiate_v1alpha1_cluster_cidr(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1alpha1_cluster_cidr_spec.c" + + +v1alpha1_cluster_cidr_t* instantiate_v1alpha1_cluster_cidr(int include_optional) { + v1alpha1_cluster_cidr_t* v1alpha1_cluster_cidr = NULL; + if (include_optional) { + v1alpha1_cluster_cidr = v1alpha1_cluster_cidr_create( + "0", + "0", + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1alpha1_cluster_cidr_spec(0) + ); + } else { + v1alpha1_cluster_cidr = v1alpha1_cluster_cidr_create( + "0", + "0", + NULL, + NULL + ); + } + + return v1alpha1_cluster_cidr; +} + + +#ifdef v1alpha1_cluster_cidr_MAIN + +void test_v1alpha1_cluster_cidr(int include_optional) { + v1alpha1_cluster_cidr_t* v1alpha1_cluster_cidr_1 = instantiate_v1alpha1_cluster_cidr(include_optional); + + cJSON* jsonv1alpha1_cluster_cidr_1 = v1alpha1_cluster_cidr_convertToJSON(v1alpha1_cluster_cidr_1); + printf("v1alpha1_cluster_cidr :\n%s\n", cJSON_Print(jsonv1alpha1_cluster_cidr_1)); + v1alpha1_cluster_cidr_t* v1alpha1_cluster_cidr_2 = v1alpha1_cluster_cidr_parseFromJSON(jsonv1alpha1_cluster_cidr_1); + cJSON* jsonv1alpha1_cluster_cidr_2 = v1alpha1_cluster_cidr_convertToJSON(v1alpha1_cluster_cidr_2); + printf("repeating v1alpha1_cluster_cidr:\n%s\n", cJSON_Print(jsonv1alpha1_cluster_cidr_2)); +} + +int main() { + test_v1alpha1_cluster_cidr(1); + test_v1alpha1_cluster_cidr(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_cluster_cidr_MAIN +#endif // v1alpha1_cluster_cidr_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_cluster_cidr_list.c b/kubernetes/unit-test/test_v1alpha1_cluster_cidr_list.c new file mode 100644 index 0000000..d03b141 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_cluster_cidr_list.c @@ -0,0 +1,66 @@ +#ifndef v1alpha1_cluster_cidr_list_TEST +#define v1alpha1_cluster_cidr_list_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_cluster_cidr_list_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_cluster_cidr_list.h" +v1alpha1_cluster_cidr_list_t* instantiate_v1alpha1_cluster_cidr_list(int include_optional); + +#include "test_v1_list_meta.c" + + +v1alpha1_cluster_cidr_list_t* instantiate_v1alpha1_cluster_cidr_list(int include_optional) { + v1alpha1_cluster_cidr_list_t* v1alpha1_cluster_cidr_list = NULL; + if (include_optional) { + v1alpha1_cluster_cidr_list = v1alpha1_cluster_cidr_list_create( + "0", + list_createList(), + "0", + // false, not to have infinite recursion + instantiate_v1_list_meta(0) + ); + } else { + v1alpha1_cluster_cidr_list = v1alpha1_cluster_cidr_list_create( + "0", + list_createList(), + "0", + NULL + ); + } + + return v1alpha1_cluster_cidr_list; +} + + +#ifdef v1alpha1_cluster_cidr_list_MAIN + +void test_v1alpha1_cluster_cidr_list(int include_optional) { + v1alpha1_cluster_cidr_list_t* v1alpha1_cluster_cidr_list_1 = instantiate_v1alpha1_cluster_cidr_list(include_optional); + + cJSON* jsonv1alpha1_cluster_cidr_list_1 = v1alpha1_cluster_cidr_list_convertToJSON(v1alpha1_cluster_cidr_list_1); + printf("v1alpha1_cluster_cidr_list :\n%s\n", cJSON_Print(jsonv1alpha1_cluster_cidr_list_1)); + v1alpha1_cluster_cidr_list_t* v1alpha1_cluster_cidr_list_2 = v1alpha1_cluster_cidr_list_parseFromJSON(jsonv1alpha1_cluster_cidr_list_1); + cJSON* jsonv1alpha1_cluster_cidr_list_2 = v1alpha1_cluster_cidr_list_convertToJSON(v1alpha1_cluster_cidr_list_2); + printf("repeating v1alpha1_cluster_cidr_list:\n%s\n", cJSON_Print(jsonv1alpha1_cluster_cidr_list_2)); +} + +int main() { + test_v1alpha1_cluster_cidr_list(1); + test_v1alpha1_cluster_cidr_list(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_cluster_cidr_list_MAIN +#endif // v1alpha1_cluster_cidr_list_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_cluster_cidr_spec.c b/kubernetes/unit-test/test_v1alpha1_cluster_cidr_spec.c new file mode 100644 index 0000000..3a843b7 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_cluster_cidr_spec.c @@ -0,0 +1,66 @@ +#ifndef v1alpha1_cluster_cidr_spec_TEST +#define v1alpha1_cluster_cidr_spec_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_cluster_cidr_spec_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_cluster_cidr_spec.h" +v1alpha1_cluster_cidr_spec_t* instantiate_v1alpha1_cluster_cidr_spec(int include_optional); + +#include "test_v1_node_selector.c" + + +v1alpha1_cluster_cidr_spec_t* instantiate_v1alpha1_cluster_cidr_spec(int include_optional) { + v1alpha1_cluster_cidr_spec_t* v1alpha1_cluster_cidr_spec = NULL; + if (include_optional) { + v1alpha1_cluster_cidr_spec = v1alpha1_cluster_cidr_spec_create( + "0", + "0", + // false, not to have infinite recursion + instantiate_v1_node_selector(0), + 56 + ); + } else { + v1alpha1_cluster_cidr_spec = v1alpha1_cluster_cidr_spec_create( + "0", + "0", + NULL, + 56 + ); + } + + return v1alpha1_cluster_cidr_spec; +} + + +#ifdef v1alpha1_cluster_cidr_spec_MAIN + +void test_v1alpha1_cluster_cidr_spec(int include_optional) { + v1alpha1_cluster_cidr_spec_t* v1alpha1_cluster_cidr_spec_1 = instantiate_v1alpha1_cluster_cidr_spec(include_optional); + + cJSON* jsonv1alpha1_cluster_cidr_spec_1 = v1alpha1_cluster_cidr_spec_convertToJSON(v1alpha1_cluster_cidr_spec_1); + printf("v1alpha1_cluster_cidr_spec :\n%s\n", cJSON_Print(jsonv1alpha1_cluster_cidr_spec_1)); + v1alpha1_cluster_cidr_spec_t* v1alpha1_cluster_cidr_spec_2 = v1alpha1_cluster_cidr_spec_parseFromJSON(jsonv1alpha1_cluster_cidr_spec_1); + cJSON* jsonv1alpha1_cluster_cidr_spec_2 = v1alpha1_cluster_cidr_spec_convertToJSON(v1alpha1_cluster_cidr_spec_2); + printf("repeating v1alpha1_cluster_cidr_spec:\n%s\n", cJSON_Print(jsonv1alpha1_cluster_cidr_spec_2)); +} + +int main() { + test_v1alpha1_cluster_cidr_spec(1); + test_v1alpha1_cluster_cidr_spec(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_cluster_cidr_spec_MAIN +#endif // v1alpha1_cluster_cidr_spec_TEST diff --git a/kubernetes/unit-test/test_v1beta1_allowed_csi_driver.c b/kubernetes/unit-test/test_v1beta1_allowed_csi_driver.c deleted file mode 100644 index 9dcf4be..0000000 --- a/kubernetes/unit-test/test_v1beta1_allowed_csi_driver.c +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef v1beta1_allowed_csi_driver_TEST -#define v1beta1_allowed_csi_driver_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_allowed_csi_driver_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_allowed_csi_driver.h" -v1beta1_allowed_csi_driver_t* instantiate_v1beta1_allowed_csi_driver(int include_optional); - - - -v1beta1_allowed_csi_driver_t* instantiate_v1beta1_allowed_csi_driver(int include_optional) { - v1beta1_allowed_csi_driver_t* v1beta1_allowed_csi_driver = NULL; - if (include_optional) { - v1beta1_allowed_csi_driver = v1beta1_allowed_csi_driver_create( - "0" - ); - } else { - v1beta1_allowed_csi_driver = v1beta1_allowed_csi_driver_create( - "0" - ); - } - - return v1beta1_allowed_csi_driver; -} - - -#ifdef v1beta1_allowed_csi_driver_MAIN - -void test_v1beta1_allowed_csi_driver(int include_optional) { - v1beta1_allowed_csi_driver_t* v1beta1_allowed_csi_driver_1 = instantiate_v1beta1_allowed_csi_driver(include_optional); - - cJSON* jsonv1beta1_allowed_csi_driver_1 = v1beta1_allowed_csi_driver_convertToJSON(v1beta1_allowed_csi_driver_1); - printf("v1beta1_allowed_csi_driver :\n%s\n", cJSON_Print(jsonv1beta1_allowed_csi_driver_1)); - v1beta1_allowed_csi_driver_t* v1beta1_allowed_csi_driver_2 = v1beta1_allowed_csi_driver_parseFromJSON(jsonv1beta1_allowed_csi_driver_1); - cJSON* jsonv1beta1_allowed_csi_driver_2 = v1beta1_allowed_csi_driver_convertToJSON(v1beta1_allowed_csi_driver_2); - printf("repeating v1beta1_allowed_csi_driver:\n%s\n", cJSON_Print(jsonv1beta1_allowed_csi_driver_2)); -} - -int main() { - test_v1beta1_allowed_csi_driver(1); - test_v1beta1_allowed_csi_driver(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_allowed_csi_driver_MAIN -#endif // v1beta1_allowed_csi_driver_TEST diff --git a/kubernetes/unit-test/test_v1beta1_allowed_flex_volume.c b/kubernetes/unit-test/test_v1beta1_allowed_flex_volume.c deleted file mode 100644 index e65b393..0000000 --- a/kubernetes/unit-test/test_v1beta1_allowed_flex_volume.c +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef v1beta1_allowed_flex_volume_TEST -#define v1beta1_allowed_flex_volume_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_allowed_flex_volume_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_allowed_flex_volume.h" -v1beta1_allowed_flex_volume_t* instantiate_v1beta1_allowed_flex_volume(int include_optional); - - - -v1beta1_allowed_flex_volume_t* instantiate_v1beta1_allowed_flex_volume(int include_optional) { - v1beta1_allowed_flex_volume_t* v1beta1_allowed_flex_volume = NULL; - if (include_optional) { - v1beta1_allowed_flex_volume = v1beta1_allowed_flex_volume_create( - "0" - ); - } else { - v1beta1_allowed_flex_volume = v1beta1_allowed_flex_volume_create( - "0" - ); - } - - return v1beta1_allowed_flex_volume; -} - - -#ifdef v1beta1_allowed_flex_volume_MAIN - -void test_v1beta1_allowed_flex_volume(int include_optional) { - v1beta1_allowed_flex_volume_t* v1beta1_allowed_flex_volume_1 = instantiate_v1beta1_allowed_flex_volume(include_optional); - - cJSON* jsonv1beta1_allowed_flex_volume_1 = v1beta1_allowed_flex_volume_convertToJSON(v1beta1_allowed_flex_volume_1); - printf("v1beta1_allowed_flex_volume :\n%s\n", cJSON_Print(jsonv1beta1_allowed_flex_volume_1)); - v1beta1_allowed_flex_volume_t* v1beta1_allowed_flex_volume_2 = v1beta1_allowed_flex_volume_parseFromJSON(jsonv1beta1_allowed_flex_volume_1); - cJSON* jsonv1beta1_allowed_flex_volume_2 = v1beta1_allowed_flex_volume_convertToJSON(v1beta1_allowed_flex_volume_2); - printf("repeating v1beta1_allowed_flex_volume:\n%s\n", cJSON_Print(jsonv1beta1_allowed_flex_volume_2)); -} - -int main() { - test_v1beta1_allowed_flex_volume(1); - test_v1beta1_allowed_flex_volume(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_allowed_flex_volume_MAIN -#endif // v1beta1_allowed_flex_volume_TEST diff --git a/kubernetes/unit-test/test_v1beta1_allowed_host_path.c b/kubernetes/unit-test/test_v1beta1_allowed_host_path.c deleted file mode 100644 index 1c38555..0000000 --- a/kubernetes/unit-test/test_v1beta1_allowed_host_path.c +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef v1beta1_allowed_host_path_TEST -#define v1beta1_allowed_host_path_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_allowed_host_path_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_allowed_host_path.h" -v1beta1_allowed_host_path_t* instantiate_v1beta1_allowed_host_path(int include_optional); - - - -v1beta1_allowed_host_path_t* instantiate_v1beta1_allowed_host_path(int include_optional) { - v1beta1_allowed_host_path_t* v1beta1_allowed_host_path = NULL; - if (include_optional) { - v1beta1_allowed_host_path = v1beta1_allowed_host_path_create( - "0", - 1 - ); - } else { - v1beta1_allowed_host_path = v1beta1_allowed_host_path_create( - "0", - 1 - ); - } - - return v1beta1_allowed_host_path; -} - - -#ifdef v1beta1_allowed_host_path_MAIN - -void test_v1beta1_allowed_host_path(int include_optional) { - v1beta1_allowed_host_path_t* v1beta1_allowed_host_path_1 = instantiate_v1beta1_allowed_host_path(include_optional); - - cJSON* jsonv1beta1_allowed_host_path_1 = v1beta1_allowed_host_path_convertToJSON(v1beta1_allowed_host_path_1); - printf("v1beta1_allowed_host_path :\n%s\n", cJSON_Print(jsonv1beta1_allowed_host_path_1)); - v1beta1_allowed_host_path_t* v1beta1_allowed_host_path_2 = v1beta1_allowed_host_path_parseFromJSON(jsonv1beta1_allowed_host_path_1); - cJSON* jsonv1beta1_allowed_host_path_2 = v1beta1_allowed_host_path_convertToJSON(v1beta1_allowed_host_path_2); - printf("repeating v1beta1_allowed_host_path:\n%s\n", cJSON_Print(jsonv1beta1_allowed_host_path_2)); -} - -int main() { - test_v1beta1_allowed_host_path(1); - test_v1beta1_allowed_host_path(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_allowed_host_path_MAIN -#endif // v1beta1_allowed_host_path_TEST diff --git a/kubernetes/unit-test/test_v1beta1_cron_job.c b/kubernetes/unit-test/test_v1beta1_cron_job.c deleted file mode 100644 index f7a4150..0000000 --- a/kubernetes/unit-test/test_v1beta1_cron_job.c +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef v1beta1_cron_job_TEST -#define v1beta1_cron_job_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_cron_job_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_cron_job.h" -v1beta1_cron_job_t* instantiate_v1beta1_cron_job(int include_optional); - -#include "test_v1_object_meta.c" -#include "test_v1beta1_cron_job_spec.c" -#include "test_v1beta1_cron_job_status.c" - - -v1beta1_cron_job_t* instantiate_v1beta1_cron_job(int include_optional) { - v1beta1_cron_job_t* v1beta1_cron_job = NULL; - if (include_optional) { - v1beta1_cron_job = v1beta1_cron_job_create( - "0", - "0", - // false, not to have infinite recursion - instantiate_v1_object_meta(0), - // false, not to have infinite recursion - instantiate_v1beta1_cron_job_spec(0), - // false, not to have infinite recursion - instantiate_v1beta1_cron_job_status(0) - ); - } else { - v1beta1_cron_job = v1beta1_cron_job_create( - "0", - "0", - NULL, - NULL, - NULL - ); - } - - return v1beta1_cron_job; -} - - -#ifdef v1beta1_cron_job_MAIN - -void test_v1beta1_cron_job(int include_optional) { - v1beta1_cron_job_t* v1beta1_cron_job_1 = instantiate_v1beta1_cron_job(include_optional); - - cJSON* jsonv1beta1_cron_job_1 = v1beta1_cron_job_convertToJSON(v1beta1_cron_job_1); - printf("v1beta1_cron_job :\n%s\n", cJSON_Print(jsonv1beta1_cron_job_1)); - v1beta1_cron_job_t* v1beta1_cron_job_2 = v1beta1_cron_job_parseFromJSON(jsonv1beta1_cron_job_1); - cJSON* jsonv1beta1_cron_job_2 = v1beta1_cron_job_convertToJSON(v1beta1_cron_job_2); - printf("repeating v1beta1_cron_job:\n%s\n", cJSON_Print(jsonv1beta1_cron_job_2)); -} - -int main() { - test_v1beta1_cron_job(1); - test_v1beta1_cron_job(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_cron_job_MAIN -#endif // v1beta1_cron_job_TEST diff --git a/kubernetes/unit-test/test_v1beta1_cron_job_list.c b/kubernetes/unit-test/test_v1beta1_cron_job_list.c deleted file mode 100644 index 35c8134..0000000 --- a/kubernetes/unit-test/test_v1beta1_cron_job_list.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v1beta1_cron_job_list_TEST -#define v1beta1_cron_job_list_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_cron_job_list_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_cron_job_list.h" -v1beta1_cron_job_list_t* instantiate_v1beta1_cron_job_list(int include_optional); - -#include "test_v1_list_meta.c" - - -v1beta1_cron_job_list_t* instantiate_v1beta1_cron_job_list(int include_optional) { - v1beta1_cron_job_list_t* v1beta1_cron_job_list = NULL; - if (include_optional) { - v1beta1_cron_job_list = v1beta1_cron_job_list_create( - "0", - list_createList(), - "0", - // false, not to have infinite recursion - instantiate_v1_list_meta(0) - ); - } else { - v1beta1_cron_job_list = v1beta1_cron_job_list_create( - "0", - list_createList(), - "0", - NULL - ); - } - - return v1beta1_cron_job_list; -} - - -#ifdef v1beta1_cron_job_list_MAIN - -void test_v1beta1_cron_job_list(int include_optional) { - v1beta1_cron_job_list_t* v1beta1_cron_job_list_1 = instantiate_v1beta1_cron_job_list(include_optional); - - cJSON* jsonv1beta1_cron_job_list_1 = v1beta1_cron_job_list_convertToJSON(v1beta1_cron_job_list_1); - printf("v1beta1_cron_job_list :\n%s\n", cJSON_Print(jsonv1beta1_cron_job_list_1)); - v1beta1_cron_job_list_t* v1beta1_cron_job_list_2 = v1beta1_cron_job_list_parseFromJSON(jsonv1beta1_cron_job_list_1); - cJSON* jsonv1beta1_cron_job_list_2 = v1beta1_cron_job_list_convertToJSON(v1beta1_cron_job_list_2); - printf("repeating v1beta1_cron_job_list:\n%s\n", cJSON_Print(jsonv1beta1_cron_job_list_2)); -} - -int main() { - test_v1beta1_cron_job_list(1); - test_v1beta1_cron_job_list(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_cron_job_list_MAIN -#endif // v1beta1_cron_job_list_TEST diff --git a/kubernetes/unit-test/test_v1beta1_cron_job_spec.c b/kubernetes/unit-test/test_v1beta1_cron_job_spec.c deleted file mode 100644 index b72f081..0000000 --- a/kubernetes/unit-test/test_v1beta1_cron_job_spec.c +++ /dev/null @@ -1,74 +0,0 @@ -#ifndef v1beta1_cron_job_spec_TEST -#define v1beta1_cron_job_spec_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_cron_job_spec_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_cron_job_spec.h" -v1beta1_cron_job_spec_t* instantiate_v1beta1_cron_job_spec(int include_optional); - -#include "test_v1beta1_job_template_spec.c" - - -v1beta1_cron_job_spec_t* instantiate_v1beta1_cron_job_spec(int include_optional) { - v1beta1_cron_job_spec_t* v1beta1_cron_job_spec = NULL; - if (include_optional) { - v1beta1_cron_job_spec = v1beta1_cron_job_spec_create( - "0", - 56, - // false, not to have infinite recursion - instantiate_v1beta1_job_template_spec(0), - "0", - 56, - 56, - 1, - "0" - ); - } else { - v1beta1_cron_job_spec = v1beta1_cron_job_spec_create( - "0", - 56, - NULL, - "0", - 56, - 56, - 1, - "0" - ); - } - - return v1beta1_cron_job_spec; -} - - -#ifdef v1beta1_cron_job_spec_MAIN - -void test_v1beta1_cron_job_spec(int include_optional) { - v1beta1_cron_job_spec_t* v1beta1_cron_job_spec_1 = instantiate_v1beta1_cron_job_spec(include_optional); - - cJSON* jsonv1beta1_cron_job_spec_1 = v1beta1_cron_job_spec_convertToJSON(v1beta1_cron_job_spec_1); - printf("v1beta1_cron_job_spec :\n%s\n", cJSON_Print(jsonv1beta1_cron_job_spec_1)); - v1beta1_cron_job_spec_t* v1beta1_cron_job_spec_2 = v1beta1_cron_job_spec_parseFromJSON(jsonv1beta1_cron_job_spec_1); - cJSON* jsonv1beta1_cron_job_spec_2 = v1beta1_cron_job_spec_convertToJSON(v1beta1_cron_job_spec_2); - printf("repeating v1beta1_cron_job_spec:\n%s\n", cJSON_Print(jsonv1beta1_cron_job_spec_2)); -} - -int main() { - test_v1beta1_cron_job_spec(1); - test_v1beta1_cron_job_spec(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_cron_job_spec_MAIN -#endif // v1beta1_cron_job_spec_TEST diff --git a/kubernetes/unit-test/test_v1beta1_cron_job_status.c b/kubernetes/unit-test/test_v1beta1_cron_job_status.c deleted file mode 100644 index 710c132..0000000 --- a/kubernetes/unit-test/test_v1beta1_cron_job_status.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v1beta1_cron_job_status_TEST -#define v1beta1_cron_job_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_cron_job_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_cron_job_status.h" -v1beta1_cron_job_status_t* instantiate_v1beta1_cron_job_status(int include_optional); - - - -v1beta1_cron_job_status_t* instantiate_v1beta1_cron_job_status(int include_optional) { - v1beta1_cron_job_status_t* v1beta1_cron_job_status = NULL; - if (include_optional) { - v1beta1_cron_job_status = v1beta1_cron_job_status_create( - list_createList(), - "2013-10-20T19:20:30+01:00", - "2013-10-20T19:20:30+01:00" - ); - } else { - v1beta1_cron_job_status = v1beta1_cron_job_status_create( - list_createList(), - "2013-10-20T19:20:30+01:00", - "2013-10-20T19:20:30+01:00" - ); - } - - return v1beta1_cron_job_status; -} - - -#ifdef v1beta1_cron_job_status_MAIN - -void test_v1beta1_cron_job_status(int include_optional) { - v1beta1_cron_job_status_t* v1beta1_cron_job_status_1 = instantiate_v1beta1_cron_job_status(include_optional); - - cJSON* jsonv1beta1_cron_job_status_1 = v1beta1_cron_job_status_convertToJSON(v1beta1_cron_job_status_1); - printf("v1beta1_cron_job_status :\n%s\n", cJSON_Print(jsonv1beta1_cron_job_status_1)); - v1beta1_cron_job_status_t* v1beta1_cron_job_status_2 = v1beta1_cron_job_status_parseFromJSON(jsonv1beta1_cron_job_status_1); - cJSON* jsonv1beta1_cron_job_status_2 = v1beta1_cron_job_status_convertToJSON(v1beta1_cron_job_status_2); - printf("repeating v1beta1_cron_job_status:\n%s\n", cJSON_Print(jsonv1beta1_cron_job_status_2)); -} - -int main() { - test_v1beta1_cron_job_status(1); - test_v1beta1_cron_job_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_cron_job_status_MAIN -#endif // v1beta1_cron_job_status_TEST diff --git a/kubernetes/unit-test/test_v1beta1_endpoint.c b/kubernetes/unit-test/test_v1beta1_endpoint.c deleted file mode 100644 index 199558b..0000000 --- a/kubernetes/unit-test/test_v1beta1_endpoint.c +++ /dev/null @@ -1,76 +0,0 @@ -#ifndef v1beta1_endpoint_TEST -#define v1beta1_endpoint_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_endpoint_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_endpoint.h" -v1beta1_endpoint_t* instantiate_v1beta1_endpoint(int include_optional); - -#include "test_v1beta1_endpoint_conditions.c" -#include "test_v1beta1_endpoint_hints.c" -#include "test_v1_object_reference.c" - - -v1beta1_endpoint_t* instantiate_v1beta1_endpoint(int include_optional) { - v1beta1_endpoint_t* v1beta1_endpoint = NULL; - if (include_optional) { - v1beta1_endpoint = v1beta1_endpoint_create( - list_createList(), - // false, not to have infinite recursion - instantiate_v1beta1_endpoint_conditions(0), - // false, not to have infinite recursion - instantiate_v1beta1_endpoint_hints(0), - "0", - "0", - // false, not to have infinite recursion - instantiate_v1_object_reference(0), - list_createList() - ); - } else { - v1beta1_endpoint = v1beta1_endpoint_create( - list_createList(), - NULL, - NULL, - "0", - "0", - NULL, - list_createList() - ); - } - - return v1beta1_endpoint; -} - - -#ifdef v1beta1_endpoint_MAIN - -void test_v1beta1_endpoint(int include_optional) { - v1beta1_endpoint_t* v1beta1_endpoint_1 = instantiate_v1beta1_endpoint(include_optional); - - cJSON* jsonv1beta1_endpoint_1 = v1beta1_endpoint_convertToJSON(v1beta1_endpoint_1); - printf("v1beta1_endpoint :\n%s\n", cJSON_Print(jsonv1beta1_endpoint_1)); - v1beta1_endpoint_t* v1beta1_endpoint_2 = v1beta1_endpoint_parseFromJSON(jsonv1beta1_endpoint_1); - cJSON* jsonv1beta1_endpoint_2 = v1beta1_endpoint_convertToJSON(v1beta1_endpoint_2); - printf("repeating v1beta1_endpoint:\n%s\n", cJSON_Print(jsonv1beta1_endpoint_2)); -} - -int main() { - test_v1beta1_endpoint(1); - test_v1beta1_endpoint(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_endpoint_MAIN -#endif // v1beta1_endpoint_TEST diff --git a/kubernetes/unit-test/test_v1beta1_endpoint_conditions.c b/kubernetes/unit-test/test_v1beta1_endpoint_conditions.c deleted file mode 100644 index a858e10..0000000 --- a/kubernetes/unit-test/test_v1beta1_endpoint_conditions.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v1beta1_endpoint_conditions_TEST -#define v1beta1_endpoint_conditions_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_endpoint_conditions_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_endpoint_conditions.h" -v1beta1_endpoint_conditions_t* instantiate_v1beta1_endpoint_conditions(int include_optional); - - - -v1beta1_endpoint_conditions_t* instantiate_v1beta1_endpoint_conditions(int include_optional) { - v1beta1_endpoint_conditions_t* v1beta1_endpoint_conditions = NULL; - if (include_optional) { - v1beta1_endpoint_conditions = v1beta1_endpoint_conditions_create( - 1, - 1, - 1 - ); - } else { - v1beta1_endpoint_conditions = v1beta1_endpoint_conditions_create( - 1, - 1, - 1 - ); - } - - return v1beta1_endpoint_conditions; -} - - -#ifdef v1beta1_endpoint_conditions_MAIN - -void test_v1beta1_endpoint_conditions(int include_optional) { - v1beta1_endpoint_conditions_t* v1beta1_endpoint_conditions_1 = instantiate_v1beta1_endpoint_conditions(include_optional); - - cJSON* jsonv1beta1_endpoint_conditions_1 = v1beta1_endpoint_conditions_convertToJSON(v1beta1_endpoint_conditions_1); - printf("v1beta1_endpoint_conditions :\n%s\n", cJSON_Print(jsonv1beta1_endpoint_conditions_1)); - v1beta1_endpoint_conditions_t* v1beta1_endpoint_conditions_2 = v1beta1_endpoint_conditions_parseFromJSON(jsonv1beta1_endpoint_conditions_1); - cJSON* jsonv1beta1_endpoint_conditions_2 = v1beta1_endpoint_conditions_convertToJSON(v1beta1_endpoint_conditions_2); - printf("repeating v1beta1_endpoint_conditions:\n%s\n", cJSON_Print(jsonv1beta1_endpoint_conditions_2)); -} - -int main() { - test_v1beta1_endpoint_conditions(1); - test_v1beta1_endpoint_conditions(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_endpoint_conditions_MAIN -#endif // v1beta1_endpoint_conditions_TEST diff --git a/kubernetes/unit-test/test_v1beta1_endpoint_hints.c b/kubernetes/unit-test/test_v1beta1_endpoint_hints.c deleted file mode 100644 index ae00080..0000000 --- a/kubernetes/unit-test/test_v1beta1_endpoint_hints.c +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef v1beta1_endpoint_hints_TEST -#define v1beta1_endpoint_hints_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_endpoint_hints_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_endpoint_hints.h" -v1beta1_endpoint_hints_t* instantiate_v1beta1_endpoint_hints(int include_optional); - - - -v1beta1_endpoint_hints_t* instantiate_v1beta1_endpoint_hints(int include_optional) { - v1beta1_endpoint_hints_t* v1beta1_endpoint_hints = NULL; - if (include_optional) { - v1beta1_endpoint_hints = v1beta1_endpoint_hints_create( - list_createList() - ); - } else { - v1beta1_endpoint_hints = v1beta1_endpoint_hints_create( - list_createList() - ); - } - - return v1beta1_endpoint_hints; -} - - -#ifdef v1beta1_endpoint_hints_MAIN - -void test_v1beta1_endpoint_hints(int include_optional) { - v1beta1_endpoint_hints_t* v1beta1_endpoint_hints_1 = instantiate_v1beta1_endpoint_hints(include_optional); - - cJSON* jsonv1beta1_endpoint_hints_1 = v1beta1_endpoint_hints_convertToJSON(v1beta1_endpoint_hints_1); - printf("v1beta1_endpoint_hints :\n%s\n", cJSON_Print(jsonv1beta1_endpoint_hints_1)); - v1beta1_endpoint_hints_t* v1beta1_endpoint_hints_2 = v1beta1_endpoint_hints_parseFromJSON(jsonv1beta1_endpoint_hints_1); - cJSON* jsonv1beta1_endpoint_hints_2 = v1beta1_endpoint_hints_convertToJSON(v1beta1_endpoint_hints_2); - printf("repeating v1beta1_endpoint_hints:\n%s\n", cJSON_Print(jsonv1beta1_endpoint_hints_2)); -} - -int main() { - test_v1beta1_endpoint_hints(1); - test_v1beta1_endpoint_hints(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_endpoint_hints_MAIN -#endif // v1beta1_endpoint_hints_TEST diff --git a/kubernetes/unit-test/test_v1beta1_endpoint_port.c b/kubernetes/unit-test/test_v1beta1_endpoint_port.c deleted file mode 100644 index dc8ed8d..0000000 --- a/kubernetes/unit-test/test_v1beta1_endpoint_port.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v1beta1_endpoint_port_TEST -#define v1beta1_endpoint_port_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_endpoint_port_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_endpoint_port.h" -v1beta1_endpoint_port_t* instantiate_v1beta1_endpoint_port(int include_optional); - - - -v1beta1_endpoint_port_t* instantiate_v1beta1_endpoint_port(int include_optional) { - v1beta1_endpoint_port_t* v1beta1_endpoint_port = NULL; - if (include_optional) { - v1beta1_endpoint_port = v1beta1_endpoint_port_create( - "0", - "0", - 56, - "0" - ); - } else { - v1beta1_endpoint_port = v1beta1_endpoint_port_create( - "0", - "0", - 56, - "0" - ); - } - - return v1beta1_endpoint_port; -} - - -#ifdef v1beta1_endpoint_port_MAIN - -void test_v1beta1_endpoint_port(int include_optional) { - v1beta1_endpoint_port_t* v1beta1_endpoint_port_1 = instantiate_v1beta1_endpoint_port(include_optional); - - cJSON* jsonv1beta1_endpoint_port_1 = v1beta1_endpoint_port_convertToJSON(v1beta1_endpoint_port_1); - printf("v1beta1_endpoint_port :\n%s\n", cJSON_Print(jsonv1beta1_endpoint_port_1)); - v1beta1_endpoint_port_t* v1beta1_endpoint_port_2 = v1beta1_endpoint_port_parseFromJSON(jsonv1beta1_endpoint_port_1); - cJSON* jsonv1beta1_endpoint_port_2 = v1beta1_endpoint_port_convertToJSON(v1beta1_endpoint_port_2); - printf("repeating v1beta1_endpoint_port:\n%s\n", cJSON_Print(jsonv1beta1_endpoint_port_2)); -} - -int main() { - test_v1beta1_endpoint_port(1); - test_v1beta1_endpoint_port(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_endpoint_port_MAIN -#endif // v1beta1_endpoint_port_TEST diff --git a/kubernetes/unit-test/test_v1beta1_endpoint_slice.c b/kubernetes/unit-test/test_v1beta1_endpoint_slice.c deleted file mode 100644 index f4c8c7b..0000000 --- a/kubernetes/unit-test/test_v1beta1_endpoint_slice.c +++ /dev/null @@ -1,70 +0,0 @@ -#ifndef v1beta1_endpoint_slice_TEST -#define v1beta1_endpoint_slice_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_endpoint_slice_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_endpoint_slice.h" -v1beta1_endpoint_slice_t* instantiate_v1beta1_endpoint_slice(int include_optional); - -#include "test_v1_object_meta.c" - - -v1beta1_endpoint_slice_t* instantiate_v1beta1_endpoint_slice(int include_optional) { - v1beta1_endpoint_slice_t* v1beta1_endpoint_slice = NULL; - if (include_optional) { - v1beta1_endpoint_slice = v1beta1_endpoint_slice_create( - "0", - "0", - list_createList(), - "0", - // false, not to have infinite recursion - instantiate_v1_object_meta(0), - list_createList() - ); - } else { - v1beta1_endpoint_slice = v1beta1_endpoint_slice_create( - "0", - "0", - list_createList(), - "0", - NULL, - list_createList() - ); - } - - return v1beta1_endpoint_slice; -} - - -#ifdef v1beta1_endpoint_slice_MAIN - -void test_v1beta1_endpoint_slice(int include_optional) { - v1beta1_endpoint_slice_t* v1beta1_endpoint_slice_1 = instantiate_v1beta1_endpoint_slice(include_optional); - - cJSON* jsonv1beta1_endpoint_slice_1 = v1beta1_endpoint_slice_convertToJSON(v1beta1_endpoint_slice_1); - printf("v1beta1_endpoint_slice :\n%s\n", cJSON_Print(jsonv1beta1_endpoint_slice_1)); - v1beta1_endpoint_slice_t* v1beta1_endpoint_slice_2 = v1beta1_endpoint_slice_parseFromJSON(jsonv1beta1_endpoint_slice_1); - cJSON* jsonv1beta1_endpoint_slice_2 = v1beta1_endpoint_slice_convertToJSON(v1beta1_endpoint_slice_2); - printf("repeating v1beta1_endpoint_slice:\n%s\n", cJSON_Print(jsonv1beta1_endpoint_slice_2)); -} - -int main() { - test_v1beta1_endpoint_slice(1); - test_v1beta1_endpoint_slice(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_endpoint_slice_MAIN -#endif // v1beta1_endpoint_slice_TEST diff --git a/kubernetes/unit-test/test_v1beta1_endpoint_slice_list.c b/kubernetes/unit-test/test_v1beta1_endpoint_slice_list.c deleted file mode 100644 index c71b26e..0000000 --- a/kubernetes/unit-test/test_v1beta1_endpoint_slice_list.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v1beta1_endpoint_slice_list_TEST -#define v1beta1_endpoint_slice_list_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_endpoint_slice_list_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_endpoint_slice_list.h" -v1beta1_endpoint_slice_list_t* instantiate_v1beta1_endpoint_slice_list(int include_optional); - -#include "test_v1_list_meta.c" - - -v1beta1_endpoint_slice_list_t* instantiate_v1beta1_endpoint_slice_list(int include_optional) { - v1beta1_endpoint_slice_list_t* v1beta1_endpoint_slice_list = NULL; - if (include_optional) { - v1beta1_endpoint_slice_list = v1beta1_endpoint_slice_list_create( - "0", - list_createList(), - "0", - // false, not to have infinite recursion - instantiate_v1_list_meta(0) - ); - } else { - v1beta1_endpoint_slice_list = v1beta1_endpoint_slice_list_create( - "0", - list_createList(), - "0", - NULL - ); - } - - return v1beta1_endpoint_slice_list; -} - - -#ifdef v1beta1_endpoint_slice_list_MAIN - -void test_v1beta1_endpoint_slice_list(int include_optional) { - v1beta1_endpoint_slice_list_t* v1beta1_endpoint_slice_list_1 = instantiate_v1beta1_endpoint_slice_list(include_optional); - - cJSON* jsonv1beta1_endpoint_slice_list_1 = v1beta1_endpoint_slice_list_convertToJSON(v1beta1_endpoint_slice_list_1); - printf("v1beta1_endpoint_slice_list :\n%s\n", cJSON_Print(jsonv1beta1_endpoint_slice_list_1)); - v1beta1_endpoint_slice_list_t* v1beta1_endpoint_slice_list_2 = v1beta1_endpoint_slice_list_parseFromJSON(jsonv1beta1_endpoint_slice_list_1); - cJSON* jsonv1beta1_endpoint_slice_list_2 = v1beta1_endpoint_slice_list_convertToJSON(v1beta1_endpoint_slice_list_2); - printf("repeating v1beta1_endpoint_slice_list:\n%s\n", cJSON_Print(jsonv1beta1_endpoint_slice_list_2)); -} - -int main() { - test_v1beta1_endpoint_slice_list(1); - test_v1beta1_endpoint_slice_list(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_endpoint_slice_list_MAIN -#endif // v1beta1_endpoint_slice_list_TEST diff --git a/kubernetes/unit-test/test_v1beta1_event.c b/kubernetes/unit-test/test_v1beta1_event.c deleted file mode 100644 index c8c9092..0000000 --- a/kubernetes/unit-test/test_v1beta1_event.c +++ /dev/null @@ -1,100 +0,0 @@ -#ifndef v1beta1_event_TEST -#define v1beta1_event_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_event_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_event.h" -v1beta1_event_t* instantiate_v1beta1_event(int include_optional); - -#include "test_v1_event_source.c" -#include "test_v1_object_meta.c" -#include "test_v1_object_reference.c" -#include "test_v1_object_reference.c" -#include "test_v1beta1_event_series.c" - - -v1beta1_event_t* instantiate_v1beta1_event(int include_optional) { - v1beta1_event_t* v1beta1_event = NULL; - if (include_optional) { - v1beta1_event = v1beta1_event_create( - "0", - "0", - 56, - "2013-10-20T19:20:30+01:00", - "2013-10-20T19:20:30+01:00", - // false, not to have infinite recursion - instantiate_v1_event_source(0), - "2013-10-20T19:20:30+01:00", - "0", - // false, not to have infinite recursion - instantiate_v1_object_meta(0), - "0", - "0", - // false, not to have infinite recursion - instantiate_v1_object_reference(0), - // false, not to have infinite recursion - instantiate_v1_object_reference(0), - "0", - "0", - // false, not to have infinite recursion - instantiate_v1beta1_event_series(0), - "0" - ); - } else { - v1beta1_event = v1beta1_event_create( - "0", - "0", - 56, - "2013-10-20T19:20:30+01:00", - "2013-10-20T19:20:30+01:00", - NULL, - "2013-10-20T19:20:30+01:00", - "0", - NULL, - "0", - "0", - NULL, - NULL, - "0", - "0", - NULL, - "0" - ); - } - - return v1beta1_event; -} - - -#ifdef v1beta1_event_MAIN - -void test_v1beta1_event(int include_optional) { - v1beta1_event_t* v1beta1_event_1 = instantiate_v1beta1_event(include_optional); - - cJSON* jsonv1beta1_event_1 = v1beta1_event_convertToJSON(v1beta1_event_1); - printf("v1beta1_event :\n%s\n", cJSON_Print(jsonv1beta1_event_1)); - v1beta1_event_t* v1beta1_event_2 = v1beta1_event_parseFromJSON(jsonv1beta1_event_1); - cJSON* jsonv1beta1_event_2 = v1beta1_event_convertToJSON(v1beta1_event_2); - printf("repeating v1beta1_event:\n%s\n", cJSON_Print(jsonv1beta1_event_2)); -} - -int main() { - test_v1beta1_event(1); - test_v1beta1_event(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_event_MAIN -#endif // v1beta1_event_TEST diff --git a/kubernetes/unit-test/test_v1beta1_event_list.c b/kubernetes/unit-test/test_v1beta1_event_list.c deleted file mode 100644 index 278aa12..0000000 --- a/kubernetes/unit-test/test_v1beta1_event_list.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v1beta1_event_list_TEST -#define v1beta1_event_list_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_event_list_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_event_list.h" -v1beta1_event_list_t* instantiate_v1beta1_event_list(int include_optional); - -#include "test_v1_list_meta.c" - - -v1beta1_event_list_t* instantiate_v1beta1_event_list(int include_optional) { - v1beta1_event_list_t* v1beta1_event_list = NULL; - if (include_optional) { - v1beta1_event_list = v1beta1_event_list_create( - "0", - list_createList(), - "0", - // false, not to have infinite recursion - instantiate_v1_list_meta(0) - ); - } else { - v1beta1_event_list = v1beta1_event_list_create( - "0", - list_createList(), - "0", - NULL - ); - } - - return v1beta1_event_list; -} - - -#ifdef v1beta1_event_list_MAIN - -void test_v1beta1_event_list(int include_optional) { - v1beta1_event_list_t* v1beta1_event_list_1 = instantiate_v1beta1_event_list(include_optional); - - cJSON* jsonv1beta1_event_list_1 = v1beta1_event_list_convertToJSON(v1beta1_event_list_1); - printf("v1beta1_event_list :\n%s\n", cJSON_Print(jsonv1beta1_event_list_1)); - v1beta1_event_list_t* v1beta1_event_list_2 = v1beta1_event_list_parseFromJSON(jsonv1beta1_event_list_1); - cJSON* jsonv1beta1_event_list_2 = v1beta1_event_list_convertToJSON(v1beta1_event_list_2); - printf("repeating v1beta1_event_list:\n%s\n", cJSON_Print(jsonv1beta1_event_list_2)); -} - -int main() { - test_v1beta1_event_list(1); - test_v1beta1_event_list(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_event_list_MAIN -#endif // v1beta1_event_list_TEST diff --git a/kubernetes/unit-test/test_v1beta1_event_series.c b/kubernetes/unit-test/test_v1beta1_event_series.c deleted file mode 100644 index 2b22fdb..0000000 --- a/kubernetes/unit-test/test_v1beta1_event_series.c +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef v1beta1_event_series_TEST -#define v1beta1_event_series_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_event_series_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_event_series.h" -v1beta1_event_series_t* instantiate_v1beta1_event_series(int include_optional); - - - -v1beta1_event_series_t* instantiate_v1beta1_event_series(int include_optional) { - v1beta1_event_series_t* v1beta1_event_series = NULL; - if (include_optional) { - v1beta1_event_series = v1beta1_event_series_create( - 56, - "2013-10-20T19:20:30+01:00" - ); - } else { - v1beta1_event_series = v1beta1_event_series_create( - 56, - "2013-10-20T19:20:30+01:00" - ); - } - - return v1beta1_event_series; -} - - -#ifdef v1beta1_event_series_MAIN - -void test_v1beta1_event_series(int include_optional) { - v1beta1_event_series_t* v1beta1_event_series_1 = instantiate_v1beta1_event_series(include_optional); - - cJSON* jsonv1beta1_event_series_1 = v1beta1_event_series_convertToJSON(v1beta1_event_series_1); - printf("v1beta1_event_series :\n%s\n", cJSON_Print(jsonv1beta1_event_series_1)); - v1beta1_event_series_t* v1beta1_event_series_2 = v1beta1_event_series_parseFromJSON(jsonv1beta1_event_series_1); - cJSON* jsonv1beta1_event_series_2 = v1beta1_event_series_convertToJSON(v1beta1_event_series_2); - printf("repeating v1beta1_event_series:\n%s\n", cJSON_Print(jsonv1beta1_event_series_2)); -} - -int main() { - test_v1beta1_event_series(1); - test_v1beta1_event_series(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_event_series_MAIN -#endif // v1beta1_event_series_TEST diff --git a/kubernetes/unit-test/test_v1beta1_for_zone.c b/kubernetes/unit-test/test_v1beta1_for_zone.c deleted file mode 100644 index fc64466..0000000 --- a/kubernetes/unit-test/test_v1beta1_for_zone.c +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef v1beta1_for_zone_TEST -#define v1beta1_for_zone_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_for_zone_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_for_zone.h" -v1beta1_for_zone_t* instantiate_v1beta1_for_zone(int include_optional); - - - -v1beta1_for_zone_t* instantiate_v1beta1_for_zone(int include_optional) { - v1beta1_for_zone_t* v1beta1_for_zone = NULL; - if (include_optional) { - v1beta1_for_zone = v1beta1_for_zone_create( - "0" - ); - } else { - v1beta1_for_zone = v1beta1_for_zone_create( - "0" - ); - } - - return v1beta1_for_zone; -} - - -#ifdef v1beta1_for_zone_MAIN - -void test_v1beta1_for_zone(int include_optional) { - v1beta1_for_zone_t* v1beta1_for_zone_1 = instantiate_v1beta1_for_zone(include_optional); - - cJSON* jsonv1beta1_for_zone_1 = v1beta1_for_zone_convertToJSON(v1beta1_for_zone_1); - printf("v1beta1_for_zone :\n%s\n", cJSON_Print(jsonv1beta1_for_zone_1)); - v1beta1_for_zone_t* v1beta1_for_zone_2 = v1beta1_for_zone_parseFromJSON(jsonv1beta1_for_zone_1); - cJSON* jsonv1beta1_for_zone_2 = v1beta1_for_zone_convertToJSON(v1beta1_for_zone_2); - printf("repeating v1beta1_for_zone:\n%s\n", cJSON_Print(jsonv1beta1_for_zone_2)); -} - -int main() { - test_v1beta1_for_zone(1); - test_v1beta1_for_zone(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_for_zone_MAIN -#endif // v1beta1_for_zone_TEST diff --git a/kubernetes/unit-test/test_v1beta1_fs_group_strategy_options.c b/kubernetes/unit-test/test_v1beta1_fs_group_strategy_options.c deleted file mode 100644 index 54a24f3..0000000 --- a/kubernetes/unit-test/test_v1beta1_fs_group_strategy_options.c +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef v1beta1_fs_group_strategy_options_TEST -#define v1beta1_fs_group_strategy_options_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_fs_group_strategy_options_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_fs_group_strategy_options.h" -v1beta1_fs_group_strategy_options_t* instantiate_v1beta1_fs_group_strategy_options(int include_optional); - - - -v1beta1_fs_group_strategy_options_t* instantiate_v1beta1_fs_group_strategy_options(int include_optional) { - v1beta1_fs_group_strategy_options_t* v1beta1_fs_group_strategy_options = NULL; - if (include_optional) { - v1beta1_fs_group_strategy_options = v1beta1_fs_group_strategy_options_create( - list_createList(), - "0" - ); - } else { - v1beta1_fs_group_strategy_options = v1beta1_fs_group_strategy_options_create( - list_createList(), - "0" - ); - } - - return v1beta1_fs_group_strategy_options; -} - - -#ifdef v1beta1_fs_group_strategy_options_MAIN - -void test_v1beta1_fs_group_strategy_options(int include_optional) { - v1beta1_fs_group_strategy_options_t* v1beta1_fs_group_strategy_options_1 = instantiate_v1beta1_fs_group_strategy_options(include_optional); - - cJSON* jsonv1beta1_fs_group_strategy_options_1 = v1beta1_fs_group_strategy_options_convertToJSON(v1beta1_fs_group_strategy_options_1); - printf("v1beta1_fs_group_strategy_options :\n%s\n", cJSON_Print(jsonv1beta1_fs_group_strategy_options_1)); - v1beta1_fs_group_strategy_options_t* v1beta1_fs_group_strategy_options_2 = v1beta1_fs_group_strategy_options_parseFromJSON(jsonv1beta1_fs_group_strategy_options_1); - cJSON* jsonv1beta1_fs_group_strategy_options_2 = v1beta1_fs_group_strategy_options_convertToJSON(v1beta1_fs_group_strategy_options_2); - printf("repeating v1beta1_fs_group_strategy_options:\n%s\n", cJSON_Print(jsonv1beta1_fs_group_strategy_options_2)); -} - -int main() { - test_v1beta1_fs_group_strategy_options(1); - test_v1beta1_fs_group_strategy_options(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_fs_group_strategy_options_MAIN -#endif // v1beta1_fs_group_strategy_options_TEST diff --git a/kubernetes/unit-test/test_v1beta1_host_port_range.c b/kubernetes/unit-test/test_v1beta1_host_port_range.c deleted file mode 100644 index 72f9979..0000000 --- a/kubernetes/unit-test/test_v1beta1_host_port_range.c +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef v1beta1_host_port_range_TEST -#define v1beta1_host_port_range_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_host_port_range_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_host_port_range.h" -v1beta1_host_port_range_t* instantiate_v1beta1_host_port_range(int include_optional); - - - -v1beta1_host_port_range_t* instantiate_v1beta1_host_port_range(int include_optional) { - v1beta1_host_port_range_t* v1beta1_host_port_range = NULL; - if (include_optional) { - v1beta1_host_port_range = v1beta1_host_port_range_create( - 56, - 56 - ); - } else { - v1beta1_host_port_range = v1beta1_host_port_range_create( - 56, - 56 - ); - } - - return v1beta1_host_port_range; -} - - -#ifdef v1beta1_host_port_range_MAIN - -void test_v1beta1_host_port_range(int include_optional) { - v1beta1_host_port_range_t* v1beta1_host_port_range_1 = instantiate_v1beta1_host_port_range(include_optional); - - cJSON* jsonv1beta1_host_port_range_1 = v1beta1_host_port_range_convertToJSON(v1beta1_host_port_range_1); - printf("v1beta1_host_port_range :\n%s\n", cJSON_Print(jsonv1beta1_host_port_range_1)); - v1beta1_host_port_range_t* v1beta1_host_port_range_2 = v1beta1_host_port_range_parseFromJSON(jsonv1beta1_host_port_range_1); - cJSON* jsonv1beta1_host_port_range_2 = v1beta1_host_port_range_convertToJSON(v1beta1_host_port_range_2); - printf("repeating v1beta1_host_port_range:\n%s\n", cJSON_Print(jsonv1beta1_host_port_range_2)); -} - -int main() { - test_v1beta1_host_port_range(1); - test_v1beta1_host_port_range(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_host_port_range_MAIN -#endif // v1beta1_host_port_range_TEST diff --git a/kubernetes/unit-test/test_v1beta1_id_range.c b/kubernetes/unit-test/test_v1beta1_id_range.c deleted file mode 100644 index 12f603e..0000000 --- a/kubernetes/unit-test/test_v1beta1_id_range.c +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef v1beta1_id_range_TEST -#define v1beta1_id_range_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_id_range_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_id_range.h" -v1beta1_id_range_t* instantiate_v1beta1_id_range(int include_optional); - - - -v1beta1_id_range_t* instantiate_v1beta1_id_range(int include_optional) { - v1beta1_id_range_t* v1beta1_id_range = NULL; - if (include_optional) { - v1beta1_id_range = v1beta1_id_range_create( - 56, - 56 - ); - } else { - v1beta1_id_range = v1beta1_id_range_create( - 56, - 56 - ); - } - - return v1beta1_id_range; -} - - -#ifdef v1beta1_id_range_MAIN - -void test_v1beta1_id_range(int include_optional) { - v1beta1_id_range_t* v1beta1_id_range_1 = instantiate_v1beta1_id_range(include_optional); - - cJSON* jsonv1beta1_id_range_1 = v1beta1_id_range_convertToJSON(v1beta1_id_range_1); - printf("v1beta1_id_range :\n%s\n", cJSON_Print(jsonv1beta1_id_range_1)); - v1beta1_id_range_t* v1beta1_id_range_2 = v1beta1_id_range_parseFromJSON(jsonv1beta1_id_range_1); - cJSON* jsonv1beta1_id_range_2 = v1beta1_id_range_convertToJSON(v1beta1_id_range_2); - printf("repeating v1beta1_id_range:\n%s\n", cJSON_Print(jsonv1beta1_id_range_2)); -} - -int main() { - test_v1beta1_id_range(1); - test_v1beta1_id_range(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_id_range_MAIN -#endif // v1beta1_id_range_TEST diff --git a/kubernetes/unit-test/test_v1beta1_job_template_spec.c b/kubernetes/unit-test/test_v1beta1_job_template_spec.c deleted file mode 100644 index 92eca72..0000000 --- a/kubernetes/unit-test/test_v1beta1_job_template_spec.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v1beta1_job_template_spec_TEST -#define v1beta1_job_template_spec_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_job_template_spec_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_job_template_spec.h" -v1beta1_job_template_spec_t* instantiate_v1beta1_job_template_spec(int include_optional); - -#include "test_v1_object_meta.c" -#include "test_v1_job_spec.c" - - -v1beta1_job_template_spec_t* instantiate_v1beta1_job_template_spec(int include_optional) { - v1beta1_job_template_spec_t* v1beta1_job_template_spec = NULL; - if (include_optional) { - v1beta1_job_template_spec = v1beta1_job_template_spec_create( - // false, not to have infinite recursion - instantiate_v1_object_meta(0), - // false, not to have infinite recursion - instantiate_v1_job_spec(0) - ); - } else { - v1beta1_job_template_spec = v1beta1_job_template_spec_create( - NULL, - NULL - ); - } - - return v1beta1_job_template_spec; -} - - -#ifdef v1beta1_job_template_spec_MAIN - -void test_v1beta1_job_template_spec(int include_optional) { - v1beta1_job_template_spec_t* v1beta1_job_template_spec_1 = instantiate_v1beta1_job_template_spec(include_optional); - - cJSON* jsonv1beta1_job_template_spec_1 = v1beta1_job_template_spec_convertToJSON(v1beta1_job_template_spec_1); - printf("v1beta1_job_template_spec :\n%s\n", cJSON_Print(jsonv1beta1_job_template_spec_1)); - v1beta1_job_template_spec_t* v1beta1_job_template_spec_2 = v1beta1_job_template_spec_parseFromJSON(jsonv1beta1_job_template_spec_1); - cJSON* jsonv1beta1_job_template_spec_2 = v1beta1_job_template_spec_convertToJSON(v1beta1_job_template_spec_2); - printf("repeating v1beta1_job_template_spec:\n%s\n", cJSON_Print(jsonv1beta1_job_template_spec_2)); -} - -int main() { - test_v1beta1_job_template_spec(1); - test_v1beta1_job_template_spec(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_job_template_spec_MAIN -#endif // v1beta1_job_template_spec_TEST diff --git a/kubernetes/unit-test/test_v1beta1_overhead.c b/kubernetes/unit-test/test_v1beta1_overhead.c deleted file mode 100644 index 2ca16d5..0000000 --- a/kubernetes/unit-test/test_v1beta1_overhead.c +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef v1beta1_overhead_TEST -#define v1beta1_overhead_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_overhead_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_overhead.h" -v1beta1_overhead_t* instantiate_v1beta1_overhead(int include_optional); - - - -v1beta1_overhead_t* instantiate_v1beta1_overhead(int include_optional) { - v1beta1_overhead_t* v1beta1_overhead = NULL; - if (include_optional) { - v1beta1_overhead = v1beta1_overhead_create( - list_createList() - ); - } else { - v1beta1_overhead = v1beta1_overhead_create( - list_createList() - ); - } - - return v1beta1_overhead; -} - - -#ifdef v1beta1_overhead_MAIN - -void test_v1beta1_overhead(int include_optional) { - v1beta1_overhead_t* v1beta1_overhead_1 = instantiate_v1beta1_overhead(include_optional); - - cJSON* jsonv1beta1_overhead_1 = v1beta1_overhead_convertToJSON(v1beta1_overhead_1); - printf("v1beta1_overhead :\n%s\n", cJSON_Print(jsonv1beta1_overhead_1)); - v1beta1_overhead_t* v1beta1_overhead_2 = v1beta1_overhead_parseFromJSON(jsonv1beta1_overhead_1); - cJSON* jsonv1beta1_overhead_2 = v1beta1_overhead_convertToJSON(v1beta1_overhead_2); - printf("repeating v1beta1_overhead:\n%s\n", cJSON_Print(jsonv1beta1_overhead_2)); -} - -int main() { - test_v1beta1_overhead(1); - test_v1beta1_overhead(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_overhead_MAIN -#endif // v1beta1_overhead_TEST diff --git a/kubernetes/unit-test/test_v1beta1_pod_disruption_budget.c b/kubernetes/unit-test/test_v1beta1_pod_disruption_budget.c deleted file mode 100644 index 1bd0085..0000000 --- a/kubernetes/unit-test/test_v1beta1_pod_disruption_budget.c +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef v1beta1_pod_disruption_budget_TEST -#define v1beta1_pod_disruption_budget_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_pod_disruption_budget_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_pod_disruption_budget.h" -v1beta1_pod_disruption_budget_t* instantiate_v1beta1_pod_disruption_budget(int include_optional); - -#include "test_v1_object_meta.c" -#include "test_v1beta1_pod_disruption_budget_spec.c" -#include "test_v1beta1_pod_disruption_budget_status.c" - - -v1beta1_pod_disruption_budget_t* instantiate_v1beta1_pod_disruption_budget(int include_optional) { - v1beta1_pod_disruption_budget_t* v1beta1_pod_disruption_budget = NULL; - if (include_optional) { - v1beta1_pod_disruption_budget = v1beta1_pod_disruption_budget_create( - "0", - "0", - // false, not to have infinite recursion - instantiate_v1_object_meta(0), - // false, not to have infinite recursion - instantiate_v1beta1_pod_disruption_budget_spec(0), - // false, not to have infinite recursion - instantiate_v1beta1_pod_disruption_budget_status(0) - ); - } else { - v1beta1_pod_disruption_budget = v1beta1_pod_disruption_budget_create( - "0", - "0", - NULL, - NULL, - NULL - ); - } - - return v1beta1_pod_disruption_budget; -} - - -#ifdef v1beta1_pod_disruption_budget_MAIN - -void test_v1beta1_pod_disruption_budget(int include_optional) { - v1beta1_pod_disruption_budget_t* v1beta1_pod_disruption_budget_1 = instantiate_v1beta1_pod_disruption_budget(include_optional); - - cJSON* jsonv1beta1_pod_disruption_budget_1 = v1beta1_pod_disruption_budget_convertToJSON(v1beta1_pod_disruption_budget_1); - printf("v1beta1_pod_disruption_budget :\n%s\n", cJSON_Print(jsonv1beta1_pod_disruption_budget_1)); - v1beta1_pod_disruption_budget_t* v1beta1_pod_disruption_budget_2 = v1beta1_pod_disruption_budget_parseFromJSON(jsonv1beta1_pod_disruption_budget_1); - cJSON* jsonv1beta1_pod_disruption_budget_2 = v1beta1_pod_disruption_budget_convertToJSON(v1beta1_pod_disruption_budget_2); - printf("repeating v1beta1_pod_disruption_budget:\n%s\n", cJSON_Print(jsonv1beta1_pod_disruption_budget_2)); -} - -int main() { - test_v1beta1_pod_disruption_budget(1); - test_v1beta1_pod_disruption_budget(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_pod_disruption_budget_MAIN -#endif // v1beta1_pod_disruption_budget_TEST diff --git a/kubernetes/unit-test/test_v1beta1_pod_disruption_budget_list.c b/kubernetes/unit-test/test_v1beta1_pod_disruption_budget_list.c deleted file mode 100644 index 9c95063..0000000 --- a/kubernetes/unit-test/test_v1beta1_pod_disruption_budget_list.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v1beta1_pod_disruption_budget_list_TEST -#define v1beta1_pod_disruption_budget_list_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_pod_disruption_budget_list_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_pod_disruption_budget_list.h" -v1beta1_pod_disruption_budget_list_t* instantiate_v1beta1_pod_disruption_budget_list(int include_optional); - -#include "test_v1_list_meta.c" - - -v1beta1_pod_disruption_budget_list_t* instantiate_v1beta1_pod_disruption_budget_list(int include_optional) { - v1beta1_pod_disruption_budget_list_t* v1beta1_pod_disruption_budget_list = NULL; - if (include_optional) { - v1beta1_pod_disruption_budget_list = v1beta1_pod_disruption_budget_list_create( - "0", - list_createList(), - "0", - // false, not to have infinite recursion - instantiate_v1_list_meta(0) - ); - } else { - v1beta1_pod_disruption_budget_list = v1beta1_pod_disruption_budget_list_create( - "0", - list_createList(), - "0", - NULL - ); - } - - return v1beta1_pod_disruption_budget_list; -} - - -#ifdef v1beta1_pod_disruption_budget_list_MAIN - -void test_v1beta1_pod_disruption_budget_list(int include_optional) { - v1beta1_pod_disruption_budget_list_t* v1beta1_pod_disruption_budget_list_1 = instantiate_v1beta1_pod_disruption_budget_list(include_optional); - - cJSON* jsonv1beta1_pod_disruption_budget_list_1 = v1beta1_pod_disruption_budget_list_convertToJSON(v1beta1_pod_disruption_budget_list_1); - printf("v1beta1_pod_disruption_budget_list :\n%s\n", cJSON_Print(jsonv1beta1_pod_disruption_budget_list_1)); - v1beta1_pod_disruption_budget_list_t* v1beta1_pod_disruption_budget_list_2 = v1beta1_pod_disruption_budget_list_parseFromJSON(jsonv1beta1_pod_disruption_budget_list_1); - cJSON* jsonv1beta1_pod_disruption_budget_list_2 = v1beta1_pod_disruption_budget_list_convertToJSON(v1beta1_pod_disruption_budget_list_2); - printf("repeating v1beta1_pod_disruption_budget_list:\n%s\n", cJSON_Print(jsonv1beta1_pod_disruption_budget_list_2)); -} - -int main() { - test_v1beta1_pod_disruption_budget_list(1); - test_v1beta1_pod_disruption_budget_list(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_pod_disruption_budget_list_MAIN -#endif // v1beta1_pod_disruption_budget_list_TEST diff --git a/kubernetes/unit-test/test_v1beta1_pod_disruption_budget_spec.c b/kubernetes/unit-test/test_v1beta1_pod_disruption_budget_spec.c deleted file mode 100644 index c2af793..0000000 --- a/kubernetes/unit-test/test_v1beta1_pod_disruption_budget_spec.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v1beta1_pod_disruption_budget_spec_TEST -#define v1beta1_pod_disruption_budget_spec_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_pod_disruption_budget_spec_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_pod_disruption_budget_spec.h" -v1beta1_pod_disruption_budget_spec_t* instantiate_v1beta1_pod_disruption_budget_spec(int include_optional); - -#include "test_v1_label_selector.c" - - -v1beta1_pod_disruption_budget_spec_t* instantiate_v1beta1_pod_disruption_budget_spec(int include_optional) { - v1beta1_pod_disruption_budget_spec_t* v1beta1_pod_disruption_budget_spec = NULL; - if (include_optional) { - v1beta1_pod_disruption_budget_spec = v1beta1_pod_disruption_budget_spec_create( - "0", - "0", - // false, not to have infinite recursion - instantiate_v1_label_selector(0) - ); - } else { - v1beta1_pod_disruption_budget_spec = v1beta1_pod_disruption_budget_spec_create( - "0", - "0", - NULL - ); - } - - return v1beta1_pod_disruption_budget_spec; -} - - -#ifdef v1beta1_pod_disruption_budget_spec_MAIN - -void test_v1beta1_pod_disruption_budget_spec(int include_optional) { - v1beta1_pod_disruption_budget_spec_t* v1beta1_pod_disruption_budget_spec_1 = instantiate_v1beta1_pod_disruption_budget_spec(include_optional); - - cJSON* jsonv1beta1_pod_disruption_budget_spec_1 = v1beta1_pod_disruption_budget_spec_convertToJSON(v1beta1_pod_disruption_budget_spec_1); - printf("v1beta1_pod_disruption_budget_spec :\n%s\n", cJSON_Print(jsonv1beta1_pod_disruption_budget_spec_1)); - v1beta1_pod_disruption_budget_spec_t* v1beta1_pod_disruption_budget_spec_2 = v1beta1_pod_disruption_budget_spec_parseFromJSON(jsonv1beta1_pod_disruption_budget_spec_1); - cJSON* jsonv1beta1_pod_disruption_budget_spec_2 = v1beta1_pod_disruption_budget_spec_convertToJSON(v1beta1_pod_disruption_budget_spec_2); - printf("repeating v1beta1_pod_disruption_budget_spec:\n%s\n", cJSON_Print(jsonv1beta1_pod_disruption_budget_spec_2)); -} - -int main() { - test_v1beta1_pod_disruption_budget_spec(1); - test_v1beta1_pod_disruption_budget_spec(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_pod_disruption_budget_spec_MAIN -#endif // v1beta1_pod_disruption_budget_spec_TEST diff --git a/kubernetes/unit-test/test_v1beta1_pod_disruption_budget_status.c b/kubernetes/unit-test/test_v1beta1_pod_disruption_budget_status.c deleted file mode 100644 index f133a46..0000000 --- a/kubernetes/unit-test/test_v1beta1_pod_disruption_budget_status.c +++ /dev/null @@ -1,70 +0,0 @@ -#ifndef v1beta1_pod_disruption_budget_status_TEST -#define v1beta1_pod_disruption_budget_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_pod_disruption_budget_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_pod_disruption_budget_status.h" -v1beta1_pod_disruption_budget_status_t* instantiate_v1beta1_pod_disruption_budget_status(int include_optional); - - - -v1beta1_pod_disruption_budget_status_t* instantiate_v1beta1_pod_disruption_budget_status(int include_optional) { - v1beta1_pod_disruption_budget_status_t* v1beta1_pod_disruption_budget_status = NULL; - if (include_optional) { - v1beta1_pod_disruption_budget_status = v1beta1_pod_disruption_budget_status_create( - list_createList(), - 56, - 56, - list_createList(), - 56, - 56, - 56 - ); - } else { - v1beta1_pod_disruption_budget_status = v1beta1_pod_disruption_budget_status_create( - list_createList(), - 56, - 56, - list_createList(), - 56, - 56, - 56 - ); - } - - return v1beta1_pod_disruption_budget_status; -} - - -#ifdef v1beta1_pod_disruption_budget_status_MAIN - -void test_v1beta1_pod_disruption_budget_status(int include_optional) { - v1beta1_pod_disruption_budget_status_t* v1beta1_pod_disruption_budget_status_1 = instantiate_v1beta1_pod_disruption_budget_status(include_optional); - - cJSON* jsonv1beta1_pod_disruption_budget_status_1 = v1beta1_pod_disruption_budget_status_convertToJSON(v1beta1_pod_disruption_budget_status_1); - printf("v1beta1_pod_disruption_budget_status :\n%s\n", cJSON_Print(jsonv1beta1_pod_disruption_budget_status_1)); - v1beta1_pod_disruption_budget_status_t* v1beta1_pod_disruption_budget_status_2 = v1beta1_pod_disruption_budget_status_parseFromJSON(jsonv1beta1_pod_disruption_budget_status_1); - cJSON* jsonv1beta1_pod_disruption_budget_status_2 = v1beta1_pod_disruption_budget_status_convertToJSON(v1beta1_pod_disruption_budget_status_2); - printf("repeating v1beta1_pod_disruption_budget_status:\n%s\n", cJSON_Print(jsonv1beta1_pod_disruption_budget_status_2)); -} - -int main() { - test_v1beta1_pod_disruption_budget_status(1); - test_v1beta1_pod_disruption_budget_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_pod_disruption_budget_status_MAIN -#endif // v1beta1_pod_disruption_budget_status_TEST diff --git a/kubernetes/unit-test/test_v1beta1_pod_security_policy.c b/kubernetes/unit-test/test_v1beta1_pod_security_policy.c deleted file mode 100644 index ca1ed50..0000000 --- a/kubernetes/unit-test/test_v1beta1_pod_security_policy.c +++ /dev/null @@ -1,68 +0,0 @@ -#ifndef v1beta1_pod_security_policy_TEST -#define v1beta1_pod_security_policy_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_pod_security_policy_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_pod_security_policy.h" -v1beta1_pod_security_policy_t* instantiate_v1beta1_pod_security_policy(int include_optional); - -#include "test_v1_object_meta.c" -#include "test_v1beta1_pod_security_policy_spec.c" - - -v1beta1_pod_security_policy_t* instantiate_v1beta1_pod_security_policy(int include_optional) { - v1beta1_pod_security_policy_t* v1beta1_pod_security_policy = NULL; - if (include_optional) { - v1beta1_pod_security_policy = v1beta1_pod_security_policy_create( - "0", - "0", - // false, not to have infinite recursion - instantiate_v1_object_meta(0), - // false, not to have infinite recursion - instantiate_v1beta1_pod_security_policy_spec(0) - ); - } else { - v1beta1_pod_security_policy = v1beta1_pod_security_policy_create( - "0", - "0", - NULL, - NULL - ); - } - - return v1beta1_pod_security_policy; -} - - -#ifdef v1beta1_pod_security_policy_MAIN - -void test_v1beta1_pod_security_policy(int include_optional) { - v1beta1_pod_security_policy_t* v1beta1_pod_security_policy_1 = instantiate_v1beta1_pod_security_policy(include_optional); - - cJSON* jsonv1beta1_pod_security_policy_1 = v1beta1_pod_security_policy_convertToJSON(v1beta1_pod_security_policy_1); - printf("v1beta1_pod_security_policy :\n%s\n", cJSON_Print(jsonv1beta1_pod_security_policy_1)); - v1beta1_pod_security_policy_t* v1beta1_pod_security_policy_2 = v1beta1_pod_security_policy_parseFromJSON(jsonv1beta1_pod_security_policy_1); - cJSON* jsonv1beta1_pod_security_policy_2 = v1beta1_pod_security_policy_convertToJSON(v1beta1_pod_security_policy_2); - printf("repeating v1beta1_pod_security_policy:\n%s\n", cJSON_Print(jsonv1beta1_pod_security_policy_2)); -} - -int main() { - test_v1beta1_pod_security_policy(1); - test_v1beta1_pod_security_policy(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_pod_security_policy_MAIN -#endif // v1beta1_pod_security_policy_TEST diff --git a/kubernetes/unit-test/test_v1beta1_pod_security_policy_list.c b/kubernetes/unit-test/test_v1beta1_pod_security_policy_list.c deleted file mode 100644 index e7a6f5e..0000000 --- a/kubernetes/unit-test/test_v1beta1_pod_security_policy_list.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v1beta1_pod_security_policy_list_TEST -#define v1beta1_pod_security_policy_list_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_pod_security_policy_list_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_pod_security_policy_list.h" -v1beta1_pod_security_policy_list_t* instantiate_v1beta1_pod_security_policy_list(int include_optional); - -#include "test_v1_list_meta.c" - - -v1beta1_pod_security_policy_list_t* instantiate_v1beta1_pod_security_policy_list(int include_optional) { - v1beta1_pod_security_policy_list_t* v1beta1_pod_security_policy_list = NULL; - if (include_optional) { - v1beta1_pod_security_policy_list = v1beta1_pod_security_policy_list_create( - "0", - list_createList(), - "0", - // false, not to have infinite recursion - instantiate_v1_list_meta(0) - ); - } else { - v1beta1_pod_security_policy_list = v1beta1_pod_security_policy_list_create( - "0", - list_createList(), - "0", - NULL - ); - } - - return v1beta1_pod_security_policy_list; -} - - -#ifdef v1beta1_pod_security_policy_list_MAIN - -void test_v1beta1_pod_security_policy_list(int include_optional) { - v1beta1_pod_security_policy_list_t* v1beta1_pod_security_policy_list_1 = instantiate_v1beta1_pod_security_policy_list(include_optional); - - cJSON* jsonv1beta1_pod_security_policy_list_1 = v1beta1_pod_security_policy_list_convertToJSON(v1beta1_pod_security_policy_list_1); - printf("v1beta1_pod_security_policy_list :\n%s\n", cJSON_Print(jsonv1beta1_pod_security_policy_list_1)); - v1beta1_pod_security_policy_list_t* v1beta1_pod_security_policy_list_2 = v1beta1_pod_security_policy_list_parseFromJSON(jsonv1beta1_pod_security_policy_list_1); - cJSON* jsonv1beta1_pod_security_policy_list_2 = v1beta1_pod_security_policy_list_convertToJSON(v1beta1_pod_security_policy_list_2); - printf("repeating v1beta1_pod_security_policy_list:\n%s\n", cJSON_Print(jsonv1beta1_pod_security_policy_list_2)); -} - -int main() { - test_v1beta1_pod_security_policy_list(1); - test_v1beta1_pod_security_policy_list(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_pod_security_policy_list_MAIN -#endif // v1beta1_pod_security_policy_list_TEST diff --git a/kubernetes/unit-test/test_v1beta1_pod_security_policy_spec.c b/kubernetes/unit-test/test_v1beta1_pod_security_policy_spec.c deleted file mode 100644 index ee64eec..0000000 --- a/kubernetes/unit-test/test_v1beta1_pod_security_policy_spec.c +++ /dev/null @@ -1,116 +0,0 @@ -#ifndef v1beta1_pod_security_policy_spec_TEST -#define v1beta1_pod_security_policy_spec_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_pod_security_policy_spec_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_pod_security_policy_spec.h" -v1beta1_pod_security_policy_spec_t* instantiate_v1beta1_pod_security_policy_spec(int include_optional); - -#include "test_v1beta1_fs_group_strategy_options.c" -#include "test_v1beta1_run_as_group_strategy_options.c" -#include "test_v1beta1_run_as_user_strategy_options.c" -#include "test_v1beta1_runtime_class_strategy_options.c" -#include "test_v1beta1_se_linux_strategy_options.c" -#include "test_v1beta1_supplemental_groups_strategy_options.c" - - -v1beta1_pod_security_policy_spec_t* instantiate_v1beta1_pod_security_policy_spec(int include_optional) { - v1beta1_pod_security_policy_spec_t* v1beta1_pod_security_policy_spec = NULL; - if (include_optional) { - v1beta1_pod_security_policy_spec = v1beta1_pod_security_policy_spec_create( - 1, - list_createList(), - list_createList(), - list_createList(), - list_createList(), - list_createList(), - list_createList(), - list_createList(), - 1, - list_createList(), - // false, not to have infinite recursion - instantiate_v1beta1_fs_group_strategy_options(0), - 1, - 1, - 1, - list_createList(), - 1, - 1, - list_createList(), - // false, not to have infinite recursion - instantiate_v1beta1_run_as_group_strategy_options(0), - // false, not to have infinite recursion - instantiate_v1beta1_run_as_user_strategy_options(0), - // false, not to have infinite recursion - instantiate_v1beta1_runtime_class_strategy_options(0), - // false, not to have infinite recursion - instantiate_v1beta1_se_linux_strategy_options(0), - // false, not to have infinite recursion - instantiate_v1beta1_supplemental_groups_strategy_options(0), - list_createList() - ); - } else { - v1beta1_pod_security_policy_spec = v1beta1_pod_security_policy_spec_create( - 1, - list_createList(), - list_createList(), - list_createList(), - list_createList(), - list_createList(), - list_createList(), - list_createList(), - 1, - list_createList(), - NULL, - 1, - 1, - 1, - list_createList(), - 1, - 1, - list_createList(), - NULL, - NULL, - NULL, - NULL, - NULL, - list_createList() - ); - } - - return v1beta1_pod_security_policy_spec; -} - - -#ifdef v1beta1_pod_security_policy_spec_MAIN - -void test_v1beta1_pod_security_policy_spec(int include_optional) { - v1beta1_pod_security_policy_spec_t* v1beta1_pod_security_policy_spec_1 = instantiate_v1beta1_pod_security_policy_spec(include_optional); - - cJSON* jsonv1beta1_pod_security_policy_spec_1 = v1beta1_pod_security_policy_spec_convertToJSON(v1beta1_pod_security_policy_spec_1); - printf("v1beta1_pod_security_policy_spec :\n%s\n", cJSON_Print(jsonv1beta1_pod_security_policy_spec_1)); - v1beta1_pod_security_policy_spec_t* v1beta1_pod_security_policy_spec_2 = v1beta1_pod_security_policy_spec_parseFromJSON(jsonv1beta1_pod_security_policy_spec_1); - cJSON* jsonv1beta1_pod_security_policy_spec_2 = v1beta1_pod_security_policy_spec_convertToJSON(v1beta1_pod_security_policy_spec_2); - printf("repeating v1beta1_pod_security_policy_spec:\n%s\n", cJSON_Print(jsonv1beta1_pod_security_policy_spec_2)); -} - -int main() { - test_v1beta1_pod_security_policy_spec(1); - test_v1beta1_pod_security_policy_spec(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_pod_security_policy_spec_MAIN -#endif // v1beta1_pod_security_policy_spec_TEST diff --git a/kubernetes/unit-test/test_v1beta1_run_as_group_strategy_options.c b/kubernetes/unit-test/test_v1beta1_run_as_group_strategy_options.c deleted file mode 100644 index a967917..0000000 --- a/kubernetes/unit-test/test_v1beta1_run_as_group_strategy_options.c +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef v1beta1_run_as_group_strategy_options_TEST -#define v1beta1_run_as_group_strategy_options_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_run_as_group_strategy_options_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_run_as_group_strategy_options.h" -v1beta1_run_as_group_strategy_options_t* instantiate_v1beta1_run_as_group_strategy_options(int include_optional); - - - -v1beta1_run_as_group_strategy_options_t* instantiate_v1beta1_run_as_group_strategy_options(int include_optional) { - v1beta1_run_as_group_strategy_options_t* v1beta1_run_as_group_strategy_options = NULL; - if (include_optional) { - v1beta1_run_as_group_strategy_options = v1beta1_run_as_group_strategy_options_create( - list_createList(), - "0" - ); - } else { - v1beta1_run_as_group_strategy_options = v1beta1_run_as_group_strategy_options_create( - list_createList(), - "0" - ); - } - - return v1beta1_run_as_group_strategy_options; -} - - -#ifdef v1beta1_run_as_group_strategy_options_MAIN - -void test_v1beta1_run_as_group_strategy_options(int include_optional) { - v1beta1_run_as_group_strategy_options_t* v1beta1_run_as_group_strategy_options_1 = instantiate_v1beta1_run_as_group_strategy_options(include_optional); - - cJSON* jsonv1beta1_run_as_group_strategy_options_1 = v1beta1_run_as_group_strategy_options_convertToJSON(v1beta1_run_as_group_strategy_options_1); - printf("v1beta1_run_as_group_strategy_options :\n%s\n", cJSON_Print(jsonv1beta1_run_as_group_strategy_options_1)); - v1beta1_run_as_group_strategy_options_t* v1beta1_run_as_group_strategy_options_2 = v1beta1_run_as_group_strategy_options_parseFromJSON(jsonv1beta1_run_as_group_strategy_options_1); - cJSON* jsonv1beta1_run_as_group_strategy_options_2 = v1beta1_run_as_group_strategy_options_convertToJSON(v1beta1_run_as_group_strategy_options_2); - printf("repeating v1beta1_run_as_group_strategy_options:\n%s\n", cJSON_Print(jsonv1beta1_run_as_group_strategy_options_2)); -} - -int main() { - test_v1beta1_run_as_group_strategy_options(1); - test_v1beta1_run_as_group_strategy_options(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_run_as_group_strategy_options_MAIN -#endif // v1beta1_run_as_group_strategy_options_TEST diff --git a/kubernetes/unit-test/test_v1beta1_run_as_user_strategy_options.c b/kubernetes/unit-test/test_v1beta1_run_as_user_strategy_options.c deleted file mode 100644 index 7db349c..0000000 --- a/kubernetes/unit-test/test_v1beta1_run_as_user_strategy_options.c +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef v1beta1_run_as_user_strategy_options_TEST -#define v1beta1_run_as_user_strategy_options_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_run_as_user_strategy_options_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_run_as_user_strategy_options.h" -v1beta1_run_as_user_strategy_options_t* instantiate_v1beta1_run_as_user_strategy_options(int include_optional); - - - -v1beta1_run_as_user_strategy_options_t* instantiate_v1beta1_run_as_user_strategy_options(int include_optional) { - v1beta1_run_as_user_strategy_options_t* v1beta1_run_as_user_strategy_options = NULL; - if (include_optional) { - v1beta1_run_as_user_strategy_options = v1beta1_run_as_user_strategy_options_create( - list_createList(), - "0" - ); - } else { - v1beta1_run_as_user_strategy_options = v1beta1_run_as_user_strategy_options_create( - list_createList(), - "0" - ); - } - - return v1beta1_run_as_user_strategy_options; -} - - -#ifdef v1beta1_run_as_user_strategy_options_MAIN - -void test_v1beta1_run_as_user_strategy_options(int include_optional) { - v1beta1_run_as_user_strategy_options_t* v1beta1_run_as_user_strategy_options_1 = instantiate_v1beta1_run_as_user_strategy_options(include_optional); - - cJSON* jsonv1beta1_run_as_user_strategy_options_1 = v1beta1_run_as_user_strategy_options_convertToJSON(v1beta1_run_as_user_strategy_options_1); - printf("v1beta1_run_as_user_strategy_options :\n%s\n", cJSON_Print(jsonv1beta1_run_as_user_strategy_options_1)); - v1beta1_run_as_user_strategy_options_t* v1beta1_run_as_user_strategy_options_2 = v1beta1_run_as_user_strategy_options_parseFromJSON(jsonv1beta1_run_as_user_strategy_options_1); - cJSON* jsonv1beta1_run_as_user_strategy_options_2 = v1beta1_run_as_user_strategy_options_convertToJSON(v1beta1_run_as_user_strategy_options_2); - printf("repeating v1beta1_run_as_user_strategy_options:\n%s\n", cJSON_Print(jsonv1beta1_run_as_user_strategy_options_2)); -} - -int main() { - test_v1beta1_run_as_user_strategy_options(1); - test_v1beta1_run_as_user_strategy_options(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_run_as_user_strategy_options_MAIN -#endif // v1beta1_run_as_user_strategy_options_TEST diff --git a/kubernetes/unit-test/test_v1beta1_runtime_class.c b/kubernetes/unit-test/test_v1beta1_runtime_class.c deleted file mode 100644 index 6ba7a91..0000000 --- a/kubernetes/unit-test/test_v1beta1_runtime_class.c +++ /dev/null @@ -1,74 +0,0 @@ -#ifndef v1beta1_runtime_class_TEST -#define v1beta1_runtime_class_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_runtime_class_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_runtime_class.h" -v1beta1_runtime_class_t* instantiate_v1beta1_runtime_class(int include_optional); - -#include "test_v1_object_meta.c" -#include "test_v1beta1_overhead.c" -#include "test_v1beta1_scheduling.c" - - -v1beta1_runtime_class_t* instantiate_v1beta1_runtime_class(int include_optional) { - v1beta1_runtime_class_t* v1beta1_runtime_class = NULL; - if (include_optional) { - v1beta1_runtime_class = v1beta1_runtime_class_create( - "0", - "0", - "0", - // false, not to have infinite recursion - instantiate_v1_object_meta(0), - // false, not to have infinite recursion - instantiate_v1beta1_overhead(0), - // false, not to have infinite recursion - instantiate_v1beta1_scheduling(0) - ); - } else { - v1beta1_runtime_class = v1beta1_runtime_class_create( - "0", - "0", - "0", - NULL, - NULL, - NULL - ); - } - - return v1beta1_runtime_class; -} - - -#ifdef v1beta1_runtime_class_MAIN - -void test_v1beta1_runtime_class(int include_optional) { - v1beta1_runtime_class_t* v1beta1_runtime_class_1 = instantiate_v1beta1_runtime_class(include_optional); - - cJSON* jsonv1beta1_runtime_class_1 = v1beta1_runtime_class_convertToJSON(v1beta1_runtime_class_1); - printf("v1beta1_runtime_class :\n%s\n", cJSON_Print(jsonv1beta1_runtime_class_1)); - v1beta1_runtime_class_t* v1beta1_runtime_class_2 = v1beta1_runtime_class_parseFromJSON(jsonv1beta1_runtime_class_1); - cJSON* jsonv1beta1_runtime_class_2 = v1beta1_runtime_class_convertToJSON(v1beta1_runtime_class_2); - printf("repeating v1beta1_runtime_class:\n%s\n", cJSON_Print(jsonv1beta1_runtime_class_2)); -} - -int main() { - test_v1beta1_runtime_class(1); - test_v1beta1_runtime_class(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_runtime_class_MAIN -#endif // v1beta1_runtime_class_TEST diff --git a/kubernetes/unit-test/test_v1beta1_runtime_class_list.c b/kubernetes/unit-test/test_v1beta1_runtime_class_list.c deleted file mode 100644 index d33b21c..0000000 --- a/kubernetes/unit-test/test_v1beta1_runtime_class_list.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v1beta1_runtime_class_list_TEST -#define v1beta1_runtime_class_list_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_runtime_class_list_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_runtime_class_list.h" -v1beta1_runtime_class_list_t* instantiate_v1beta1_runtime_class_list(int include_optional); - -#include "test_v1_list_meta.c" - - -v1beta1_runtime_class_list_t* instantiate_v1beta1_runtime_class_list(int include_optional) { - v1beta1_runtime_class_list_t* v1beta1_runtime_class_list = NULL; - if (include_optional) { - v1beta1_runtime_class_list = v1beta1_runtime_class_list_create( - "0", - list_createList(), - "0", - // false, not to have infinite recursion - instantiate_v1_list_meta(0) - ); - } else { - v1beta1_runtime_class_list = v1beta1_runtime_class_list_create( - "0", - list_createList(), - "0", - NULL - ); - } - - return v1beta1_runtime_class_list; -} - - -#ifdef v1beta1_runtime_class_list_MAIN - -void test_v1beta1_runtime_class_list(int include_optional) { - v1beta1_runtime_class_list_t* v1beta1_runtime_class_list_1 = instantiate_v1beta1_runtime_class_list(include_optional); - - cJSON* jsonv1beta1_runtime_class_list_1 = v1beta1_runtime_class_list_convertToJSON(v1beta1_runtime_class_list_1); - printf("v1beta1_runtime_class_list :\n%s\n", cJSON_Print(jsonv1beta1_runtime_class_list_1)); - v1beta1_runtime_class_list_t* v1beta1_runtime_class_list_2 = v1beta1_runtime_class_list_parseFromJSON(jsonv1beta1_runtime_class_list_1); - cJSON* jsonv1beta1_runtime_class_list_2 = v1beta1_runtime_class_list_convertToJSON(v1beta1_runtime_class_list_2); - printf("repeating v1beta1_runtime_class_list:\n%s\n", cJSON_Print(jsonv1beta1_runtime_class_list_2)); -} - -int main() { - test_v1beta1_runtime_class_list(1); - test_v1beta1_runtime_class_list(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_runtime_class_list_MAIN -#endif // v1beta1_runtime_class_list_TEST diff --git a/kubernetes/unit-test/test_v1beta1_runtime_class_strategy_options.c b/kubernetes/unit-test/test_v1beta1_runtime_class_strategy_options.c deleted file mode 100644 index 910a862..0000000 --- a/kubernetes/unit-test/test_v1beta1_runtime_class_strategy_options.c +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef v1beta1_runtime_class_strategy_options_TEST -#define v1beta1_runtime_class_strategy_options_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_runtime_class_strategy_options_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_runtime_class_strategy_options.h" -v1beta1_runtime_class_strategy_options_t* instantiate_v1beta1_runtime_class_strategy_options(int include_optional); - - - -v1beta1_runtime_class_strategy_options_t* instantiate_v1beta1_runtime_class_strategy_options(int include_optional) { - v1beta1_runtime_class_strategy_options_t* v1beta1_runtime_class_strategy_options = NULL; - if (include_optional) { - v1beta1_runtime_class_strategy_options = v1beta1_runtime_class_strategy_options_create( - list_createList(), - "0" - ); - } else { - v1beta1_runtime_class_strategy_options = v1beta1_runtime_class_strategy_options_create( - list_createList(), - "0" - ); - } - - return v1beta1_runtime_class_strategy_options; -} - - -#ifdef v1beta1_runtime_class_strategy_options_MAIN - -void test_v1beta1_runtime_class_strategy_options(int include_optional) { - v1beta1_runtime_class_strategy_options_t* v1beta1_runtime_class_strategy_options_1 = instantiate_v1beta1_runtime_class_strategy_options(include_optional); - - cJSON* jsonv1beta1_runtime_class_strategy_options_1 = v1beta1_runtime_class_strategy_options_convertToJSON(v1beta1_runtime_class_strategy_options_1); - printf("v1beta1_runtime_class_strategy_options :\n%s\n", cJSON_Print(jsonv1beta1_runtime_class_strategy_options_1)); - v1beta1_runtime_class_strategy_options_t* v1beta1_runtime_class_strategy_options_2 = v1beta1_runtime_class_strategy_options_parseFromJSON(jsonv1beta1_runtime_class_strategy_options_1); - cJSON* jsonv1beta1_runtime_class_strategy_options_2 = v1beta1_runtime_class_strategy_options_convertToJSON(v1beta1_runtime_class_strategy_options_2); - printf("repeating v1beta1_runtime_class_strategy_options:\n%s\n", cJSON_Print(jsonv1beta1_runtime_class_strategy_options_2)); -} - -int main() { - test_v1beta1_runtime_class_strategy_options(1); - test_v1beta1_runtime_class_strategy_options(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_runtime_class_strategy_options_MAIN -#endif // v1beta1_runtime_class_strategy_options_TEST diff --git a/kubernetes/unit-test/test_v1beta1_scheduling.c b/kubernetes/unit-test/test_v1beta1_scheduling.c deleted file mode 100644 index a1a771a..0000000 --- a/kubernetes/unit-test/test_v1beta1_scheduling.c +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef v1beta1_scheduling_TEST -#define v1beta1_scheduling_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_scheduling_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_scheduling.h" -v1beta1_scheduling_t* instantiate_v1beta1_scheduling(int include_optional); - - - -v1beta1_scheduling_t* instantiate_v1beta1_scheduling(int include_optional) { - v1beta1_scheduling_t* v1beta1_scheduling = NULL; - if (include_optional) { - v1beta1_scheduling = v1beta1_scheduling_create( - list_createList(), - list_createList() - ); - } else { - v1beta1_scheduling = v1beta1_scheduling_create( - list_createList(), - list_createList() - ); - } - - return v1beta1_scheduling; -} - - -#ifdef v1beta1_scheduling_MAIN - -void test_v1beta1_scheduling(int include_optional) { - v1beta1_scheduling_t* v1beta1_scheduling_1 = instantiate_v1beta1_scheduling(include_optional); - - cJSON* jsonv1beta1_scheduling_1 = v1beta1_scheduling_convertToJSON(v1beta1_scheduling_1); - printf("v1beta1_scheduling :\n%s\n", cJSON_Print(jsonv1beta1_scheduling_1)); - v1beta1_scheduling_t* v1beta1_scheduling_2 = v1beta1_scheduling_parseFromJSON(jsonv1beta1_scheduling_1); - cJSON* jsonv1beta1_scheduling_2 = v1beta1_scheduling_convertToJSON(v1beta1_scheduling_2); - printf("repeating v1beta1_scheduling:\n%s\n", cJSON_Print(jsonv1beta1_scheduling_2)); -} - -int main() { - test_v1beta1_scheduling(1); - test_v1beta1_scheduling(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_scheduling_MAIN -#endif // v1beta1_scheduling_TEST diff --git a/kubernetes/unit-test/test_v1beta1_se_linux_strategy_options.c b/kubernetes/unit-test/test_v1beta1_se_linux_strategy_options.c deleted file mode 100644 index f45650c..0000000 --- a/kubernetes/unit-test/test_v1beta1_se_linux_strategy_options.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v1beta1_se_linux_strategy_options_TEST -#define v1beta1_se_linux_strategy_options_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_se_linux_strategy_options_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_se_linux_strategy_options.h" -v1beta1_se_linux_strategy_options_t* instantiate_v1beta1_se_linux_strategy_options(int include_optional); - -#include "test_v1_se_linux_options.c" - - -v1beta1_se_linux_strategy_options_t* instantiate_v1beta1_se_linux_strategy_options(int include_optional) { - v1beta1_se_linux_strategy_options_t* v1beta1_se_linux_strategy_options = NULL; - if (include_optional) { - v1beta1_se_linux_strategy_options = v1beta1_se_linux_strategy_options_create( - "0", - // false, not to have infinite recursion - instantiate_v1_se_linux_options(0) - ); - } else { - v1beta1_se_linux_strategy_options = v1beta1_se_linux_strategy_options_create( - "0", - NULL - ); - } - - return v1beta1_se_linux_strategy_options; -} - - -#ifdef v1beta1_se_linux_strategy_options_MAIN - -void test_v1beta1_se_linux_strategy_options(int include_optional) { - v1beta1_se_linux_strategy_options_t* v1beta1_se_linux_strategy_options_1 = instantiate_v1beta1_se_linux_strategy_options(include_optional); - - cJSON* jsonv1beta1_se_linux_strategy_options_1 = v1beta1_se_linux_strategy_options_convertToJSON(v1beta1_se_linux_strategy_options_1); - printf("v1beta1_se_linux_strategy_options :\n%s\n", cJSON_Print(jsonv1beta1_se_linux_strategy_options_1)); - v1beta1_se_linux_strategy_options_t* v1beta1_se_linux_strategy_options_2 = v1beta1_se_linux_strategy_options_parseFromJSON(jsonv1beta1_se_linux_strategy_options_1); - cJSON* jsonv1beta1_se_linux_strategy_options_2 = v1beta1_se_linux_strategy_options_convertToJSON(v1beta1_se_linux_strategy_options_2); - printf("repeating v1beta1_se_linux_strategy_options:\n%s\n", cJSON_Print(jsonv1beta1_se_linux_strategy_options_2)); -} - -int main() { - test_v1beta1_se_linux_strategy_options(1); - test_v1beta1_se_linux_strategy_options(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_se_linux_strategy_options_MAIN -#endif // v1beta1_se_linux_strategy_options_TEST diff --git a/kubernetes/unit-test/test_v1beta1_supplemental_groups_strategy_options.c b/kubernetes/unit-test/test_v1beta1_supplemental_groups_strategy_options.c deleted file mode 100644 index 8d3b100..0000000 --- a/kubernetes/unit-test/test_v1beta1_supplemental_groups_strategy_options.c +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef v1beta1_supplemental_groups_strategy_options_TEST -#define v1beta1_supplemental_groups_strategy_options_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_supplemental_groups_strategy_options_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_supplemental_groups_strategy_options.h" -v1beta1_supplemental_groups_strategy_options_t* instantiate_v1beta1_supplemental_groups_strategy_options(int include_optional); - - - -v1beta1_supplemental_groups_strategy_options_t* instantiate_v1beta1_supplemental_groups_strategy_options(int include_optional) { - v1beta1_supplemental_groups_strategy_options_t* v1beta1_supplemental_groups_strategy_options = NULL; - if (include_optional) { - v1beta1_supplemental_groups_strategy_options = v1beta1_supplemental_groups_strategy_options_create( - list_createList(), - "0" - ); - } else { - v1beta1_supplemental_groups_strategy_options = v1beta1_supplemental_groups_strategy_options_create( - list_createList(), - "0" - ); - } - - return v1beta1_supplemental_groups_strategy_options; -} - - -#ifdef v1beta1_supplemental_groups_strategy_options_MAIN - -void test_v1beta1_supplemental_groups_strategy_options(int include_optional) { - v1beta1_supplemental_groups_strategy_options_t* v1beta1_supplemental_groups_strategy_options_1 = instantiate_v1beta1_supplemental_groups_strategy_options(include_optional); - - cJSON* jsonv1beta1_supplemental_groups_strategy_options_1 = v1beta1_supplemental_groups_strategy_options_convertToJSON(v1beta1_supplemental_groups_strategy_options_1); - printf("v1beta1_supplemental_groups_strategy_options :\n%s\n", cJSON_Print(jsonv1beta1_supplemental_groups_strategy_options_1)); - v1beta1_supplemental_groups_strategy_options_t* v1beta1_supplemental_groups_strategy_options_2 = v1beta1_supplemental_groups_strategy_options_parseFromJSON(jsonv1beta1_supplemental_groups_strategy_options_1); - cJSON* jsonv1beta1_supplemental_groups_strategy_options_2 = v1beta1_supplemental_groups_strategy_options_convertToJSON(v1beta1_supplemental_groups_strategy_options_2); - printf("repeating v1beta1_supplemental_groups_strategy_options:\n%s\n", cJSON_Print(jsonv1beta1_supplemental_groups_strategy_options_2)); -} - -int main() { - test_v1beta1_supplemental_groups_strategy_options(1); - test_v1beta1_supplemental_groups_strategy_options(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_supplemental_groups_strategy_options_MAIN -#endif // v1beta1_supplemental_groups_strategy_options_TEST diff --git a/kubernetes/unit-test/test_v2beta1_container_resource_metric_source.c b/kubernetes/unit-test/test_v2beta1_container_resource_metric_source.c deleted file mode 100644 index 106116a..0000000 --- a/kubernetes/unit-test/test_v2beta1_container_resource_metric_source.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v2beta1_container_resource_metric_source_TEST -#define v2beta1_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 v2beta1_container_resource_metric_source_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta1_container_resource_metric_source.h" -v2beta1_container_resource_metric_source_t* instantiate_v2beta1_container_resource_metric_source(int include_optional); - - - -v2beta1_container_resource_metric_source_t* instantiate_v2beta1_container_resource_metric_source(int include_optional) { - v2beta1_container_resource_metric_source_t* v2beta1_container_resource_metric_source = NULL; - if (include_optional) { - v2beta1_container_resource_metric_source = v2beta1_container_resource_metric_source_create( - "0", - "0", - 56, - "0" - ); - } else { - v2beta1_container_resource_metric_source = v2beta1_container_resource_metric_source_create( - "0", - "0", - 56, - "0" - ); - } - - return v2beta1_container_resource_metric_source; -} - - -#ifdef v2beta1_container_resource_metric_source_MAIN - -void test_v2beta1_container_resource_metric_source(int include_optional) { - v2beta1_container_resource_metric_source_t* v2beta1_container_resource_metric_source_1 = instantiate_v2beta1_container_resource_metric_source(include_optional); - - cJSON* jsonv2beta1_container_resource_metric_source_1 = v2beta1_container_resource_metric_source_convertToJSON(v2beta1_container_resource_metric_source_1); - printf("v2beta1_container_resource_metric_source :\n%s\n", cJSON_Print(jsonv2beta1_container_resource_metric_source_1)); - v2beta1_container_resource_metric_source_t* v2beta1_container_resource_metric_source_2 = v2beta1_container_resource_metric_source_parseFromJSON(jsonv2beta1_container_resource_metric_source_1); - cJSON* jsonv2beta1_container_resource_metric_source_2 = v2beta1_container_resource_metric_source_convertToJSON(v2beta1_container_resource_metric_source_2); - printf("repeating v2beta1_container_resource_metric_source:\n%s\n", cJSON_Print(jsonv2beta1_container_resource_metric_source_2)); -} - -int main() { - test_v2beta1_container_resource_metric_source(1); - test_v2beta1_container_resource_metric_source(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta1_container_resource_metric_source_MAIN -#endif // v2beta1_container_resource_metric_source_TEST diff --git a/kubernetes/unit-test/test_v2beta1_container_resource_metric_status.c b/kubernetes/unit-test/test_v2beta1_container_resource_metric_status.c deleted file mode 100644 index 7cb621d..0000000 --- a/kubernetes/unit-test/test_v2beta1_container_resource_metric_status.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v2beta1_container_resource_metric_status_TEST -#define v2beta1_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 v2beta1_container_resource_metric_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta1_container_resource_metric_status.h" -v2beta1_container_resource_metric_status_t* instantiate_v2beta1_container_resource_metric_status(int include_optional); - - - -v2beta1_container_resource_metric_status_t* instantiate_v2beta1_container_resource_metric_status(int include_optional) { - v2beta1_container_resource_metric_status_t* v2beta1_container_resource_metric_status = NULL; - if (include_optional) { - v2beta1_container_resource_metric_status = v2beta1_container_resource_metric_status_create( - "0", - 56, - "0", - "0" - ); - } else { - v2beta1_container_resource_metric_status = v2beta1_container_resource_metric_status_create( - "0", - 56, - "0", - "0" - ); - } - - return v2beta1_container_resource_metric_status; -} - - -#ifdef v2beta1_container_resource_metric_status_MAIN - -void test_v2beta1_container_resource_metric_status(int include_optional) { - v2beta1_container_resource_metric_status_t* v2beta1_container_resource_metric_status_1 = instantiate_v2beta1_container_resource_metric_status(include_optional); - - cJSON* jsonv2beta1_container_resource_metric_status_1 = v2beta1_container_resource_metric_status_convertToJSON(v2beta1_container_resource_metric_status_1); - printf("v2beta1_container_resource_metric_status :\n%s\n", cJSON_Print(jsonv2beta1_container_resource_metric_status_1)); - v2beta1_container_resource_metric_status_t* v2beta1_container_resource_metric_status_2 = v2beta1_container_resource_metric_status_parseFromJSON(jsonv2beta1_container_resource_metric_status_1); - cJSON* jsonv2beta1_container_resource_metric_status_2 = v2beta1_container_resource_metric_status_convertToJSON(v2beta1_container_resource_metric_status_2); - printf("repeating v2beta1_container_resource_metric_status:\n%s\n", cJSON_Print(jsonv2beta1_container_resource_metric_status_2)); -} - -int main() { - test_v2beta1_container_resource_metric_status(1); - test_v2beta1_container_resource_metric_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta1_container_resource_metric_status_MAIN -#endif // v2beta1_container_resource_metric_status_TEST diff --git a/kubernetes/unit-test/test_v2beta1_cross_version_object_reference.c b/kubernetes/unit-test/test_v2beta1_cross_version_object_reference.c deleted file mode 100644 index 347d0af..0000000 --- a/kubernetes/unit-test/test_v2beta1_cross_version_object_reference.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v2beta1_cross_version_object_reference_TEST -#define v2beta1_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 v2beta1_cross_version_object_reference_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta1_cross_version_object_reference.h" -v2beta1_cross_version_object_reference_t* instantiate_v2beta1_cross_version_object_reference(int include_optional); - - - -v2beta1_cross_version_object_reference_t* instantiate_v2beta1_cross_version_object_reference(int include_optional) { - v2beta1_cross_version_object_reference_t* v2beta1_cross_version_object_reference = NULL; - if (include_optional) { - v2beta1_cross_version_object_reference = v2beta1_cross_version_object_reference_create( - "0", - "0", - "0" - ); - } else { - v2beta1_cross_version_object_reference = v2beta1_cross_version_object_reference_create( - "0", - "0", - "0" - ); - } - - return v2beta1_cross_version_object_reference; -} - - -#ifdef v2beta1_cross_version_object_reference_MAIN - -void test_v2beta1_cross_version_object_reference(int include_optional) { - v2beta1_cross_version_object_reference_t* v2beta1_cross_version_object_reference_1 = instantiate_v2beta1_cross_version_object_reference(include_optional); - - cJSON* jsonv2beta1_cross_version_object_reference_1 = v2beta1_cross_version_object_reference_convertToJSON(v2beta1_cross_version_object_reference_1); - printf("v2beta1_cross_version_object_reference :\n%s\n", cJSON_Print(jsonv2beta1_cross_version_object_reference_1)); - v2beta1_cross_version_object_reference_t* v2beta1_cross_version_object_reference_2 = v2beta1_cross_version_object_reference_parseFromJSON(jsonv2beta1_cross_version_object_reference_1); - cJSON* jsonv2beta1_cross_version_object_reference_2 = v2beta1_cross_version_object_reference_convertToJSON(v2beta1_cross_version_object_reference_2); - printf("repeating v2beta1_cross_version_object_reference:\n%s\n", cJSON_Print(jsonv2beta1_cross_version_object_reference_2)); -} - -int main() { - test_v2beta1_cross_version_object_reference(1); - test_v2beta1_cross_version_object_reference(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta1_cross_version_object_reference_MAIN -#endif // v2beta1_cross_version_object_reference_TEST diff --git a/kubernetes/unit-test/test_v2beta1_external_metric_source.c b/kubernetes/unit-test/test_v2beta1_external_metric_source.c deleted file mode 100644 index c3117f4..0000000 --- a/kubernetes/unit-test/test_v2beta1_external_metric_source.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v2beta1_external_metric_source_TEST -#define v2beta1_external_metric_source_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta1_external_metric_source_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta1_external_metric_source.h" -v2beta1_external_metric_source_t* instantiate_v2beta1_external_metric_source(int include_optional); - -#include "test_v1_label_selector.c" - - -v2beta1_external_metric_source_t* instantiate_v2beta1_external_metric_source(int include_optional) { - v2beta1_external_metric_source_t* v2beta1_external_metric_source = NULL; - if (include_optional) { - v2beta1_external_metric_source = v2beta1_external_metric_source_create( - "0", - // false, not to have infinite recursion - instantiate_v1_label_selector(0), - "0", - "0" - ); - } else { - v2beta1_external_metric_source = v2beta1_external_metric_source_create( - "0", - NULL, - "0", - "0" - ); - } - - return v2beta1_external_metric_source; -} - - -#ifdef v2beta1_external_metric_source_MAIN - -void test_v2beta1_external_metric_source(int include_optional) { - v2beta1_external_metric_source_t* v2beta1_external_metric_source_1 = instantiate_v2beta1_external_metric_source(include_optional); - - cJSON* jsonv2beta1_external_metric_source_1 = v2beta1_external_metric_source_convertToJSON(v2beta1_external_metric_source_1); - printf("v2beta1_external_metric_source :\n%s\n", cJSON_Print(jsonv2beta1_external_metric_source_1)); - v2beta1_external_metric_source_t* v2beta1_external_metric_source_2 = v2beta1_external_metric_source_parseFromJSON(jsonv2beta1_external_metric_source_1); - cJSON* jsonv2beta1_external_metric_source_2 = v2beta1_external_metric_source_convertToJSON(v2beta1_external_metric_source_2); - printf("repeating v2beta1_external_metric_source:\n%s\n", cJSON_Print(jsonv2beta1_external_metric_source_2)); -} - -int main() { - test_v2beta1_external_metric_source(1); - test_v2beta1_external_metric_source(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta1_external_metric_source_MAIN -#endif // v2beta1_external_metric_source_TEST diff --git a/kubernetes/unit-test/test_v2beta1_external_metric_status.c b/kubernetes/unit-test/test_v2beta1_external_metric_status.c deleted file mode 100644 index 80f9178..0000000 --- a/kubernetes/unit-test/test_v2beta1_external_metric_status.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v2beta1_external_metric_status_TEST -#define v2beta1_external_metric_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta1_external_metric_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta1_external_metric_status.h" -v2beta1_external_metric_status_t* instantiate_v2beta1_external_metric_status(int include_optional); - -#include "test_v1_label_selector.c" - - -v2beta1_external_metric_status_t* instantiate_v2beta1_external_metric_status(int include_optional) { - v2beta1_external_metric_status_t* v2beta1_external_metric_status = NULL; - if (include_optional) { - v2beta1_external_metric_status = v2beta1_external_metric_status_create( - "0", - "0", - "0", - // false, not to have infinite recursion - instantiate_v1_label_selector(0) - ); - } else { - v2beta1_external_metric_status = v2beta1_external_metric_status_create( - "0", - "0", - "0", - NULL - ); - } - - return v2beta1_external_metric_status; -} - - -#ifdef v2beta1_external_metric_status_MAIN - -void test_v2beta1_external_metric_status(int include_optional) { - v2beta1_external_metric_status_t* v2beta1_external_metric_status_1 = instantiate_v2beta1_external_metric_status(include_optional); - - cJSON* jsonv2beta1_external_metric_status_1 = v2beta1_external_metric_status_convertToJSON(v2beta1_external_metric_status_1); - printf("v2beta1_external_metric_status :\n%s\n", cJSON_Print(jsonv2beta1_external_metric_status_1)); - v2beta1_external_metric_status_t* v2beta1_external_metric_status_2 = v2beta1_external_metric_status_parseFromJSON(jsonv2beta1_external_metric_status_1); - cJSON* jsonv2beta1_external_metric_status_2 = v2beta1_external_metric_status_convertToJSON(v2beta1_external_metric_status_2); - printf("repeating v2beta1_external_metric_status:\n%s\n", cJSON_Print(jsonv2beta1_external_metric_status_2)); -} - -int main() { - test_v2beta1_external_metric_status(1); - test_v2beta1_external_metric_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta1_external_metric_status_MAIN -#endif // v2beta1_external_metric_status_TEST diff --git a/kubernetes/unit-test/test_v2beta1_horizontal_pod_autoscaler.c b/kubernetes/unit-test/test_v2beta1_horizontal_pod_autoscaler.c deleted file mode 100644 index 1a64480..0000000 --- a/kubernetes/unit-test/test_v2beta1_horizontal_pod_autoscaler.c +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef v2beta1_horizontal_pod_autoscaler_TEST -#define v2beta1_horizontal_pod_autoscaler_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta1_horizontal_pod_autoscaler_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta1_horizontal_pod_autoscaler.h" -v2beta1_horizontal_pod_autoscaler_t* instantiate_v2beta1_horizontal_pod_autoscaler(int include_optional); - -#include "test_v1_object_meta.c" -#include "test_v2beta1_horizontal_pod_autoscaler_spec.c" -#include "test_v2beta1_horizontal_pod_autoscaler_status.c" - - -v2beta1_horizontal_pod_autoscaler_t* instantiate_v2beta1_horizontal_pod_autoscaler(int include_optional) { - v2beta1_horizontal_pod_autoscaler_t* v2beta1_horizontal_pod_autoscaler = NULL; - if (include_optional) { - v2beta1_horizontal_pod_autoscaler = v2beta1_horizontal_pod_autoscaler_create( - "0", - "0", - // false, not to have infinite recursion - instantiate_v1_object_meta(0), - // false, not to have infinite recursion - instantiate_v2beta1_horizontal_pod_autoscaler_spec(0), - // false, not to have infinite recursion - instantiate_v2beta1_horizontal_pod_autoscaler_status(0) - ); - } else { - v2beta1_horizontal_pod_autoscaler = v2beta1_horizontal_pod_autoscaler_create( - "0", - "0", - NULL, - NULL, - NULL - ); - } - - return v2beta1_horizontal_pod_autoscaler; -} - - -#ifdef v2beta1_horizontal_pod_autoscaler_MAIN - -void test_v2beta1_horizontal_pod_autoscaler(int include_optional) { - v2beta1_horizontal_pod_autoscaler_t* v2beta1_horizontal_pod_autoscaler_1 = instantiate_v2beta1_horizontal_pod_autoscaler(include_optional); - - cJSON* jsonv2beta1_horizontal_pod_autoscaler_1 = v2beta1_horizontal_pod_autoscaler_convertToJSON(v2beta1_horizontal_pod_autoscaler_1); - printf("v2beta1_horizontal_pod_autoscaler :\n%s\n", cJSON_Print(jsonv2beta1_horizontal_pod_autoscaler_1)); - v2beta1_horizontal_pod_autoscaler_t* v2beta1_horizontal_pod_autoscaler_2 = v2beta1_horizontal_pod_autoscaler_parseFromJSON(jsonv2beta1_horizontal_pod_autoscaler_1); - cJSON* jsonv2beta1_horizontal_pod_autoscaler_2 = v2beta1_horizontal_pod_autoscaler_convertToJSON(v2beta1_horizontal_pod_autoscaler_2); - printf("repeating v2beta1_horizontal_pod_autoscaler:\n%s\n", cJSON_Print(jsonv2beta1_horizontal_pod_autoscaler_2)); -} - -int main() { - test_v2beta1_horizontal_pod_autoscaler(1); - test_v2beta1_horizontal_pod_autoscaler(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta1_horizontal_pod_autoscaler_MAIN -#endif // v2beta1_horizontal_pod_autoscaler_TEST diff --git a/kubernetes/unit-test/test_v2beta1_horizontal_pod_autoscaler_condition.c b/kubernetes/unit-test/test_v2beta1_horizontal_pod_autoscaler_condition.c deleted file mode 100644 index d9eb5b3..0000000 --- a/kubernetes/unit-test/test_v2beta1_horizontal_pod_autoscaler_condition.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v2beta1_horizontal_pod_autoscaler_condition_TEST -#define v2beta1_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 v2beta1_horizontal_pod_autoscaler_condition_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta1_horizontal_pod_autoscaler_condition.h" -v2beta1_horizontal_pod_autoscaler_condition_t* instantiate_v2beta1_horizontal_pod_autoscaler_condition(int include_optional); - - - -v2beta1_horizontal_pod_autoscaler_condition_t* instantiate_v2beta1_horizontal_pod_autoscaler_condition(int include_optional) { - v2beta1_horizontal_pod_autoscaler_condition_t* v2beta1_horizontal_pod_autoscaler_condition = NULL; - if (include_optional) { - v2beta1_horizontal_pod_autoscaler_condition = v2beta1_horizontal_pod_autoscaler_condition_create( - "2013-10-20T19:20:30+01:00", - "0", - "0", - "0", - "0" - ); - } else { - v2beta1_horizontal_pod_autoscaler_condition = v2beta1_horizontal_pod_autoscaler_condition_create( - "2013-10-20T19:20:30+01:00", - "0", - "0", - "0", - "0" - ); - } - - return v2beta1_horizontal_pod_autoscaler_condition; -} - - -#ifdef v2beta1_horizontal_pod_autoscaler_condition_MAIN - -void test_v2beta1_horizontal_pod_autoscaler_condition(int include_optional) { - v2beta1_horizontal_pod_autoscaler_condition_t* v2beta1_horizontal_pod_autoscaler_condition_1 = instantiate_v2beta1_horizontal_pod_autoscaler_condition(include_optional); - - cJSON* jsonv2beta1_horizontal_pod_autoscaler_condition_1 = v2beta1_horizontal_pod_autoscaler_condition_convertToJSON(v2beta1_horizontal_pod_autoscaler_condition_1); - printf("v2beta1_horizontal_pod_autoscaler_condition :\n%s\n", cJSON_Print(jsonv2beta1_horizontal_pod_autoscaler_condition_1)); - v2beta1_horizontal_pod_autoscaler_condition_t* v2beta1_horizontal_pod_autoscaler_condition_2 = v2beta1_horizontal_pod_autoscaler_condition_parseFromJSON(jsonv2beta1_horizontal_pod_autoscaler_condition_1); - cJSON* jsonv2beta1_horizontal_pod_autoscaler_condition_2 = v2beta1_horizontal_pod_autoscaler_condition_convertToJSON(v2beta1_horizontal_pod_autoscaler_condition_2); - printf("repeating v2beta1_horizontal_pod_autoscaler_condition:\n%s\n", cJSON_Print(jsonv2beta1_horizontal_pod_autoscaler_condition_2)); -} - -int main() { - test_v2beta1_horizontal_pod_autoscaler_condition(1); - test_v2beta1_horizontal_pod_autoscaler_condition(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta1_horizontal_pod_autoscaler_condition_MAIN -#endif // v2beta1_horizontal_pod_autoscaler_condition_TEST diff --git a/kubernetes/unit-test/test_v2beta1_horizontal_pod_autoscaler_list.c b/kubernetes/unit-test/test_v2beta1_horizontal_pod_autoscaler_list.c deleted file mode 100644 index 21f981b..0000000 --- a/kubernetes/unit-test/test_v2beta1_horizontal_pod_autoscaler_list.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v2beta1_horizontal_pod_autoscaler_list_TEST -#define v2beta1_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 v2beta1_horizontal_pod_autoscaler_list_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta1_horizontal_pod_autoscaler_list.h" -v2beta1_horizontal_pod_autoscaler_list_t* instantiate_v2beta1_horizontal_pod_autoscaler_list(int include_optional); - -#include "test_v1_list_meta.c" - - -v2beta1_horizontal_pod_autoscaler_list_t* instantiate_v2beta1_horizontal_pod_autoscaler_list(int include_optional) { - v2beta1_horizontal_pod_autoscaler_list_t* v2beta1_horizontal_pod_autoscaler_list = NULL; - if (include_optional) { - v2beta1_horizontal_pod_autoscaler_list = v2beta1_horizontal_pod_autoscaler_list_create( - "0", - list_createList(), - "0", - // false, not to have infinite recursion - instantiate_v1_list_meta(0) - ); - } else { - v2beta1_horizontal_pod_autoscaler_list = v2beta1_horizontal_pod_autoscaler_list_create( - "0", - list_createList(), - "0", - NULL - ); - } - - return v2beta1_horizontal_pod_autoscaler_list; -} - - -#ifdef v2beta1_horizontal_pod_autoscaler_list_MAIN - -void test_v2beta1_horizontal_pod_autoscaler_list(int include_optional) { - v2beta1_horizontal_pod_autoscaler_list_t* v2beta1_horizontal_pod_autoscaler_list_1 = instantiate_v2beta1_horizontal_pod_autoscaler_list(include_optional); - - cJSON* jsonv2beta1_horizontal_pod_autoscaler_list_1 = v2beta1_horizontal_pod_autoscaler_list_convertToJSON(v2beta1_horizontal_pod_autoscaler_list_1); - printf("v2beta1_horizontal_pod_autoscaler_list :\n%s\n", cJSON_Print(jsonv2beta1_horizontal_pod_autoscaler_list_1)); - v2beta1_horizontal_pod_autoscaler_list_t* v2beta1_horizontal_pod_autoscaler_list_2 = v2beta1_horizontal_pod_autoscaler_list_parseFromJSON(jsonv2beta1_horizontal_pod_autoscaler_list_1); - cJSON* jsonv2beta1_horizontal_pod_autoscaler_list_2 = v2beta1_horizontal_pod_autoscaler_list_convertToJSON(v2beta1_horizontal_pod_autoscaler_list_2); - printf("repeating v2beta1_horizontal_pod_autoscaler_list:\n%s\n", cJSON_Print(jsonv2beta1_horizontal_pod_autoscaler_list_2)); -} - -int main() { - test_v2beta1_horizontal_pod_autoscaler_list(1); - test_v2beta1_horizontal_pod_autoscaler_list(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta1_horizontal_pod_autoscaler_list_MAIN -#endif // v2beta1_horizontal_pod_autoscaler_list_TEST diff --git a/kubernetes/unit-test/test_v2beta1_horizontal_pod_autoscaler_spec.c b/kubernetes/unit-test/test_v2beta1_horizontal_pod_autoscaler_spec.c deleted file mode 100644 index 5fb6d3a..0000000 --- a/kubernetes/unit-test/test_v2beta1_horizontal_pod_autoscaler_spec.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v2beta1_horizontal_pod_autoscaler_spec_TEST -#define v2beta1_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 v2beta1_horizontal_pod_autoscaler_spec_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta1_horizontal_pod_autoscaler_spec.h" -v2beta1_horizontal_pod_autoscaler_spec_t* instantiate_v2beta1_horizontal_pod_autoscaler_spec(int include_optional); - -#include "test_v2beta1_cross_version_object_reference.c" - - -v2beta1_horizontal_pod_autoscaler_spec_t* instantiate_v2beta1_horizontal_pod_autoscaler_spec(int include_optional) { - v2beta1_horizontal_pod_autoscaler_spec_t* v2beta1_horizontal_pod_autoscaler_spec = NULL; - if (include_optional) { - v2beta1_horizontal_pod_autoscaler_spec = v2beta1_horizontal_pod_autoscaler_spec_create( - 56, - list_createList(), - 56, - // false, not to have infinite recursion - instantiate_v2beta1_cross_version_object_reference(0) - ); - } else { - v2beta1_horizontal_pod_autoscaler_spec = v2beta1_horizontal_pod_autoscaler_spec_create( - 56, - list_createList(), - 56, - NULL - ); - } - - return v2beta1_horizontal_pod_autoscaler_spec; -} - - -#ifdef v2beta1_horizontal_pod_autoscaler_spec_MAIN - -void test_v2beta1_horizontal_pod_autoscaler_spec(int include_optional) { - v2beta1_horizontal_pod_autoscaler_spec_t* v2beta1_horizontal_pod_autoscaler_spec_1 = instantiate_v2beta1_horizontal_pod_autoscaler_spec(include_optional); - - cJSON* jsonv2beta1_horizontal_pod_autoscaler_spec_1 = v2beta1_horizontal_pod_autoscaler_spec_convertToJSON(v2beta1_horizontal_pod_autoscaler_spec_1); - printf("v2beta1_horizontal_pod_autoscaler_spec :\n%s\n", cJSON_Print(jsonv2beta1_horizontal_pod_autoscaler_spec_1)); - v2beta1_horizontal_pod_autoscaler_spec_t* v2beta1_horizontal_pod_autoscaler_spec_2 = v2beta1_horizontal_pod_autoscaler_spec_parseFromJSON(jsonv2beta1_horizontal_pod_autoscaler_spec_1); - cJSON* jsonv2beta1_horizontal_pod_autoscaler_spec_2 = v2beta1_horizontal_pod_autoscaler_spec_convertToJSON(v2beta1_horizontal_pod_autoscaler_spec_2); - printf("repeating v2beta1_horizontal_pod_autoscaler_spec:\n%s\n", cJSON_Print(jsonv2beta1_horizontal_pod_autoscaler_spec_2)); -} - -int main() { - test_v2beta1_horizontal_pod_autoscaler_spec(1); - test_v2beta1_horizontal_pod_autoscaler_spec(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta1_horizontal_pod_autoscaler_spec_MAIN -#endif // v2beta1_horizontal_pod_autoscaler_spec_TEST diff --git a/kubernetes/unit-test/test_v2beta1_horizontal_pod_autoscaler_status.c b/kubernetes/unit-test/test_v2beta1_horizontal_pod_autoscaler_status.c deleted file mode 100644 index 2c53a64..0000000 --- a/kubernetes/unit-test/test_v2beta1_horizontal_pod_autoscaler_status.c +++ /dev/null @@ -1,68 +0,0 @@ -#ifndef v2beta1_horizontal_pod_autoscaler_status_TEST -#define v2beta1_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 v2beta1_horizontal_pod_autoscaler_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta1_horizontal_pod_autoscaler_status.h" -v2beta1_horizontal_pod_autoscaler_status_t* instantiate_v2beta1_horizontal_pod_autoscaler_status(int include_optional); - - - -v2beta1_horizontal_pod_autoscaler_status_t* instantiate_v2beta1_horizontal_pod_autoscaler_status(int include_optional) { - v2beta1_horizontal_pod_autoscaler_status_t* v2beta1_horizontal_pod_autoscaler_status = NULL; - if (include_optional) { - v2beta1_horizontal_pod_autoscaler_status = v2beta1_horizontal_pod_autoscaler_status_create( - list_createList(), - list_createList(), - 56, - 56, - "2013-10-20T19:20:30+01:00", - 56 - ); - } else { - v2beta1_horizontal_pod_autoscaler_status = v2beta1_horizontal_pod_autoscaler_status_create( - list_createList(), - list_createList(), - 56, - 56, - "2013-10-20T19:20:30+01:00", - 56 - ); - } - - return v2beta1_horizontal_pod_autoscaler_status; -} - - -#ifdef v2beta1_horizontal_pod_autoscaler_status_MAIN - -void test_v2beta1_horizontal_pod_autoscaler_status(int include_optional) { - v2beta1_horizontal_pod_autoscaler_status_t* v2beta1_horizontal_pod_autoscaler_status_1 = instantiate_v2beta1_horizontal_pod_autoscaler_status(include_optional); - - cJSON* jsonv2beta1_horizontal_pod_autoscaler_status_1 = v2beta1_horizontal_pod_autoscaler_status_convertToJSON(v2beta1_horizontal_pod_autoscaler_status_1); - printf("v2beta1_horizontal_pod_autoscaler_status :\n%s\n", cJSON_Print(jsonv2beta1_horizontal_pod_autoscaler_status_1)); - v2beta1_horizontal_pod_autoscaler_status_t* v2beta1_horizontal_pod_autoscaler_status_2 = v2beta1_horizontal_pod_autoscaler_status_parseFromJSON(jsonv2beta1_horizontal_pod_autoscaler_status_1); - cJSON* jsonv2beta1_horizontal_pod_autoscaler_status_2 = v2beta1_horizontal_pod_autoscaler_status_convertToJSON(v2beta1_horizontal_pod_autoscaler_status_2); - printf("repeating v2beta1_horizontal_pod_autoscaler_status:\n%s\n", cJSON_Print(jsonv2beta1_horizontal_pod_autoscaler_status_2)); -} - -int main() { - test_v2beta1_horizontal_pod_autoscaler_status(1); - test_v2beta1_horizontal_pod_autoscaler_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta1_horizontal_pod_autoscaler_status_MAIN -#endif // v2beta1_horizontal_pod_autoscaler_status_TEST diff --git a/kubernetes/unit-test/test_v2beta1_metric_spec.c b/kubernetes/unit-test/test_v2beta1_metric_spec.c deleted file mode 100644 index add989a..0000000 --- a/kubernetes/unit-test/test_v2beta1_metric_spec.c +++ /dev/null @@ -1,78 +0,0 @@ -#ifndef v2beta1_metric_spec_TEST -#define v2beta1_metric_spec_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta1_metric_spec_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta1_metric_spec.h" -v2beta1_metric_spec_t* instantiate_v2beta1_metric_spec(int include_optional); - -#include "test_v2beta1_container_resource_metric_source.c" -#include "test_v2beta1_external_metric_source.c" -#include "test_v2beta1_object_metric_source.c" -#include "test_v2beta1_pods_metric_source.c" -#include "test_v2beta1_resource_metric_source.c" - - -v2beta1_metric_spec_t* instantiate_v2beta1_metric_spec(int include_optional) { - v2beta1_metric_spec_t* v2beta1_metric_spec = NULL; - if (include_optional) { - v2beta1_metric_spec = v2beta1_metric_spec_create( - // false, not to have infinite recursion - instantiate_v2beta1_container_resource_metric_source(0), - // false, not to have infinite recursion - instantiate_v2beta1_external_metric_source(0), - // false, not to have infinite recursion - instantiate_v2beta1_object_metric_source(0), - // false, not to have infinite recursion - instantiate_v2beta1_pods_metric_source(0), - // false, not to have infinite recursion - instantiate_v2beta1_resource_metric_source(0), - "0" - ); - } else { - v2beta1_metric_spec = v2beta1_metric_spec_create( - NULL, - NULL, - NULL, - NULL, - NULL, - "0" - ); - } - - return v2beta1_metric_spec; -} - - -#ifdef v2beta1_metric_spec_MAIN - -void test_v2beta1_metric_spec(int include_optional) { - v2beta1_metric_spec_t* v2beta1_metric_spec_1 = instantiate_v2beta1_metric_spec(include_optional); - - cJSON* jsonv2beta1_metric_spec_1 = v2beta1_metric_spec_convertToJSON(v2beta1_metric_spec_1); - printf("v2beta1_metric_spec :\n%s\n", cJSON_Print(jsonv2beta1_metric_spec_1)); - v2beta1_metric_spec_t* v2beta1_metric_spec_2 = v2beta1_metric_spec_parseFromJSON(jsonv2beta1_metric_spec_1); - cJSON* jsonv2beta1_metric_spec_2 = v2beta1_metric_spec_convertToJSON(v2beta1_metric_spec_2); - printf("repeating v2beta1_metric_spec:\n%s\n", cJSON_Print(jsonv2beta1_metric_spec_2)); -} - -int main() { - test_v2beta1_metric_spec(1); - test_v2beta1_metric_spec(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta1_metric_spec_MAIN -#endif // v2beta1_metric_spec_TEST diff --git a/kubernetes/unit-test/test_v2beta1_metric_status.c b/kubernetes/unit-test/test_v2beta1_metric_status.c deleted file mode 100644 index 9aee320..0000000 --- a/kubernetes/unit-test/test_v2beta1_metric_status.c +++ /dev/null @@ -1,78 +0,0 @@ -#ifndef v2beta1_metric_status_TEST -#define v2beta1_metric_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta1_metric_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta1_metric_status.h" -v2beta1_metric_status_t* instantiate_v2beta1_metric_status(int include_optional); - -#include "test_v2beta1_container_resource_metric_status.c" -#include "test_v2beta1_external_metric_status.c" -#include "test_v2beta1_object_metric_status.c" -#include "test_v2beta1_pods_metric_status.c" -#include "test_v2beta1_resource_metric_status.c" - - -v2beta1_metric_status_t* instantiate_v2beta1_metric_status(int include_optional) { - v2beta1_metric_status_t* v2beta1_metric_status = NULL; - if (include_optional) { - v2beta1_metric_status = v2beta1_metric_status_create( - // false, not to have infinite recursion - instantiate_v2beta1_container_resource_metric_status(0), - // false, not to have infinite recursion - instantiate_v2beta1_external_metric_status(0), - // false, not to have infinite recursion - instantiate_v2beta1_object_metric_status(0), - // false, not to have infinite recursion - instantiate_v2beta1_pods_metric_status(0), - // false, not to have infinite recursion - instantiate_v2beta1_resource_metric_status(0), - "0" - ); - } else { - v2beta1_metric_status = v2beta1_metric_status_create( - NULL, - NULL, - NULL, - NULL, - NULL, - "0" - ); - } - - return v2beta1_metric_status; -} - - -#ifdef v2beta1_metric_status_MAIN - -void test_v2beta1_metric_status(int include_optional) { - v2beta1_metric_status_t* v2beta1_metric_status_1 = instantiate_v2beta1_metric_status(include_optional); - - cJSON* jsonv2beta1_metric_status_1 = v2beta1_metric_status_convertToJSON(v2beta1_metric_status_1); - printf("v2beta1_metric_status :\n%s\n", cJSON_Print(jsonv2beta1_metric_status_1)); - v2beta1_metric_status_t* v2beta1_metric_status_2 = v2beta1_metric_status_parseFromJSON(jsonv2beta1_metric_status_1); - cJSON* jsonv2beta1_metric_status_2 = v2beta1_metric_status_convertToJSON(v2beta1_metric_status_2); - printf("repeating v2beta1_metric_status:\n%s\n", cJSON_Print(jsonv2beta1_metric_status_2)); -} - -int main() { - test_v2beta1_metric_status(1); - test_v2beta1_metric_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta1_metric_status_MAIN -#endif // v2beta1_metric_status_TEST diff --git a/kubernetes/unit-test/test_v2beta1_object_metric_source.c b/kubernetes/unit-test/test_v2beta1_object_metric_source.c deleted file mode 100644 index 1f86756..0000000 --- a/kubernetes/unit-test/test_v2beta1_object_metric_source.c +++ /dev/null @@ -1,70 +0,0 @@ -#ifndef v2beta1_object_metric_source_TEST -#define v2beta1_object_metric_source_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta1_object_metric_source_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta1_object_metric_source.h" -v2beta1_object_metric_source_t* instantiate_v2beta1_object_metric_source(int include_optional); - -#include "test_v1_label_selector.c" -#include "test_v2beta1_cross_version_object_reference.c" - - -v2beta1_object_metric_source_t* instantiate_v2beta1_object_metric_source(int include_optional) { - v2beta1_object_metric_source_t* v2beta1_object_metric_source = NULL; - if (include_optional) { - v2beta1_object_metric_source = v2beta1_object_metric_source_create( - "0", - "0", - // false, not to have infinite recursion - instantiate_v1_label_selector(0), - // false, not to have infinite recursion - instantiate_v2beta1_cross_version_object_reference(0), - "0" - ); - } else { - v2beta1_object_metric_source = v2beta1_object_metric_source_create( - "0", - "0", - NULL, - NULL, - "0" - ); - } - - return v2beta1_object_metric_source; -} - - -#ifdef v2beta1_object_metric_source_MAIN - -void test_v2beta1_object_metric_source(int include_optional) { - v2beta1_object_metric_source_t* v2beta1_object_metric_source_1 = instantiate_v2beta1_object_metric_source(include_optional); - - cJSON* jsonv2beta1_object_metric_source_1 = v2beta1_object_metric_source_convertToJSON(v2beta1_object_metric_source_1); - printf("v2beta1_object_metric_source :\n%s\n", cJSON_Print(jsonv2beta1_object_metric_source_1)); - v2beta1_object_metric_source_t* v2beta1_object_metric_source_2 = v2beta1_object_metric_source_parseFromJSON(jsonv2beta1_object_metric_source_1); - cJSON* jsonv2beta1_object_metric_source_2 = v2beta1_object_metric_source_convertToJSON(v2beta1_object_metric_source_2); - printf("repeating v2beta1_object_metric_source:\n%s\n", cJSON_Print(jsonv2beta1_object_metric_source_2)); -} - -int main() { - test_v2beta1_object_metric_source(1); - test_v2beta1_object_metric_source(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta1_object_metric_source_MAIN -#endif // v2beta1_object_metric_source_TEST diff --git a/kubernetes/unit-test/test_v2beta1_object_metric_status.c b/kubernetes/unit-test/test_v2beta1_object_metric_status.c deleted file mode 100644 index c3e1ce6..0000000 --- a/kubernetes/unit-test/test_v2beta1_object_metric_status.c +++ /dev/null @@ -1,70 +0,0 @@ -#ifndef v2beta1_object_metric_status_TEST -#define v2beta1_object_metric_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta1_object_metric_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta1_object_metric_status.h" -v2beta1_object_metric_status_t* instantiate_v2beta1_object_metric_status(int include_optional); - -#include "test_v1_label_selector.c" -#include "test_v2beta1_cross_version_object_reference.c" - - -v2beta1_object_metric_status_t* instantiate_v2beta1_object_metric_status(int include_optional) { - v2beta1_object_metric_status_t* v2beta1_object_metric_status = NULL; - if (include_optional) { - v2beta1_object_metric_status = v2beta1_object_metric_status_create( - "0", - "0", - "0", - // false, not to have infinite recursion - instantiate_v1_label_selector(0), - // false, not to have infinite recursion - instantiate_v2beta1_cross_version_object_reference(0) - ); - } else { - v2beta1_object_metric_status = v2beta1_object_metric_status_create( - "0", - "0", - "0", - NULL, - NULL - ); - } - - return v2beta1_object_metric_status; -} - - -#ifdef v2beta1_object_metric_status_MAIN - -void test_v2beta1_object_metric_status(int include_optional) { - v2beta1_object_metric_status_t* v2beta1_object_metric_status_1 = instantiate_v2beta1_object_metric_status(include_optional); - - cJSON* jsonv2beta1_object_metric_status_1 = v2beta1_object_metric_status_convertToJSON(v2beta1_object_metric_status_1); - printf("v2beta1_object_metric_status :\n%s\n", cJSON_Print(jsonv2beta1_object_metric_status_1)); - v2beta1_object_metric_status_t* v2beta1_object_metric_status_2 = v2beta1_object_metric_status_parseFromJSON(jsonv2beta1_object_metric_status_1); - cJSON* jsonv2beta1_object_metric_status_2 = v2beta1_object_metric_status_convertToJSON(v2beta1_object_metric_status_2); - printf("repeating v2beta1_object_metric_status:\n%s\n", cJSON_Print(jsonv2beta1_object_metric_status_2)); -} - -int main() { - test_v2beta1_object_metric_status(1); - test_v2beta1_object_metric_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta1_object_metric_status_MAIN -#endif // v2beta1_object_metric_status_TEST diff --git a/kubernetes/unit-test/test_v2beta1_pods_metric_source.c b/kubernetes/unit-test/test_v2beta1_pods_metric_source.c deleted file mode 100644 index 2cb067a..0000000 --- a/kubernetes/unit-test/test_v2beta1_pods_metric_source.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v2beta1_pods_metric_source_TEST -#define v2beta1_pods_metric_source_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta1_pods_metric_source_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta1_pods_metric_source.h" -v2beta1_pods_metric_source_t* instantiate_v2beta1_pods_metric_source(int include_optional); - -#include "test_v1_label_selector.c" - - -v2beta1_pods_metric_source_t* instantiate_v2beta1_pods_metric_source(int include_optional) { - v2beta1_pods_metric_source_t* v2beta1_pods_metric_source = NULL; - if (include_optional) { - v2beta1_pods_metric_source = v2beta1_pods_metric_source_create( - "0", - // false, not to have infinite recursion - instantiate_v1_label_selector(0), - "0" - ); - } else { - v2beta1_pods_metric_source = v2beta1_pods_metric_source_create( - "0", - NULL, - "0" - ); - } - - return v2beta1_pods_metric_source; -} - - -#ifdef v2beta1_pods_metric_source_MAIN - -void test_v2beta1_pods_metric_source(int include_optional) { - v2beta1_pods_metric_source_t* v2beta1_pods_metric_source_1 = instantiate_v2beta1_pods_metric_source(include_optional); - - cJSON* jsonv2beta1_pods_metric_source_1 = v2beta1_pods_metric_source_convertToJSON(v2beta1_pods_metric_source_1); - printf("v2beta1_pods_metric_source :\n%s\n", cJSON_Print(jsonv2beta1_pods_metric_source_1)); - v2beta1_pods_metric_source_t* v2beta1_pods_metric_source_2 = v2beta1_pods_metric_source_parseFromJSON(jsonv2beta1_pods_metric_source_1); - cJSON* jsonv2beta1_pods_metric_source_2 = v2beta1_pods_metric_source_convertToJSON(v2beta1_pods_metric_source_2); - printf("repeating v2beta1_pods_metric_source:\n%s\n", cJSON_Print(jsonv2beta1_pods_metric_source_2)); -} - -int main() { - test_v2beta1_pods_metric_source(1); - test_v2beta1_pods_metric_source(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta1_pods_metric_source_MAIN -#endif // v2beta1_pods_metric_source_TEST diff --git a/kubernetes/unit-test/test_v2beta1_pods_metric_status.c b/kubernetes/unit-test/test_v2beta1_pods_metric_status.c deleted file mode 100644 index c4374f7..0000000 --- a/kubernetes/unit-test/test_v2beta1_pods_metric_status.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v2beta1_pods_metric_status_TEST -#define v2beta1_pods_metric_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta1_pods_metric_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta1_pods_metric_status.h" -v2beta1_pods_metric_status_t* instantiate_v2beta1_pods_metric_status(int include_optional); - -#include "test_v1_label_selector.c" - - -v2beta1_pods_metric_status_t* instantiate_v2beta1_pods_metric_status(int include_optional) { - v2beta1_pods_metric_status_t* v2beta1_pods_metric_status = NULL; - if (include_optional) { - v2beta1_pods_metric_status = v2beta1_pods_metric_status_create( - "0", - "0", - // false, not to have infinite recursion - instantiate_v1_label_selector(0) - ); - } else { - v2beta1_pods_metric_status = v2beta1_pods_metric_status_create( - "0", - "0", - NULL - ); - } - - return v2beta1_pods_metric_status; -} - - -#ifdef v2beta1_pods_metric_status_MAIN - -void test_v2beta1_pods_metric_status(int include_optional) { - v2beta1_pods_metric_status_t* v2beta1_pods_metric_status_1 = instantiate_v2beta1_pods_metric_status(include_optional); - - cJSON* jsonv2beta1_pods_metric_status_1 = v2beta1_pods_metric_status_convertToJSON(v2beta1_pods_metric_status_1); - printf("v2beta1_pods_metric_status :\n%s\n", cJSON_Print(jsonv2beta1_pods_metric_status_1)); - v2beta1_pods_metric_status_t* v2beta1_pods_metric_status_2 = v2beta1_pods_metric_status_parseFromJSON(jsonv2beta1_pods_metric_status_1); - cJSON* jsonv2beta1_pods_metric_status_2 = v2beta1_pods_metric_status_convertToJSON(v2beta1_pods_metric_status_2); - printf("repeating v2beta1_pods_metric_status:\n%s\n", cJSON_Print(jsonv2beta1_pods_metric_status_2)); -} - -int main() { - test_v2beta1_pods_metric_status(1); - test_v2beta1_pods_metric_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta1_pods_metric_status_MAIN -#endif // v2beta1_pods_metric_status_TEST diff --git a/kubernetes/unit-test/test_v2beta1_resource_metric_source.c b/kubernetes/unit-test/test_v2beta1_resource_metric_source.c deleted file mode 100644 index e3100d9..0000000 --- a/kubernetes/unit-test/test_v2beta1_resource_metric_source.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v2beta1_resource_metric_source_TEST -#define v2beta1_resource_metric_source_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta1_resource_metric_source_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta1_resource_metric_source.h" -v2beta1_resource_metric_source_t* instantiate_v2beta1_resource_metric_source(int include_optional); - - - -v2beta1_resource_metric_source_t* instantiate_v2beta1_resource_metric_source(int include_optional) { - v2beta1_resource_metric_source_t* v2beta1_resource_metric_source = NULL; - if (include_optional) { - v2beta1_resource_metric_source = v2beta1_resource_metric_source_create( - "0", - 56, - "0" - ); - } else { - v2beta1_resource_metric_source = v2beta1_resource_metric_source_create( - "0", - 56, - "0" - ); - } - - return v2beta1_resource_metric_source; -} - - -#ifdef v2beta1_resource_metric_source_MAIN - -void test_v2beta1_resource_metric_source(int include_optional) { - v2beta1_resource_metric_source_t* v2beta1_resource_metric_source_1 = instantiate_v2beta1_resource_metric_source(include_optional); - - cJSON* jsonv2beta1_resource_metric_source_1 = v2beta1_resource_metric_source_convertToJSON(v2beta1_resource_metric_source_1); - printf("v2beta1_resource_metric_source :\n%s\n", cJSON_Print(jsonv2beta1_resource_metric_source_1)); - v2beta1_resource_metric_source_t* v2beta1_resource_metric_source_2 = v2beta1_resource_metric_source_parseFromJSON(jsonv2beta1_resource_metric_source_1); - cJSON* jsonv2beta1_resource_metric_source_2 = v2beta1_resource_metric_source_convertToJSON(v2beta1_resource_metric_source_2); - printf("repeating v2beta1_resource_metric_source:\n%s\n", cJSON_Print(jsonv2beta1_resource_metric_source_2)); -} - -int main() { - test_v2beta1_resource_metric_source(1); - test_v2beta1_resource_metric_source(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta1_resource_metric_source_MAIN -#endif // v2beta1_resource_metric_source_TEST diff --git a/kubernetes/unit-test/test_v2beta1_resource_metric_status.c b/kubernetes/unit-test/test_v2beta1_resource_metric_status.c deleted file mode 100644 index 7312ec6..0000000 --- a/kubernetes/unit-test/test_v2beta1_resource_metric_status.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v2beta1_resource_metric_status_TEST -#define v2beta1_resource_metric_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta1_resource_metric_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta1_resource_metric_status.h" -v2beta1_resource_metric_status_t* instantiate_v2beta1_resource_metric_status(int include_optional); - - - -v2beta1_resource_metric_status_t* instantiate_v2beta1_resource_metric_status(int include_optional) { - v2beta1_resource_metric_status_t* v2beta1_resource_metric_status = NULL; - if (include_optional) { - v2beta1_resource_metric_status = v2beta1_resource_metric_status_create( - 56, - "0", - "0" - ); - } else { - v2beta1_resource_metric_status = v2beta1_resource_metric_status_create( - 56, - "0", - "0" - ); - } - - return v2beta1_resource_metric_status; -} - - -#ifdef v2beta1_resource_metric_status_MAIN - -void test_v2beta1_resource_metric_status(int include_optional) { - v2beta1_resource_metric_status_t* v2beta1_resource_metric_status_1 = instantiate_v2beta1_resource_metric_status(include_optional); - - cJSON* jsonv2beta1_resource_metric_status_1 = v2beta1_resource_metric_status_convertToJSON(v2beta1_resource_metric_status_1); - printf("v2beta1_resource_metric_status :\n%s\n", cJSON_Print(jsonv2beta1_resource_metric_status_1)); - v2beta1_resource_metric_status_t* v2beta1_resource_metric_status_2 = v2beta1_resource_metric_status_parseFromJSON(jsonv2beta1_resource_metric_status_1); - cJSON* jsonv2beta1_resource_metric_status_2 = v2beta1_resource_metric_status_convertToJSON(v2beta1_resource_metric_status_2); - printf("repeating v2beta1_resource_metric_status:\n%s\n", cJSON_Print(jsonv2beta1_resource_metric_status_2)); -} - -int main() { - test_v2beta1_resource_metric_status(1); - test_v2beta1_resource_metric_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta1_resource_metric_status_MAIN -#endif // v2beta1_resource_metric_status_TEST diff --git a/settings b/settings index f339fa3..ee1e01a 100644 --- a/settings +++ b/settings @@ -1,8 +1,8 @@ # Kubernetes branch/tag to get the OpenAPI spec from. -export KUBERNETES_BRANCH="release-1.24" +export KUBERNETES_BRANCH="release-1.25" # client version is not currently used by the code generator. -export CLIENT_VERSION="0.4.0" +export CLIENT_VERSION="0.5.0" # Name of the release package export PACKAGE_NAME="client"