Automated openapi generation from release-1.25

Signed-off-by: Kubernetes Prow Robot <k8s.ci.robot@gmail.com>
This commit is contained in:
Kubernetes Prow Robot
2022-09-26 01:26:15 +00:00
parent eb35d27669
commit fd71accdaf
260 changed files with 5049 additions and 50033 deletions

View File

@@ -1,2 +1,2 @@
Requested Commit: master
Actual Commit: 6cd246931e5e48469c793b31162640eadd1c5e7f
Actual Commit: ac7ebf67dd67e4a347fa142aa6a95ab12f0198de

View File

@@ -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

View File

@@ -1 +1 @@
6.0.1-SNAPSHOT
6.2.1-SNAPSHOT

View File

@@ -1 +1 @@
2f1c88a05f74b314b5acf7df6711ddd86f9df0431d5ba7cba844ec9121985f04
0404d4c8137d5e4978c0fa45c88b0433e62ce7a449af4c76f2fcbc8b64aabd3f

View File

@@ -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

View File

@@ -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.")

View File

@@ -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)

File diff suppressed because it is too large Load Diff

View File

@@ -1,87 +0,0 @@
#include <stdlib.h>
#include <stdio.h>
#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 );

File diff suppressed because it is too large Load Diff

View File

@@ -1,87 +0,0 @@
#include <stdlib.h>
#include <stdio.h>
#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 );

File diff suppressed because it is too large Load Diff

View File

@@ -1,69 +0,0 @@
#include <stdlib.h>
#include <stdio.h>
#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 );

File diff suppressed because it is too large Load Diff

View File

@@ -1,69 +0,0 @@
#include <stdlib.h>
#include <stdio.h>
#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 );

View File

@@ -1,7 +1,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#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;
}

View File

@@ -0,0 +1,63 @@
#include <stdlib.h>
#include <stdio.h>
#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 );

View File

@@ -1,63 +0,0 @@
#include <stdlib.h>
#include <stdio.h>
#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 );

File diff suppressed because it is too large Load Diff

View File

@@ -1,131 +0,0 @@
#include <stdlib.h>
#include <stdio.h>
#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 );

View File

@@ -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 &#39;true&#39;, 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 &#x60;ServerSideFieldValidation&#x60; 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 &#x60;ServerSideFieldValidation&#x60; 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 &#x60;ServerSideFieldValidation&#x60; 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 &#39;true&#39;, 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 \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - 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 &#39;true&#39;, 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 \&quot;next key\&quot;. 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 &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - 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 &#39;true&#39;, then the output is pretty printed. | [optional]
**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, 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 \&quot;next key\&quot;. 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 &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 &#39;true&#39;, 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 &#x60;ServerSideFieldValidation&#x60; 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 &#x60;ServerSideFieldValidation&#x60; 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 &#x60;ServerSideFieldValidation&#x60; 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 \&quot;force\&quot; 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 &#39;true&#39;, 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 &#39;true&#39;, 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 &#x60;ServerSideFieldValidation&#x60; 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 &#x60;ServerSideFieldValidation&#x60; 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 &#x60;ServerSideFieldValidation&#x60; 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)

View File

@@ -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 \&quot;0.0.0.0\&quot; 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 \&quot;0.0.0.0\&quot; 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]

View File

@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**names** | **list_t \*** | Names by which this image is known. e.g. [\&quot;k8s.gcr.io/hyperkube:v1.0.7\&quot;, \&quot;dockerhub.io/google_containers/hyperkube:v1.0.7\&quot;] | [optional]
**names** | **list_t \*** | Names by which this image is known. e.g. [\&quot;kubernetes.example/hyperkube:v1.0.7\&quot;, \&quot;cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\&quot;] | [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)

View File

@@ -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 &#x60;CronJobTimeZone&#x60; 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 &#x60;CronJobTimeZone&#x60; 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)

View File

@@ -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&#39;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. \&quot;csi.storage.k8s.io/pod.name\&quot;: pod.Name \&quot;csi.storage.k8s.io/pod.namespace\&quot;: pod.Namespace \&quot;csi.storage.k8s.io/pod.uid\&quot;: string(pod.UID) \&quot;csi.storage.k8s.io/ephemeral\&quot;: \&quot;true\&quot; if the volume is an ephemeral inline volume defined by a CSIVolumeSource, otherwise \&quot;false\&quot; \&quot;csi.storage.k8s.io/ephemeral\&quot; is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \&quot;Persistent\&quot; and \&quot;Ephemeral\&quot; VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn&#39;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 &#x60;NodePublishVolume&#x60; 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 \&quot;-o context\&quot; mount option. When \&quot;true\&quot;, the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different &#x60;-o context&#x60; 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 \&quot;-o context&#x3D;xyz\&quot; 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 \&quot;false\&quot;, Kubernetes won&#39;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 \&quot;false\&quot;. | [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 &lt;&#x3D; 1.22 and now is mutable. | [optional]
**token_requests** | [**list_t**](storage_v1_token_request.md) \* | TokenRequests indicates the CSI driver needs pods&#39; 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: \&quot;csi.storage.k8s.io/serviceAccount.tokens\&quot;: { \&quot;&lt;audience&gt;\&quot;: { \&quot;token\&quot;: &lt;token&gt;, \&quot;expirationTimestamp\&quot;: &lt;expiration timestamp in RFC3339&gt;, }, ... } 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 \&quot;Persistent\&quot;, which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is \&quot;Ephemeral\&quot;. 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]

View File

@@ -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. \&quot;ext4\&quot;, \&quot;xfs\&quot;, \&quot;ntfs\&quot;. | [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]

View File

@@ -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]

View File

@@ -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 &#x60;kubernetes.io/ingress.class&#x60; 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 -&gt; IngressClass -&gt; Ingress resource). Although the &#x60;kubernetes.io/ingress.class&#x60; 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]

View File

@@ -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 &#x60;manualSelector&#x60; 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 &#x60;manualSelector&#x3D;true&#x60; in jobs that were created with the old &#x60;extensions/v1beta1&#x60; 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) &lt; .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) \* | |

View File

@@ -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 \&quot;NetworkPolicyEndPort\&quot;. | [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]

View File

@@ -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]

View File

@@ -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)

View File

@@ -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 &#39;containerName&#39; 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 &#39;containerName&#39; 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 &#39;0&#39; 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)

View File

@@ -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)

View File

@@ -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&#39;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)

View File

@@ -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 \&quot;ClusterFirst\&quot;. Valid values are &#39;ClusterFirstWithHostNet&#39;, &#39;ClusterFirst&#39;, &#39;Default&#39; or &#39;None&#39;. 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 &#39;ClusterFirstWithHostNet&#39;. | [optional]
**enable_service_links** | **int** | EnableServiceLinks indicates whether information about services should be injected into pod&#39;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&#39;s ephemeralcontainers subresource. This field is beta-level and available on clusters that haven&#39;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&#39;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&#39;s hosts file if specified. This is only valid for non-hostNetwork pods. | [optional]
**host_ipc** | **int** | Use the host&#39;s ipc namespace. Optional: Default to false. | [optional]
**host_network** | **int** | Host networking requested for this pod. Use the host&#39;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&#39;s pid namespace. Optional: Default to false. | [optional]
**host_users** | **int** | Use the host&#39;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&#39;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]

View File

@@ -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&#39;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 &#x3D; 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]

View File

@@ -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. \&quot;\&quot; represents the core API group and \&quot;*\&quot; 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 \&quot;pods\&quot; or \&quot;secrets\&quot;) or non-resource URL paths (such as \&quot;/api\&quot;), 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. &#39;*&#39; represents all resources. | [optional]

View File

@@ -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 \&quot;None\&quot;, empty string (\&quot;\&quot;), or a valid IP address. Setting this to \&quot;None\&quot; makes a \&quot;headless service\&quot; (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 &#x60;type&#x60; to be \&quot;ExternalName\&quot;. | [optional]
**external_traffic_policy** | **char \*** | externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. \&quot;Local\&quot; preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. \&quot;Cluster\&quot; 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. \&quot;Cluster\&quot; routes internal traffic to a Service to all endpoints. \&quot;Local\&quot; routes traffic to node-local endpoints only, traffic is dropped if no node-local endpoints are ready. The default value is \&quot;Cluster\&quot;. | [optional]
**external_traffic_policy** | **char \*** | externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service&#39;s \&quot;externally-facing\&quot; addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \&quot;Local\&quot;, 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, \&quot;Cluster\&quot;, 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 \&quot;Cluster\&quot; 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 \&quot;Local\&quot;, 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, \&quot;Cluster\&quot;, 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 \&quot;IPv4\&quot; and \&quot;IPv6\&quot;. This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \&quot;headless\&quot; 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 \&quot;SingleStack\&quot; (a single IP family), \&quot;PreferDualStack\&quot; (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \&quot;RequireDualStack\&quot; (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. \&quot;internal-vip\&quot; or \&quot;example.com/internal-vip\&quot;. Unprefixed names are reserved for end-users. This field can only be set when the Service type is &#39;LoadBalancer&#39;. 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 &#39;LoadBalancer&#39;. Once set, it can not be changed. This field will be wiped when a service is updated to a non &#39;LoadBalancer&#39; type. | [optional]

View File

@@ -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 &#x60;OrderedReady&#x60;, 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 &#x60;Parallel&#x60; 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]

View File

@@ -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&#39;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]

View File

@@ -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 &#39;expiration&#39; field in a response. | [optional]

View File

@@ -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&#39;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 &#x60;whenUnsatisfiable&#x3D;DoNotSchedule&#x60;, 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 &#x60;whenUnsatisfiable&#x3D;ScheduleAnyway&#x60;, it is used to give higher precedence to topologies that satisfy it. It&#39;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 \&quot;global minimum\&quot; 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&#39;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 \&quot;global minimum\&quot; 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 &lt;key, value&gt; as a \&quot;bucket\&quot;, 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 \&quot;kubernetes.io/hostname\&quot;, each Node is a domain of that topology. And, if TopologyKey is \&quot;topology.kubernetes.io/zone\&quot;, each zone is a domain of that topology. It&#39;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 \&quot;global minimum\&quot; 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&#39;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 \&quot;global minimum\&quot; 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&#39;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 &lt;key, value&gt; as a \&quot;bucket\&quot;, 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 \&quot;kubernetes.io/hostname\&quot;, each Node is a domain of that topology. And, if TopologyKey is \&quot;topology.kubernetes.io/zone\&quot;, each zone is a domain of that topology. It&#39;s a required field. |
**when_unsatisfiable** | **char \*** | WhenUnsatisfiable indicates how to deal with a pod if it doesn&#39;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 \&quot;Unsatisfiable\&quot; for an incoming pod if and only if every possible node assignment for that pod would violate \&quot;MaxSkew\&quot; 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&#39;t make it *more* imbalanced. It&#39;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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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. \&quot;10.0.0.0/8\&quot;). 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. \&quot;fd12:3456:789a:1::/64\&quot;). 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)

View File

@@ -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

View File

@@ -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

View File

@@ -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;

View File

@@ -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,

View File

@@ -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: [{\&quot;ip\&quot;: \&quot;10.10.1.1\&quot;}, {\&quot;ip\&quot;: \&quot;10.10.2.2\&quot;}], Ports: [{\&quot;name\&quot;: \&quot;a\&quot;, \&quot;port\&quot;: 8675}, {\&quot;name\&quot;: \&quot;b\&quot;, \&quot;port\&quot;: 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: [{\&quot;ip\&quot;: \&quot;10.10.1.1\&quot;}, {\&quot;ip\&quot;: \&quot;10.10.2.2\&quot;}], Ports: [{\&quot;name\&quot;: \&quot;a\&quot;, \&quot;port\&quot;: 8675}, {\&quot;name\&quot;: \&quot;b\&quot;, \&quot;port\&quot;: 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_

View File

@@ -1,7 +1,7 @@
/*
* v1_endpoints.h
*
* Endpoints is a collection of endpoints that implement the actual service. Example: Name: \&quot;mysvc\&quot;, Subsets: [ { Addresses: [{\&quot;ip\&quot;: \&quot;10.10.1.1\&quot;}, {\&quot;ip\&quot;: \&quot;10.10.2.2\&quot;}], Ports: [{\&quot;name\&quot;: \&quot;a\&quot;, \&quot;port\&quot;: 8675}, {\&quot;name\&quot;: \&quot;b\&quot;, \&quot;port\&quot;: 309}] }, { Addresses: [{\&quot;ip\&quot;: \&quot;10.10.3.3\&quot;}], Ports: [{\&quot;name\&quot;: \&quot;a\&quot;, \&quot;port\&quot;: 93}, {\&quot;name\&quot;: \&quot;b\&quot;, \&quot;port\&quot;: 76}] }, ]
* Endpoints is a collection of endpoints that implement the actual service. Example: Name: \&quot;mysvc\&quot;, Subsets: [ { Addresses: [{\&quot;ip\&quot;: \&quot;10.10.1.1\&quot;}, {\&quot;ip\&quot;: \&quot;10.10.2.2\&quot;}], Ports: [{\&quot;name\&quot;: \&quot;a\&quot;, \&quot;port\&quot;: 8675}, {\&quot;name\&quot;: \&quot;b\&quot;, \&quot;port\&quot;: 309}] }, { Addresses: [{\&quot;ip\&quot;: \&quot;10.10.3.3\&quot;}], Ports: [{\&quot;name\&quot;: \&quot;a\&quot;, \&quot;port\&quot;: 93}, {\&quot;name\&quot;: \&quot;b\&quot;, \&quot;port\&quot;: 76}] }, ]
*/
#ifndef _v1_endpoints_H_

View File

@@ -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&#39;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_

View File

@@ -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;

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -0,0 +1,116 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#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;
}

View File

@@ -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 <string.h>
#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_ */

View File

@@ -0,0 +1,169 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#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;
}

View File

@@ -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 <string.h>
#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_ */

View File

@@ -0,0 +1,105 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#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;
}

View File

@@ -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 <string.h>
#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_ */

View File

@@ -0,0 +1,177 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#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;
}

View File

@@ -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 <string.h>
#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_ */

View File

@@ -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_

View File

@@ -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,

View File

@@ -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,

View File

@@ -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_

View File

@@ -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;
}

View File

@@ -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
);

View File

@@ -0,0 +1,163 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#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;
}

View File

@@ -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 <string.h>
#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_ */

View File

@@ -0,0 +1,197 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#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;
}

View File

@@ -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 <string.h>
#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_ */

View File

@@ -0,0 +1,154 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#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;
}

View File

@@ -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 <string.h>
#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_ */

View File

@@ -1,77 +0,0 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#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;
}

View File

@@ -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 <string.h>
#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_ */

View File

@@ -1,77 +0,0 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#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;
}

View File

@@ -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 <string.h>
#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_ */

View File

@@ -1,93 +0,0 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#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;
}

View File

@@ -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 <string.h>
#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_ */

View File

@@ -1,196 +0,0 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#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;
}

View File

@@ -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 <string.h>
#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_ */

View File

@@ -1,197 +0,0 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#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;
}

View File

@@ -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 <string.h>
#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_ */

View File

@@ -1,242 +0,0 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#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;
}

View File

@@ -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 <string.h>
#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_ */

View File

@@ -1,160 +0,0 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#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;
}

View File

@@ -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 <string.h>
#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_ */

View File

@@ -1,333 +0,0 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#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;
}

View File

@@ -1,52 +0,0 @@
/*
* v1beta1_endpoint.h
*
* Endpoint represents a single logical \&quot;backend\&quot; implementing a service.
*/
#ifndef _v1beta1_endpoint_H_
#define _v1beta1_endpoint_H_
#include <string.h>
#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_ */

View File

@@ -1,109 +0,0 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#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;
}

View File

@@ -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 <string.h>
#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_ */

View File

@@ -1,112 +0,0 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#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;
}

View File

@@ -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 <string.h>
#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_ */

View File

@@ -1,141 +0,0 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#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;
}

View File

@@ -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 <string.h>
#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_ */

View File

@@ -1,288 +0,0 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#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;
}

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